SLASFB2 November 2023 AFE432A3W , AFE532A3W
PRODUCTION DATA
Refer to the PDF data sheet for device specific package drawings
An SPI access cycle for AFEx32A3W is initiated by asserting the SYNC pin low. The serial clock, SCLK, can be a continuous or gated clock. SDI data are clocked on SCLK falling edges. The SPI frame for AFEx32A3W is 24 bits long. Therefore, the SYNC pin must stay low for at least 24 SCLK falling edges. The access cycle ends when the SYNC pin is deasserted high. If the access cycle contains less than the minimum clock edges, the communication is ignored. By default, the SDO function is not enabled (three-wire SPI). In the three-wire SPI mode, if the access cycle contains more than the minimum clock edges, only the first 24 bits are used by the device. When SYNC is high, the SCLK and SDI signals are blocked, and SDO becomes Hi-Z to allow data readback from other devices connected on the bus.
Table 6-11 and Figure 6-15 describe the format for the 24-bit SPI access cycle. The first byte input to SDI is the instruction cycle. The instruction cycle identifies the request as a read or write command and the 7-bit address that is to be accessed. The last 16 bits in the cycle form the data cycle.
BIT | FIELD | DESCRIPTION |
---|---|---|
23 | R/W | Identifies the communication as a read or write command to the address register: R/W = 0 sets a write operation. R/W = 1 sets a read operation |
22-16 | A[6:0] | Register address: specifies the register to be accessed during the read or write operation |
15-0 | DI[15:0] | Data cycle bits: If a write command, the data cycle bits are the values to be written to the register with address A[6:0]. If a read command, the data cycle bits are don't care values. |
Read operations require that the SDO function is first enabled by setting the SDO-EN bit in the INTERFACE-CONFIG register. This configuration is called four-wire SPI. A read operation is initiated by issuing a read command access cycle. After the read command, a second access cycle must be issued to get the requested data. Table 6-12 and Figure 6-16 show the output data format. Data are clocked out on the SDO pin either on the falling edge or rising edge of SCLK according to the FSDO bit (see also Figure 5-3).
BIT | FIELD | DESCRIPTION |
---|---|---|
23 | R/W | Echo R/W from previous access cycle |
22-16 | A[6:0] | Echo register address from previous access cycle |
15-0 | DI[15:0] | Readback data requested on previous access cycle |
The daisy-chain operation is also enabled with the SDO pin. Figure 6-17 shows that in daisy-chain mode, multiple devices are connected in a chain with the SDO pin of one device is connected to SDI pin of the following device. The SPI host drives the SDI pin of the first device in the chain. The SDO pin of the last device in the chain is connected to the POCI pin of the SPI host. In four-wire SPI mode, if the access cycle contains multiples of 24 clock edges, only the last 24 bits are used by the device first device in the chain. If the access cycle contains clock edges that are not in multiples of 24, the SPI packet is ignored by the device. Figure 6-18 describes the packet format for the daisy-chain write cycle.