English
Language : 

SH7065 Datasheet, PDF (434/941 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7000 Series
Section 10 16-Bit Timer Pulse Unit (TPU)
Examples of waveform output operation: Figure 10.10 shows an example of 0 output/1 output.
In this example TCNT has been designated as a free-running counter, and settings have been made
so that 1 is output by compare match A, and 0 is output by compare match B. When the set level
and the pin level coincide, the pin level does not change.
TCNT value
H'FFFF
TGRA
TGRB
H'0000
TIOCA
TIOCB
Does not change
Time
Does not change
1 output
Does not change
Does not change 0 output
Figure 10.10 Example of 0 Output/1 Output Operation
Figure 10.11 shows an example of toggle output.
In this example TCNT has been designated as a cyclic counter (with counter clearing performed
by compare match B), and settings have been made so that output is toggled by both by compare
match A and compare match B.
TCNT value
H'FFFF
TGRB
TGRA
H'0000
Counter cleared by TGRB compare match
Time
TIOCB
TIOCA
Toggle output
Toggle output
Figure 10.11 Example of Toggle Output Operation
Rev. 5.00 Sep 11, 2006 page 412 of 916
REJ09B0332-0500