![](http://datasheet.mmic.net.cn/30000/M30855FHTGP_datasheet_2359399/M30855FHTGP_180.png)
Page 157
4
9
4
f
o
5
0
2
,
1
0
.
l
u
J
3
0
.
1
.
v
e
R
3
0
1
0
-
7
3
0
B
9
0
J
E
R
15. Timer (Timer A)
)
T
5
8
/
C
2
3
M
,
5
8
/
C
2
3
M
(
p
u
o
r
G
5
8
/
C
2
3
M
Figure 15.6 UDF Register and ONSF Register
Symbol
Address
After Reset
UDF
034416
0016
Up/Down Flag(1)
RW
Bit Name
Function
Bit
Symbol
WO
TA0UD
Timer A0
Up/Down Flag(2)
TA2P
0 : Decrement
1 : Increment
TA1UD
0 : Decrement
1 : Increment
RW
TA2UD
0 : Decrement
1 : Increment
TA3UD
0 : Decrement
1 : Increment
RW
TA4UD
0 : Decrement
1 : Increment
Timer A2 Two-Phase
Pulse Signal Processing
Function Select Bit(3)
0 : Disables two-phase pulse signal
processing function
1 : Enables two-phase pulse signal
processing function
TA3P
Timer A3 Two-Phase
Pulse Signal Processing
Function Select Bit(3)
0 : Disables two-phase pulse signal
processing function
1 : Enables two-phase pulse signal
processing function
Timer A4 Two-Phase
Pulse Signal Processing
Function Select Bit(3)
TA4P
0 : Disables two-phase pulse signal
processing function
1 : Enables two-phase pulse signal
processing function
Timer A1
Up/Down Flag(2)
Timer A2
Up/Down Flag(2)
Timer A3
Up/Down Flag(2)
Timer A4
Up/Down Flag(2)
b7
b6
b5
b4
b3
b2
b1
b0
NOTES:
1. Use the MOV instruction to set the UDF register.
2. This bit is enabled when the MR2 bit in the TAiMR register (i=0 to 4) is set to "0" (the UDF register
causes increment/decrement switching) in event counter mode.
3. Set this bit to "0" when not using the two-phase pulse signal processing function.
One-Shot Start Flag
Symbol
Address
After Reset
ONSF
034216
0016
RW
TA0OS
Timer A0 One-Shot
Start Flag(1)
RW
TA1OS
Timer A1 One-Shot
Start Flag(1)
RW
TA2OS
Timer A2 One-Shot
Start Flag(1)
RW
TA3OS
Timer A3 One-Shot
Start Flag(1)
RW
TA4OS
Timer A4 One-Shot
Start Flag(1)
0 : In an idle state
1 : Starts the timer
RW
TAZIE
Z-Phase Input Enable Bit
0 : Disables Z-phase input
1 : Enables Z-phase input
Bit Name
Function
Bit
Symbol
RW
TA0TGL
TA0TGH
Timer A0 Event/Trigger
Select Bit
0 0 : Selects an input to the TA0IN pin
0 1 : Selects the TB2 overflows(2)
1 0 : Selects the TA4 overflows(2)
1 1 : Selects the TA1 overflows(2)
b7b6
NOTES:
1. When read, this bit is set to "0".
2. Overflow or underflow.
0 : In an idle state
1 : Starts the timer
0 : In an idle state
1 : Starts the timer
0 : In an idle state
1 : Starts the timer
0 : In an idle state
1 : Starts the timer
b7
b6
b5
b4
b3
b2
b1
b0