Download Print this page

Renesas M16C/50 Series User Manual page 318

Advertisement

M16C/5L Group, M16C/56 Group
Clock source select
f1TIMAB
TCK1 to TCK0
or
00
f2TIMAB
01
f8TIMAB
10
f32TIMAB
11
fC32
TCS2 to TCS0
f1TIMAB
or TCS6 to TCS4
or
000
f2TIMAB
001
f8TIMAB
010
f32TIMAB
011
f64TIMAB
100
fOCO-F
101
fOCO-S
fC32 110
TBiIN
Note:
1. Overflow or underflow
TCK1, TCK0, TMOD1, and TMOD0: Bits in the TBiMR register
TBiS: Bits in the TABSR register or TBSR register
TCS0 to TCS7: Bits in the registers TBCS0 to TBCS1
PPWFS12 to PPWFS10: Bits in the PPWFS1 register
Figure 16.3
Timer B Block Diagram
Table 16.2
I/O Ports
Pin Name
TBiIN
i = 0 to 2
Note:
1.
When using the TBiIN pin for input, set the port direction bit sharing the same pin to 0 (input
mode).
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
TCS3 or TCS7
00: Timer mode, A/D trigger mode
0
(Timer B0, Timer B1)
10: Pulse period, pulse width
measurement mode
1
TCK1
1
01: Event counter
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
TBi1 register
Reload register
TMOD1 to TMOD0
Seletor
TBiS
Counter reset circuit
i = 0 to 2
j = i - 1, except j = 2 if i = 0
TBi
Timer B0
Timer B1
Timer B2
Function
16. Timer B
Data Bus
TBi register
Reload register
Counter
TBj
Timer B2
Timer B0
Timer B1
Page 281 of 803

Advertisement

loading