Unde
deeopmen
Preliminary Specifications REV.E
Specifications in this manual are tentative and subject to change.
Timer B
Mitsubishi microcomputers
M30220 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
80
Symbol
TABSR 0
Address
0380
16
When reset
00
16
Count start flag 0
AAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAA
b7
b6
b5
b4
b3
b2
b1
b0
AAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAA
Timer B1 count start flag
Timer B0 count start flag
Timer A4 count start flag
Timer A1 count start flag
Timer A0 count start flag
1 : Starts counting
TB1S
TB0S
TA4S
TA1S
TA0S
Symbol
TB0
TB1
TB2
TB3
TB4
TB5
Address
0391
16
, 0390
16
0393
16
, 0392
16
0395
16
, 0394
16
0351
16
, 0350
16
0353
16
, 0352
16
0355
16
, 0354
16
When reset
Indeterminate
Indeterminate
Indeterminate
Indeterminate
Indeterminate
Indeterminate
b7
b0 b7
b0
(b15)
(b8)
Timer Bi register (Note)
A
R
Pulse period / pulse width measurement mode
Measures a pulse period or width
Timer mode
Counts the timer's period
0000
16
to FFFF
16
Function
Values that can be set
Event counter mode
Counts external pulses input or a timer overflow
0000
16
to FFFF
16
Note: Read and write data in 16-bit units.
A
AA
A
A
A
A
Symbol
CPSRF
Address
0381
16
When reset
0XXXXXXX
2
Clock prescaler reset flag
Bit name
Function
Bit symbol
Nothing is assigned.
In an attempt to write to these bits, write “0”. The value, if read, turns
out to be
indeterminate.
W
R
b7
b6
b5
b4
b3
b2
b1
b0
AAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAA
Clock prescaler reset flag
0 : No effect
(When read, the value is “0”)
CPSR
Symbol
TABSR1
Address
0340
16
When reset
000XX000
2
Count start flag 1
Bit name
Function
Bit symbol
A
b7
b6
b5
b4
b3
b2
b1
b0
AAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAA
Timer B4 count start flag
Timer B3 count start flag
Timer A7 count start flag
Timer A6 count start flag
Timer A5 count start flag
0 : Stops counting
1 : Starts counting
TB4S
TB3S
TA7S
TA6S
TA5S
AA
AA
A
0 : Stops counting
1 : Starts counting
Nothing is assigned.
In an attempt to write to these bits, write “0”. The value, if read, turns out to be
indeterminate.
Figure 1.13.18. Timer B-related registers (2)