h8s-2628 Renesas Electronics Corporation., h8s-2628 Datasheet - Page 327

no-image

h8s-2628

Manufacturer Part Number
h8s-2628
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2600 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
12.4.4
Figure 12.5 shows an example in which pulse output is used for cyclic five-phase pulse output.
1. Set up TGRA of the TPU that is used as the output trigger to be an output compare register. Set
2. Write H'F8 in P1DDR and NDERH, and set the G3CMS1, G3CMS0, G2CMS1, and G2CMS0
3. When compare match A occurs, the NDRH contents are transferred to PODRH and output.
4. Five-phase overlapping pulse output (one or two phases active at a time) can be obtained
TGRA
H'0000
NDRH
PODRH
PO15
PO14
PO13
PO11
TCNT value
PO12
a frequency in TGRA so the counter will be cleared on compare match A. Set the TGIEA bit
of TIER to 1 to enable the compare match/input capture A (TGIA) interrupt.
bits in PCR to select compare match in the TPU channel set up in the previous step to be the
output trigger. Write output data H'80 in NDRH.
The TGIA interrupt handling routine writes the next output data (H'C0) in NDRH.
subsequently by writing H'40, H'60, H'20, H'30. H'10, H'18, H'08, H'88... at successive TGIA
interrupts. If the DTC is set for activation by this interrupt, pulse output can be obtained
without imposing a load on the CPU.
Example of Normal Pulse Output (Example of Five-Phase Pulse Output)
Figure 12.5 Normal Pulse Output Example (Five-Phase Pulse Output)
00
80
TCNT
80
C0
C0
40
40
60
Compare match
60
20
20
30
Section 12 Programmable Pulse Generator (PPG)
30
10
10
18
Rev. 3.00 Oct 04, 2005 page 287 of 598
18
08
08
88
88
80
80
REJ09B0155-0300
C0
C0
40
Time

Related parts for h8s-2628