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

Locating Missing Frames by Counting Camera Triggers, Exposures, and Host Receipts | Crystal & Oscillator Handbook

A generator reports five external trigger pulses, but the host gets three images. Compare trigger-ready status, acceptance and host reception. The missing two may never have been accepted rather than lost in transport.

Use an offline machine-vision bench with a low-voltage camera and generator aimed at a fixed target. Sending a pulse does not establish that the camera was ready, exposed, read out and generated a frame. A design accepting only when waiting for frame start may ignore pulses while busy. Do not change running production timing or assume one camera's busy behavior applies to another.

Four counts answer different questions

First count valid edges at the camera input, not on the generator display. Check polarity, pulse width, voltage and debouncing for the camera and isolation interface. If the input did not see a valid edge, do not attribute loss to busy rejection. Count only the configured edge, not both transitions.

Second check readiness and acceptance separately. Some cameras expose frame-trigger-ready at an approved point. Capture it with the input edge and establish whether it refers to a frame, burst or other trigger. Ready means the camera can accept, not that it did. Use acceptance events, internal counts or supported status if available. Do not turn a high ready level into an acceptance record.

Third count generated frames; fourth count images actually delivered to the application. If a frame exists at the camera but does not reach the application, trace transport, buffering and processing. Some modes overlap exposure and readout between frames, others do not. A single exposure-plus-readout sum does not define the minimum interval for every mode.

For custom hardware requiring a 27 MHz, 1.2 V CMOS reference, SCTF SX2M27.000E20F30THN is a four-pad 2520 candidate. Verify actual receiver supply, voltage and load. This does not identify a commercial camera's part or equate oscillator frequency with accepted trigger rate. Sensor and acquisition configuration are in between.

Worked example: a 4 ms busy window can turn five pulses into three frames

Assume one trigger per frame, initially ready, with no buffering and a 4 ms inactive window after each accepted edge. Five valid edges arrive at 0, 3, 7, 10 and 14 ms. The camera accepts 0, ignores 3, accepts 7, ignores 10 and accepts 14. It generates three frames. If the host gets all three, there is no evidence of transport losing two. Acceptance is 3/5, or 60%, while reception of generated frames is 100%.

In a second case, all five edges are adequately spaced, accepted and converted to frames, but only three reach the application. Trace camera frame IDs and host records rather than attributing loss to busy state. Both cases look identical at the host. The 4 ms window is not a guarantee; check readiness for the actual exposure, ROI, acquisition mode and settings.

If trigger numbers count external edges while frame IDs count generated frames, matching the numbers directly can mispair everything after a rejection. Use one observation window or a shared event identifier. If evidence is unavailable, say where the gap is rather than inferring the exact rejected instant from later frame numbers.

Capture synchronous evidence before high-rate tests

Freeze firmware, acquisition mode, exposure and output region. Establish a low-rate baseline where each valid edge can be tied to acceptance and a host frame. Document observation delay or inversion. Change pulse spacing only and record input and ready on one timebase, plus camera events and application receipt. Do not stitch scope captures from separate runs.

Near the ready transition, do not judge from the last decimal of a timestamp. Check timing uncertainty and required margin. If there is no synchronous ready pin, use supported low-rate controls, gradual spacing changes and internal counts. State that this is not direct evidence of each rejection.

For a causal comparison, keep the pulse sequence and change only one approved acquisition setting. If the ready window and acceptance count move together, prioritize acquisition. If generation remains stable but delivery falls, isolate buffering and host handoff. Pilot tests should include sustained triggers and allowed bursts, not just sparse activity.

Engineering and purchasing checklist

CheckEngineering or test evidencePurchasing and quality record
External triggerValid edge, polarity and width at inputCorrect model and interface option
Ready and acceptedReady interval, acceptance events and modeSample firmware and observable options
Generation and deliveryGenerated/received counts and matching IDsTopology, bandwidth and acceptance criteria
Board oscillatorFrequency, levels and reference compatibilityExact code, package, voltage and lot

After a clock-only change, retest all four counts. If default acquisition mode changed too, record it separately; a higher reported frame rate cannot substitute for readiness and acceptance validation.

Use “not observed” separately from zero. Zero means it was counted and no event occurred. An unavailable interface provides no such evidence.

Frequently asked questions

If trigger-ready is always active, does it prove every pulse was accepted? No. Verify that valid edges arrived and met the device requirements. Cross-check acceptance events or acquisition records where available.

Will a camera with a higher rated frame rate solve the problem? Not necessarily. Ratings may use another mode, and a faster camera can increase host load if frames were already generated but not delivered. Locate the first count that falls short.

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.