Operation Timing - Hitachi H8/3664 Hardware Manual

Table of Contents

Advertisement

12.4.2

Operation Timing

TCNT Count Timing: Figure 12.23 shows the TCNT count timing when the internal clock
source is selected. Figure 12.24 shows the timing when the external clock source is selected. The
pulse width of the external clock signal must be at least two system clock (φ) cycles; shorter pulses
will not be counted correctly.
φ
Internal
clock
TCNT input
clock
TCNT
φ
External
clock
TCNT input
clock
TCNT
Figure 12.24 Count Timing for External Clock Source
Output Compare Timing: The compare match signal is generated in the last state in which
TCNT and the general register match (when TCNT changes from the matching value to the next
value). When the compare match signal is generated, the output value selected in TIOR is output
at the compare match output pin (FTIOA, FTIOB, FTIOC, or FTIOD). When TCNT matches a
general register, the compare match signal is generated only after the next counter clock pulse is
input.
Falling edge
N
Figure 12.23 Count Timing for Internal Clock Source
Rising edge
N
N+1
Rising edge
N+1
N+2
N+2
223

Advertisement

Table of Contents
loading

Table of Contents