English
Language : 

M16C26A Datasheet, PDF (112/352 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/Tiny SERIES
M16C/26A Group (M16C/26A, M16C/26B, M16C/26T)
Timer Ai register (i= 0 to 4) (1)
(b15)
(b8)
b7
b0 b7
b0
Symbol
TA0
TA1
TA2
TA3
TA4
Address
038716, 038616
038916, 038816
038B16, 038A16
038D16, 038C16
038F16, 038E16
After reset
Indeterminate
Indeterminate
Indeterminate
Indeterminate
Indeterminate
Mode
Function
Setting range RW
Timer
mode
Event
counter
mode
Divide the count source by n + 1 where n =
set value
Divide the count source by FFFF 16 – n + 1
where n = set value when counting up or
by n + 1 when counting down (5)
000016 to FFFF16 RW
000016 to FFFF16
RW
One-shot Divide the count source by n where n = set
timer mode value and cause the timer to stop
Pulse width Modify the pulse width as follows:
modulation PWM period: (2 16 – 1) / fj
mode
High level PWM pulse width: n / fj
(16-bit PWM) where n = set value, fj = count source
frequency
000016 to FFFF16 WO
(2, 4)
000016 to FFFE16
(3, 4)
WO
Pulse width
modulation
mode
(8-bit PWM)
Modify the pulse width as follows:
PWM period: (28 – 1) x (m + 1)/ fj
High level PWM pulse width: (m + 1)n / fj
where n = high-order address set value,
m = low-order address set value, fj =
count source frequency
0016 to FE16
(High-order address)
0016 to FF16
(Low-order address) WO
(3, 4)
NOTES:
1. The register must be accessed in 16 bit units.
2.: If the TAi register is set to ‘000016,’ the counter does not work and timer Ai interrupt requests are
not generated either. Furthermore, if “pulse output” is selected, no pulses are output from the
TAiOUT pin.
3. If the TAi register is set to ‘000016,’ the pulse width modulator does not work, the output level on
the TAiOUT pin remains low, and timer Ai interrupt requests are not generated either. The same
applies when the 8 high-order bits of the timer TAi register are set to ‘0016’ while operating as an
8-bit pulse width modulator.
4. Use the MOV instruction to write to the TAi register.
5. The timer counts pulses from an external device or overflows or underflows in other timers.
Count start flag
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
TABSR
Address
038016
After reset
0016
Bit symbol
Bit name
Function
RW
TA0S
Timer A0 count start flag
0 : Stops counting
RW
TA1S
Timer A1 count start flag
1 : Starts counting
RW
TA2S
Timer A2 count start flag
RW
TA3S
Timer A3 count start flag
RW
TA4S
Timer A4 count start flag
RW
TB0S
Timer B0 count start flag
RW
TB1S
Timer B1 count start flag
RW
TB2S
Timer B2 count start flag
RW
Up/down flag (1)
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
UDF
Address
038416
After reset
0016
Bit symbol
Bit name
Function
RW
TA0UD Timer A0 up/down flag
0 : Down count
RW
1 : Up count
TA1UD Timer A1 up/down flag
RW
TA2UD Timer A2 up/down flag
Enabled by setting the TAiMR
register’s MR2 bit to “0”
RW
TA3UD Timer A3 up/down flag
(= switching source in UDF
register) during event counter
RW
TA4UD Timer A4 up/down flag
mode.
RW
TA2P
Timer A2 two-phase pulse 0 : two-phase pulse signal
signal processing select bit processing disabled
WO
1 : two-phase pulse signal
TA3P
Timer A3 two-phase pulse
signal processing select bit
processing enabled
(2, 3)
WO
TA4P
Timer A4 two-phase pulse
signal processing select bit
WO
NOTES:
1. Use MOV instruction to write to this register.
2. Make sure the port direction bits for the TA2IN to TA4IN and TA2OUT to TA4OUT pins are set to “0”
(input mode).
Figure 12.1.3. TA0 to TA4 Registers, TABSR Register, and UDF Register
Rev. 2.00 Feb.15, 2007 page 95 of 329
REJ09B0202-0200
12. Timer