Use case and configuration example for the
LPS22HB
4 Use case and configuration example for the
LPS22HB
The LPS22HB provides great flexibility to the designer and can be configured depending
on the specific application requirements. Requisites such as resolution, power
consumption, acquisition and measurement times can be set accordingly to the application
context.LPS22HB can operate in two different modalities:
Power Down modality
Continuous modality
In Power Down modality, no measurements are taken; this is the default sensor
configuration:”. ODR bit [6:4] of CTRL_REG1(0x10h) set to 000.
In Continuous mode, the device is able to detect pressure and temperature data,
depending on the defined data output frequency. In particular 2 operation modes are
available as continuous modality:
One-shot mode
Active mode
In continuous modality, measurements data output are available on the output register with
a refresh frequency defined by the selected output data rate (ODR [2, 0] bits of
CTRL_REG1 (0x10)) as described in table:
Table 1: ODR configuration
At device boot, the ODR[2,0] bits default configuration loaded is ‘000’ and the device goes
in Power down mode-To get a single measurement of pressure and temperature the
ONE_SHOT bit in CTRL_REG2 (0x11h) has to be set. Once the measurement is acquired,
the ONE_SHOT bit is self-cleared to the default value “0” (Idle), the new data are available
in the output registers, the STATUS_REG(0x27h) bits are updated and the device goes
back in power-down mode.
In active mode, according to the ODR configuration selected, different pressure and
temperature resolution profiles are available as described in the next section.
4.1 Main device settings
In Active and One shot mode, depending on the specific application, a set of configuration
settings is available, ranging from low power to ultra-high resolution profiles. The right
trade-off among, resolution, output data rate and power consumption has to be identified, in
order to make the sensor suitable for the specific design requirements.
The main parameters that can be configured for the specific usage are as follows: