English
Language : 

M16C28 Datasheet, PDF (135/423 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/Tiny SERIES
M16C/28 Group (M16C/28, M16C/28B)
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
Undefined
Undefined
Undefined
Mode
Function
Setting Rrange 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,
Pulse width
RO
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 in 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
Bit Name
Function
RW
TA0S Timer A0 count start flag
0: Stops counting
RW
TA1S Timer A1 count start flag
1: Starts counting
RW
TA2S Timer A2 count start flag
RW
TA3S Timer A3 count start flag
RW
TA4S Timer A4 count start flag
RW
TB0S Timer B0 count start flag
RW
TB1S Timer B1 count start flag
RW
TB2S Timer B2 count start flag
RW
Clock Prescaler Reset flag
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
CPSRF
Address
038116
After Reset
0XXXXXXX16
Bit Symbol
Bit Name
Function
RW
Nothing is assigned. If necessary, set to 0. When read, the
(b6-b0) contents are undefined
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.17 TB0 to TB2 Registers, TABSR Register, CPSRF Register
Rev. 2.00 Jan. 31, 2007 page 115 of 385
REJ09B0047-0200