English
Language : 

SH7059 Datasheet, PDF (423/1042 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
12. Advanced Pulse Controller (APC)
Example of Advanced Pulse Controller Output Operation: Figure 12.4 shows an example of advanced pulse controller
output operation.
1. Set ATU-II 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 TCNT11 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 eight 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 12.4 Example of Advanced Pulse Controller Output Operation
Rev.3.00 Mar. 12, 2008 Page 333 of 948
REJ09B0177-0300