Timer A
Mitsubishi microcomputers
M30220 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
68
Figure 1.13.5. Timer A-related registers (2)
Symbol
Address
When reset
TABSR0
038016
0016
Count start flag 0
Bit name
Function
Bit symbol
W
R
b7
b6
b5
b4
b3
b2
b1
b0
Timer B2 count start flag
Timer B1 count start flag
Timer B0 count start flag
Timer A4 count start flag
Timer A3 count start flag
Timer A2 count start flag
Timer A1 count start flag
Timer A0 count start flag
0 : Stops counting
1 : Starts counting
TB2S
TB1S
TB0S
TA4S
TA3S
TA2S
TA1S
TA0S
Symbol
Address
When reset
TA0
038716,038616
Indeterminate
TA1
038916,038816
Indeterminate
TA2
038B16,038A16
Indeterminate
TA3
038D16,038C16
Indeterminate
TA4
038F16,038E16
Indeterminate
TA5
034716,034616
Indeterminate
TA6
034916,034816
Indeterminate
TA7
034B16,034A16
Indeterminate
b7
b0 b7
b0
(b15)
(b8)
Timer Ai register (Note 1)
W
R
Timer mode
000016 to FFFF16
Counts an internal count source
Function
Values that can be set
Event counter mode
000016 to FFFF16
Counts pulses from an external source or timer overflow
One-shot timer mode
000016 to FFFF16
Counts a one shot width
(Note 2, Note 4)
Pulse width modulation mode (16-bit PWM)
Functions as a 16-bit pulse width modulator
Pulse width modulation mode (8-bit PWM)
Timer low-order address functions as an 8-bit
prescaler and high-order address functions as an 8-bit
pulse width modulator
000016 to FFFE16
(Note 3, Note 4)
Symbol
Address
When reset
TABSR1
034016
000XX0002
Count start flag 1
Bit name
Function
Bit symbol
W
R
b7
b6
b5
b4
b3
b2
b1
b0
Timer B5 count start flag
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
TB5S
TB4S
TB3S
TA7S
TA6S
TA5S
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.
Note 1: Read and write data in 16-bit units.
Note 2: When the timer Ai register is set to “000016”, the counter does not
operate and the timer Ai interrupt request is not generated. When the
pulse is set to output, the pulse does not output from the TAiOUT pin.
Note 3: When the timer Ai register is set to “000016”, the pulse width
modulator does not operate and the output level of the TAiOUT pin
remains “L” level, therefore the timer Ai interrupt request is not
generated. This also occurs in the 8-bit pulse width modulator mode
when the significant 8 high-order bits in the timer Ai register are set to
“0016”.
Note 4: Use MOV instruction to write to this register.
0016 to FE16
(High-order address)
0016 to FF16
(Low-order address)
(Note 3, Note 4)