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

Why AD5940 FIFO throughput can be below its ADC rate

An impedance test bench uses an AD5940 and a 16 MHz passive crystal. Software expects the front end to deliver 800,000 readings per second, but it sees far fewer words in the internal buffer. A faster host does not close the gap. Identify which block supplies the FIFO and calculate from the effective clock and decimation settings. In this example 800,000 is the raw conversion rate. A filtered result can represent many converter samples.

Trace each rate along the active signal path

ADI provides several clock choices, including an internal high-frequency source and an external crystal. The device defaults to its internal 16 MHz option at startup. A fitted 16 MHz passive crystal still needs the appropriate clock selection. Verify the active source, division and effective 16 MHz ADC clock. The same nominal frequency cannot identify the selected source by itself. Save clock and ADC rate settings with the test.

Converter codes can pass through two digital decimation stages. The FIFO can also select other sources, including a transform or statistics. Diagram the raw conversion, filters, source selector, FIFO and external reads. Different paths can use the same FIFO address while changing both word meaning and rate. Keep bypass settings, decimation factors, FIFO source and trigger information. A reader that assumes the old source can give both the wrong units and the wrong count.

Calculate two settings using the same ADC clock

Assume a 16 MHz ADC clock, an 800 kSPS raw rate and Sinc3 enabled. A Sinc3 factor of five gives 160,000 outputs per second. Select a Sinc2 factor of 44 and route Sinc2 results into the FIFO. The steady rate is 800000 ÷ 5 ÷ 44, about 3,636.36 results per second, with one result per 275 µs. A 55 ms window after settling should contain around 200 words. Applying the raw rate would incorrectly predict 44,000.

Keep the ADC clock and raw rate unchanged. The data sheet also allows a Sinc3 factor of two at 800 kSPS. Retain the Sinc2 factor of 44 and the same FIFO source. Expect about 9,090.91 outputs per second, 110 µs per result and around 500 words in 55 ms. This comparison can verify the calculation and reader. It changes measurement bandwidth and noise as well, so throughput alone does not establish equivalence.

Distinguish produced, buffered and read words

Open the counting window once the pipeline has settled. First-result delay also involves filter startup and sequencing. Do not infer it from the steady interval. A fixed window can differ by a word depending on phase at its endpoints. A large mismatch calls for checking source and settings, then FIFO threshold, count and overflow. Read attempts and interrupt counts are not interchangeable with valid words retrieved.

Keep the source information in the raw words. The data sheet describes source or channel information and a separate transform result format. A slowly changing known input helps identify consecutive results. Mark the last block under the old settings and the first under the new settings. If the firmware preserves buffered samples, a block following reconfiguration may contain both old and new results.

Check capacity and the host read schedule independently. The data sheet says that FIFO mode drops new results when full, while stream mode discards old ones to accept new results. Final occupancy alone cannot reveal either case. Record configured capacity and status and drain in segments where needed. A host timeout needs evidence from production to retrieval, not just the nominal bus clock in the driver.

A known slow periodic input provides a second check. After both filter settings settle, count continuous results over the same external time window and compare them against the number of input periods. If a displayed frequency differs by a decimation factor, check whether timestamps were assigned at the filtered rate or the raw conversion rate. A host can read in bursts with variable spacing while the front end produces results at a separate cadence.

Try a shorter drain interval as a control. With no overflow and no front-end change, more frequent reads change words per transfer while leaving the long-term total unchanged. If totals differ, look for duplicate interrupt accounting or words left from a previous configuration. Repeat with the production read interval so test firmware does not hide a throughput problem.

Verify both ratios before testing the actual bench input. Record the 16 MHz passive crystal, effective clock selection, both decimation factors, FIFO source, counting window and overflow behavior. Recheck the ADC clock after a reference change, output interval after a filter change, and data movement after a host change. The complete path determines how many valid results reach the application.

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.