User guide

70
SmartBook for Renesas R8C/Tiny Microcontrollers
www.MightyMicons.com
ters. Because of this facility, square waveform with differ-
ent primary and secondary width can be generated. Hence,
you get a variable duty cycle.
The output level during the primary and secondary width can
be defined for all these timers. Like other timers, different
input clock options are also available.
7.8 Programmable One Shot Generation Mode:
This mode generates one shot pulse of either high or low level at the
output pin. This pulse is activated by either software or the hardware trigger
signal. This one shot pulse is defined by the contents of the timer’s primary re-
load register.
This programmable one shot generating facility is available with these timers:
Timer Y, Timer Z and Timer RB.
This mode is discussed further using Timer Z.
For the Timer Z, the programmable one shot pulse is available at the TZO pin by
a software trigger through the program or an external trigger input signal at the
INT0 pin. The software trigger is initiated by setting TZOS bit to one level in the
TZSC register. After this active trigger signal, the timer starts counting down from
the value set by the TZPR register and the output gets the defined level till the
timing register underflows.
D
a
t
a
4
D
e
s
i
g
n
Programmable one
shot generation mode
generates one shot
pulse of either
high or low level
at the output
pin. This pulse is activated by
either software or the
hardware trigger
signal.