Skip to main content
DOman.1
Associate II
January 8, 2020
Question

STM8 SPI slave device data read

  • January 8, 2020
  • 0 replies
  • 930 views

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 ?

    This topic has been closed for replies.