R5F61525 RENESAS [Renesas Technology Corp], R5F61525 Datasheet - Page 396

no-image

R5F61525

Manufacturer Part Number
R5F61525
Description
32-Bit CISC Microcomputer H8SX Family H8SX/1500 Series
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Section 10 Programmable Pulse Generator (PPG)
10.4.3
Figure 10.5 shows an example in which pulse output is used for cyclic 5-phase pulse output.
1. Set up TGRA in TPU which is used as the output trigger to be an output compare register. Set
2. Write H'F8 to NDERH, and set bits G3CMS1, G3CMS0, G2CMS1, and G2CMS0 in PCR to
3. The timer counter in the TPU channel starts. When compare match A occurs, the NDRH
4. 5-phase pulse output (one or two phases active at a time) can be obtained subsequently by
Rev. 3.00 Mar. 14, 2006 Page 358 of 804
REJ09B0104-0300
TGRA
H'0000
NDRH
PODRH
PO15
PO14
PO13
PO11
TCNT value
PO12
a cycle in TGRA so the counter will be cleared by compare match A. Set the TGIEA bit in
TIER to 1 to enable the compare match/input capture A (TGIA) interrupt.
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.
contents are transferred to PODRH and output. The TGIA interrupt handling routine writes the
next output data (H'C0) in NDRH.
writing H'40, H'60, H'20, H'30, H'10, H'18, H'08, H'88... at successive TGIA interrupts.
If the DMAC is set for activation by the TGIA interrupt, pulse output can be obtained without
imposing a load on the CPU.
Example of Normal Pulse Output (Example of 5-Phase Pulse Output)
00
Figure 10.5 Normal Pulse Output Example (5-Phase Pulse Output)
80
TCNT
80
C0
C0
40
40
60
Compare match
60
20
20
30
30
10
10
18
18
08
08
88
88
80
80
C0
C0
40
Time

Related parts for R5F61525