Renesas M16C FAMILY series Hardware Manual page 135

16-bit single-chip microcomputer
Hide thumbs Also See for M16C FAMILY series:
Table of Contents

Advertisement

M
1
6
C
2 /
8
G
o r
u
p
(
M
1
6
C
Timer Bi Register (i=0 to 2
(b15
b7
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
Clock Prescaler Reset flag
b7
b6
b5
b4
b3
Figure 12.17 TB0 to TB2 Registers, TABSR Register, CPSRF Register
R
e
. v
2
0 .
0
J
a
. n
3
, 1
2
0
0
7
R
E
J
0
9
B
0
0
4
7
0 -
2
0
0
2 /
, 8
M
1
6
C
2 /
8
) B
)(1)
(b8)
b0 b7
b0
Mode
Timer mode
Event counter
mode
Pulse period
modulation mode,
Pulse width
modulation mode
A/D trigger
(3)
mode
b2
b1
b0
Symbol
TABSR
Bit Symbol
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
b2
b1
b0
Symbol
CPSRF
Bit Symbol
Nothing is assigned. If necessary, set to 0. When read, the
(b6-b0)
contents are undefined
Clock prescaler reset flag
CPSR
page 115
f o
3
8
5
Symbol
Address
TB0
0391
TB1
0393
TB2
0395
Function
Divide the count source by n + 1
where n = set value
Divide the count source by n + 1
(2)
where n = set value
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
00
16
16
Bit Name
0: Stops counting
1: Starts counting
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)
After Reset
, 0390
Undefined
16
16
, 0392
Undefined
16
16
, 0394
Undefined
16
16
Setting Rrange
0000
to FFFF
16
16
0000
to FFFF
16
16
0000
to FFFF
16
16
Function
16
Function
12. Timer
RW
RW
RW
RO
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tiny seriesM16c series

Table of Contents