AN4159
Software
Doc ID 023639 Rev 3
25/27
#ifdef LPS331AP_ENABLE_INT2_PRESSURE_BAND
LPS331AP_WriteByte(LPS331AP_CTRL_REG3_ADDR,0x18); // P High/Low on INT2
#endif
LPS331AP_ReadByte(LPS331AP_INT_SOURCE_ADDR); // to autoclear it for now
return TRUE;
}
Q&A
: “To reduce the I2C traffic and reporting using the differential pressure band interrupt,
once enabled, when the pressure exceeds the threshold an interrupt will be generated.
What is the recommended way of updating the reference pressure?”
●
Once an interrupt is generated, set AUTOZERO again to reinitialize the reference
pressure REF_P to the current value
Q&A
: “How can I disable the differential pressure interrupt and go back to the normal mode
of operation?”
●
To come back to normal operation, either just reset the DIFF_EN bit and write 0x00 on
RIF_P registers, or trigger a SW_RESET.