Skip to main content
basavanagouda
Associate III
December 26, 2018
Question

lis2dw12 sensor SPI CPHA and CPOL setting

Hi all,

I'm using lis2dw12 sensor and interfaced with SPI. In which SPI mode i can get proper data from the sensor?

CPHA = 0, CPOL = 0;

CPHA = 0, CPOL = 1;

CPHA = 1, CPOL = 0;

CPHA = 1, CPOL = 1;

Thanks and regards,

Basavanagouda

    This topic has been closed for replies.

    2 replies

    basavanagouda
    Associate III
    December 31, 2018

    Hi,

    any one know the answer for this ?

    ST Employee
    January 1, 2019

    The correct SPI mode is mode 3 (CPHA = 1, CPOL = 1)