What is the function of M480 SPI half-duplex mode? How to use it?

Post Reply
a_ziliu
Posts: 208
Joined: 20 Mar 2017, 10:52

31 May 2021, 15:47

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.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests