I’m using MSP430G2553 with LSM303D to a project and I would like to detect Instantaneous movement and free fall. I understand a bit of how it works but I don’t understand interrupt configurations and how it works. My question is:
I configure CTRL1 = 0x57, CTRL3 = 0x20, IG_CFG1 = 0x55.
PTxData = 0x57;// 100hz PTxData = CTRL1; TXByteCtr = 2; Transmit(); a++; PTxData = 0x20; PTxData = CTRL3; TXByteCtr = 2; Transmit(); b++; PTxData = 0x55; //Enable interrupt generation on X,Y,Z low event or direction recognition. PTxData = IG_CFG1; //6-direction movement recognition TXByteCtr = 2; Transmit(); c++; PTxData = 0x01; //TH=50 PTxData = IG_THS1; TXByteCtr = 2; Transmit(); d++; P1IES &= ~ INT1; //I did this configuration to use interrupt.
But my interrupt is never occur. What am I missing?