SPRADK7 March 2026 TMS320F280039C
The A-Format frames are transferred via the SPI peripheral. For each communication cycle, the command fields are first filled into the TX FIFO, then the encoder response is received in the RX FIFO.
The fields in A-Format are 18-bit. To fill the 18-bit fields into the SPI FIFO, each field is split into two 9-bit half-fields. Accordingly, the width of the FIFO is set to 9 bits. The following figure illustrates the splitting of 18-bit A-Format fields into 9-bit SPI FIFO entries. Taking the CDF0 command as an example: the controller sends one 18-bit field to the encoder, and the encoder responds with three 18-bit fields. Therefore, the depth of the TX FIFO is set as 2 and the depth of the RX FIFO depth is set to 6 entries
The number of fields to transfer and receive may vary depending on the command. The user should change the depth of the TX and RX FIFO accordingly. When adjusting the FIFO depth based on different commands, the SPI peripheral configuration (FIFO depth register) and CLB logic (transmit/receive sequence control) must be modified consistently to ensure synchronization.
Figure 2-2 Splitting A-Format Fields to SPI FIFO