Hi, I am using BMA222E Accelerometer for motion detection in one of our project.I2C communication is used. Intention behind the Accelerometer usage is only for motion detection. Below are the set of registers used for device Initialization. ((0x11), 0x00); ((0x14), (0xB6)); Waitms(3); //wait for 3 milli seconds ((0x19), 0x00); ((0x24),0x00); Waitms(5); //wait for 5 milli seconds ((0x10), (0x0E)); ((0x13),(0x40)); ((0x25),0x04); ((0x0F), (0x03)); ((0x26),0x48); ((0x36),((0x01)|(0x02)|(0x04))); ((0x17), ((0x01)|(0x02)|(0x04))); ((0x11),((0x40)|(0x1A))); ((0x19), (0x02)); Waitus(500); //wait for 500 micro seconds ((0x24),0x40); Waitus(500); //wait for 500 micro seconds U8 tLowPowerReg = (U8)(read((0x11))); //read the register content tLowPowerReg &= ~(0x80); tLowPowerReg |= (0x40); Waitus(500); //wait for 500 micro seconds ((0x11), tLowPowerReg); Waitus(500); //wait for 500 micro seconds After the above initialization part, Accelerometer is raising an interrupt even the chip is stand still without any motion and state of the interrupt pin will high for at least 200ms and after it is cleared. This behavior is seen consistently. I have no idea to avoid the false interrupt which is getting immediately after the device initialization. Could you please correct me what is wrong in my initialization part.
... View more