2023-04-23 03:57 AM
I'm using lis2dw12 accelerometer, while using INT1 pin to route interrupts, it's working good, how ever when I route it to INT2 pin, it doesnt work, the configuration I set:
are there any configuration/conflict with other configuration?
Thanks
Solved! Go to Solution.
2023-04-24 03:11 AM
Hi @SHala.2 ,
Welcome to ST Community!
In order to route INT2 pin on INT1 pin you need to turn on the accelerometer in CTRL1 (reg 20h), then to drive the signal on the INT2 pin you need to set the corresponding interrupt bit of the CTRL5_INT2_PAD_CTRL register to 1. To route the INT2 pin signals on the INT1 pin set bit INT2_ON_INT1 = 1 in register CTRL7. This works only for the first 5 interrupts, the last three can be set directly through register CTRL4_INT1_PAD_CTRL. Finally, setting the INTERRUPTS_ENABLE bit in register CTRL7 to '1' you enable the interrupts.
If following these steps it doesn't work, you could set also the BDU (block data update) bit to 1 in the CTRL2 (21h) register.
If my reply answered your question, please click on Select as Best at the bottom of this post to help other users with the same issue to find the answer faster, otherwise please share with me your other settings.
2023-04-24 03:11 AM
Hi @SHala.2 ,
Welcome to ST Community!
In order to route INT2 pin on INT1 pin you need to turn on the accelerometer in CTRL1 (reg 20h), then to drive the signal on the INT2 pin you need to set the corresponding interrupt bit of the CTRL5_INT2_PAD_CTRL register to 1. To route the INT2 pin signals on the INT1 pin set bit INT2_ON_INT1 = 1 in register CTRL7. This works only for the first 5 interrupts, the last three can be set directly through register CTRL4_INT1_PAD_CTRL. Finally, setting the INTERRUPTS_ENABLE bit in register CTRL7 to '1' you enable the interrupts.
If following these steps it doesn't work, you could set also the BDU (block data update) bit to 1 in the CTRL2 (21h) register.
If my reply answered your question, please click on Select as Best at the bottom of this post to help other users with the same issue to find the answer faster, otherwise please share with me your other settings.
2023-04-24 03:39 AM
Thanks!