cancel
Showing results for 
Search instead for 
Did you mean: 

SPI 1 line simplex rxonly

n.serina
Associate III

Hello,

How to read data from slave in 1 line rxonly.

I have this set up

STM3f446re board as master and arduino uno as slave

Master and slave are connected through only 2 lines. MISO and NSS.

Master will be in rxonly mode and slave sends data to master over MISO

Slave sends the data in the below format

<start byte><couple of bytes of data><end byte>

I can see master is continuously producing clock as expected .

But since master can sample at any clock edge i dont receive the data in order expected.

How to solve this issue?

Pls help

3 REPLIES 3

SPI is a synchronous bus with the master providing a clock signal. You might want to hook up the clock signal to the slave device.

https://www.embedded.fm/blog/2017/3/24/i-spi

S.Ma
Principal

If not confortable with SPI, start with 4 wires first. NSS, MISO, MOSI, SCK

You still can use normal duplex setup, and not bring out MOSI onto a pin in GPIO (unless you use a 'F1xx).

JW