RX610 Group
15. 16-Bit Timer Pulse Unit (TPU)
R01UH0032EJ0120 Rev.1.20
Page 487 of 1006
Feb 20, 2013
(2)
Waveform Output by Compare Match
The TPU can perform low, high, or toggle output from the corresponding output pin using a compare match.
(a)
Example of setting procedure for waveform output by compare match
Figure 15.6 shows an example of the setting procedure for waveform output by a compare match.
Select waveform output mode
Output selection
Set output timing
Start count
[1]
[2]
[3]
<Waveform output>
Select an initial value from low-output
or high-output and compare match
output value from low-output, high-
output, or toggle-output by TIOR. The
set initial value is output on the
TIOCyn pin until the first compare
match occurs (y = A to D, n = 0 to 11).
[1]
Set the timing for generating a
compare match in TGRy.
[2]
Set the CSTj bit in TSTRy to start
count operation (y = A, B, j = 0 to 5).
[3]
Figure 15.6 Example of Setting Procedure for Waveform Output by Compare Match
(b)
Examples of waveform output operation
Figure 15.7 shows an example of low output/high output.
In this example, TPUm.TCNT has been set as a free-running counter, and settings have been made so that high is output
by compare match A and low is output by compare match B. When the set level and the pin level match, the pin level
does not change.
No change
No change
No change
No change
TCNT value
FFFFh
0000h
TIOCB
Time
High-output
Low-output
TIOCA
TGRB
TGRA
Figure 15.7 Example of Low-Output/High-Output Operation
Summary of Contents for RX600 Series
Page 1006: ...RX610 Group R01UH0032EJ0120 ...