Skip to main content
Visitor II
February 9, 2018
Question

H3LIS331DL configuartion issues

  • February 9, 2018
  • 4 replies
  • 2986 views
Posted on February 09, 2018 at 16:32

Hi,

I am working with H3LIS331DL sensor . my configuration is as follows

  1. 1Power on the sensor
  2. configure the control register 1 with normal power mode and data rate 1000hz
  3. configure interrupt source1 for data ready interrupt
  4. GPIO call back registered for data ready interrupt.

This scenario is working fine. we are sampling after getting the data ready interrupt.

I have some special cases where i am facing some issues.

if there is some delay in step 2 and step 3 due to some other register configuration example configuring thecontrol register 4 then (in between step 2 and 3)i am not getting the data ready interrupt. This is one issue.

Next one is after step 4 if get data ready interrupt in case if i delayed to clear the data ready interrupt by reading the data for more than 3 msec then next data ready interrupt is not triggering.

could you help me is there is sequence needs to be followed?

or what could be the reason for the above 2 issues.

thanks in advance.

with Regards,

Thangaraj.P

Note: this post was migrated and contained many threaded conversations, some content may be missing.
    This topic has been closed for replies.

    4 replies

    Visitor II
    February 12, 2018
    Posted on February 12, 2018 at 07:38

    Hi ,

    Any one has any update on this?

    Visitor II
    February 12, 2018
    Posted on February 12, 2018 at 08:00

    I have only experience with LIS33DE.

    Stupid question. Have you explicitly enabled the CTRL_REG1 (20h) Xen-Zen bits. You have not mentioned it. For your case the register value should be 0x2F.

    Visitor II
    February 12, 2018
    Posted on February 12, 2018 at 08:03

    Please share all register values - especially those for interrupts. OR/AND check LIR1, LIR2 bits, etc

    Visitor II
    February 12, 2018
    Posted on February 12, 2018 at 15:38

    I would try to clear LIR1 - CTRL_REG3 [interrupt CTRL register] (22h) = 0x00

    Visitor II
    February 12, 2018
    Posted on February 12, 2018 at 15:50

    Hi,

    sorry..i didnt get what you mean by 'I would try to clear LIR1 - CTRL_REG3 [interrupt CTRL register] (22h) = 0x00'

    are you asking me to check this ?

    Visitor II
    February 12, 2018
    Posted on February 12, 2018 at 16:41

    I do not have this sensor now - I was thinking about setuping the CTRL_REG3 with a value of 0x00 instead of 0x02.

    Visitor II
    February 13, 2018
    Posted on February 13, 2018 at 12:47

    Looks like some the queries answered by ST employees. Please any one from ST can support on this.

    ST Employee
    February 13, 2018
    Posted on February 13, 2018 at 15:06

    Problem 1: There is no reason for that, you can configure anytime you want. I suppose the problem is in the MCU configuration.

    Problem 2: If you configure the ODR to 1000Hz you have to read data within less than 1ms.

    Visitor II
    February 13, 2018
    Posted on February 13, 2018 at 15:24

    Problem 2: If you configure the ODR to 1000Hz you have to read data within less than 1ms.

    As per the data sheet we are giving 2 msec turn on time (1/ODR+ 1msec) after configuring ODR in CTRL_REG1 as well we configured CTRL_REG4 after CTRL_REG1 which took some 500 us for the SPI transaction.

    Now its conflicting the statement ' If you configure the ODR to 1000Hz you have to read data within less than 1ms'  and delay requirement for turn on time as per ODR.