cancel
Showing results for 
Search instead for 
Did you mean: 

H3LIS331DL configuartion issues

Thangaraj Ponnusamy
Associate II
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.
21 REPLIES 21
Thangaraj Ponnusamy
Associate II
Posted on February 12, 2018 at 07:38

Hi ,

Any one has any update on this?

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.

Posted on February 12, 2018 at 08:03

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

Posted on February 12, 2018 at 08:13

Hi ,

Thanks for your reponse.

No for this sensor also CTRL_REG1 address is 20h. I have not explicitly enabled. i Read the register and update only power mode and data rate bits then i will write again.

Posted on February 12, 2018 at 08:46

1. Any reason why you update the CTRL_REG1 agian and again?

2. What you put in CTRL_REG1 initially?

3. How the interrupt register are configured?

---------------------

Its is difficult to analyse it without full information what is configured

Posted on February 12, 2018 at 13:17

1. i need to sample accel data every 5 mins. so will power on the sensor configure sample then i will power off. Basically i want to save the power.

2. CTRL_REG1 initially 0x07.

my sequence as follows
  1.  power on the senosr
  2.  CTRL_REG1(20h) configured the value for 0x3F
  3. CTRL_REG4 (23h) configured the value for 0x80
  4. CTRL_REG3 [interrupt CTRL register] (22h) configured teh value for 0x02
  5. here itself i got the date ready interrupt
  6. sleep 2 msec as per the 1/ODR+1msec   for the ODR1000hz as oer the data sheet
  7. Reading the data and wait for next data ready interrupt
  8. Now the data ready interrupt is not generated

Reaming registers i have not touched. its in default values only.

As i mentioned above the LIR1 and LIR2 are defaults values as zero.

If i remove the step 4 then things are working fine.

Please let me know if u need any more inputs.

thanks

Posted on February 12, 2018 at 15:38

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

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 ?

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.