R5F21133DFP RENESAS [Renesas Technology Corp], R5F21133DFP Datasheet - Page 104

no-image

R5F21133DFP

Manufacturer Part Number
R5F21133DFP
Description
16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY/R8C/Tiny SERIES
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
R5F21133DFP#U0
Manufacturer:
Renesas Electronics America
Quantity:
10 000
R8C/13 Group
Rev.1.20
REJ09B0111-0120
Table 12.10 Programmable Waveform Generation Mode Specifications
NOTES:
1. Even when counting the secondary period, read out the TZPR register.
2. The set value in the TZPR register and TZSC register are enabled by writing a value to the TZPR register. The set
3. The TZOCNTbit is enabled in the following timings
Count source
Count operation
Output waveform width
and period
Count start condition
Count stop condition
Interrupt request generation timing In half of count source, after Timer Z underflows during secondary period (at the same
TZ
INT0 pin functions
Read from timer
Write to timer
Select function
_____
values are reflected to the waveform output beginning with the next primary period after writing to the Timer Z primary
register.
• When count starts
• When Timer Z interrupt request is generated
Therefore, pulse is output from the next primary period depending on the setting value of the TZOCNT bit.
OUT
12.3.2 Programmable Waveform Generation Mode
In this mode, an signal output from the TZ
the values in the TZPR register and TZSC register are counted alternately (see “Table 12.10 Program-
mable Waveform Generation Mode Specifications”). A counting starts by counting the value set in the
TZPR register. Figure 12.23 shows TYZMR and PUM registers in this mode. The Timer Z operates in
the same way as the Timer Y in this mode. See Figure 12.17 (Timer Y operation ex
ample in programmable waveform generation mode ).
Jan 27, 2006
pin function
Item
page 93 of 205
f
• Down-count
• When the timer underflows, it reloads the contents of primary reload register and sec-
Primary period
Secondary period : (n+1)(p+1)/f
Period
f
n: Set value in PREZ register, m: Set value in TZPR register, p: Set value in TZSC register
Write “1” (count start) to the TZS bit in the TYZMR register
Write “0” (count stop) to the TZS bit in the TYZMR register
time as the TZout output change) [Timer Z interrupt].
Pulse output
Use timer mode when using this pin as a programmable I/O port.
Programmable I/O port, or INT0 interrupt input
Count value can be read out by reading TZPR register.
Same applies to PREZ register
Value written to TZPR register is written to reload register only.
Same applies to TZSC register and PREZ register
• Output level latch select function
• Programmable waveform generation output switching function
1
i
ondary reload register alternately before continuing counting.
The output level during primary and secondary periods is selected by the TZOPL bit.
The output from TZ
the TZOCNT bit in the TYZOC register to “0”. A value in the P3_1 bit is output from the
TZ
, f
: Count source frequency
2
OUT
, f
8
, Timer Y underflow
by setting to “1”
: (n+1)(m+1)/f
: (n+1){(m+1)+(p+1)}/f
OUT
OUT
(3)
is inverted synchronously when Timer Z underflows by setting
.
_______
pin is inverted each time the counter underflows, while
(2)
i
i
.
Specification
i
(3)
.
12.3 Timer (Timer Z)

Related parts for R5F21133DFP