English
Language : 

3069RF-ZTAT Datasheet, PDF (368/1003 Pages) Renesas Technology Corp – RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER
Waveform Output by Compare Match: In 16-bit timer channels 0, 1 compare match A or B can
cause the output at the TIOCA or TIOCB pin to go to 0, go to 1, or toggle. In channel 2 the output
can only go to 0 or go to 1.
• Sample setup procedure for waveform output by compare match
Figure 9.17 shows an example of the setup procedure for waveform output by compare match.
Output setup
Select waveform
output mode
Set output timing
[1] Select the compare match output mode (0, 1, or
toggle) in TIOR. When a waveform output mode
is selected, the pin switches from its generic input/
output function to the output compare function
[1]
(TIOCA or TIOCB). An output compare pin outputs
the value set in TOLR until the first compare match
occurs.
[2] [2] Set a value in GRA or GRB to designate the
compare match timing.
Start counter
[3] [3] Set the STR bit in TSTR to 1 to make 16TCNT
start counting.
Waveform output
Figure 9.17 Setup Procedure for Waveform Output by Compare Match (Example)
Rev. 5.0, 09/04, page 346 of 978