cancel
Showing results for 
Search instead for 
Did you mean: 

STM8 SPI slave device data read

DOman.1
Associate II

Hi,

I want to read more than one byte of data from slave device. I am using STM8AF family micrcontroller in master mode and pressure sensor SMP580 is a slave device. Master will send command which is of 1-byte to read 16 bit data from slave device. And slave will respond 2-bytes of data. So while sending command do i need to send request of 1byte or 2-byte ?

It is 4 wire spi (MOSI,MISO,CLK,CS). If i send command only 1 byte command does the slave will send responce of 2byte ?

0 REPLIES 0