cancel
Showing results for 
Search instead for 
Did you mean: 

Questions about the interrupt config for Lis3dx

Kefei Yao
Associate III
Posted on April 08, 2018 at 08:26

1) CTRL_REG3 (22h)

Can I set both I1_IA1 and I1_IA2? 

0690X0000060ASxQAM.png

2) What is I1_321DA? 

3) Our project uses two threshold, one for stronger force (e.g. collision), the other for weaker force (e.g. impact). I assume I should set INT1_THS and IT2_THS to the high/low threshold. But should I use both event on INT1 or separately e.g. INT1 for high event and INT2 for low event? 

4) If INT1_THS is set to high threshold and INT2_THS is set to low threshold. The duration is set to same. So the trigger will satisfy INT2_THS firstly then IT1_THS. In this case, will the lis3x device generate two interrupt with IA1 first and IA2 second?

0690X0000060APaQAM.png0690X0000060ATHQA2.png
1 ACCEPTED SOLUTION

Accepted Solutions
Miroslav BATEK
ST Employee
Posted on April 09, 2018 at 10:02

1) Yes, but to what caused the interrupt you have to read INT1_SRC and INT2_SRC registers.

2) It is data ready signal for the auxiliary ADC

3) You can use both ways.

4) Two interrupts will be generated, if the acceleration peak will happen quickly within one ODR the interrupts will be generated at the same time.

View solution in original post

3 REPLIES 3
Miroslav BATEK
ST Employee
Posted on April 09, 2018 at 10:02

1) Yes, but to what caused the interrupt you have to read INT1_SRC and INT2_SRC registers.

2) It is data ready signal for the auxiliary ADC

3) You can use both ways.

4) Two interrupts will be generated, if the acceleration peak will happen quickly within one ODR the interrupts will be generated at the same time.

Posted on April 09, 2018 at 13:15

Thanks for the reply.

For 4), you mentioned '

if the acceleration peak will happen quickly within one ODR the interrupts will be generated at the same time.'. In this case, will the MCU get one single interrupt or two separate interrupts at same time?
Posted on April 09, 2018 at 14:59

If you enable interrupts on both pins INT1 and INT2 the MCU will get two interrupts.