Datasheet

Table Of Contents
Section 19 14-Bit PWM
Rev. 2.00 Jul. 04, 2007 Page 438 of 692
REJ09B0309-0200
Table 19.2 Relationship between PWCR, PWDR and Output Waveform
PWCRm Setting Value
PWCRm1 PWCRm0
One Conversion
Period [t
cyc
]
T
H
[t
cyc
]
T
fn
[t
cyc
]
Minimum
Variation
Width [t
cyc
]
0 0 16384 (PWDRm+64) × 1 256 1
0 1 32768 (PWDRm+64) × 2 512 2
1 0 65536 (PWDRm+64) × 4 1024 4
1 1 131072 (PWDRm+64) × 8 2048 8
Note: m = 1 to 4, n = 1 to 64
19.4.4 Setting for Standard PWM Operation
When using the standard PWM, set the registers in this sequence:
1. According to the PWM channel used, set the PWM1, PWM2, PWM3, or PWM4 bit (the
former two bits are in PMR9 and the latter two in PFCR) to 1 to set the P90/PWM1,
P91/PWM2, P92/IRQ4/PWM3, or P93/PWM4 pin to function as a PWM pin.
2. Set PWCRm2 to 1 to select the standard PWM waveform. (m = 4 to 1)
3. Set the event counter PWM in the asynchronous event counter. For the setting method, see
section 15.4.4, Event Counter PWM Operation.
4. The PWM pin outputs the PWM waveform set by the event counter.
Note: When the standard waveform is used, 16-bit counter operation, 8-bit counter operation,
and IRQAEC operation for the asynchronous event counter are not available because the
PWM for the asynchronous event counter is used.
When the IECPWM signal of the asynchronous event counter goes high, ECH and ECL
increment. However, when the signal goes low, these counters stop. (For details, refer to
section 15.4, Operation.)