R01UH0136EJ0210 Rev.2.10
Page 252 of 800
Jul 31, 2012
M16C/64A Group
17. Timer A
17. Timer A
17.1
Introduction
Timers A consists of timers A0 to A4. Each timer operates independently of the others. Table 17.1 lists
Timer A Specifications, Table 17.2 lists Differences in Timer A Mode, Figure 17.1 shows Timer A and B
Count Sources, Figure 17.2 shows Timer A Configuration, Figure 17.3 shows Timer A Block Diagram, and
Table 17.3 lists I/O Ports.
Figure 17.1
Timer A and B Count Sources
Table 17.1
Timer A Specifications
Item
Specification
Configuration
16-bit timer × 5
Operating modes
•
Timer mode
The timer counts an internal count source.
•
Event counter mode
The timer counts pulses from an external device, or overflows and underflows of other timers.
•
One-shot timer mode
The timer outputs a single pulse before it reaches the count 0000h.
•
Pulse width modulation mode (PWM mode)
The timer outputs pulses of given width and cycle successively.
•
Programmable output mode
The timer outputs a given pulse width of a high/low level signal (timers A1, A2, and A4).
Interrupt sources
Overflow/underflow × 5
Table 17.2
Differences in Timer A Mode
Item
Timer
A0
A1
A2
A3
A4
Event counter mode (two-phase pulse signal processing)
No
No
Yes
Yes
Yes
Programmable output mode
No
Yes
Yes
No
Yes
f1TIMAB
or
f2TIMAB
f8TIMAB
f32TIMAB
f2TIMAB
PCLK0
Main clock
oscillator
or PLL frequency
synthesizer
1/2
f64TIMAB
CM21
1/2
1/8
1/4
Clock Generator
f1TIMAB
1/32
fC32
Set the CPSR bit in the CPSRF
register to 1 (prescaler reset).
Reset
Sub clock
oscillator
fOCO-S
fOCO-S
fOCO-S
fC32
fC
125 kHz
on-chip
oscillator
CM21
: Bit in the CM2 register
PCLK0
: Bit in the PCLKR register
0
1
0
1
0
f1
Timer AB divider
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...