English
Language : 

HD6473032F16 Datasheet, PDF (375/847 Pages) Renesas Technology Corp – Hardware Manual Renesas 16-Bit Single-Chip Microcomputer H8 Family/H8/300H Series
Section 10 16-Bit Integrated Timer Unit (ITU)
φ
External
clock input
TCNT input
TCNT
N–1
N
N+1
Figure 10.18 Count Timing for External Clock Sources (when Both Edges Are Detected)
Waveform Output by Compare Match: In ITU channels 0, 1, 3, and 4, 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 10.19 shows a sample procedure for setting up 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
0 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 to 1 in TSTR to start the timer
counter.
Waveform output
Figure 10.19 Setup Procedure for Waveform Output by Compare Match (Example)
Rev. 3.00 Mar 21, 2006 page 345 of 814
REJ09B0302-0300