JAJSOS3B September 2023 – September 2023 AMC131M03
PRODUCTION DATA
SPI communication on the AMC131M03 is performed in frames. Each SPI communication frame consists of several words. The word size is configurable as either 16, 24, 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 sent in the previous input frame.
The number of words in a command depends on the command provided. For most commands, there are five 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 three additional words of zeros. Simultaneously on DOUT, the device outputs the response from the previous frame command, three words of ADC data representing the three ADC channels, and a CRC word. If one or several of the ADC channels are disabled, this frame structure of five words still applies, and the data of disabled channels reads all zeros. Figure 8-24 shows a typical command frame structure.
There are some commands that require more than five words. In the case of a read register (RREG) command where multiple registers are read, the response to the command contains the acknowledgment of the command followed by the register contents requested, which can require a larger frame depending on how many registers are read. See the RREG section for more details on the RREG command.
In the case of a write register (WREG) command where multiple registers are written, the frame extends to accommodate the additional data. See the WREG section for more details on the WREG command.
See the Commands section for a list of all valid commands and the corresponding responses on the AMC131M03.
Under special circumstances, a data frame can be shortened by the host. See the Short SPI Frames section for more information about artificially shortening communication frames.