R01UH0136EJ0210 Rev.2.10
Page 302 of 800
Jul 31, 2012
M16C/64A Group
18. Timer B
Figure 18.3
Timer B Block Diagram
Table 18.2
I/O Ports
Pin Name
I/O
Function
TBiIN
Input
Count source input (event counter mode)
Measurement pulse input (pulse period measurement mode, pulse
width measurement mode)
i = 0 to 5
Note:
1.
When using the TBiIN pin for input, set the port direction bit sharing the same pin to 0 (input
mode).
Clock source select
i = 0 to 5
j = i - 1, except j = 2 if i = 0, and j = 5 if i = 3
TBiIN
TBiS
Counter reset circuit
Polarity select,
edge pulse
TCK1 to TCK0, TMOD1 to TMOD0: Bits in the TBiMR register
TBiS: Bits in the TABSR register or TBSR register
TCS0 to TCS7: Bits in the registers TBCS0 to TBCS3
PPWFS12 to PPWFS10: Bits in the PPWFS1 register
PPWFS22 to PPWFS20: Bits in the PPWFS2 register
TCK1 to TCK0
00b
01b
f1TIMAB
or
f2TIMAB
f8TIMAB
f32TIMAB
fC32
10b
11b
000b
001b
f1TIMAB
or
f2TIMAB
f8TIMAB
f32TIMAB
fOCO-S
010b
101b
or TCS6 to TCS4
TCS2 to TCS0
f64TIMAB
011b
01b: Event counter
00b: Timer mode
10b: Pulse period, pulse width measurement mode
TCK1
TBj
overflow
(1)
1
0
TMOD1 to TMOD0
0
1
TCS3
or TCS7
Note:
1. Overflow or underflow
Data Bus
TBi
TBj
Timer B0
Timer B2
Timer B1
Timer B0
Timer B2
Timer B1
Timer B3
Timer B5
Timer B4
Timer B3
Timer B5
Timer B4
fC32
110b
Counter
TBi1
register
Selector
Reload register
TBi
register
PPWFS12 to PPWFS10
PPWFS22 to PPWFS20
Reload register
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...