Hello, There is the problem actually. Does not matter if i configure latched or non-latched interrupt. The wake-up interrupt i get is like the spikes in your attachment. So there is no stable state for the given amount of time, just spike up or down and interrupt goes-off. I guess i didn't express myself clearly enough. So my aim is; Configure auto low-power and auto wake-up write 0x02 => 0x19 (ACC_CONFIG0.power_mode.b10) // NORMAL MODE
write 0x04 => 0x1F (INT_CONFIG0.gen1_int_en) // GEN1 INTERRUPT ENABLE
write 0x02 => 0x2D (AUTOWAKEUP_1.wkup_int.b1) // WKUP INT ENABLE
write 0x01 => 0x21 (INT1_MAP.wkup_int1.b1) // WKUP INT MAPPED TO INT1
write 0x02 => 0x2B (AUTOLOWPOW_1.gen1_int.b1) // GEN1 INTERRUPT TRIGGER AUTO LOW POWER When the sensor is in steady state(as in no motion present and in low power mode) I'd like to have low on INT1(WAKEUP1) pin When there is motion present, I'd like to have high level following a rising edge on INT1(WAKEUP1) pin write 0x80 => 0x20 (INT_CONFIG1.latch_int.b1) // INTERRUPT LATCHED
write 0x02 => 0x24 (INT12_IO_CTRL.int1_lvl.b1) // INT1 LEVEL HIGH When the motion stops, I'd like to have high level on INT1 pin to go on desired amount of time write 0x00 => 0x42 (GEN1INT_CONFIG3.gen1_int_dur_15_8.b00000000) // GEN1 INTERRUPT DURATION HIGH 0
write 0x64 => 0x43 (GEN1INT_CONFIG31.gen1_int_dur_7_0.b01100100) // GEN1 INTERRUPT DURATION LOW 100 At least that is what i thought my configuration (the document referring to) is doing. If I cannot (as it is not possible) program the sensor to work this way, I'll have to make it work in normal mode all the time, because I'd achieved that configuration without any problems. But what i understand from the documents and forum discussions it could be done. Are there any onther application notes you can direct me maybe? Because I cannot see where the problem is stuck in this state. Thanks in advance. Nana
... View more