Timer B
M30240 Group
Rev.1.00 Sep 24, 2003 Page 175 of 360
Figure 2.37: Set-up procedure of timer mode
Setting divide ratio
Can be set to 000016 to FFFF16
b7 b0
(b15) (b8)
b7 b0
Timer B0 register [Address 0391 16, 039016] TB0
Timer B1 register [Address 0393
16, 039216] TB1
Timer B2 register [Address 0395
16, 039416] TB2
Start count
Setting count start flag
Count start flag [Address 0380 16]
TABSR
Timer B0 count start flag
Timer B1 count start flag
Timer B2 count start flag
b7 b0
Selecting timer mode and functions
Invalid in timer mode
Can be “0” or “1”
Timer Bi mode register (i=0 to 2) [Address 039B 16 to 039D16]
TBiMR (i=0 to 2)
Fixed to “0” in timer mode ( i = 0)
This bit can neither be set nor reset (i = 1, 2)
Selection of timer mode
b7 b0
00
Invalid in timer mode
Count source select bit
0 0 : f
1
0 1 : f 8
1 0 : f 32
1 1 : Reserved
b7 b6
Count source period
f(X
IN
) : 12MH Z
b7 b6
Count
source
83.3ns
667ns
2.67µs
00
0
1
10
f
1
f8
f32