English
Language : 

SH7032 Datasheet, PDF (286/687 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
Section 10 16-Bit Integrated Timer Pulse Unit (ITU)
CK
Internal clock
TCNT input
clock
TCNT value N – 1
N
Figure 10.17 Count Timing for Internal Clock Sources
N+1
CK
External clock
input pin
TCNT input
clock
TCNT
N–1
N
N+1
Figure 10.18 Count Timing for External Clock Sources (Both-Edge Detection)
Compare-Match Waveform Output Function: For ITU channels 0, 1, 3, and 4, the output from
the corresponding TIOCA and TIOCB pins upon compare matches A and B can be in three
modes: 0-level output, 1-level output, or toggle. Toggle output cannot be selected for channel 2.
• Procedure for selecting the waveform output mode (figure 10.19):
1. Set TIOR to select 0 output, 1 output, or toggle output for compare match output. The
compare match output pin will output 0 until the first compare match occurs.
2. Set a value in GRA or GRB to select the compare match timing.
3. Set the STR bit in TSTR to 1 to start counting.
Rev. 7.00 Jan 31, 2006 page 260 of 658
REJ09B0272-0700