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

AD7779's 8.192 MHz oscillator is correct. Why do I still get 4000 samples per second after changing decimation?

Writing a new decimation ratio and applying it are separate operations on AD7779. With SPI control, high-resolution mode, and an 8.192 MHz master clock, decimation 512 gives about 4 kSPS and 256 gives about 8 kSPS. If the fields read back 256 but the output still runs at the old rate, check whether SRC_UPDATE selects software or hardware loading and whether that action completed. Do not replace the oscillator or accept the new rate based only on readback.

1. Derive the target from the clock and mode

In high-resolution mode the modulator clock is MCLK divided by four; in low-power mode it is divided by eight. The output rate then depends on decimation. The modes can normally use different master-clock conditions, so record both mode and measured clock instead of just “set to 8000.”

High-resolution exampleExpected result
8.192 MHz MCLKModulator frequency of 2.048 MHz
Decimation 512Approximately 4 kSPS
Decimation 256Approximately 8 kSPS
Register written but not loadedNo evidence that active output has changed

The rates are nominal and do not include tolerance or host-side sample loss. For fractional decimation, check the integer and fractional fields and byte order. When returning to integer decimation, make sure a previous nonzero fractional value is not left behind. Record the request, complete field values, and predicted data period together.

2. Why register readback can change without the new rate taking effect

The device allows rate changes in operation, but the new ratio needs a separate load action. With the software path selected, assert SRC_LOAD_UPDATE for at least two MCLK periods and return it to zero before another update. Writing the SRC ratio alone does not complete that operation. In hardware-load mode a software update-bit write does not prove that the external event happened. Check the selected path and capture the corresponding write or signal.

Do not confuse cycle counts with host timing

At 8.192 MHz, an ideal MCLK period is about 122.07 ns and two periods about 244.14 ns. That expresses the minimum software-load assertion interval; it does not mean every later result can be labeled with the new rate after that time. The bus transfer, load, and converter transition have distinct timestamps. Capture the end of writes, spacing between transactions, and the following output edges.

Multiple tasks can write configuration. One may leave the update bit asserted while the next fails to clear it, or a routine may restore old defaults after restarting acquisition. Save the actual transaction sequence, not a single snapshot. Check register page, field values, and order against the documentation.

3. Leave room for the conversion transition

ADI describes the new ODR taking effect in three conversion cycles. Do not judge the change from one isolated interval just after loading. Save consecutive DRDY edges before and after the event and compare stable operation. Here, nominal steady spacing changes from 250 µs to 125 µs. Do not use a single new-rate interval times a count as a universal transition guarantee. Mark request, transition, and steady acquisition separately in logs.

Verify converter output separately from host sample collection

If DRDY is near 125 µs but a file still shows 4000 samples per second, check host buffering, transfer, accounting, and file metadata. If DRDY remains near 250 µs, check MCLK, mode, and configuration loading. The host's displayed rate cannot distinguish a failed update from capture throughput trouble. Keep converter output and saved samples on a comparable timeline.

Higher output rate also calls for bandwidth and filter review. A confirmed rate does not approve the old analog bandwidth or delay specification. In multichannel applications, validate configuration synchronization, data alignment, and trigger timing independently. Two independent oscillators at the same nominal rate are not the common MCLK required by the documented hardware synchronization method.

4. Revisit oscillator selection only with relevant evidence

If measured MCLK is wrong, check supply, logic levels, loading, and waveform at the IC. Epson SG-8200CG is a programmable oscillator family covering this range of clock frequencies. Confirm the actual programmed 8.192 MHz order information and electrical conditions. A blank part does not provide the intended clock, and nominal frequency does not establish logic compatibility. A passive crystal is not a substitute for the active digital input.

If clock measurements pass and the symptom follows firmware, fix the configuration and verification path first. If a new reference actually changes frequency, recalculate decimation. Change one variable at a time to keep the comparison useful.

5. Leave a reproducible verification record

Record measured clock, control and power modes, integer and fractional fields, load method, steady DRDY timing, and saved host sample count. Identify the accepted update and transition window. If acquisition continues through the change, annotate the event rather than interpreting all samples against the old timebase.

For repeated testing, alternate between two clearly distinguishable ratios and verify both stable output intervals. A single update from defaults does not cover failure to clear the update bit before the second cycle. Keep one known analog input and save continuous low-rate, high-rate, and return captures. If an older driver logs no boundary, add a trace mark and specify whether it represents the request or completed load. Distinguish “the rate did not change” from “the host could not keep up” in the release record.

Calculate the rate from clock and mode, verify that the new ratio loaded, then check DRDY and host capture independently. Register readback alone does not verify the faster output.

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.