English
Language : 

UPD78F1502AGK-GAK-AX Datasheet, PDF (346/1031 Pages) Renesas Technology Corp – 16-Bit Single-Chip Microcontrollers
78K0R/Lx3
CHAPTER 6 TIMER ARRAY UNIT
6.8.2 Operation as one-shot pulse output function
A one-shot pulse with any delay pulse width can be generated by using two channels in combination and TImn pin
input or software manipulation (TSmn = 1).
The delay time and pulse width can be calculated by the following expressions.
Delay time = {Set value of TDRmn (master) + 2} × Count clock period
Pulse width = {Set value of TDRmp (slave)} × Count clock period
The Master channel operates in the one-count mode and counts the delays. TCRmn of the master channel starts
operating upon start trigger detection and TCRmn loads the value of TDRmn. TCRmn counts down from the value of
TDRmn it has loaded, in synchronization with the count clock. When TCRmn = 0000H, it outputs INTTMmn and stops
counting until the next start trigger is detected.
The slave channel operates in the one-count mode and counts the pulse width. TCRmp of the slave channel starts
operation using INTTMmn of the master channel as a start trigger, and loads the TDRmp value. TCRmp counts down
from the value of TDRmp it has loaded, in synchronization with the count value. When TCRmp = 0000H, it outputs
INTTMmp and stops counting until the next start trigger (INTTMmn of the master channel) is detected. The output level of
TOmp becomes active one count clock after generation of INTTMmn from the master channel, and inactive when TCRmp
= 0000H.
Instead of using the TImn pin input, a one-shot pulse can also be output using the software operation (TSmn = 1) as a
start trigger.
Caution The timing of loading of TDRmn of the master channel is different from that of TDRmp of the slave
channel. If TDRmn and TDRmp are rewritten during operation, therefore, an illegal waveform is output.
Be sure to rewrite TDRmn and TDRmp after INTTMmn of the channel to be rewritten is generated.
Remarks 1.
2.
3.
78K0R/LF3:
• m = 0, n = 0, 2, 6, p = n+1, TO00 to TO04, TO07, TI00 to TI04, and TI07 pins
• Channel 6 of timer array unit 0 can output a one-shot pulse only when software trigger start is selected
and it is used as the master channel (because the TI06 pin is not provided).
78K0R/LG3:
• m = 0, n = 0, 2, 4, 6, p = n+1, TO00 to TO07, TI00 to TI07 pins
78K0R/LH3:
• m = 0, n = 0, 2, 4, 6, p = n+1, TO00 to TO07, TI00 to TI07 pins
• m = 1, n = 0, 2, p = n+1, TO10 to TO13, TI10 to TI13 pins
R01UH0004EJ0501 Rev.5.01
330
Jun 20, 2011