English
Language : 

M16C62_M Datasheet, PDF (360/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 timer mode and functions
b7
b0
00
Timer Bi mode register (i=0 to 5) [Address 039B16 to 039D16, 035B16 to 035D16]
TBiMR (i=0 to 5)
Selection of timer mode
Invalid in timer mode
Can be “0” or “1”
Fixed to “0” in timer mode ( i = 0, 3)
In an attempt to write to this bit, write “0” (i = 1, 2, 4, 5)
Invalid in timer mode
Count source select bit
b7 b6
0 0 : f1
0 1 : f8
1 0 : f32
1 1 : fC32
b7 b6
00
01
10
11
Count
Count source period
source f(XIN) : 16MHZ f(XcIN) : 32.768kHZ
f1
62.5ns
f8
500ns
f32
2µs
fC32
976.56µs
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
Setting clock prescaler reset flag
(This function is effective when fC32 is selected as the count source. Reset the prescaler for generating fC32 by
dividing the XCIN by 32.)
b7
b0
Clock prescaler reset flag [Address 038116]
CPSRF
Clock prescaler reset flag
0 : No effect
1 : Prescaler is reset (When read, the value is “0”)
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
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
Start count
Figure 2.3.5. Set-up procedure of timer mode
2-43