Main Content

SPI

To set SPI parameters, use the SPI options. The pins in the SPI0(default) option are the Arduino® header pins mentioned in https://os.mbed.com/platforms/ for the selected Nucleo board.

Note

For Arduino Uno R3 compatible boards, the pins D0-D15 can be accessed with 0-15 and pins A0-A5 can be accessed with 16 to 21. Other pins on the board are not supported.

Bus speed (in Hz)

This is the maximum bus speed allowed between SPI interfaces (Master/Slaves).

Master output slave input (MOSI) pin

Specify the pin that connects the master output to the slave input.

Master input slave input (MISO) pin

Specify the pin that connects the slave output to the master input.

Clock (SCK) pin

Specify the clock pin for SPI communication.