Rev. 2.00, 09/03, page 345 of 690
Waveform Output by Compare Match: The TPU can perform 0, 1, or toggle output from the
corresponding output pin (TO pin) using TGRA compare match.
•
Example of setting procedure for waveform output by compare match
Figure 14.5 shows an example of the setting procedure for waveform output by compare match
Select waveform output mode
Output selection
Set output timing
Start count
<Waveform output>
[1]
[2]
Set external pin function
[3]
[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 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.
Figure 14.5 Example of Setting Procedure for Waveform Output by Compare Match
•
Examples of waveform output operation
Figure 14.6 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
H'0000
TO pin (1 output)
TO pin (0 output)
Time
TGRA
No change
No change
No change
No change
Figure 14.6 Example of 0 Output/1 Output Operation
Summary of Contents for SH7705
Page 2: ......
Page 70: ...Rev 2 00 09 03 page 24 of 690 ...
Page 194: ...Rev 2 00 09 03 page 148 of 690 ...
Page 284: ...Rev 2 00 09 03 page 238 of 690 ...
Page 338: ...Rev 2 00 09 03 page 292 of 690 ...
Page 354: ...Rev 2 00 09 03 page 308 of 690 ...
Page 374: ...Rev 2 00 09 03 page 328 of 690 ...
Page 420: ...Rev 2 00 09 03 page 374 of 690 ...
Page 476: ...Rev 2 00 09 03 page 430 of 690 ...
Page 482: ...Rev 2 00 09 03 page 436 of 690 ...
Page 552: ...Rev 2 00 09 03 page 506 of 690 ...
Page 630: ...Rev 2 00 09 03 page 584 of 690 ...
Page 739: ...SH7705 Group Hardware Manual REJ09B0082 0200O ...