AM261x MCU+ SDK: MCSPI Loopback Turbo Mode

| AM261x MCU+ SDK 26.00.00 |

MCSPI Loopback Turbo Mode

# Introduction

This example demonstrates the McSPI RX and TX operation configured in Turbo mode.

Turbo mode improves the throughput of the MCSPI interface when a single channel is enabled by allowing transfers until the shift register and the MCSPI_RX_0/1/2/3 register are full. Turbo mode is time saving when a transfer exceeds two words. When several channels are enabled, the TURBO bit has no effect.

This example sends a known data in the TX mode of length APP_MCSPI_MSGSIZE and then receives the same in RX mode. Internal pad level loopback mode is enabled to receive data.To enable internal pad level loopback mode, D0 pin is configured to both TX Enable as well as RX input pin in the SYSCFG.

When transfer is completed, TX and RX buffer data are compared. If data is matched, test result is passed otherwise failed.

# Supported Combinations

# Steps to Run the Example

- When using CCS projects to build, import the CCS project for the required combination and build it using the CCS project menu (see Using SDK with CCS Projects).
- When using makefiles to build, note the required combination and build using make command (see Using SDK with Makefiles)
- Launch a CCS debug session and run the executable, see CCS Launch, Load and Run

# See Also

MCSPI

# Sample Output

Shown below is a sample output when the application is run,

[MCSPI] Loopback example started ...
----------------------------------------------------------
McSPI Clock 50000000 Hz
----------------------------------------------------------
Data Width Data Length Transfer Time (micro sec)
8 128 39.00
----------------------------------------------------------
All tests have passed!!