Skip to main content
Visitor II
January 26, 2018
Solved

LIS2DW12 i2C communication issues

  • January 26, 2018
  • 2 replies
  • 2641 views
Posted on January 26, 2018 at 10:45

Hi to all,

We are usin this accel over i2c with this configuration:

* Separate VDD and VDDIO (this one is attached to CS).

* SDA and SCL are mounted with a external pull up resistor of 10K.

* SDO/SA0 is left unconnected (it is supposed to have an internall pull up).

Is there any power up sequence to ensure the i2c mode is properly configured/selected? Any delay between VDD and VDDIO?

Powering up both lines to 3V, the VDDIO is not 3V, its in 1.9V or similar. If we disconnect CS from VDDIO. In CS we get a '0' and in VDDIO 3V. Is this normal? And the internall pull up resistor does not lift the pin to high?

Is there any example of how to connect the accel for i2c communications? any keynote for the power up?

Attached is an image of the mounted sensor were the marking is a dot, a datamatrix and a 'T'.

Thanks in advance for your help.

#lis2dw12 #i2c
    This topic has been closed for replies.
    Best answer by Miroslav BATEK
    Posted on January 29, 2018 at 10:14

    The schematics is OK, but I compered your schematic, the image of your board and pin out in datasheet, I see they are not aligned.

    I added the pin description in your picture and I see for example the CS and SDO pins are connect to your interrupt circuit. So most of the pins have wrong connection. 

    0690X00000609XNQAY.png

    Can you please double check your sensor footprint and layout of the boards?

    2 replies

    Visitor II
    January 26, 2018
    Posted on January 26, 2018 at 11:06

    Here you have a better image:

    0690X00000604IdQAI.jpg
    ST Employee
    January 26, 2018
    Posted on January 26, 2018 at 12:51

    The behavior of CS pin is not normal

    Can you please check that the CS pin is not shorted with GND? It seems to me it is.

    You can power up both VDD and VDDIO at the same time.

    Visitor II
    January 26, 2018
    Posted on January 26, 2018 at 13:17

    CS pin and GND are not shorted.

    When using a 10k resistor to conect CS to VDDIO the captured oscilo image is the attached one.

    pink: SDA

    blue: CS

    green: SCL

    ________________

    Attachments :

    tek00007.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxpP&d=%2Fa%2F0X0000000b43%2FKJUqC5f4DBbw653uvg2BuwGrtpv8wR6.lF4JYmmKNIQ&asPdf=false
    Visitor II
    January 30, 2018
    Posted on January 30, 2018 at 08:52

    You are right, the datasheet specifies the pinout seen from the bottom and we didnt realize it.

    We have flipped the component and mounted it properly to check that with right connection the sensor works.

    Thanks for your help!