cancel
Showing results for 
Search instead for 
Did you mean: 

Using SPI Read more than one byte of data from slave device

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 is a slave device. Master will send command which is of 1-byte to read data from slave device. And slave will respond 2-bytes of data. So while sending command do i need to send command of 2-byte ?

3 REPLIES 3
S.Ma
Principal

Because telepathic support is yet to be deployed, help the humble mortals by telling which pressure sensor we are talking about, and if it is 3 or 4 wire SPI.

DOman.1
Associate II

I am using SMP580 pressure sensor.

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

DOman.1
Associate II

any suggestions ??