R8C/20 Group, R8C/21 Group 14. Timers
Rev.2.00 Aug 27, 2008 Page 159 of 458
REJ09B0250-0200
14.3 Timer RD
Timer RD has 2 16-bit timers (channels 0 and 1). Each channel has 4 I/O pins.
The operation clock of Timer RD is f1 or fOCO40M.
Table 14.11 lists the Timer RD Operation Clocks.
Figure 14.27 shows the Block Diagram of Timer RD. Timer RD has 5 modes:
• Timer mode
- Input capture function Transfer the counter value to a register as a trigger of the external signal
- Output compare function Detect the register value match with a counter
(Pin output can be changed at detection)
The following 4 modes using the output compare function.
• PWM mode Output any-wide pulse continuously
• Reset synchronous PWM mode Output three-phase waveforms (6) without sawtooth
wave modulation and dead time
• Complementary PWM mode Output three-phase waveforms (6) with triangular
wave modulation and dead time
• PWM3 mode Output PWM waveform (2) with same period
In the input capture function, output compare function and PWM mode, Channels 0 and 1 have the equivalent
functions, and functions or modes can be selected every pin. Also, a combination of these functions and modes can
be used in 1 channel.
In reset synchronous PWM mode, complementary PWM mode and PWM3 mode, a waveform is output with a
combination of counters and registers in Channels 0 and 1.
Tables 14.12 to 14.20 lists the Pin Functions of timer RD.
Table 14.11 Timer RD Operation Clocks
Condition Operation Clock of Timer RD
The count source is f1, f2, f4, f8, f32 and TRDCLK input.
(The TCK2 to TCK0 bits in the TRDCR0 and TRDCR1 registers are set to 000b to
101b.)
f1
The count source is fOCO40M.
(The TCK2 to TCK0 bits in the TRDCR0 and TRDCR1 registers are set to 110b.)
fOCO40M