Skip to main content
DOman.1
Associate II
Question

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

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

    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
    DOman.1Author
    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
    DOman.1Author
    Associate II

    any suggestions ??