English
Language : 

HP203B Datasheet, PDF (14/18 Pages) List of Unclassifed Manufacturers – PRECISION BAROMETER AND ALTIMETER SENSOR
DataSheet
HP203B
6.3 Configure the Interrupts
There are 6 interrupts that can be generated by the device.
6.3.1 PA_RDY
Indicates that the pressure (or altitude) measurement is done and the result is ready to read.
6.3.2 T_RDY
Indicate that the temperature measurement is done and the result is ready to read.
6.3.3 PA_TRAV
Indicate that the pressure (or altitude) value has traversed the middle threshold during the last
measurement.
6.3.4 T_TRAV
Indicate that the temperature value has traversed the middle threshold during the last
measurement.
6.3.5 PA_WIN
Indicate that the pressure (or altitude) value locates outside the pre-defined window (the value in
between the upper bound and lower bound thresholds) during the last measurement.
6.3.6 T_WIN
Indicate that the temperature value locates outside the pre-defined window (the value in between
the upper bound and lower bound thresholds) during the last measurement.
The interrupt names prefixed by a ‘PA’ relate to the pressure (or altitude) measurement. The
interrupt names prefixed by a ‘T’ relate to the temperature measurement. These interrupts are all
active-high and will remain high until the interrupt-clearing conditions happen. The interrupt-clearing
conditions are that the device has received a new ADC result-reading command or a new ADC
conversion command. There are three registers available for the interrupt controls as shown below.
6.3.7 INT_EN - (RW)
The INT_EN register allows the user to disable/enable each of the 6 interrupts (0: disable, 1: enable).
When the users need enable the traversal or window interrupt, they must also enable the
corresponding PA_RDY_EN or T_RDY_EN bit.
6.3.8 INT_CFG - (RW)
The INT_CFG register allows the user to select whether to output the interrupts from the INT1 pin (0:
do not output, 1: output). The register also contains a control bit ‘PA_MODE’ that selects whether the
event detection parameters and the interrupts registers prefixed by a ‘PA_’ corresponds to the
pressure or the altitude measurement (0: pressure, 1: altitude).
6.3.9 INT_SRC - (Read-only)
The INT_SRC register contains the interrupt flags that allow the user to know the interrupts status,
as well as a device status bit ‘DEV_RDY’ that tells whether the device is ready for access or not. The
device is ready when it is in the sleep state and is not performing the power-up sequence, the data
conversions, and any other command-based operations. The external MCU shall only access to the
device while the device is ready (DEV_RDY = 1).
If the INT_CFG bit is set to 0 while the INT_EN bit is set to 1, the corresponding interrupt flag will
appear in the INT_SRC register but the interrupt will not be output to the INT1 pin.
6.3.10 INT_DIR - (Read-only)
The INT_DIR register allows the user to check the details of the traversal or window interrupt events.
For the T_WIN_DIR and the P_WIN_DIR status bits, when the window interrupts happen, if the
temperature or pressure value is above the window, the corresponding status bit is read as 1; if the
value is below the window, the status bit is read as 0.
For the T_TRAV_DIR and the P_TRAV_DIR status bits, when the traversal interrupts happen, if the
temperature, pressure or altitude value has been rising from low to high, the corresponding status bit
HP203B_DataSheet_EN_V2.0
www.hoperf.com
14 / 18