Renesas M16C/60 Series Hardware Manual page 114

Hide thumbs Also See for M16C/60 Series:
Table of Contents

Advertisement

Under development
This document is under development and its contents are subject to change.
M16C/6N5 Group
Timer Ai mode register (i = 0 to 4)
b7
b6
b5
b4
b3
b2
Timer Ai register (i = 0 to 4) (Note 1)
(b15)
b7
Note 1: The register must be accessed in 16-bit unit.
Note 2: The timer counts pulses from an external device or overflows or underflows in other timers.
Note 3: If the TAi register is set to "0000
are not generated either. Furthermore, if "pulse output" is selected, no pulses are output from
the TAi
OUT
Note 4: Use the MOV instruction to write to the TAi register.
Note 5: If the TAi register is set to "0000
on the TAi
The same applies when the 8 high-order bits of the timer TAi register are set to "00
operating as an 8-bit pulse width modulator.
Figure 1.13.4 TA0MR to TA4MR Registers and TA0 to TA4 Registers
Rev.1.00
2003.05.30
page 100
b1
b0
Symbol
TA0MR to TA4MR
Bit symbol
TMOD0
Operation mode select bit
TMOD1
MR0
MR1
MR2
MR3
TCK0
Count source select bit
TCK1
(b8)
b0 b7
b0
Mode
Timer
Divide the count source by n + 1 where n =
mode
set value
Event
Divide the count source by FFFF
counter
where n = set value when counting up or
mode
by n + 1 when counting down (Note 2)
One-shot
Divide the count source by n where n = set
timer mode
value and cause the timer to sto p
Modify the pulse width as follows:
Pulse width
PWM period: (2
modulation
High level PWM pulse width: n / fj
mode
(16-bit PWM)
where n = set value, fj = count source
frequency
Pulse width
Modify the pulse width as follows:
modulation
PWM period: (2
mode
High level PWM pulse width: (m + 1)n / fj
(8-bit PWM)
where n = high-order address set value,
m = low-order address set value, fj =
count source frequency
", the counter does not work and timer Ai interrupt requests
16
pin.
", the pulse width modulator does not work, the output level
16
pin remains low, and timer Ai interrupt requests are not generated either.
OUT
Address
After reset
0396
to 039A
16
16
Bit name
b1 b0
0 0 : Timer mode
0 1 : Event counter mode
1 0 : One-shot timer mode
1 1 : Pulse width modulation
(PWM) mode
Function varies with each
operation mode
Function varies with each
operation mode
Symbol
Address
TA0
0387
, 0386
16
TA1
0389
, 0388
16
TA2
038B
, 038A
16
TA3
038D
, 038C
16
TA4
038F
, 038E
16
Function
— n + 1
16
16
— 1) / fj
— 1) ✕ (m + 1)/ fj
8
00
16
Function
After reset
Indeterminate
16
Indeterminate
16
Indeterminate
16
Indeterminate
16
Indeterminate
16
Setting range
RW
0000
to FFFF
16
16
RW
0000
to FFFF
16
16
RW
0000
to FFFF
16
16
WO
(Notes 3, 4)
0000
to FFFE
16
16
(Note 4, 5)
WO
00
to FE
16
16
(High-order address)
00
to FF
16
16
(Low-order address)
WO
(Note 4, 5)
" while
16
Timer A
RW
RW
RW
RW
RW
RW
RW
RW
RW

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/6n5

Table of Contents