
deveopmen
Rev.B2 for proof reading
Timer A
Mitsubishi Microcomputers
M32C/83 group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
134
Figure 1.14.4. Timer A-related registers (3)
Timer A4 up/down flag
Timer A3 up/down flag
Timer A2 up/down flag
Timer A1 up/down flag
Timer A0 up/down flag
Timer A2 two-phase pulse
signal processing select bit
Timer A3 two-phase pulse
signal processing select bit
Timer A4 two-phase pulse
signal processing select bit
Symbol
UDF
Address
0344
16
When reset
00
16
TA4P
TA3P
TA2P
Up/down flag (Note 1)
Bit name
Function
Bit symbol
b7
b6 b5
b4
b3
b2
b1
b0
TA4UD
TA3UD
TA2UD
TA1UD
TA0UD
0 : Down count
1 : Up count
0 : two-phase pulse signal
processing disabled
1 : two-phase pulse signal
processing enabled
Note 1: Use MOV instruction to write to this register.
Note 2: This specification becomes valid when the up/down flag content is selected for up/down switching cause.
Note 3: When not using the two-phase pulse signal processing function, set the select bit to
“
0
”
.
0 : Down count
1 : Up count
0 : Down count
1 : Up count
0 : Down count
1 : Up count
0 : Down count
1 : Up count
0 : two-phase pulse signal
processing disabled
1 : two-phase pulse signal
processing enabled
0 : two-phase pulse signal
processing disabled
1 : two-phase pulse signal
processing enabled
W
R
(Note 2)
A
(Note 2)
(Note 2)
(Note 2)
(Note 2)
(Note 3)
(Note 3)
(Note 3)
TA1OS
TA2OS
TA0OS
One-shot start flag
Symbol
ONSF
Address
0342
16
When reset
00
16
Timer A0 one-shot start flag
Timer A1 one-shot start flag
Timer A2 one-shot start flag
Timer A3 one-shot start flag
Timer A4 one-shot start flag
TA3OS
TA4OS
Bit name
Function
Bit symbol
b7
b6
b5
b4
b3
b2
b1
b0
TA0TGL
TA0TGH
Input on TA
0IN
is selected
0 1 : TB2 overflow is selected
1 0 : TA4 overflow is selected
1 1 : TA1 overflow is selected
Timer A0 event/trigger
select bit
b7 b6
Note 1: When read, the value is
“
0
”
.
Note 2: Set the corresponding pin output function select register to I/O port, and port direction register to
“
0
”
.
W
R
0 : Invalid
1 : Timer start
Z phase input enable bit
TAZIE
0 : Invalid
1 : Valid
0 : Invalid
1 : Timer start
0 : Invalid
1 : Timer start
0 : Invalid
1 : Timer start
0 : Invalid
1 : Timer start
AA
(Note 2)
AA
A
(Note 1)
(Note 1)
(Note 1)
(Note 1)
(Note 1)