English
Language : 

M16C62_M Datasheet, PDF (362/615 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/60 SERIES
Timer B
Mitsubishi microcomputers
M16C / 62A Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Selecting event counter mode and functions
b7
b0 Timer Bi mode register (i=0 to 5) [Address 039B16 to 039D16, 035B16 to 035D16]
0
0 0 0 1 TBiMR (i=0 to 5)
Selection of event counter mode
Count polarity select bit
b3 b2
0 0 : Counts external signal falling edges
Fixed to “0” in event counter mode ( i = 0, 3)
In an attempt to write to this bit, write “0” (i = 1, 2, 4, 5)
Invalid in event counter mode
Event clock select
0 : Input from TBiIN pin (Note)
Note: Set the corresponding port direction register to “0”.
Setting counter value
(b15)
b7
(b8)
b0 b7
Timer B0 register [Address 039116, 039016] TB0
Timer B1 register [Address 039316, 039216] TB1
b0 Timer B2 register [Address 039516, 039416] TB2
Timer B3 register [Address 035116, 035016] TB3
Timer B4 register [Address 035316, 035216] TB4
Timer B5 register [Address 035516, 035416] TB5
Can be set to 000016 to FFFF16 (n)
Setting count start flag
b7
b0 Count start flag
b7
[Address 038016]
TABSR
Timer B0 count start flag
Timer B1 count start flag
Timer B2 count start flag
Start count
Figure 2.3.7. Set-up procedure of event counter mode
Timer B3,4,5 count start
b0 flag
[Address 034016]
TBSR
Timer B3 count start flag
Timer B4 count start flag
Timer B5 count start flag
2-45