cancel
Showing results for 
Search instead for 
Did you mean: 

LIS2DW12 INT1?

vitthal muddapur
Associate II
Posted on June 15, 2018 at 08:28

Hi,

1. Write 64h in CTRL1 // Turn on the accelerometer // ODR = 200 Hz, High-Performance

2. Write 04h in CTRL6 // FS 2 g LOW_NOISE enabled

3. Write 20h in CTRL7 // Do not use low-pass filter for 6D, enable interrupts

4. Write 40h in TAP_THS_X // Set 6D threshold (6D_THS[1:0] = 10b = 60 degrees)

5. Write 80h in CTRL4_INT1_PAD_CTRL // 6D interrupt driven to INT1 pin

 interrupt set in SIXD_SRC register but didn't get any interrupt from INT1 

1 REPLY 1
Miroslav BATEK
ST Employee
Posted on June 19, 2018 at 09:50

You configuration is OK, but the interrupt is active for only 1/ODR time, see following picture.

0690X0000060LJuQAM.png

If you want you can enable latched interrupt by writing 0x10 to CTRL3 register, then the interrupt will stay active until you read the interrupt source register.