cancel
Showing results for 
Search instead for 
Did you mean: 

LIS3DH Using Two Interrupts

XSong.15
Associate

Hi,

I am trying to enable free-fall interrupt on INT1 and wake-up on INT2. However only free-fall on INT1 works. Here are the register settings:

CTRL_REG1 = 0x6F // 200Hz ODR, enable XYZ

CTRL_REG2 = 0x00 // disbale HP filter

CTRL_REG3 = 0x40 // IA1 Interrupt on INT1

CTRL_REG4 = 0x30 // +- 16g FS

CTRL_REG5 = 0x0A // latch both interrupts

INT1_THS = 0x02 // 372mg threshold for free-fall

INT1_DURATION = 0x03

INT1_CFG = 0x95 // setup free-fall

CTRL_REG6 = 0x02 // IA2 Interrupt on INT2

INT2_THS= 0x10 // wake-up threshold 3g

INT2_DURATION = 0x00

INT2_CFG = 0x2A // setup wake-up

I suspect it has to do with CTRL_REG6. I'm assuming "interrupt 2" refers to the interrupt selected in INT2_CFG, which in this case is wake-up?

Regards,

Kevin S

1 ACCEPTED SOLUTION

Accepted Solutions
Miroslav BATEK
ST Employee

The CTRL_REG6 should be set to 0x20 to enable Interrupt 2 generator on INT2 pin.

View solution in original post

1 REPLY 1
Miroslav BATEK
ST Employee

The CTRL_REG6 should be set to 0x20 to enable Interrupt 2 generator on INT2 pin.