Download Print this page

Renesas M16C/50 Series User Manual page 277

Advertisement

M16C/5L Group, M16C/56 Group
15.2.8
Timer Ai Register (TAi) (i = 0 to 4)
Timer Ai Register (i = 0 to 4)
(b15)
(b8)
b7
b0
b7
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.
Pulse Width Modulation Mode (16-bit PWM mode)
When the TAi register is set to 0000h, the counter does not work, the output level on the TAiOUT pin
remains low, and timer Ai interrupt requests are not generated.
Pulse Width Modulation Mode (8-bit PWM mode)
This mode operates as an 8-bit prescaler (lower 8 bits) and an 8-bit pulse width modulator (upper 8
bits). When the upper 8 bits of the TAi register are set to 00h, the counter does not work, the output
level on the TAiOUT pin remains low, and a timer Ai interrupt request is not generated.
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Symbol
b0
TA0
TA1
TA2
TA3
TA4
Mode
When n is a setting value,
Timer mode
counter cycle: (n + 1)
When n is a set value,
Event counter mode
FFFFh - n + 1 count (at increment)
n + 1 count (at decrement)
When n is a set value,
One-shot timer mode
pulse width: n
Pulse width
When n is a set value,
modulation mode
PWM period: (2
(16-bit PWM mode)
PWM pulse width: n
When n is an upper address setting value,
and m is a lower address setting value,
Pulse width
PWM period: (2
modulation mode
(8-bit PWM mode)
PWM pulse width: (m + 1)n
When n is a setting value of TAi1 register,
and m is a setting value of TAi register,
Programmable
high-level duration: m
output mode
low-level duration: n
Address
0327h to 0326h
0329h to 0328h
032Bh to 032Ah
032Dh to 032Ch
032Fh to 032Eh
Function
fj
fj
16
– 1)
fj
fj
×
8
– 1)
(m + 1)
fj
fj
fj
fj
15. Timer A
Reset Value
XXXXh
XXXXh
XXXXh
XXXXh
XXXXh
Setting Range
RW
0000h to FFFFh
RW
0000h to FFFFh
RW
0000h to FFFFh
WO
0000h to FFFEh
WO
00h to FEh
(upper address)
WO
00h to FFh
(lower address)
0000h to FFFFh
WO
Page 240 of 803

Advertisement

loading