Timers - Renesas M16C/29 Series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M16C/29 Series:
Table of Contents

Advertisement

M16C/29 Group

12. Timers

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.
• Main clock
f
1
• PLL clock
• On-chip
oscillator clock
f
f
f
f
1 or
2
8
32
TA0
IN
TA1
IN
TA2
IN
TA3
IN
TA4
IN
Figure 12.1. Timer A Configuration
Rev.1.00 Nov 01,2004
REJ09B0101-0100Z
f
2
PCLK0 bit = 0
1/2
f
1 or
PCLK0 bit = 1
f
1/8
8
f
1/4
32
f
C32
Noise
filter
Noise
filter
Noise
filter
Noise
filter
Noise
filter
Timer B2 overflow or underflow
page 93 of 402
f
2
X
CIN
Set the CPSR bit of CPSRF
register to "1" (= prescaler
reset)
• Timer mode
• One-shot timer mode
• Pulse Width Measuring (PWM) mode
Timer A0
• Event counter mode
• 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
• 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
Clock prescaler
f
1/32
C32
Reset
Timer A0 interrupt
Timer A1 interrupt
Timer A2 interrupt
Timer A3 interrupt
Timer A4 interrupt
12.1 Timer A

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c seriesM16c/tiny series

Table of Contents