Timer Z - 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.3 Timer Z

Timer Z is an 8-bit timer with an 8-bit prescaler and has two reload registers-Timer Z Primary and Timer
Z Secondary. Figure 12.18 shows a block diagram of Timer Z. Figures 12.19 to 12.21 show the TYZMR,
PREZ, TZSC, TZPR, TYZOC, PUM, and TCSS registers.
Timer Z has the following four operation modes.
• Timer mode: The timer counts an internal count source (clock source) or Timer Y underflow.
• Programmable waveform generation mode: The timer outputs pulses of a given width successively.
• Programmable one-shot generation mode: The timer outputs one-shot pulse.
• Programmable wait one-shot generation mode: The timer outputs delayed one-shot pulse.
TZCK1 to TZCK0
=00
2
f
1
=01
2
f
8
=10
2
Timer Y underflow
=11
2
f
2
INT0
TZMOD1 to TZMOD0=01
, 10
2
TZ
OUT
Figure 12.18 Timer Z 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.19 TYZMR Register
Rev.0.91
2003 Sep 08
Reload register
Counter
PREZ register
TZS
Digital
Input polarity selected to be
one edge or both edges
filter
INT0PL
INT0EN
, 11
2
2
TZOCNT=0
PD3_1 bit in PD3 register
TZOCNT=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 88 of 184
Peripheral data bus
TZSC register
Reload register
Reload register
Counter
,
TZMOD1 to TZMOD0=10
11
2
2
TZOS
Polarity
select
INOSEG
TZOPL=1
Q
Toggle
flip-flop
Q
CLR
TZOPL=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.3 Timer (Timer Z)
TZPR register
Timer Z interrupt
INT0 interrupt
CK
Write to TYZMR register
TZMOD1 to TZMOD0 bits=01
RW
RW
RW
RW
RW
RW
RW
RW
RW
, 10
, 11
2
2
2

Advertisement

Table of Contents
loading

This manual is also suitable for:

R8c seriesTiny series

Table of Contents