Search code examples
embeddedi2c

what is si7021 sensor i2c command sequence


From the manual shown bellow the address is 0x40 the measure temperature command 0xE3.

From the readback diagram first master sends slave address and measure command,then We send slave Adress.

But we cant see in the diagram  where is the measured data,how it transfered back? The manual doesnt say what is MS Byte,MS Byte. Thanks.  https://www.silabs.com/documents/public/data-sheets/Si7021-A20.pdf enter image description here

enter image description here

enter image description here


Solution

  • The measured data is contained in the MS Byte and the LS Byte. The measured data is a two-byte value. MS Byte is the most significant byte. LS Byte is the least significant byte.

    In the diagram, the unshaded cells represent data transmitted from the master to the slave. And shaded cells represent data received by the master from the slave.