An ADS1220 acquisition board reads every 50 ms and sometimes returns exactly the same code as the previous read. If the firmware issues START/SYNC for each measurement in single-shot mode, polling on the premise that “20 SPS” guarantees new data at exactly 50 ms can beat DRDY. Put a timing marker on the last edge of the conversion command, not where a software loop begins. Then distinguish a stable input that converts to the same code from a read that occurs while the previous result is still buffered.
Compare both modes with the same 4.096 MHz reference
Table 8-4 of Texas Instruments' ADS1220 Revision D gives the actual clock counts for the nominal 20 SPS setting in normal mode. For steady continuous operation, measure between consecutive DRDY falling edges. In single-shot operation, measure from the last SCLK falling edge of START/SYNC to the DRDY falling edge. The following calculation assumes an exact 4.096 MHz external clock and keeps the two timing origins distinct.
| Operation | Clock count | Calculated interval |
|---|---|---|
| Steady continuous conversion interval | 204,768 | 49.99219 ms |
| Single START/SYNC to data ready | 204,850 | 50.01221 ms |
Under the ideal external clock, the single conversion can finish about 12.21 µs after a fixed read marker at 50 ms. Host scheduling, SPI readout and any time for a changed input or sensor excitation belong in separate allocations. Continuous operation has a steady-state interval slightly below 50 ms, but the first result after a new start follows separate timing. In normal mode the data sheet says that first continuous conversion starts 210 master-clock periods after the final falling edge of the START/SYNC command. Do not use the steady interval as a guarantee for the first result.
Put clock tolerance into the same budget before changing parts
Assume the external source can run 50 ppm slow. Its lower frequency is about 4,095,795.2 Hz, and 204,850 cycles take about 50.01471 ms. The error adds about 2.50 µs compared with the ideal clock. A perfectly accurate 4.096 MHz source would still leave more than 50 ms of conversion time. Pure arithmetic puts the minimum reference at 4,097,000 Hz to fit the conversion alone into 50 ms. That figure has no space for scheduling or readback and does not qualify the changed clock configuration.
The manufacturer specifies 4.096 MHz for achieving the stated 50 Hz and 60 Hz rejection with an external clock. Its note explains that the small difference between the nominal 20 SPS interval and exactly 50 ms does not impair that rejection at the specified clock. Conversion rates scale with a changed clock frequency, so recheck rejection if changing the frequency. When using the internal oscillator, account for its single-shot wake-up allowance. The data sheet lists up to 50 µs for normal and duty-cycle modes or 25 µs for turbo, with the actual startup overlap depending on the serial clock used to send START/SYNC.
If the host can turn off its output clock during sleep, do not assume the ADC falls back to its internal oscillator. The clock-source section says the device switches to the external source after detecting two rising edges at CLK. To return to the internal oscillator, put CLK in the required state and reset or power-cycle the ADC. When diagnosing intermittent timeouts, record power, CLK and DRDY together to see whether the host gated the active source. The CLK pin takes an already generated waveform. A passive crystal by itself does not provide that input.
Distinguish a late read from two valid conversions of the same input
Assign a measurement number before each START/SYNC. Capture CS, SCLK and DRDY. Record the last falling edge of the command, the next DRDY falling edge and the read transaction for the three data bytes. Log a timeout if the expected event is absent. If a read happens before the new DRDY, correct the synchronization before assigning its code to the next measurement number. When two valid events produce the same code, test with two distinct, stable levels within the allowed analog range. Check that the input change appears in the intended set of measurements.
Clarify whether the system needs a report every 50 ms or a new conversion started and completed within each 50 ms slot. A reporting schedule may be able to publish data from a continuous conversion buffer managed by DRDY, with a freshness limit. A hard deadline for single-shot measurements calls for a different timing or data-rate review, including line-noise rejection. If the application programs the excitation current sources for an RTD, time that stage separately. The data sheet allows up to 200 µs for the IDAC startup after programming, which does not belong in the digital conversion time from Table 8-4.
For a separate example, a 52 ms timeout leaves about 1.985 ms beyond the calculated 50.015 ms conversion at the slow-clock corner. Allocate that margin to the measured firmware, SPI and sensor timing. Qualify it with the actual priority and bus contention. Keep the fitted oscillator code, electrical interface and tolerance alongside the converter mode, command edge, latest observed DRDY and readout interval. Purchasing and engineering can then tell whether a tighter clock is useful or whether the trigger and read sequence needs to change.
