Figure 8.15 Count Timing For Internal Clock Sources; Figure 8.16 Count Timing For External Clock Sources (When Both Edges Are Detected) - Hitachi H8/3062 Hardware Manual

Single-chip microcomputer h8/3062 series; h8/3062b series; h8/3062f-ztat series; h8/3064f-ztat series
Hide thumbs Also See for H8/3062:
Table of Contents

Advertisement

• 16TCNT count timing
 Internal clock source
Bits TPSC2 to TPSC0 in 16TCR select the system clock (φ) or one of three internal clock
sources obtained by prescaling the system clock (φ/2, φ/4, φ/8).
Figure 8.15 shows the timing.
φ
Internal
clock
16TCNT input
clock
16TCNT
N – 1

Figure 8.15 Count Timing for Internal Clock Sources

 External clock source
The external clock pin (TCLKA to TCLKD) can be selected by bits TPSC2 to TPSC0 in
16TCR, and the detected edge by bits CKEG1 and CKEG0. The rising edge, falling edge,
or both edges can be selected.
The pulse width of the external clock signal must be at least 1.5 system clocks when a
single edge is selected, and at least 2.5 system clocks when both edges are selected. Shorter
pulses will not be counted correctly.
Figure 8.16 shows the timing when both edges are detected.
φ
External
clock input
16TCNT input
clock
16TCNT

Figure 8.16 Count Timing for External Clock Sources (when Both Edges are Detected)

254
N – 1
N
N
N + 1
N + 1

Advertisement

Table of Contents
loading

Table of Contents