Hitachi H8/3664 Hardware Manual page 227

Table of Contents

Advertisement

Signal Output by Compare Match: Compare match A, B, C, or D can cause the output at the
FTIOA, FTIOB, FTIOC, or FTIOD pin to go to 0, go to 1, or toggle. Figure 12.7 shows an
example of the setup procedure for outputting signals by compare match.
Output setup
Select waveform output
mode
Set output timing
Start counter
Signal output
Figure 12.7 Setup Procedure for Outputting Signals by Compare Match (Example)
Figure 12.8 shows an example of 0 and 1 output. TCNT operates as a free-running counter, 1
output is selected for compare match A, and 0 output is selected for compare match B. When the
signal is already at the selected output level, the signal level does not change at compare match.
TCNT value
H'FFFF
GRA
GRB
H'0000
FTIOA
FTIOB
1
2
3
Figure 12.8 0 and 1 Output (TOA = 0, TOB = 1)
1. Select the initial output value (0 or 1)
in TCRW and the compare match
output value (0, 1, or toggle) in TIOR.
The FTIO pin outputs the selected
initial value until the first compare
match occurs.
2. Set the compare match timing in GR.
3. Set the CST bit in TMRW to 1 to start
the timer counter.
No change
No change
Time
No change
No change
211

Advertisement

Table of Contents
loading

Table of Contents