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

Why does an ADS131M04 log half the expected sample rate with an 8.192 MHz oscillator?

A counter reads 8.192 MHz at the clock input of a current and voltage acquisition card. The logger records only 2,000 samples per second per channel, although the design calls for 4,000. The counter measures the ADC input clock, while the logger counts the samples the host actually saves. Modulation and decimation sit between those two points. SPI readout and software buffering can also discard results. Measure each stage before opening a component return.

Follow the clock through the decimator

The TI data sheet gives two relationships. The modulator operates at half the frequency on CLKIN. The output data rate is the modulator frequency divided by the oversampling ratio, or OSR. With an 8.192 MHz oscillator in high-resolution mode and an OSR of 1024, the calculation is 8,192,000 ÷ 2 ÷ 1024 = 4,000 samples per second per channel. The output interval is 250 µs. Keeping that clock and power mode but changing OSR to 2048 produces 2,000 samples per second, spaced 500 µs apart.

A second configuration reaches the same data rate. In low-power mode, TI lists a nominal clock of 4.096 MHz. At an OSR of 1024, that combination also gives 2,000 samples per second. A useful fault report includes the measured CLKIN, the power mode and the OSR read back from the device. Check the recommended input-clock range for the selected power mode before approving a clock change.

For scale, suppose the project allows a ±25 ppm clock error at 8.192 MHz. That corresponds to about ±204.8 Hz at the input, or ±0.1 sample per second around the 4 kSPS nominal output. It moves the interval by about ±6.25 ns. This example puts ordinary frequency tolerance in context when the observed ratio is close to two. A clock that drops edges intermittently needs a time-domain check even if the frequency counter looks normal.

Separate DRDY from successfully read frames

After the device settles, capture CLKIN, DRDY, chip select and SCLK together. Record the configured DRDY format and whether the host reads each frame in time. TI describes a pulsed mode in which an unread result can delay the next DRDY pulse until the second following conversion. A conversion that completes during readout can also suppress a pulse. Either case can distort a frequency measurement based on DRDY alone.

Run the board with display refresh and file writes temporarily disabled. Have the host read each frame during the permitted window and monitor the actual cadence on the logic analyzer. If the interval returns to 250 µs in this test, check interrupt masking, queue overflow and file I/O delays in the normal firmware. If the interval stays at 500 µs with consistent readout, check the clock source and the actual register settings, including any writes made by the power manager. Treat the first conversion after startup or synchronization separately from steady-state measurements.

Consider a readout that uses six 24-bit words, including status, four channel results and the CRC word. Its 144 clocks take 36 µs at 4 MHz. That leaves 214 µs against the nominal 250 µs conversion period before accounting for chip-select timing, interrupt latency and bus contention. Measure when the slowest frame actually starts and ends. Recalculate for the configured word length or command, and verify the applicable SCLK limits in the manufacturer timing table.

If the terminal converts sample count to elapsed time, cross-check it with an independent signal source. Generate two markers one second apart and count valid samples between them, using only one of the two boundaries. A sustained deficit near one half calls for checking the ADC rate and frame handling. If the raw timestamps line up but the screen stretches time, check the display time scale. Use a reference that does not depend on the same clock chain under investigation.

Specify the clock source on the purchase order

CLKIN accepts an external digital clock. An 8.192 MHz oscillator can supply it directly, or another IC can generate the signal. An 8.192 MHz passive quartz crystal needs an oscillator circuit of its own. Before accepting a substitute, trace the original board to identify the driver at CLKIN. For an architecture change, qualify startup, supply voltage, output logic, input thresholds, loading, duty cycle and allowable frequency error again.

Ask the supplier to confirm frequency, output, supply, package and data-sheet revision against the complete order code. Engineering should log the ADC digital supply, applicable clock requirements, read-back OSR and DRDY format, SPI frame count and sample timestamps. Include cold start, continuous acquisition and wake-up, with the software load that normally makes the board busiest. Those records give procurement and engineering a common basis for deciding whether the oscillator needs replacement or the acquisition path needs work.

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.