Example Of Non-Overlapping Pulse Output (Example Of Four-Phase Complementary Non-Overlapping Output); Figure 11.8 Setup Procedure For Non-Overlapping Pulse Output (Example) - Renesas H8S/2368 Series Hardware Manual

16-bit single-chip microcomputer
Table of Contents

Advertisement

TPU setup
PPG setup
TPU setup

Figure 11.8 Setup Procedure for Non-Overlapping Pulse Output (Example)

11.4.6
Example of Non-Overlapping Pulse Output (Example of Four-Phase
Complementary Non-Overlapping Output)
Figure 11.9 shows an example in which pulse output is used for four-phase complementary non-
overlapping pulse output.
Non-overlapping
pulse output
Select TGR functions
Set TGR values
Set counting operation
Select interrupt request
Set initial output data
Enable pulse output
Select output trigger
Set non-overlapping groups
Set next pulse
output data
Start counter
Compare match A?
Yes
Set next pulse
output data
[1] Set TIOR to make TGRA and
TGRB an output compare registers
(with output disabled)
[1]
[2] Set the pulse output trigger period
in TGRB and the non-overlap
[2]
period in TGRA.
[3]
[3] Select the counter clock source
with bits TPSC2 to TPSC0 in TCR.
[4]
Select the counter clear source
with bits CCLR2 to CCLR0.
[5]
[4] Enable the TGIA interrupt in TIER.
The DTC or DMAC can also be set
[6]
up to transfer data to NDR.
[5] Set the initial output values in
[7]
PODR.
[8]
[6] Set the DDR and NDER bits for the
pins to be used for pulse output to
1.
[9]
[7] Select the TPU compare match
event to be used as the pulse
[10]
output trigger in PCR.
No
[8] In PMR, select the groups that will
operate in non-overlap mode.
[9] Set the next pulse output values in
[11]
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.
Rev. 2.00, 05/03, page 469 of 820

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s seriesH8s/2300 series

Table of Contents