Renesas M16C Series User Manual page 191

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

Advertisement

M30240 Group
Timer Bi mode register
b7
b6
b5
b4
b3
b2
Figure 2.34: Timer B related register (1)
Timer Bi register (Note)
(b15)
b7
Count start flag
b7
b6
b5
b4
b3
Figure 2.35: Timer B related register (2)
Rev.1.00 Sep 24, 2003 Page 173 of 360
Symbol
Address
b1
b0
TBiMR(i = 0 to 2) 039B
0 0
Bit symbol
Bit name
TMOD0
Operation mode select bit
TMOD1
MR0
Invalid in timer mode. Can be either "0" or "1".
MR1
Fixed to "0" in timer mode (i = 0).
MR2
This bit cannot be set or reset. ( i = 1, 2)
MR3
Invalid in timer mode.
TCK0
Count source select bit
TCK1
Note 1: Timer B0.
Note 2: Timer B1, Timer B2.
Symbol
(b8)
TB0
b0 b7
b0
TB1
TB2
Function
• Timer mode
Counts the timer's period
Note: Read and write data in 16-bit units.
Symbol
Address
b2
b1
b0
TABSR
0380
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
When reset
to 039D
00XX0000
16
16
2
Function
b1 b0
0 0 : Timer mode
0 0 : f1
0 1 : f8
1 0 : f32
1 1 : Reserved
Address
When reset
0391
, 0390
Indeterminate
16
16
0393
, 0392
Indeterminate
16
16
0395
, 0394
Indeterminate
16
16
Values that can be set
0000
When reset
00
16
16
Function
0 : Stops counting
1 : Starts counting
R
W
(Note 1)
(Note 2)
R
W
to FFFF
16
16
R
W
Timer B

Advertisement

Table of Contents
loading

Table of Contents