cancel
Showing results for 
Search instead for 
Did you mean: 

How to Configure Dual Interrupts on LIS2DW12 Accelerometer with Zephyr (NCS v2.9.0)

manoj_42
Associate II

Hello ST Community,

I’m currently working on a project using the LIS2DW12 accelerometer sensor connected to a Nordic nRF9151 module. The firmware is based on Zephyr RTOS from the Nordic Connect SDK v2.9.0.

For our use case, we need to configure the LIS2DW12 to generate two separate interrupts, for example:

One interrupt for activity/inactivity detection.

Another interrupt for free-fall or motion detection.

I would like to know:

Is it possible to configure and use two independent interrupts from the LIS2DW12 sensor?

If yes, which registers need to be configured and what is the recommended configuration for enabling and mapping two different interrupts (e.g., INT1 and INT2)?

Are there any best practices or constraints to consider when working with dual interrupts on this sensor?

Any guidance, register-level documentation, or example configurations would be greatly appreciated.

Thank you,
Manoj

1 REPLY 1
Federica Bossi
ST Employee

Ciao @manoj_42 ,

Unfortunately, as you can see from the DS (pag.38 / 39) on the INT2 pad you can not route Motion / free-fall or Activity inactivity detection (interrupt function that can only be routed on the INT1 pad. Is it possible to use two independent interrupt but not for the embedded functions you asked for.

However, reading pag 18/19 section 5.2 of the AN you can route multiple signals on the same PIN (in this case PIN INT1) . Then, in order to know which event has generated the interrupt condition, the application should read the proper status register, which also clears the event.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.