Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / Measurement and Acceptance

A 20 MHz oscillator never stops. Why might the SN74LV8154 miss a carry every few milliseconds?

A fixture uses an SN74LV8154 counter and a 20 MHz active oscillator. Input edges and small counts look normal. Errors occur around rollover of the low sixteen bits. Check both counters at their common clock edge and determine whether carry enable reaches the upper counter in time.

Give both counters the same counting clock

TI implements two sixteen-bit counters. For the documented synchronous thirty-two-bit cascade, tie CLKA and CLKB together and connect RCOA to CLKBEN. The upper enable is active low. When the low word is full and ready to roll, RCOA asserts in advance. At the next shared rising edge the low word resets to zero and the high word advances. RCOA signals readiness to carry. It is not the high-counter clock in the recommended connection.

The 20 MHz active oscillator has a fifty-nanosecond period. The low word repeats every 65,536 edges, so the first full rollover from zero is approximately 3.2768 milliseconds later. The all-ones state occurs one edge earlier. Missing one high-word increment causes an error of 65,536 counts, far larger than a small oscillator frequency error. Retain both raw hexadecimal words and capture times before filtering the data.

TI specifies delay from CLKA to RCOA under stated loading and a setup requirement from CLKBEN to CLKB. In the applicable five-volt timing condition with a fifteen-picofarad switching load, maximum propagation is twenty-seven nanoseconds and enable setup is ten. In a simple model with zero extra clock skew, fifty minus twenty-seven minus ten leaves thirteen nanoseconds. Account for routing, threshold differences, and actual loading. Probes, translators, or added branches can reduce the margin. The maximum rate for counting alone does not establish the same bound for this loop.

Capture the first rollover

Apply a valid clear with a known release relative to the input clock. Observe CLKA, CLKB, RCOA, and the actual upper enable. If the last two are directly connected, use the spare channel for clear or the storage clock RCLK. Capture near edge 65,535 after clear, or trigger on RCOA and include the next clock. Assess the effective logic level at the pin instead of placing cursors on a convenient waveform location.

For a count check, apply exactly 65,535, 65,536, and 65,537 valid cycles from a controlled source in separate runs. Clear and capture identically each time. The expected states are low FFFF, then high one with low zero, then high one with low one. Meet RCLK timing and keep one storage image while all bytes are read. This makes the result describe the counter rather than moving bus data. If only continuous operation fails and a settled snapshot succeeds, investigate storage timing and controls.

If the same oscillator feeds A and B through different buffers, pair their corresponding input edges at both pins. An earlier B edge can cut the time that carry enable has been valid. Probing only one branch or the source before the split cannot establish skew. Check when the low level becomes valid and that it lasts through the B decision. Repair threshold recrossing or ringing before trusting a small timing margin.

Try two stop conditions. First stop the controlled burst at the all-ones state and verify that carry-ready goes low before adding one final edge. Then capture the same transition without stopping. A carry that works with a pause but fails continuously points to lateness, even if wiring and polarity are correct. If carry-ready never asserts at all ones, inspect clear, low counter behavior, and the RCOA connection first.

Distinguish a marginal rate from incorrect wiring

Where suitable, repeat at ten megahertz with the other settings unchanged. Recovery at a longer period points toward carry propagation or skew. Recheck planned rate, load, and temperature afterward. A stable missing high count at both rates calls for checking RCOA routing, enable polarity, and clear. A replacement oscillator could change the edge shape and alter the symptom without showing that the cascade now meets timing.

For fixture acceptance, watch several consecutive rollovers and verify exactly one upper increment per boundary. A single pass may miss a state left by an earlier clear or a change with temperature.

Keep both count words around rollover, enable setup, supply, and probe loading. If the clock itself fails an electrical requirement, verify replacements at the intended load and interface. A fault at the counter's cascade boundary should be recorded as such, separate from the oscillator's frequency tolerance.

References

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.