English
Language : 

M16C1N Datasheet, PDF (94/238 Pages) Renesas Technology Corp – RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/10 SERIES
M16C/1N Group
12. Timers
12.3 Timer Y
Timer Y is an 8-bit timer with an 8-bit prescaler and has two reload registers - Timer Y Primary and Timer
Y Secondary.
Timer Y has the two operation modes listed as follows:
• Timer mode: The timer counts an internal count source (clock source).
• Programmable waveform generation mode: The timer outputs pulses of a given width successively.
Figure 12.13 shows the block diagram of Timer Y. Figures 12.14 to 12.16 show the Timer Y-related
registers.
Clock source
selection
f1
f8
fRING
fC32
Timer Y count
start flag
Programmable waveform
generation mode
"0"
Reload register (8)
Counter (8)
Prescaler Y (address 008116)
TYOUT
"1"
Timer Y programmable
waveform output
switching bit
Port P32 register
Figure 12.13 Block diagram of Timer Y
Peripheral data bus
Timer Y primary
(address 008316)
Reload register (8)
Timer Y secondary
(address 008216)
Reload register (8)
Counter (8)
fPY
Timer Y (address 008316)
"1"
Q
Toggle flip-flop T
Q
"0"
Timer Y output
level latch
Timer Y interrupt
request bit
Timer Y, Z mode register
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
TYZMR
Address
008016
When reset
000000X02
Bit symbol
Bit name
Function
RW
TYMOD0 Timer Y operation 0 : Timer mode
mode bit
1 : Programmable waveform generation mode RW
(Note 1)
Nothing is assigned.
When write, set "0". When read, the content is "0".
TYWC
Timer Y write
Function varies depending on
control bit
the operation mode
RW
TYS
TZMOD0
TZMOD1
TZWC
Timer Y count
start flag
Timer Z operation
mode bit (Note 3)
Timer Z write
control bit
0 : Stops counting (Note 2)
1 : Starts counting
RW
b5 b4
0 0 : Timer mode
RW
0 1 : Programmable waveform generation mode
1 0 : Programmable one-shot generation mode
1 1 : Programmable wait one-shot generation RW
mode
Function varies depending on
the operation mode
RW
TZS
Timer Z count
0 : Stops counting (Note 2)
start flag
1 : Starts counting
RW
Note 1: In programmable waveform generation mode, port P32 is set for output regardless of the value of the direction
register.
Note 2: When this bit is cleared to "0", the timer reloads the content of the reload register before it stops. Read out the
count value before you stop the timer.
Note 3: When timer Z operation mode bit is set for "01", "10" or "11", port P31 is set for output regardless of the value of
the direction register.
Figure 12.14 Timer Y-related registers (1)
Rev.1.00 Oct 20, 2004 page 82 of 222
REJ09B0007-0100Z