English
Language : 

M32C8A Datasheet, PDF (166/372 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M32C/80 Series
M32C/8A Group
15. Timers (Timer A)
Timer Ai Register(1) (i = 0 to 4)
b15
b8 b7
b0
Symbol
TA0 to TA2
TA3, TA4
Address
0347h - 0346h, 0349h - 0348h, 034Bh - 034Ah
034Dh - 034Ch, 034Fh - 034Eh
After Reset
Undefined
Undefined
Mode
Function
Setting Range
RW
Timer mode
If a count source frequency is fj and the
setting value of TAi register is n, the counter
0000h to FFFFh
RW
cycle is (n + 1) / fj
If the setting value is n, the count times are
Event counter mode (FFFFh - n+1) when the counter increments,
0000h to FFFFh
RW
and (n+1) when the counter decrements(2)
One-shot timer mode
If the setting value is n, the counter counts
n times and stops.
0000h to FFFFh(3, 4)
WO
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
0000h to FFFEh(3, 5)
WO
If a count source frequency is fj, the setting
value of high-order bits in the TAi register is
00h to FEh(3, 6)
n, and the setting value of low-order bits in
the TAi register is m,
(High-order address bits)
00h to FFh(3, 6)
WO
PWM cycle: (28 -1) x (m+1) / fj
(Low-order address bits)
"H" width of PWM pulse: (m+1) n / fj
fj: f1, f8, f2n, fC32
NOTES:
1. Read and write this register in 16-bit units.
2. The TAi register counts external pulses or another timer overflows or underflows.
3. Read-modify-write instructions cannot be used to set the TAi register. Refer to Usage Notes for details.
4. When the TAi register is set to 0000h, the 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 output is held "L".
A timer Ai interrupt request is not generated. When the TAi register is set to FFFFh, the pulse width modulator does
not operate and the TAiOUT pin output is held "H". A timer Ai interrupt request is not generated.
6. When 8 high-order bits are set to 00h, the pulse width modulator does not operate and the TAiOUT pin output is held "L".
A timer Ai interrupt request is not generated. When 8 high-order bits are set to FFh, the pulse width modulator does
not operate and the TAiOUT pin output is held "H". A timer Ai interrupt request is not generated.
Figure 15.9 TA0 to TA4 Registers
Rev.1.00 Jul 15, 2007 Page 149 of 352
REJ09B0385-0100