Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 3 months ago.
ADXL345 : how to set INT1 ?
Hello, I'm trying to set INT1 signal to the ADXL345. My initialization is as following sequence
accelerometer.setPowerControl(0x00); wait(.001); accelerometer.setInterruptEnableControl(0x00); wait(.001); accelerometer.setDataFormatControl(0x0B); wait(.001); accelerometer.setDataRate(0x06); wait(.001); accelerometer.setInterruptEnableControl(0x80); wait(.001); accelerometer.setInterruptMappingControl(0x00); wait(.001); accelerometer.setFifoControl(0x7F); wait(.001); accelerometer.setPowerControl(0x08); wait(.001);
I dont find any pulse on nscope at INT1 pin. Also no pulse at INT2 when accelerometer.setInterruptMappingControl(0x80); Can't figure out the error.