AM64x MCU+ SDK  07.03.00
MCSPI Performance

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 32 bits.
  • SPI CLK Frequency used is 1/12/48 MHZ.
  • Number of Words is 1024.
  • Data is transmitted on D0 pin.
  • Data transmission is in polled mode.

Supported Combinations

Parameter Value
CPU + OS r5fss0-0_freertos
r5fss0-0_nortos
m4fss0-0_nortos
Toolchain ti-arm-clang
Board am64x-evm
Example folder examples/drivers/mcspi/mcspi_performance

Steps to Run the Example

See Also

MCSPI

Sample Output

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

r5fss0-0_nortos app log:

[MCSPI] Performance Example Started...
----------------------------------------------------------
McSPI Clock 48000000 Hz
----------------------------------------------------------
Data Width Data Length Transfer Time (micro sec)
32 1024 819
----------------------------------------------------------
All tests have passed!!

r5fss0-0_freertos app log:

[MAIN_Cortex_R5_0_0] [MCSPI] Performance Example Started...
----------------------------------------------------------
McSPI Clock 1000000 Hz
----------------------------------------------------------
Data Width Data Length Transfer Time (micro sec)
32 1024 32097
----------------------------------------------------------
All tests have passed!!

m4fss0-0_nortos app log:

[BLAZAR_Cortex_M4F_0] [MCSPI] Performance Example Started...
----------------------------------------------------------
McSPI Clock 12000000 Hz
----------------------------------------------------------
Data Width Data Length Transfer Time (micro sec)
32 1024 2826
----------------------------------------------------------
All tests have passed!!