Timer Y - Renesas M16C FAMILY Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M16C FAMILY:
Table of Contents

Advertisement

Under development
Preliminary specification
Specifications in this manual are tentative and subject to change.
R8C/11 Group

12.2 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. Figure 12.11 shows a block diagram of Timer Y. Figures 12.12 to 12.14 show the TYZMR,
PREY, TYSC, TYPR, TYZOC, PUM, and YCSS registers.
The Timer Y has two operation modes 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.
TYCK1 to TYCK0
=00
2
f
1
=01
2
f
8
=10
2
f
RING
=11
2
Polarity
switching
TYMOD0=1
INT
/CNTR
2
1
Figure 12.11 Timer Y Block Diagram
Timer Y, Z mode register
b7 b6 b5 b4 b3 b2 b1 b0
Notes:
1. The IR bit in the INT2IC register may be set to "1" (interrupt requested) when the R1EDG bit is rewritten.
Refer to the paragraph 19.2.5 "Changing Interrupt Source" in the Usage Notes Reference Book.
Figure 12.12 TYZMR Register
Rev.0.91
2003 Sep 08
Reload register
Counter
PREY register
TYS=1
TYOCNT=0
P3_2 bit in P3 register
TYOCNT=1
Symbol
TYZMR
Bit symbol
Bit name
Timer Y operation
TYMOD0
mode bit
INT2/CNTR
R1EDG
switching bit
Timer Y write
TYWC
control bit
Timer Y count
TYS
start flag
Timer Z operation
TZMOD0
mode bit
TZMOD1
Timer Z write
TZWC
control bit
Timer Z count
TZS
start flag
page 80 of 184
Peripheral data bus
TYSC register
Reload register
TYOPL=1
Q
Q
TYOPL=0
Address
After reset
0080
00
16
16
Function
0 : Timer mode
1 : Programmable waveform generation mode
0 : Rising edge
polarity
1
1 : Falling edge
1
Function varies depending on the operation
mode
0 : Stops counting
1 : Starts counting
b5 b4
0 0 : Timer mode
0 1 : Programmable waveform generation mode
1 0 : Programmable one-shot generation mode
1 1 : Programmable wait one-shot generation
mode
Function varies depending on the operation
mode
0 : Stops counting
1 : Starts counting
12.2 Timer (Timer Y)
TYPR register
Reload register
Timer Y interrupt
Counter
INT2 interrupt
Toggle
flip-flop
CK
CLR
Write to TYZMR register
TYMOD0 bit=1
RW
RW
RW
RW
RW
RW
RW
RW
RW

Advertisement

Table of Contents
loading

This manual is also suitable for:

R8c seriesTiny series

Table of Contents