R01UH0136EJ0210 Rev.2.10
Page 300 of 800
Jul 31, 2012
M16C/64A Group
18. Timer B
18. Timer B
18.1
Introduction
Timer B consists of timers B0 to B5. Each timer operates independently of the others. Table 18.1 lists
Timer B Specifications, Figure 18.1 shows Timer A and B Count Sources, Figure 18.2 shows the Timer B
Configuration, Figure 18.3 shows the Timer B Block Diagram, and Table 18.2 lists the I/O Ports.
Figure 18.1
Timer A and B Count Sources
Table 18.1
Timer B Specifications
Item
Specification
Configuration
16-bit timer × 6
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.
•
Pulse period/pulse width measurement modes
The timer measures pulse periods or pulse widths of an external signal.
Interrupt source
Overflow/underflow/active edge of measurement pulse × 6
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
Summary of Contents for M16C/60 Series
Page 853: ...M16C 64A Group R01UH0136EJ0210...