Renesas M16C/29 Series Hardware Manual page 130

16-bit single-chip microcomputer
Hide thumbs Also See for M16C/29 Series:
Table of Contents

Advertisement

M16C/29 Group
Timer Bi register (i=0 to 2)(Note 1)
(b15)
b7
Note 1: The register must be accessed in 16 bit units.
Note 2: The timer counts pulses from an external device or overflows or underflows of other timers.
Note 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
Clock prescaler reset flag
b7
b6
b5
b4
Figure 12.2.3. TB0 to TB2 Registers, TABSR Register, CPSRF Register
Rev.1.00 Nov 01,2004
REJ09B0101-0100Z
(b8)
b0 b7
Mode
Timer mode
Event counter
mode
Pulse period
modulation mode,
Pulse width
modulation mode
A/D trigger
mode (Note 3)
Symbol
b3
b2
b1
b0
TABSR
Bit symbol
TA0S
TA1S
TA2S
TA3S
TA4S
TB0S
TB1S
TB2S
Symbol
b3
b2
b1
b0
CPSRF
Bit symbol
Nothing is assigned. When write, set to "0". When read, their
(b6-b0)
contents are indeterminate.
Clock prescaler reset flag
CPSR
page 110 of 402
Symbol
TB0
0391
b0
TB1
0393
TB2
0395
Function
Divide the count source by n + 1
where n = set value
Divide the count source by n + 1
where n = set value (Note 2)
Measures a pulse period or width
Divide the count source by n + 1 where
n = set value and cause the timer stop
Address
After reset
0380
16
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
Address
After reset
0381
0XXXXXXX
16
Bit name
Setting this bit to "1" initializes the
prescaler for the timekeeping clock.
(When read, the value of this bit is "0".)
Address
After reset
, 0390
Indeterminate
16
16
, 0392
Indeterminate
16
16
, 0394
Indeterminate
16
16
Setting range
0000
to FFFF
16
0000
to FFFF
16
0000
to FFFF
16
00
16
Function
0 : Stops counting
1 : Starts counting
2
Function
12.2 Timer B
RW
16
RW
16
RW
RO
16
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c seriesM16c/tiny series

Table of Contents