DRDY keeps moving on an ADS1256 board, and the host can read its registers, yet conversion results occasionally get stuck. Turning on debug logs or slowing the host's SPI sometimes makes the fault less frequent. Capture a complete RDATA transaction, with particular attention to the gap between the last command bit and the first read clock. Texas Instruments defines that gap in periods of the ADC's master clock. A host DMA transfer that neatly joins the command and three read bytes can put the two groups of clock edges too close together at the converter.
Mark t6 on the two edges that define it
Figures 1 and 30 in Revision K show the RDATA sequence. Once DRDY is low and the data is ready, assert CS and send 0x01 as shown. The last command bit is clocked into the device on a falling edge of SCLK. From that edge to the first rising edge used to start data readout, allow at least 50 CLKIN periods. Then provide the clocks for the 24-bit conversion word and assemble it using the applicable bit order. CS stays low for the complete command sequence. Make sure a controller with automatic chip-select handling can hold it low while inserting the wait between DMA segments.
The same t6 timing is listed at the start of readout after entering RDATAC or issuing RREG. RREG sends an address byte and a count byte. The relevant end of the command is after the count byte. Once the initial RDATAC command has entered continuous mode, obtain subsequent results by clocking them out after DRDY goes low. Check what the controller sends on DIN while it receives each frame. Figure 32 explains that an input byte matching SDATAC or RESET can terminate continuous readout. Do not treat any filler value produced by an SPI library as suitable without checking it.
Capture CS, SCLK, DIN, DOUT and DRDY. With only four inputs, use CS, SCLK, DIN and DRDY to find the gap first, then add DOUT in a separate capture to verify the data frame. Protocol decoding is useful for identifying the command. Use time cursors on the actual edges to measure the interval. A driver may signal completion when its transmit buffer empties, before the last bit has left the peripheral. Starting a software delay at that event can leave less than the required time at the ADC pins.
Use CLKIN for the wait and SCLK for the shift time
At an illustrative 7.68 MHz master clock, each period is about 0.130208 µs. The 50-cycle limit is about 6.510 µs. At the alternative 3.84 MHz clock used in a data-rate example in the data sheet, the wait becomes about 13.021 µs. An 8 µs firmware delay leaves roughly 1.490 µs on paper at nominal 7.68 MHz and falls short by roughly 5.021 µs at 3.84 MHz. Set the production wait using the slowest permitted ADC master clock and the shortest realized delay on the host. Check oscillator tolerance, rounding to processor timer ticks and the effect of the controller's transmit timing at the pins.
The timing table gives a minimum SCLK period of four CLKIN periods. At 7.68 MHz, this is about 520.8 ns, a maximum of roughly 1.92 MHz based on period alone. The table also requires at least 200 ns for each SCLK high and low time. A 2 MHz host clock has a 500 ns period and misses the period requirement even when its duty cycle meets the separate pulse-width requirements. Check how far DIN is valid around the falling edge and how long DOUT takes to become valid after a rising edge. Clock rate, pulse width and the receiver's sampling edge all belong in the test record.
Work out whether one result fits before the next update
Assume a 7.68 MHz master clock and 30,000 samples per second. The update interval is about 33.33 µs. At a 1 MHz SPI clock, conservatively reserving 32 full cycles for the command and payload gives 32 µs. Adding the 6.510 µs delay gives about 38.51 µs, before final CS timing, interrupt latency or the data-valid boundary around the next update. This schedule cannot retrieve every sample. At 1.5 MHz the 32-cycle reservation is about 21.33 µs, or about 27.84 µs with t6. Verify the remaining time using the real edges, the valid data window and the worst-case task load. If continuous full-rate capture is required, also evaluate continuous readout or a lower data rate, and state whether the application can tolerate a dropped result.
Start verification at a manageable ADC data rate with two known DC input levels inside the allowed input range. Record multiple DRDY events, the last command edge, the first read edge and each raw result. Check the shortest t6, the clock pulse widths, the frame length and whether the expected input change appears in the codes. Repeat with the intended production settings for the clocks, firmware optimization and interrupt load. A debug message can widen one transaction by accident, while lowering the serial clock can help another timing constraint without solving a missing command delay.
On the same hardware, hold the input and data rate fixed and compare two compliant delays, such as 8 µs and 12 µs at the nominal 7.68 MHz. If the longer delay still produces errors, check whether CS rises between calls and read back the STATUS bit-order setting. If both captures work, qualify the shortest actual gap across the clock tolerance and firmware load. Two good bench traces do not replace the timing limit.
Keep the full clock-source code, measured CLKIN and SCLK, read mode, shortest command-to-data delay and missed-result count at the target data rate in the qualification record. When the clock source changes, the old capture gives engineering a way to tell whether the master clock changed the timing budget, chip select cut the transaction short or readback extended past the next result.
Manufacturer reference · Texas Instruments ADS1255/ADS1256 Rev. K, Figure 1 and Figures 30–34
