R01UH0092EJ0110 Rev.1.10
Page 301 of 807
Jul 31, 2012
M16C/64C 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
1/2
f64TIMAB
CM21
1/2
1/8
1/4
Clock Generator
Main clock
oscillator or
PLL frequency
synthesizer
f1TIMAB
1/32
fC32
Set the CPSR bit in the CPSRF
register to 1 (prescaler reset).
Reset
fOCO-S
fOCO-S
fOCO-S
fC32
fC
Sub clock
oscillator
125 kHz
on-chip
oscillator
CM21: Bit in the CM2 register
PCLK0: Bit in the PCLKR register
PCKSTP17, PCKSTP11: Bit in the PCLKSTP1 register
0
1
1
0
f1
Timer AB divider
0
Main clock
PCKSTP17
f1/main clock
PCKSTP11
1
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...