Skip to main content
Pkats.1
Associate III
Jan 25, 2021 12:43 PM UTC
Question

SPI Slave

In my Application, ill use 2 uC stm32h743.

Between both, my plan is to apply a SPI interface, when one of them will be the Master and the second will be the Slave.

My first question is, does the uC can work as Slave? does clk pin can work as input at the slave side?

Second, should i connect Mosi pin of Master uC to Miso pin of Slave uC ?

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
Jan 25, 2021 1:23 PM UTC

> uC can work as Slave?

Yes, if you set it so.

> clk pin can work as input at the slave side?

Yes. Usually denoted as SCK in SPI.

> should i connect Mosi pin of Master uC to Miso pin of Slave uC ?

No. Connect MOSI to MOSI.

Read the SPI chapter in RM.

JW

Pkats.1
Pkats.1Author
Associate III
Jan 25, 2021 1:47 PM UTC

hello,

if the uC could work as Slave, of course MOSI to MOSI. thank you!