Register description LPS331AP
22/36 Doc ID 022112 Rev 7
CTRL_REG2 Control register 2
Address: 21h
Type: R/W
Description: Control register.
BOOT bit is used to refresh the content of the internal registers stored in the Flash memory
block. At the device power-up the content of the Flash memory block is transferred to the
internal registers related to trimming functions to permit a good behavior of the device itself.
If for any reason, the content of the trimming registers is modified, it is sufficient to use this
bit to restore the correct values. When BOOT bit is set to ‘1’ the content of the internal Flash
is copied inside the corresponding internal registers and is used to calibrate the device.
These values are factory trimmed and they are different for every device. They permit good
behavior of the device and normally they should not be changed. At the end of the boot
process the BOOT bit is set again to ‘0’.
BOOT bit takes effect after one ODR clock cycle.
SWRESET is the software reset bit. The device is reset to the power on configuration if the
SWRESET bit is set to ‘1’ and BOOT is set to ‘1’.
AUTO_ZERO, when set to ‘1’, the actual pressure output is copied in the REF_P_H &
REF_P_L & REF_P_XL and kept as reference and the PRESS_OUT_H & PRESS_OUT_L
& PRESS _OUT_XL is the difference between this reference and the pressure sensor value.
ONE_SHOT bit is used to start a new conversion when ODR1-ODR0 bits in CTRL_REG1
are set to “000”. In this situation a single acquisition of temperature and pressure is started
when ONE_SHOT bit is set to ‘1’. At the end of conversion the new data are available in the
output registers, the STAUS_REG[0] and STAUS_REG[1] bits are set to ‘1’ and the
ONE_SHOT bit comes back to ‘0’ by hardware.
76543210
BOOT RESERVED SWRESET AUTO_ZERO ONE_SHOT
[7] BOOT: Reboot memory content. Default value: 0
(0: normal mode; 1: reboot memory content)
[6:3] RESERVED
[2] Software reset. Default value: 0
(0: normal mode; 1: software reset)
[1] Autozero enable. Default value: 0
(0: normal mode; 1: autozero enable)
[0] One shot enable. Default value: 0
(0: waiting for start of conversion; 1: start for a new dataset)
LPS331AP Register description
Doc ID 022112 Rev 7 23/36
CTRL_REG3 Interrupt control
Address: 22h
Type: R/W
Description: Control register.
The device features two fully-programmable interrupt sources (INT1 and INT2) which may
be configured to trigger different pressure events. Figure 10 shows the block diagram of the
interrupt generation block and output pressure data.
The device may also be configured to generate, through interrupt pins, a Data Ready signal
(Drdy) which indicates when a new measured pressure data is available, thus simplifying
data synchronization in digital systems.
76543210
INT_H_L PP_OD INT2_S3 INT2_S2 INT2_S1 INT1_S3 INT1_S2 INT1S1
[7] INT_H_L: Interrupt active high, low. Default value: 0
(0: active high; 1: active low)
[6] PP_OD: Push-pull/open drain selection on interrupt pads. Default value: 0
(0: push-pull; 1: open drain)
[5:3] INT2_S3, INT2_S2, INT2_S1: data signal on INT2 pad control bits. Default value: 00
(see Table 19.)
[2:0 INT1_S3, INT1_S2, INT1_S1: data signal on INT1 pad control bits. Default value: 00
(see Table 19.)
Table 19. Interrupt configurations
INT1(2)_S3 INT1(2)_S2 INT1(2)S1 INT1(2) pin
000 GND
0 0 1 Pressure high (P_high)
0 1 0 Pressure low (P_low)
011P_low OR P_high
100 Data ready
101 Reserved
110 Reserved
111 Tri-state
Register description LPS331AP
24/36 Doc ID 022112 Rev 7
Figure 10. Interrupt generation block and output pressure data.
INTERRUPT_CFG Interrupt configuration
Address: 23h
Type: R/W
Reset: 00h
Description: Interrupt configuration.
76543210
RESERVED
LIR PL_E PH_E
AM08738V1
High press int
Low press int
Press Thresh ol d
Reference Press
Press Thresh ol d
Positive
Negative
Sensor output pressure
PRESS_OUT_H & PRESS_OUT_L & PRESS_OUT_XL
Reference Pressure
REF_P_H & REF_P_L & REF_P_XL
+
-
Pressure Threshold
THS_P_H & THS_P_L
-
+
-
+
-1
Low Press Interrupt
PL
High Press Interrupt
PH
[7:3] RESERVED
[2] LIR: Latch Interrupt request into INT_SOURCE register. Default value: 0.
(0: interrupt request not latched; 1: interrupt request latched)
[1] PL_E: Enable interrupt generation on differential pressure low event. Default value: 0.
(0: disable interrupt request;
1: enable interrupt request on measured differential pressure value lower than preset threshold)
[0] PH_E: Enable interrupt generation on differential pressure high event. Default value: 0
(0: disable interrupt request;
1:enable interrupt request on measured differential pressure value higher than preset
threshold)

LPS331APY

Mfr. #:
Manufacturer:
STMicroelectronics
Description:
Board Mount Pressure Sensors MEMS 260 -1260 mbar 0.020 RMS 5.5uA 30uA
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet