Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
Question: Do you have any suggestions for optimizing SPI bus transactions?
The Receive ISR typically requires reading the Receive Interrupt Status, Receive Data and Receive Valid registers. These registers are consecutive allowing burst reads (using the auto-increment bit in the SPI address). Using the burst read method reduces the SPI transaction from six bytes to four (writing the address of the Receive Interrupt Status Register followed by reading the Receive Interrupt Status, Receive Data and Receive Valid). If the Valid Data bit is set in the Receive Interrupt Status Register all eight bits in the Receive Data are valid; therefore it is unnecessary to read the Receive Valid Register, reducing the SPI transaction to three bytes.