Hi,
Thanks for your inquiry.
I tried your pseudo code on my eval. board and I can see the pulse on INT1 pin when I tap the board to trigger the wakeup interrupt. BMA400 automatically switches from low power mode at 25Hz ODR to normal mode at 200Hz ODR. After a short while stationary BMA400 automatically switches back to low power mode. If you write value of 0x04 to register 0x22 to map Gen1 interrupt to INT2 pin, then you should see the falling edge on INT2 pin as shown in the attached picture because INT2 pin is set to active-low in your pseudo code below.
Thanks.
... View more