Mitsubishi microcomputers
M30201 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Timer A
50
Figure 1.39. Timer A-related registers (2)
Timer A0 up/down flag
Timer A0 two-phase
pulse signal processing
select bit
Symbol
Address
When reset
UDF
038416
XXX0XXX02
TA0P
Up/down flag (Note)
Bit name
Function
Bit symbol
W
R
b7 b6
b5
b4
b3 b2
b1
b0
TA0UD
0 : Down count
1 : Up count
This specification becomes valid
when the up/down flag content is
selected for up/down switching
cause
0 : two-phase pulse signal
processing disabled
1 : two-phase pulse signal
processing enabled
When not using the two-phase
pulse signal processing function,
set the select bit to “0”
Symbol
Address
When reset
TABSR
038016
000X00002
Count start flag
Bit name
Function
Bit symbol
W
R
b7
b6
b5
b4
b3 b2
b1
b0
Clock devided count start flag
Timer B1 count start flag
Timer B0 count start flag
Timer X2 count start flag
Timer X1 count start flag
Timer X0 count start flag
Timer A0 count start flag
0 : Stops counting
1 : Starts counting
CDCS
TB1S
TB0S
Nothing is assigned.
In an attempt to write to this bit, write “0”. The value, if read, turns out
to be indeterminate.
TX2S
TX1S
TX0S
TA0S
Symbol
Address
When reset
TA0
038716,038616
Indeterminate
b7
b0 b7
b0
(b15)
(b8)
Timer A0 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)
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
0016 to FF16(Note 2)
(Both high-order
and low-order
addresses)
000016 to FFFE16
(Note 2)
Note 1: Read and write data in 16-bit units.
Note 2: Use MOV instruction to write to this register.
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.
Nothing is assigned.
In an attempt to write to these bits, write “0”. The value, if read, turns
out to be indeterminate.
Note : Use MOV instruction to write to this register.