
R8C/3JM Group
16. General Overview of Timers
R01UH0285EJ0100 Rev.1.00
Aug 08, 2011
Notes:
1.
Rectangular waves are output in these modes. Since the waves are inverted at each overflow, the “H” and “L” level widths of
the pulses are the same.
2.
The underflow interrupt can be set to timer RD1.
Table 16.1
Functional Comparison of Timers
Item
Timer RA
Timer RB
Timer RC
Timer RD
Timer RE
Configuration
8-bit timer with
8-bit prescaler
(with reload
register)
8-bit timer with 8-
bit prescaler
(with reload
register)
16-bit timer (with
input capture and
output compare)
16-bit timer × 2 (with
input capture and
output compare)
4-bit counter
8-bit counter
Count
Decrement
Increment
Increment/Decrement
Increment
Count sources
f1
f2
f8
fOCO
fC32
fC
f1
f2
f8
Timer RA
underflow
f1
f2
f4
f8
f32
fOCO40M
fOCO-F
TRCCLK
f1
f2
f4
f8
f32
fC2
fOCO40M
fOCO-F
TRDCLK
f4
f8
f32
fC4
Function Count of the
internal count
source
Timer mode
Timer mode (output
compare function)
Timer mode (output
compare function)
—
Count of the
external count
source
Event counter
mode
—
Timer mode (output
compare function)
Timer mode (output
compare function)
—
External pulse
width/period
measurement
Pulse width
measurement
mode, pulse
period
measurement
mode
—
Timer mode (input
capture function;
4 pins)
Timer mode (input
compare function; 2 × 4
pins)
—
PWM output
Pulse output
Programmable
waveform
generation mode
Timer mode (output
compare function;
PWM mode (3 pins),
PWM2 mode (1 pin)
Timer mode (output
compare function; 2 × 4
PWM mode
(2 × 3 pins),
PWM3 mode
(1 × 2 pins)
Output
compare
One-shot
waveform output
—
Programmable
one-shot
generation mode,
Programmable
wait one-shot
generation mode
PWM mode (3 pins)
PWM mode
(2 × 3 pins)
—
Three-phase
waveforms
output
—
Reset synchronous
PWM mode (2 × 3 pins,
Sawtooth wave
modulation),
Complementary PWM
mode
(2 × 3 pins,
triangular
wave modulation, dead
time)
—
Timer
Timer mode
(only fC32
count)
—
Real-time clock
mode
Input pin
TRAIO,
INT2
INT0
INT0, TRCCLK,
TRCTRG, TRCIOA,
TRCIOB, TRCIOC,
TRCIOD
INT0, TRDCLK,
TRDIOA0, TRDIOA1,
TRDIOB0, TRDIOB1,
TRDIOC0, TRDIOC1,
TRDIOD0, TRDIOD1
—
Output pin
TRAO,
TRAIO
TRBO
TRCIOA,
TRCIOB, TRCIOC,
TRCIOD
TRDIOA0, TRDIOA1,
TRDIOB0, TRDIOB1,
TRDIOC0, TRDIOC1,
TRDIOD0, TRDIOD1
TREO
Related interrupt
Timer RA
interrupt,
INT2 interrupt
Timer RB
interrupt,
INT0 interrupt
Compare match/
input capture A to D
interrupt,
Overflow interrupt,
INT0 interrupt
Compare match/input
capture A0 to D0
interrupt,
Compare match/input
capture A1 to D1
interrupt,
Overflow interrupt,
INT0 interrupt
Timer RE
interrupt
Timer stop
Provided