Skip to main content
Visitor II
January 3, 2020
Question

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

  • January 3, 2020
  • 3 replies
  • 1492 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 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 ?

    This topic has been closed for replies.

    3 replies

    Visitor II
    January 3, 2020

    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.1Author
    Visitor II
    January 6, 2020

    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.1Author
    Visitor II
    January 7, 2020

    any suggestions ??