English
Language : 

SH7020 Datasheet, PDF (265/509 Pages) Renesas Technology Corp – SuperH™ RISC engine
CK
External clock
input pin
TCNT input
clock
TCNT
N–1
N
N+1
Figure 10.18 Count Timing for External Clock Sources
Compare-Match Waveform Output Function: For ITU channels 0, 1, 3, and 4, the output from
the corresponding TIOCA and TIOCB pins upon compare matches A and B can be in three
modes: 0-level output, 1-level output, or toggle. Toggle output cannot be selected in channel 2.
• Procedure for selecting the waveform output mode (figure 10.19):
1. Set the TIOR to select 0 output, 1 output, or toggle output for compare match output. The
compare match output pin will output 0 until the first compare match occurs.
2. Set a value in the GRA or GRB to select the compare match timing.
3. Set the STR bit in the TSTR to 1 to start counting.
Output selection
Select waveform
output mode
(1)
Select
output timing
(2)
Start counting
(3)
Waveform output
Figure 10.19 Procedure for Selecting the Compare Match Waveform Output Mode
RENESAS 249