cancel
Showing results for 
Search instead for 
Did you mean: 

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

AOnet.1
Associate II

SPI_MODE0 (0, 0)

SPI_MODE1 (0, 1)

SPI_MODE2 (1, 0)

SPI_MODE3 (1, 1)

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

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".

View solution in original post

4 REPLIES 4
TDK
Guru

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
Associate II

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
Guru

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
Associate II

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

Thank you!