English
Language : 

R8C2K Datasheet, PDF (233/471 Pages) Renesas Technology Corp – MCU
R8C/2K Group, R8C/2L Group
16. Timers
16.4 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 16.25 lists the Timer RD Operation Clocks.
Table 16.25 Timer RD Operation Clocks
Condition
Operation Clock of Timer RD
The count source is f1, f2, f4, f8, f32, or TRDCLK input
f1
(bits TCK2 to TCK0 in registers TRDCR0 and TRDCR1 are set to a value from 000b
to 101b).
The count source is fOCO40M
(bits TCK2 to TCK0 in registers TRDCR0 and TRDCR1 are set to 110b).
fOCO40M
Figure 16.63 shows a Block Diagram of Timer RD. Timer RD has 5 modes:
• Timer mode
- Input capture function
Transfer the counter value to a register with an external signal as the
trigger
- Output compare function
Detect register value matches with a counter
(Pin output can be changed at detection)
The following 4 modes use the output compare function.
• PWM mode
Output pulse of any width 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 waveforms (2) with a fixed 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 individually for each 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 16.26 to 16.34 list the Pin Functions of timer RD.
Rev.1.10 Dec 21, 2007 Page 216 of 450
REJ09B0406-0110