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

A 20 MHz oscillator sets AD7606B trigger timing. Which frame is read while BUSY is high?

An FPGA runs from a 20 MHz LVCMOS oscillator and generates CONVST for an eight-channel AD7606B. Individual readings are plausible, but the recorded samples are one frame late relative to external events. Three events matter. The oscillator establishes the trigger cadence, CONVST initiates conversion, and the falling BUSY edge updates the output registers. A host can read newly completed data or overlap readout with a later conversion and retrieve the preceding result. Both methods can return correct codes. Using the same timestamp in both methods introduces a fixed error.

A divide-by-forty sets cadence

An assumed trigger every forty periods of 20 MHz gives one every 2 µs, or 500,000 per second. Each accepted trigger starts a conversion group in the configured mode. Check the actual conversion and acquisition times and throughput limit. Oversampling and phase settings can change BUSY duration. The data sheet says CONVST has no effect while BUSY is high. Counting only generated triggers can hide rejected ones and misattribute missing frames to DMA.

Budget trigger width separately. A 20 MHz period is 50 ns, so a generated high interval of two cycles is nominally 100 ns. The selected mode must meet its specified high and low durations. Feeding a 20 MHz square wave directly to CONVST would present a new edge every 50 ns instead of the intended frame interval. Capture at the converter input. A correct reference, correct FPGA simulations and valid pins are successive checks.

Timestamp the preceding result even when reading during conversion

The AD7606B data sheet covers parallel and serial readout and identifies the falling BUSY edge as the register update boundary. A read of preceding data while BUSY is high must finish before that update. Suppose trigger 100 occurred at 200 µs and trigger 101 at 202 µs. If conversion 101 is in progress while the processor reads result 100, assign it to the event at 200 µs. Assigning 202 µs shifts the signal by 2 µs. At 10 kHz that is about 7.2 degrees of apparent phase shift. This example concerns timestamp assignment. Include the converter's specified trigger-to-aperture behavior in an actual acquisition budget.

Store an issued trigger ID and recognize whether BUSY indicates acceptance. Associate each complete group with the agreed accepted trigger. The next scheduled ID is not necessarily the ID of the result in the buffer. If transfers fail, reestablish association before logging valid data. Save CONVST, BUSY, and the real read control in logic captures. Reconcile complete frames with valid conversions and deliberately discarded startup frames.

Count the full readout before scheduling it

Eight sixteen-bit channels on one line represent 128 bits before optional fields. At an assumed 20 MHz serial clock, those bits alone take 6.4 µs. That cannot deliver a complete group every 2 µs. Use a supported multi-output or parallel interface or reduce sampling rate. Recalculate with status or CRC enabled and verify the actual interface mode. Average bandwidth alone does not guarantee the full transaction fits the legal window. Include chip-select timing, interrupt delays and capture setup.

Use a common low-voltage step at the analog inputs and log the trigger that encountered it. At a slow rate, establish correct ordering when reading after BUSY falls. Then overlap reading with conversion and verify that timestamps do not slip. Add real host load near the read deadline and look for mixed results around the BUSY update. If an error affects individual bits, also check serial sampling. Account for any digital synchronization latency in the host.

Keep oscillator loading and the trigger divider with the sample. The board record should show issued triggers, accepted conversions, complete groups and ownership of each timestamp. Recalculate the trigger schedule if the source frequency changes. A saved trace lets the next engineer distinguish missed acquisition, late data availability and mislabeled results.

Keep the first raw codes before interpolation or timestamp reordering. Use an independent capture marker to place the stimulus within the real trigger windows. Compare the first threshold-crossing frame in each read mode and move the step between neighboring triggers over several runs. Even with front-end filtering, the mapping should follow the selected mode. If only the first groups differ, check the driver's startup discard policy.

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.