2016-12-27 11:23 PM
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.
2016-12-27 11:29 PM
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!