English
Language : 

SH7052 Datasheet, PDF (436/919 Pages) Renesas Technology Corp – SuperHTM RISC engine
Example of Advanced Pulse Controller Output Operation: Figure 11.4 shows an example of
advanced pulse controller output operation.
1. Set ATU-11 registers GR11A and GR11B (to be used for output trigger generation) as output
compare registers. Set the rise point in GR11A and the fall point in GR11B, and enable the
respective compare-match interrupts.
2. Write H'0101 to POPCR.
3. Start the ATU timer 2 count. When a GR11A compare-match occurs, 1 is output from the
PULS0 pin. When a GR11B compare-match occurs, 0 is output from the PULS0 pin.
4. Pulse output widths and output pins can be continually changed by successively rewriting
GR11A, GR11B, and POPCR in response to compare-match interrupts.
5. By setting POPCR to a value such as H'E0E0, pulses can be output from up to 8 pins in
response to a single compare-match.
TCNT value
Rewritten
Cleared on overflow
GR11B
GR11A
H'0000
Rewritten
Rewritten
Rewritten
Rewritten
Rewritten
Rewritten
Rewritten
Rewritten
Rewritten
POPCR
0101
0202
0404
0808
1010
E0E0
PULS0
PULS1
PULS2
PULS3
PULS4
PULS5
PULS6
PULS7
Figure 11.4 Example of Advanced Pulse Controller Output Operation
410