English
Language : 

SH7763 Datasheet, PDF (798/2026 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTM RISC Engine Family SH-4A Series
Section 20 16-Bit Timer Pulse Unit (TPU)
Figure 20.4 illustrates periodic counter operation.
TCNT value
TGR
Counter cleared by TGRA
compare match
H'0000
CST bit
TGFA
Time
Flag cleared by software
Figure 20.4 Periodic Counter Operation
(2) Waveform Output by Compare Match
The TPU can perform 0, 1, or toggle output from the corresponding output pin (TPU_TO pin)
using TGRA compare match.
(a) Example of setting procedure for waveform output by compare match
Figure 20.5 shows an example of the setting procedure for waveform output by compare match.
Output selection
Select waveform output mode [1]
Set output timing
[2]
Set external pin function
[3]
Start count
[4]
[1] Select initial value 0 output or 1 output, and
compare match output value 0 output, 1 output,
or toggle output, by means of TIOR. The set
initial value is output at the TPU_TO pin until the
first compare match occurs.
[2] Set the timing for compare match generation in
TGRA.
[3] Set the external pin function in pin function
controller (PFC).
[4] Set the CST bit in TSTR to 1 to start the count
operation.
<Waveform output>
Figure 20.5 Example of Setting Procedure for Waveform Output by Compare Match
Rev. 1.00 Oct. 01, 2007 Page 732 of 1956
REJ09B0256-0100