Datasheet
Section 12 Programmable Pulse Generator (PPG) 
R01UH0310EJ0500 Rev. 5.00    Page 821 of 1384 
Sep 25, 2012     
H8S/2426, H8S/2426R, H8S/2424 Group 
12.4.5  Sample Setup Procedure for Non-Overlapping Pulse Output 
Figure 12.8 shows a sample procedure for setting up non-overlapping pulse output. 
Select TGR functions [1]
Set TGR values
Set counting operation
Select interrupt request
Set initial output data
Enable pulse output
Select output trigger
Set next pulse
output data
Start counter
Set next pulse
output data
Compare match A?
No
Yes
TPU setup
PPG setup
TPU setup
Non-overlapping
pulse output
Set non-overlapping groups
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10]
[11]
[1]  Set TIOR to make TGRA and 
TGRB an output compare registers 
(with output disabled).
[2]  Set the pulse output trigger period 
in TGRB and the non-overlap 
period in TGRA.
[3]  Select the counter clock source 
with bits TPSC2 to TPSC0 in TCR. 
Select the counter clear source 
with bits CCLR2 to CCLR0.
[4]  Enable the TGIA interrupt in TIER. 
The DTC or DMAC can also be set 
up to transfer data to NDR.
[5]  Set the initial output values in 
PODR.
[6]  Set the DDR and NDER bits for the 
pins to be used for pulse output to 
1.
[7]  Select the TPU compare match 
event to be used as the pulse 
output trigger in PCR.
[8]  In PMR, select the groups that will 
operate in non-overlap mode.
[9]  Set the next pulse output values in 
NDR.
[10] Set the CST bit in TSTR to 1 to 
start the TCNT counter.
[11] At each TGIA interrupt, set the next 
output values in NDR.
Figure 12.8 Setup Procedure for Non-Overlapping Pulse Output (Example) 










