cancel
Showing results for 
Search instead for 
Did you mean: 

circuit design about LIS2DH12

Shuyu Ma
Associate II
Posted on December 28, 2016 at 08:23

I am designing circuit using LIS2DH12. I want to use the I2c, so I connect Cs to high level, and SA0 to GND. I am not sure if CS should be connected to Vdd, or Vdd_IO. As I understand it, Cs should be connected to Vdd_IO. But I am not sure, so I ask this question, and I need help.

1 REPLY 1
Seb
ST Employee
Posted on December 28, 2016 at 08:29

Usually all digital pins are going to VDDIO and the internal analog front end portion uses the VDD.

If you need to test the chipset, make sure you have external pull-up resistors on VDDIO.

Shall you need simple test, use

https://community.st.com/0D50X00009XkW1mSAF

First test is to check the Slave address acknowledge properly.

Then test reading back the WHO_AM_I register

And remember to read or write multiple bytes, the sub address bit 7 must be set...

Good luck!