Which SPI mode (CPOL, CPHA values) should one use with IIS3DWB and IIS2DH sensors?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-09 5:43 AM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-09 6:24 AM
From the first datasheet:
The second device seems to want mode 3 only, or at least doesn't specify.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-09 5:52 AM
From the datasheet:
The device is compatible with SPI modes 0 and 3.
So CPOL=CHPA=0 or CPOL=CPHA=1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-09 6:07 AM
Which datasheet are you referring to?
I could find nothing in either of the two datasheets...
Not sure if I can assume SPI_MODE0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-09 6:24 AM
From the first datasheet:
The second device seems to want mode 3 only, or at least doesn't specify.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-09 6:33 AM
Ahah! Yes, was looking at the wrong revision of the datasheet. Rev 5 does not contain SPI mode...
Thank you!
