Home | Projects | Notes > MCU Peripheral Drivers > SPI Application 1: Master Only Tx (Blocking) (spi_01_master_only_tx_blocking.c)

SPI Application 1: Master Only Tx (Blocking) (spi_01_master_only_tx_blocking.c)

 

Requirements

 

Code

spi_01_master_only_tx_blocking.c

Path: Project/Src/

 

Testing

The following snapshots are taken using the Logic Analyzer.

 

SPI Transmission when CPOL=0, CPHA=0

The following snapshot shows "Hello world" being transferred through MOSI line.

spi-application-1-logic-analyzer-1

spi-application-1-logic-analyzer-2

 

Try different combinations of CPOL and CPHA and monitor the digital waveform.

 

Note