JAJSL29 September 2021 ADS131B02-Q1
PRODUCTION DATA
SPI communication on the ADS131B02-Q1 is performed in frames. Each SPI communication frame consists of several words. The word size is configurable as either 16 bits, 24 bits, or 32 bits by programming the WLENGTH[1:0] bits in the MODE register.
The interface is full duplex, meaning that the interface is capable of transmitting data on DOUT while simultaneously receiving data on DIN. The input frame that the host sends on DIN always begins with a command. The first word on the output frame that the device transmits on DOUT always begins with the response to the command that was written on the previous input frame. The number of words in a command depends on the command provided. For most commands, there are four words in a frame. On DIN, the host provides the command, the command CRC if input CRC is enabled or a word of zeros if input CRC is disabled, and two additional words of zeros. Simultaneously on DOUT, the device outputs the response from the previous frame command, two words of ADC data representing the two ADC channels, and a CRC word. Figure 8-14 shows a typical command frame structure.
There are some commands that require more or less than words. In the case of a read register (RREG) command where more than a single register is read, the response to the command contains the acknowledgment of the command followed by the register contents requested, which may require a longer frame depending on how many registers are read. See the RREG command section for more details on the RREG command.
In the case of a write register (WREG) command where more than a single register is written, the frame extends to accommodate the additional data. See the WREG command section for more details on the WREG command.
See the Section 8.5.3 section for a list of all valid commands and their corresponding responses on the ADS131B02-Q1.
Under special circumstances, a data frame can be shortened by the host. See the Section 8.5.1.8 section for more information about artificially shortening communication frames.