English
Language : 

M16C65 Datasheet, PDF (329/829 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M16C/60
Under development
M16C/65 Group
Preliminary Specification
This is a preliminary specification and is subject to change.
17.2.8 Timer Ai Register (TAi) (i = 0 to 4)
17. Timer A
Timer Ai Register (i = 0 to 4)
(b15)
(b8)
b7
b0 b7
b0
Symbol
TA0
TA1
TA2
TA3
TA4
Address
0327h to 0326h
0329h to 0328h
032Bh to 032Ah
032Dh to 032Ch
032Fh to 032Eh
Mode
Function
Timer mode
When n = set value,
count cycle: (n + 1)
fj
When n = set value,
Event counter mode FFFFh - n + 1 count (at increment)
n + 1 count (at decrement)
When n = set value,
One-shot timer mode pulse width: n
fj
Pulse width
modulation mode
(16-bit PWM mode)
When n = set value,
PWM period: (216 – 1)
fj
PWM pulse width: n
fj
After Reset
Undefined
Undefined
Undefined
Undefined
Undefined
Setting Range
RW
0000h to FFFFh
RW
0000h to FFFFh
RW
0000h to FFFFh
WO
0000h to FFFEh
WO
When n = high-order address set value,
00h to FEh
Pulse width
m = low-order address set value,
(High-order
modulation mode PWM period: (28 – 1) × (m + 1)
address)
WO
(8-bit PWM mode)
fj
PWM pulse width: (m + 1)n
fj
00h to FFh
(Low-order address)
Programmable
output mode
When n = set value of TAi1 register,
m = set value of TAi register,
high-level duration: m
fj
low-level duration: n
fj
0000h to FFFFh
WO
fj : Count source frequency
Access the register in 16-bit units. Use the MOV instruction to write to the TAi register.
Event Counter Mode
The timer counts pulses from an external device, or the overflows/underflows of other timers.
One-Shot Timer Mode
If the TAi register is set to 0000h, the counter does not work and timer Ai interrupt requests are not
generated. Furthermore, if pulse output is selected, no pulses are output from the TAiOUT pin.
REJ09B0484-0030 Rev.0.30 Sep 09, 2008
Page 294 of 791