FAQ

FAQ

What is the function of M480 SPI half-duplex mode? How to use it?  Issue Date:2018-01-15

The M480 SPI supports full-duplex mode and half-duplex mode. When an external SPI device is connected only for one-way reception or transmission, the half-duplex mode can be used, so that another unused SPI pin can be used for other functions. This allows for more flexible pin assignment.

User can set HALFDPX (SPIx_CTL [14]) register to enable half-duplex mode. The SPI transfer direction can be set via the DATDIR (SPIx_CTL [20]) register. In addition, when half-duplex mode is enabled or disabled, the data in the TX and RX FIFO will be automatically cleared.

Products:
Applications:
Function: Peripherals,ARM,Cortex-M4,Connectivity,SPI