cancel
Showing results for 
Search instead for 
Did you mean: 

LIS2DH, bad pin configuration?

jartigas
Associate II

0693W000008zEnmQAE.jpgDear ST member,

I attached a piece of my schematics design. Can LIS2DH works with pins 3 (SA0) and 4 (CS) not connected?

Regards

1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

You are using the LIS2DH in I2C mode, where:

  • CS must be set high (see datasheet, sections 3 and 5)
  • SA0 provides the less significant bit of the device address and therefore must be either set high or low, depending on your needs. Set one of the two levels if it is the only device on the I2C and you are not expecting a specific address. Otherwise, see Table 14 in the data sheet.

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Good luck!

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
Peter BENSCH
ST Employee

You are using the LIS2DH in I2C mode, where:

  • CS must be set high (see datasheet, sections 3 and 5)
  • SA0 provides the less significant bit of the device address and therefore must be either set high or low, depending on your needs. Set one of the two levels if it is the only device on the I2C and you are not expecting a specific address. Otherwise, see Table 14 in the data sheet.

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Good luck!

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.