English
Language : 

M16C26A Datasheet, PDF (127/352 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/Tiny SERIES
M16C/26A Group (M16C/26A, M16C/26B, M16C/26T)
12. Timer
Timer Bi register (i=0 to 2)(1)
(b15)
(b8)
b7
b0 b7
b0
Symbol
TB0
TB1
TB2
Address
039116, 039016
039316, 039216
039516, 039416
After reset
Indeterminate
Indeterminate
Indeterminate
Mode
Function
Setting range RW
Timer mode
Divide the count source by n + 1
where n = set value
000016 to FFFF16 RW
Event counter
mode
Divide the count source by n + 1
where n = set value (2)
000016 to FFFF16 RW
Pulse period
Measures a pulse period or width
modulation mode,
RO
Pulse width
modulation mode
A/D trigger
mode (3)
Divide the count source by n + 1 where
n = set value and cause the timer stop
000016 to FFFF16
RW
NOTES:
1. The register must be accessed in 16 bit units.
2. The timer counts pulses from an external device or overflows or underflows of other timers.
3. When this mode is used combining delayed trigger mode 0, set the larger value than the value of the timer
B0 register to the timer B1 register.
Count start flag
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
TABSR
Address
038016
After reset
0016
Bit symbol
TA0S
TA1S
TA2S
TA3S
TA4S
TB0S
TB1S
TB2S
Bit name
Timer A0 count start flag
Timer A1 count start flag
Timer A2 count start flag
Timer A3 count start flag
Timer A4 count start flag
Timer B0 count start flag
Timer B1 count start flag
Timer B2 count start flag
Function
0 : Stops counting
1 : Starts counting
RW
RW
RW
RW
RW
RW
RW
RW
RW
Clock prescaler reset flag
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
CPSRF
Address
038116
After reset
0XXXXXXX 2
Bit symbol
Bit name
Function
RW
Nothing is assigned. When write, set to “0”. When read, their
(b6-b0) contents are indeterminate.
CPSR
Clock prescaler reset flag Setting this bit to “1” initializes the
prescaler for the timekeeping clock. RW
(When read, the value of this bit is “0”.)
Figure 12.2.3. TB0 to TB2 Registers, TABSR Register, CPSRF Register
Rev. 2.00 Feb.15, 2007 page 110 of 329
REJ09B0202-0200