AnsweredAssumed Answered

MPL3115A2 Interrupt problem

Question asked by Benjamin Lucke on Nov 3, 2014
Latest reply on Nov 3, 2014 by Benjamin Lucke

Hy,

 

 

we are using the MPL3115A2 but have a problem while using INT1 in altimeter threshold with window. When the interrupt occurs we read out the INT_SOURCE register, but it's always empty. We have the following configuration:

 

 

Enable the sensor:

 

 

  1. write value 0x00 to reg 0x26. read 0x26 value 0x00. read 0x26 value 0x00.
  2. write value 0x00 to reg 0x27.
  3. write value 0x20 to reg 0x28.
  4. write value 0x00 to reg 0x29.
  5. write value 0x00 to reg 0x2A. read 0x27 value 0x00.
  6. write value 0x98 to reg 0x26. read 0x26 value 0x98.
  7. write value 0x05 to reg 0x13. read 0x12 value 0x05. read 0x26 value 0x98.
  8. write value 0x1A to reg 0x26. read 0x26 value 0x1A. read 0x26 value 0x18. read 0x00 value 0xB0

 

 

Then we activate the interrupt:

 

 

  1. write value 0x00 to reg 0x26. read 0x26 value 0x00. read 0x26 value 0x00.
  2. write value 0x00 to reg 0x16.
  3. write value 0x00 to reg 0x17.
  4. write value 0x00 to reg 0x19.
  5. write value 0x00 to reg 0x1A.
  6. write value 0x00 to reg 0x27.
  7. write value 0x20 to reg 0x28.
  8. write value 0x28 to reg 0x29.
  9. write value 0x28 to reg 0x2A.
  10. write value 0x28 to reg 0x27.
  11. write value 0xA9 to reg 0x26. read 0x26 value 0xA9.
  12. write value 0x05 to reg 0x13. read 0x12 value 0x05. read 0x26 value 0xA9. read 0x26 value 0xA9.
  13. write value 0xA9 to reg 0x26. read 0x26 value 0x2B. read 0x26 value 0x2B.
  14. write value 0x29 to reg 0x26. read 0x00 value 0x40.

 

 

When the interrupt occurs we read the INT_SOURCE register and get always the value 0x00.

Outcomes