Skip to main content
Visitor II
September 9, 2020
Solved

Which SPI mode (CPOL, CPHA values) should one use with IIS3DWB and IIS2DH sensors?

  • September 9, 2020
  • 4 replies
  • 1409 views

SPI_MODE0 (0, 0)

SPI_MODE1 (0, 1)

SPI_MODE2 (1, 0)

SPI_MODE3 (1, 1)

    This topic has been closed for replies.
    Best answer by TDK

    From the first datasheet:

    0693W000003RBFSQA4.png

    The second device seems to want mode 3 only, or at least doesn't specify.

    4 replies

    Super User
    September 9, 2020

    From the datasheet:

    The device is compatible with SPI modes 0 and 3.

    So CPOL=CHPA=0 or CPOL=CPHA=1.

    AOnet.1Author
    Visitor II
    September 9, 2020

    Which datasheet are you referring to?

    I could find nothing in either of the two datasheets...

    Not sure if I can assume SPI_MODE0.

    TDKAnswer
    Super User
    September 9, 2020

    From the first datasheet:

    0693W000003RBFSQA4.png

    The second device seems to want mode 3 only, or at least doesn't specify.

    AOnet.1Author
    Visitor II
    September 9, 2020

    Ahah! Yes, was looking at the wrong revision of the datasheet. Rev 5 does not contain SPI mode...

    Thank you!