MCSPI Performance 8 Bit

Introduction

This Master application demonstrates the data transfer in master mode with performance measurment.

  • McSPI is configured in Tx Only mode with FIFO enabled for Tx.

  • Word Length tested is 8 bits.

  • SPI CLK Frequency used is 12 MHZ.

  • Number of Words is 5.

  • Data is transmitted on D0 pin.

  • Data transmission is in polled mode.

To modify the example to use main domain SPI, refer Accessing main and wakeup domain peripherals from MCU domain

Supported Combinations

Parameter

Value

CPU + OS

mcu-r5fss0-0 freertos

CPU + OS

mcu-r5fss0-0 nortos

CPU + OS

wkup-r5fss0-0 freertos

Toolchain

ti-arm-clang

Boards

am62px-sk

Example folder

examples/drivers/mcspi/mcspi_performance_8bit

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)

Attention

As the wake-up R5 is the device manager, it needs to be started by the SBL. So it can not be loaded through CCS. It should be flashed and booted through SBL.

See Also

MCSPI

Sample Output

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

[MCSPI] Performance Example Started...

----------------------------------------------------------
McSPI Clock 50000000 Hz
----------------------------------------------------------
Data Width      Data Length     Transfer Time (micro sec)
8               5                2.40
----------------------------------------------------------
All tests have passed!!