English
Language : 

M16C28 Datasheet, PDF (118/423 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/Tiny SERIES
M16C/28 Group (M16C/28, M16C/28B)
12. Timer
12. Timer
Eight 16-bit timers, each capable of operating independently of the others, can be classified by function as
either timer A (five) and timer B (three). The count source for each timer acts as a clock, to control such
timer operations as counting, reloading, etc. Figures 12.1 and 12.2 show block diagrams of timer A and
timer B configuration, respectively.
1/2
• Main clock
• PLL clock
f1
• On-chip oscillator
clock
1/8
f1 or f2 f8 f32 fC32
f2 PCLK0 bit = 0
f1 or f2
PCLK0 bit = 1
XCIN
f8
Set the CPSR bit in the
1/4
f32 CPSRF register to "1"
(prescaler reset)
Clock prescaler
1/32
Reset
TA0IN
Noise
filter
• Timer mode
• One-shot timer mode
• Pulse Width Measuring (PWM) mode
Timer A0
• Event counter mode
TA1IN
TA2IN
Noise
filter
Noise
filter
• Timer mode
• One-shot timer mode
• PWM mode
Timer A1
• Event counter mode
• Timer mode
• One-shot timer mode
• PWM mode
Timer A2
• Event counter mode
TA3IN
TA4IN
Noise
filter
Noise
filter
• Timer mode
• One-shot timer mode
• PWM mode
Timer A3
• Event counter mode
• Timer mode
• One-shot timer mode
• PWM mode
Timer A4
• Event counter mode
fC32
Timer A0 interrupt
Timer A1 interrupt
Timer A2 interrupt
Timer A3 interrupt
Timer A4 interrupt
Timer B2 overflow or underflow
Figure 12.1 Timer A Configuration
Rev. 2.00 Jan. 31, 2007 page 98 of 385
REJ09B0047-0200