Skip to main content
AOnet.1
Associate
September 9, 2020
Solved

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

  • September 9, 2020
  • 4 replies
  • 1439 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

TDK
September 9, 2020

From the datasheet:

The device is compatible with SPI modes 0 and 3.

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

"If you feel a post has answered your question, please click ""Accept as Solution""."
AOnet.1
AOnet.1Author
Associate
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.

TDK
TDKBest answer
September 9, 2020

From the first datasheet:

0693W000003RBFSQA4.png

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

"If you feel a post has answered your question, please click ""Accept as Solution""."
AOnet.1
AOnet.1Author
Associate
September 9, 2020

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

Thank you!