Skip to main content
Visitor II
June 5, 2014
Question

LIS3DH temperature stuck.

  • June 5, 2014
  • 1 reply
  • 477 views
Posted on June 05, 2014 at 12:24

I try to read both temperature and accelerometer data from LIS3DH. I get accelerometer data but the temperature value is stuck.

I have set both  ADC_PD and TEMP_EN in the TEMP_CFG_REG.

I would like to have some example code that I can follow.

    This topic has been closed for replies.

    1 reply

    sima2Author
    Visitor II
    June 5, 2014
    Posted on June 05, 2014 at 15:12

    Update

    I think I know why it didn't work. I think I sent the register settings to the LIS3DH to early. I think my MCU wakes up faster than the LIS3DH.

    So now when I send the register settings to the LIS3DH I read them all back to really make sure they got changed.

    So now it works.