H3LIS331DL configuartion issues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-09 7:32 AM
Hi,
I am working with H3LIS331DL sensor . my configuration is as follows
- 1Power on the sensor
- configure the control register 1 with normal power mode and data rate 1000hz
- configure interrupt source1 for data ready interrupt
- 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.- Labels:
-
Accelerometers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-11 10:38 PM
Hi ,
Any one has any update on this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-11 11:00 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-12 12:03 AM
Please share all register values - especially those for interrupts. OR/AND check LIR1, LIR2 bits, etc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-12 12:13 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-12 12:46 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-12 5:17 AM
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- power on the senosr
- CTRL_REG1(20h) configured the value for 0x3F
- CTRL_REG4 (23h) configured the value for 0x80
- CTRL_REG3 [interrupt CTRL register] (22h) configured teh value for 0x02
- here itself i got the date ready interrupt
- sleep 2 msec as per the 1/ODR+1msec for the ODR1000hz as oer the data sheet
- Reading the data and wait for next data ready interrupt
- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-12 6:38 AM
I would try to clear LIR1 - CTRL_REG3 [interrupt CTRL register] (22h) = 0x00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-12 7:50 AM
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 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-12 8:41 AM
I do not have this sensor now - I was thinking about setuping the CTRL_REG3 with a value of 0x00 instead of 0x02.
