![](http://datasheet.mmic.net.cn/30000/M30956FKTGP_datasheet_2359453/M30956FKTGP_167.png)
Figure 14.5
TA0 to TA4 Registers
b15
b8 b7
Symbol
TA0 to TA2
TA3, TA4
Address
0347h - 0346h, 0349h - 0348h, 034Bh - 034Ah
034Dh - 034Ch, 034Fh - 034Eh
After Reset
Undefined
b0
Setting Range
Mode
Function
RW
Timer Ai Register(1) (i = 0 to 4)
RW
0000h to FFFFh
If a count source frequency is
fj and the
setting value of TAi register is n, a counter
cycle is (n + 1) / fj
Timer mode
RW
0000h to FFFFh
If the setting value is
n, the number of count
times is (FFFFh - n+1) when the counter is
incremented, and
n+1 when the counter is
decremented(2)
Event counter mode
WO
0000h to FFFFh(3, 4)
If the setting value is
n, the timer counts n
times and stops.
One-shot timer mode
Pulse width
modulation mode
(16-bit PWM)
Pulse width
modulation mode
(8-bit PWM)
If a count source frequency is
fj and
the setting value of the TAi register is n,
PWM cycle: (216 - 1) / fj
"H" width of PWM pulse:
n / fj
If a count source frequency is
fj, the setting
value of high-order bits in the TAi register is
n, and the setting value of low-order bits in
the TAi register is m,
PWM cycle: (28 -1) x (m+1) / fj
"H" width of PWM pulse: (m+1)
n / fj
00h to FEh(3, 5)
(High-order address bits)
00h to FFh(3, 5)
(Low-order address bits)
0000h to FFFEh(3, 5)
WO
fj: f1, f8, f2n, fC32
NOTES:
1. Read and write this register in words.
2. The TAi register counts external pulses or another timer overflows or underflows.
3. Use the MOV instruction to set the TAi register.
4. When the TAi register is set to 0000h, the timer counter does not start and a timer Ai interrupt request is not generated.
5. When the TAi register is set to 0000h, the pulse width modulator does not operate and the TAiOUT pin outputs an "L" signal. A
timer Ai interrupt request is also not generated.
When the 8-bit pulse width modulation mode is selected or 8 high-order bits in the TAi register is set to 00h, the same event
occurs as when the TAi register is set to 0000h.