Skip to main content
Visitor II
December 28, 2016
Question

circuit design about LIS2DH12

  • December 28, 2016
  • 1 reply
  • 683 views
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.

    This topic has been closed for replies.

    1 reply

    ST Employee
    December 28, 2016
    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!