M16C/62P Group (M16C/62P, M16C/62PT)
15. Timers
Rev.2.41
Jan 10, 2006
Page 138 of 390
REJ09B0185-0241
Figure 15.2
Timer B Configuration
NOTES :
1. Be aware that TB5IN shares the pin with RXD2 and TA0IN.
TB0IN
TB1IN
TB2IN
Timer B0
Timer B0 interrupt
Noise
filter
Timer B2 overflow or underflow
(to a count source of Timer A)
TB3IN
TB4IN
TB5IN
Timer B3 interrupt
Timer B1 interrupt
Timer B2 interrupt
Timer B4 interrupt
Timer B5 interrupt
00
01
10
11
TCK1 to TCK0
Timer B1
00
01
10
11
TCK1 to TCK0
Noise
filter
Timer B2
00
01
10
11
TCK1 to TCK0
Noise
filter
Timer B3
00
01
10
11
TCK1 to TCK0
Noise
filter
00
01
10
11
TCK1 to TCK0
Timer B4
Noise
filter
00
01
10
11
TCK1 to TCK0
Timer B5
Noise
filter
01: Event counter mode
00: Timer mode
10: Pulse period / pulse width measurement mode
TCK1
1
0
TMOD1 to TMOD0
01: Event counter mode
00: Timer mode
10: Pulse period / pulse width measurement mode
TCK1
1
0
01: Event counter mode
00: Timer mode
10: Pulse period / pulse width measurement mode
TCK1
1
0
01: Event counter mode
00: Timer mode
10: Pulse period / pulse width measurement mode
TCK1
1
0
01: Event counter mode
00: Timer mode
10: Pulse period / pulse width measurement mode
TCK1
1
0
01: Event counter mode
00: Timer mode
10: Pulse period / pulse width measurement mode
TCK1
1
0
TCK1 to TCK0, TMOD1 to TMOD0 : Bits in TBiMR register (i=0 to 5)
TMOD1 to TMOD0
TMOD1 to TMOD0
TMOD1 to TMOD0
TMOD1 to TMOD0
TMOD1 to TMOD0
1/32
fC32
XCIN
Reset
Clock prescaler
1/4
f8
f32
f1 or f2
· Main clock
· PLL clock
· On-chip oscillator
clock
Set the CPSR bit in the
CPSRF register to “1”
(= prescaler reset)
f1
f2
PCLK0 bit = 0
PCLK0 bit = 1
1/4
1/2
1/8
f8 f32 fC32
f1 or f2
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655