cancel
Showing results for 
Search instead for 
Did you mean: 

lis2dw12 sensor SPI CPHA and CPOL setting

basavanagouda
Associate II

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

2 REPLIES 2
basavanagouda
Associate II

Hi,

any one know the answer for this ?

Miroslav BATEK
ST Employee

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