Skip to main content
basavanagouda
Associate III
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

    Hi,

    any one know the answer for this ?

    ST Employee

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