Renesas M16C/64A Series User Manual page 335

Table of Contents

Advertisement

M16C/64A Group
Clock source select
f1TIMAB
TCK1 to TCK0
or
00b
f2TIMAB
01b
f8TIMAB
10b
f32TIMAB
11b
fC32
TCS2 to TCS0
f1TIMAB
or TCS6 to TCS4
or
000b
f2TIMAB
001b
f8TIMAB
010b
f32TIMAB
011b
f64TIMAB
101b
fOCO-S
110b
fC32
TBiIN
Note:
1. Overflow or underflow
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
Figure 18.3
Timer B Block Diagram
Table 18.2
I/O Ports
Pin Name
TBiIN
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).
R01UH0136EJ0210 Rev.2.10
Jul 31, 2012
TCS3
or TCS7
0
00b: Timer mode
10b: Pulse period, pulse width measurement mode
1
TCK1
1
TBj
(1)
overflow
0
Polarity select,
edge pulse
I/O
Count source input (event counter mode)
(1)
Measurement pulse input (pulse period measurement mode, pulse
Input
width measurement mode)
PPWFS12 to PPWFS10
PPWFS22 to PPWFS20
TMOD1 to TMOD0
01b: Event counter
TBiS
Counter reset circuit
i = 0 to 5
j = i - 1, except j = 2 if i = 0, and j = 5 if i = 3
Function
Data Bus
register
TBi1
Reload register
Reload register
Selector
Counter
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
Page 302 of 800
18. Timer B
register
TBi

Advertisement

Table of Contents
loading

Table of Contents