English
Language : 

M16C62N Datasheet, PDF (82/213 Pages) Renesas Technology Corp – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Timer B
Mitsubishi microcomputers
M16C / 62N Group (80-pin)
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Timer Bi register (Note 1)
(b15)
b7
(b8)
b0 b7
Symbol
TB0
TB1
b0
TB2
TB3
TB4
TB5
Function
• Timer mode
Counts the timer's period
Address
039116, 039016
039316, 039216
039516, 039416
035116, 035016
035316, 035216
035516, 035416
When reset
Indeterminate
Indeterminate
Indeterminate
Indeterminate
Indeterminate
Indeterminate
Values that can be set R W
000016 to FFFF16
• Event counter mode
000016 to FFFF16
Counts external pulses input or a timer overflow (Note 2)
• Pulse period / pulse width measurement mode
Measures a pulse period or width (Note 2)
Note 1: Read and write data in 16-bit units.
Note 2: Timer B1 is provided with no input pin, so it does not work in this mode. The
overflow of the timer, however, can be counted in event counter mode.
Count start flag
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
TABSR
Address
038016
When reset
0016
Bit symbol
Bit name
TA0S Timer A0 count start flag
TA1S Timer A1 count start flag
TA2S Timer A2 count start flag
TA3S Timer A3 count start flag
TA4S Timer A4 count start flag
TB0S Timer B0 count start flag
TB1S Timer B1 count start flag
TB2S Timer B2 count start flag
Function
0 : Stops counting
1 : Starts counting
RW
Timer B3, 4, 5 count start flag
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
TBSR
Address
034016
When reset
000XXXXX2
Bit symbol
Bit name
Function
Nothing is assigned. In an attempt to write to these bits, write “0”. The value, if read,
turns out to be indeterminate.
TB3S
TB4S
TB5S
Timer B3 count start flag
Timer B4 count start flag
Timer B5 count start flag
0 : Stops counting
1 : Starts counting
RW
Clock prescaler reset flag
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
CPSRF
Address
038116
When reset
0XXXXXXX2
Bit symbol
Bit name
Function
Nothing is assigned. In an attempt to write to these bits, write “0”. The value, if read,
turns out to be indeterminate.
RW
CPSR
Clock prescaler reset flag
0 : No effect
1 : Prescaler is reset
(When read, the value is “0”)
Figure 1.13.16. Timer B-related registers (2)
81