English
Language : 

M32C80 Datasheet, PDF (150/352 Pages) Renesas Technology Corp – 16/32-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M32C/80 SERIES
M32C/80 Group
14. Timer (Timer A)
Timer Ai Register (i=0 to 4)(1)
b15
b8 b7
b0 Symbol
Address
TA0 to TA2 034716-034616, 034916-034816, 034B16-034A16
TA3, TA4
034D16-034C16, 034F16-034E16
After Reset
Indeterminate
Indeterminate
Mode
Timer Mode
Function
If setting value is n, count source
is divided by n+1.
Setting Range RW
000016 to FFFF16 RW
Event Counter
Mode(2)
If setting value is n, count source
is divided by FFFF16 - n+1 when
the counter is incremented
and by n+1 when the counter is
decremented.
000016 to FFFF16 RW
One-Shot Timer If setting value is n, count source
Mode(4)
is divided by n, then stops.
000016 to FFFF16(3) WO
If count source frequency is fj
Pulse Width
and setting value of the TAi
Modulation Mode(5) register is n,
(16-Bit PWM)
PWM cycle: (216-1) / fj
"H" width of PWM pulse: n / fj
000016 to FFFE16(3) WO
If count source frequency is fj,
setting value of high-order bits in
Pulse Width
the TAi register is n and setting
Modulation Mode(5) value of low-order bits in the TAi
(8-Bit PWM)
register is m,
PWM cycle: (28-1)x(m+1) / fj
0016 to FE16(3)
(High-order
address bits)
0016 to FF16(3) WO
(Low-order
"H" width of PWM pulse: (m+1)n / fj address bits)
fj : f1, f8, f2n, fC32
NOTES:
1. Use 16-bit data for reading and writing.
2. The TAi register counts how many pulse inputs are provided externally or how many times another
timer counter overflows and underflows.
3. Use the MOV instruction to set the TAi register.
4. When the TAi register is set to "000016", the timer counter does not start and the timer Ai interrupt
request is not generated.
5. When the TAi register is set to "000016", the pulse width modulator does not operate and the TAiOUT
pin is held "L". The TAi interrupt request is also not generated. The same situation occurs in 8-bit
pulse width modulator mode if the 8 high-order bits in the TAi register are set to "0016".
Figure 14.4 TA0 to TA4 Registers
Rev. 1.00 Nov. 01, 2005 Page 131 of 330
REJ09B0271-0100