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

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.11 Programmable One-shot Generation Mode Specifications
NOTES:
1. The TZS bit in the TYZMR register must be set to "1" (start counting).
2. The TZS bit must be set to "1" (start counting), the INT0EN bit in the INTEN register to "1" (enabling INT0 input), and
3. The set values are reflected beginning with the next one-shot pulse after writing to the TZPR register.
_______
Count source
Count operation
One-shot pulse output
duration
Count start condition
Count stop condition
Interrupt request generation timing In half cycles of count source, after the timer underflows (at the same time as the TZout
TZ
INT0 pin function
Read from timer
Write to timer
Select function
Although the trigger input during counting cannot be acknowledged, the INT0 interrupt request is generated.
the INOSTG bit in the PUM register to "1" (enabling INT0 one-shot trigger).
OUT
12.3.3 Programmable One-shot Generation Mode
In this mode, upon program command or external trigger input (input to the INT0 pin), the microcom-
puter outputs the one-shot pulse from the TZ
Generation Mode Specifications”). When a trigger occurs, the timer starts operating from the point
only once for a given period equal to the set value in the TZPR register. The TZSC is unused in this
mode. Figure 12.24 shows the TYZMR register and PUM register in this mode. Figure 12.25 shows
an operation example in this mode.
Jan 27, 2006
pin function
Item
page 95 of 205
f
• Downcounts set value in TZPR register
• When the timer underflows, it reloads the contents of reload register before completing
• When a count stops, the timer reloads the contents of the reload register before it stops.
(n+1)(m+1)/fi
fi : count source frequency, n: set value in PREZ register, m: set value in TZPR register
• Set TZOS bit in TYZOC register to “1” (start one-shot)
• Input active trigger to INT0 pin
• When reloading is completed after count value was set to "00
• When TZS bit in TYZMR register is set to “0” (stop counting)
• When TZOS bit in TYZOC register is set to “0” (stop one-shot)
output ends) [Timer Z interrupt].
Pulse output
Use timer mode when using this pin as a programmable I/O port.
Programmable I/O port, INT0 interrupt input or external trigger input
• When the INOSTG bit in the PUM register is set to “0” (INT0 one-shot trigger disabled)
• When the INOSTG bit in the PUM register is set to “1” (INT0 one-shot trigger enabled)
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 PREZ register.
• Output level latch select function
• INT0 pin one-shot trigger control function and polarity select function
1
Programmable I/O port or INT0 interrupt input
external trigger (INT0 interrupt input)
counting and the TZOS bit is “0”.
Output level for one-shot pulse waveform is selected by TZOPL bit.
Trigger input from INT0 pin can be set to active or inactive by INOSTG bit. Also, an
active trigger's polarity can be selected by INOSEG bit.
, f
_______
2
, f
8
, Timer Y underflow
_______
_______
_______
_____
_______
OUT
(2)
Specification
pin (see “Table 12.11 Programmable One-shot
_______
(1)
_______
_______
(3)
16
.
"
12.3 Timer (Timer Z)
_______

Related parts for R5F21133DFP