SBASB74 October 2024 ADS127L21B
PRODUCTION DATA
In simultaneous-sampling systems with multiple ADCs, a daisy-chain string connection reduces the number of SPI I/Os to the host controller. A daisy-chain connection links the SPI output of one device to the SPI input of the next device. This connection results in the chained devices appearing as a single logical device to the host controller. There is no special programming required for daisy-chain operation, simply apply additional shift clocks to access all devices in the chain. For simplified operation, program the same SPI frame size for each device. For example, when enabling the CRC option of all devices, thus producing a 32-bit frame size.
Figure 7-42 illustrates four devices connected in a daisy-chain configuration. The SDI of ADS127L21B (1) connects to the host SPI data out, and SDO/DRDY of ADS127L21B (4) connects to the host SPI data input. The shift operation is simultaneous for all devices in the chain. After each ADC completes the conversion data shifting, the shifted-in data of SDI appears on SDO/DRDY. This pin then drives the SDI of the next device in the chain. The shift operation continues until the last device in the chain is reached. The SPI frame ends when CS is taken high, at which time the data shifted into each device is interpreted. Program the SDO/DRDY pin to data-output-only mode.
Figure 7-43 shows the 24-bit frame size of each device used at initial communication after device power up.
To input data, the host first shifts in the data intended for the last device in the chain. The number of input bytes for each ADC is sized to match the output frame size. The default frame size is 24 bits, so initially each ADC requires three bytes by prefixing a pad byte before the two command bytes. The input data of ADC (4) is first, followed by the input data of ADC (3), and so forth.
Figure 7-44 illustrates the detailed input data sequence for the daisy-chain write register operation of Figure 7-42. 40-bit frames for each ADC are shown (24-bits of data, with the STATUS and CRC bytes enabled). Command operations are potentially different for each ADC. The read register operation requires a second frame operation to read out register data.
Figure 7-45 shows the clock sequence to read conversion data from the device connection provided in Figure 7-42. This example illustrates a 32-bit output frame (24-bits of data, with the CRC byte enabled). The output data of ADC (4) is first in the sequence, followed by the data of ADC (3), and so on. The number of bits per frame multiplied by the number of devices in the chain is the number of clocks required to shift out data. In this example, 32-bit output frames × four devices result in 128 total clocks.
The maximum number of devices connected in daisy-chain configuration is limited by the SCLK signal frequency, data rate, and number of bits per frame. Equation 22 calculates the maximum number of devices allowed in a chain. The same limitation applies to parallel-connected SPI because the data from each ADC is also read in series.
For example, the maximum number of daisy-chain connected devices is the floor of: ⌊20 MHz / (100 kHz · 32)⌋ = 6. Assuming fSCLK = 20 MHz, fDATA = 100 kSPS, and 32-bit frames are used.