h8s-2646 Renesas Electronics Corporation., h8s-2646 Datasheet - Page 438

no-image

h8s-2646

Manufacturer Part Number
h8s-2646
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2600 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 11 Programmable Pulse Generator (PPG)
11.3.4
Sample Setup Procedure for Non-Overlapping Pulse Output: Figure 11.6 shows a sample
procedure for setting up non-overlapping pulse output.
Rev. 5.00 Sep 22, 2005 page 412 of 1136
REJ09B0257-0500
PPG setup
TPU setup
TPU setup
Figure 11.6 Setup Procedure for Non-Overlapping Pulse Output (Example)
Non-Overlapping Pulse Output
Set non-overlapping groups
Set counting operation
Select interrupt request
Set initial output data
Select TGR functions
Select output trigger
Enable pulse output
Compare match?
Non-overlapping
Set TGR values
Set next pulse
Set next pulse
Start counter
output data
output data
PPG output
Yes
No
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10]
[11]
[1] Set TIOR to make TGRA and
[2] Set the pulse output trigger period
[3] Select the counter clock source
[4] Enable the TGIA interrupt in TIER.
[5] Set the initial output values in
[6] Set the DDR and NDER bits for the
[7] Select the TPU compare match
[8] In PMR, select the groups that will
[9] Set the next pulse output values in
[10] Set the CST bit in TSTR to 1 to
[11] At each TGIA interrupt, set the next
TGRB an output compare registers
(with output disabled)
in TGRB and the non-overlap
margin in TGRA.
with bits TPSC2 to TPSC0 in TCR.
Select the counter clear source
with bits CCLR1 and CCLR0.
The DTC can also be set up to
PODR.
pins to be used for pulse output to
1.
event to be used as the pulse
output trigger in PCR.
operate in non-overlap mode.
NDR.
start the TCNT counter.
output values in NDR.
transfer data to NDR.

Related parts for h8s-2646