Report
2 years, 11 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.

Comment on this question
Be the first to answer this question.

You need to log in to post a question