Programmable Wait One-Shot Generation Mode - 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.4 Programmable Wait One-shot Generation Mode

In this mode, upon program or external trigger input (input to the INT0 pin), the microcomputer outputs
the one-shot pulse from the TZ
Programmable Wait One-shot Generation Mode Specifications"). When a trigger occurs, from this
point, the timer starts outputting pulses only once for a given length of time equal to the set value in the
TZSC register after waiting for a given length of time equal to the set value in the TZPR register.
Figure 12.26 shows the TYZMR and PUM registers in this mode. Figure 12.27 shows an operation
example in this mode.
Table 12.12 Programmable Wait One-shot Generation Mode Specifications
Item
Count source
Count operation
Wait time
One-shot pulse output time
Count start condition
Count stop condition
Interrupt request
generation timing
TZ
pin function
OUT
_______
INT0 pin function
Read from timer
Write to timer
Select function
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
the INOSTG bit in the PUM register to "1" (enabling INT0 one-shot trigger).
3. The set values are reflected beginning with the next one-shot pulse after writing to the TZPR register.
Rev.0.91
2003 Sep 08
OUT
f
, f
, f
, Timer Y underflow
1
2
8
• Downcounts set value in Timer Z primary
• When a counting of TZPR register underflows, the timer reloads the contents of TZSC
register before continuing counting.
• When a counting of TZSC register underflows, the timer reloads the contents of TZPR
register before stopping counting.
• When a counting stops, the timer reloads the contents of the reload register before it
stops.
fi/(n+1)(m+1)
fi/(n+1)(p+1)
• Set TZOS bit in TYZOC register to "1" (start one-shot)
• Input active trigger to INT0 pin
• When reloading is completed after Timer Z underflows during secondary period (at the
same time as the TZout output ends) [Timer Z interrupt]
• 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)
I n half cycles of count source, after count value at counting TZSC register is set "00
(at the same time as the TZout output change) [Timer Z interrupt]
Pulse output
Programmable I/O port, external interrupt input pin, or external trigger input pin
Count value can be read out by reading TZPR register.
Same applies to PREZ register.
Value written to TZPR register and PREZ register are written to reload register only
Same applies to TZSC register.
• Output level latch select function
Output level for one-shot pulse waveform is selected by TZOPL bit.
_______
• INT0 pin one-shot trigger control function and polarity select function
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.
page 98 of 184
pin after waiting for a given length of time (see "Table 12.12
Specification
n: set value in PREZ register, m: set value in TZPR register
n : set value in PREZ, p: set value in TZSC register
_______
2
_______
_____
12.3 Timer (Timer Z)
1
_______
"
16
3
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

R8c seriesTiny series

Table of Contents