Register mapping LPS331AP
16/36 Doc ID 022112 Rev 7
6 Register mapping
Table 14 provides a list of the 8-bit registers embedded in the device and the related
addresses.
.
Registers marked as Reserved must not be changed. The writing to those registers may
cause permanent damages to the device.
The content of the registers that are loaded at boot should not be changed. They contain the
factory calibration values. Their content is automatically restored when the device is
powered-up.
Table 14. Registers address map
Name Type
Register Address
Default
Function and
comment
Hex Binary
Reserved (Do not modify)
00-07
0D - 0E
Reserved
REF_P_XL R/W 08 0001000 00000000
REF_P_L R/W 09 0001001 00000000
REF_P_H R/W 0A 0001010 00000000
WHO_AM_I R 0F 0001111 10111011 Dummy register
RES_CONF R/W 10 0010000 011111010
Reserved (Do not modify) 11-1F Reserved
CTRL_REG1 R/W 20 010 0000 00000000
CTRL_REG2 R/W 21 010 0001 00000000
CTRL_REG3 R/W 22 010 0010 00000000
INT_CFG_REG R/W 23 0100011 00000000
INT_SOURCE_REG R 24 0100100 00000000
THS_P_LOW_REG R/W 25 0100101 0000000
THS_P_HIGH_REG R/W 26 0100110 0000000
STATUS_REG R 27 010 0111 00000000
PRESS_POUT_XL_REH R 28 010 1000 output
PRESS_OUT_L R 29 010 1001 output
PRESS_OUT_H R 2A 010 1010 output
TEMP_OUT_L R 2B 010 1011 output
TEMP_OUT_H R 2C 010 1100 output
Reserved (Do not modify) 2D-2F Reserved
AMP_CTRL R/W 30 011 0000 Partially reserved
LPS331AP Register description
Doc ID 022112 Rev 7 17/36
7 Register description
The device contains a set of registers which are used to control its behavior and to retrieve
pressure and temperature data. The register address, made up of 7 bits, is used to identify
them and to read/write the data through the serial interface.
REF_P_XL Reference pressure (LSB data)
Address: 08h
Type: R/W
Reset: 00h
Description: This reference pressure register contains the lower part of the reference pressure that
is sum to the sensor output pressure. The full value is REF_P_XL & REF_P_H &
REF_P_L and is represented as 2’s complement.
REF_P_L Reference pressure (middle part)
Address: 09h
Type: R/W
Reset: 00h
Description: This register contains the middle part of the reference pressure that is sum to the
sensor output pressure.
The full value is REF_P_XL & REF_P_H & REF_P_L and is represented as 2’s
complement.
76543210
REFL7 REFL6 REFL5 REFL4 REFL3 REFL2 REFL1 REFL0
[7:0] REFL7 - REFL0: Reference pressure LSB data. Default value: 00h
16 15 14 13 12 11 10 9
REFL15 REFL14 REFL13 REFL12 REFL11 REFL10 REFL9 REFL8
[16:9] REFL15 - REFL8: Default value: 00h
Register description LPS331AP
18/36 Doc ID 022112 Rev 7
REF_P_H Reference pressure (MSB data)
Address: 0Ah
Type: R/W
Reset: 00h
Description: This register contains the higher part of the reference pressure that is sum to the
sensor output pressure.
The full value is REF_P_XL & REF_P_H & REF_P_L and is represented as 2’s
complement.
RES_CONF(10h) Pressure resolution mode
Address: 10h
Type: R/W
Reset: 7Ah
Description: AVGP3-AVGP0 allow to select the pressure internal average. AVGT2-AVGT0 allow to
select the temperature internal average.
AVGP3-AVGP0 bits can be configured as described in Ta bl e 1 5 .
AVGT2-AVGT0 bits can be configured as described in Tabl e 16 .
24 23 22 21 20 19 18 17
REFL23 REFL22 REFL21 REFL20 REFL19 REFL18 REFL17 REFL16
[24:17] REFL23 - REFL16: Reference pressure MSB data. Default value: 00h.
76543210
RFU AVGT2 AVGT1 AVGT0 AVGP3 AVGP2 AVGP1 AVGP0
Table 15. Pressure resolution configuration
AVGP3 AVGP2 AVGP1 AVGP0 Nr. internal average
0000 1
0001 2
0010 4
0011 8
0100 16
0101 32
0110 64
0111 128
1000 256

LPS331APTR

Mfr. #:
Manufacturer:
STMicroelectronics
Description:
IC PRESSURE SENSOR PIEZO 16HCLGA
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet