R8C/13 Group
12. Timers
12. Timers
The microcomputer has three 8-bit timers and one 16-bit timer. The three 8-bit timers are Timer X, Timer Y,
and Timer Z and each one has an 8-bit prescaler. The 16-bit timer is Timer C and has input capture and
output compare. All these timers function independently. The count source for each timer is the operating
clock that regulates the timing of timer operations such as counting and reloading.
Table 12.1 lists functional comparison.
Table 12.1 Functional Comparison
Item
Timer X
8-bit timer
with 8-bit
prescaler
Down
•f1
Timer Y
8-bit timer
with 8-bit
prescaler
Down
Timer Z
8-bit timer
with 8-bit
prescaler
Down
Timer C
16-bit
Configuration
free-run
timer
Up
Count
Count source
•f1
•f1
•f1
•f2
•f8
•f2
•f8
•f8
•fRING
•f8
•f32
•f32
•Input from
CNTR1 pin
provided
not provided
•Timer Y
underflow
provided
•fRING-fast
Function
Timer mode
provided
provided
provided
not provided
Pulse output mode
Event counter mode
Pulse width
not provided not provided
not provided not provided
(1)
provided
measurement mode
Pulse period
provided
provided
not provided
not provided
not provided not provided
not provided not provided
measurement mode
Programmable waveform
generation mode
Programmable one-shot
generation mode
Programmable wait
not provided provided
provided
provided
provided
not provided
not provided
not provided
not provided not provided
one-shot generation mode not provided not provided
Input capture mode
not provided not provided
not provided not provided
not provided provided
Output compare mode
not provided provided
_____
Input pin
CNTR0
CNTR1
INT0
TCIN
Output pin
CNTR0
CMP00 to CMP02
CMP10 to CMP12
__________
CNTR0
CNTR1
TZOUT
Related interrupt
Timer X int
Timer Y int
Timer Z int
Timer C int
_____
_____
_____
_____
INT1 int
INT2 int
INT0 int
INT3 int
compare 0 int
compare 1 int
provided
Timer stop
NOTES:
provided
provided
provided
1. Select the input from the CNTR1 pin as a count source of timer mode.
Rev.1.20 Jan 27, 2006 page 70 of 205
REJ09B0111-0120