Files
microchip-application-pec93…/Examples/spi/spi_io_af
2026-02-03 11:37:13 +08:00
..
2026-02-03 11:37:13 +08:00
2026-02-03 11:37:13 +08:00
2026-02-03 11:37:13 +08:00
2026-02-03 11:37:13 +08:00
2026-02-03 11:37:13 +08:00
2026-02-03 11:37:13 +08:00

SPI io alternate function

This example is used to run spi io alternate function.

Hardware and Software environment

  • This example runs on PB5700 devices.

How to use it ?

In order to make the program work, you must do the following:

  • Open your preferred toolchain
  • Rebuild all files and load your image into target memory
  • Set the spi io alternate pin
  • select whether to switch DI DO
  • Run the example

select 0: * spi_clk -- p02 * spi_do -- p03 * spi_di -- p04 * spi_cs -- p05

select 1: * spi_clk -- pa14 * spi_do -- pa15 * spi_di -- pb00 * spi_cs -- pb01

select 2: * spi_clk -- pb02 * spi_do -- pb03 * spi_di -- pb04 * spi_cs -- pb05