English
Language : 

LPS25HB Datasheet, PDF (18/40 Pages) STMicroelectronics – MEMS pressure sensor: 260-1260 hPa absolute digital output barometer
Digital interfaces
6
Digital interfaces
LPS25HB
6.1
I2C serial interface
The registers embedded in the LPS25HB may be accessed through both the I²C and SPI
serial interfaces. The latter may be SW configured to operate either in 3-wire or 4-wire
interface mode.
The serial interfaces are mapped onto the same pads. To select/exploit the I²C interface, the
CS line must be tied high (i.e. connected to Vdd_IO); to select the SPI interface, the CS line
must be tied low (i.e. connected to GND).
Pin name
CS
SCL/SPC
SDA
SDI
SDI/SDO
SDO
SAO
Table 9. Serial interface pin description
Pin
SPI enable
I²C/SPI mode selection (1: I²C mode; 0: SPI enabled
I²C serial clock (SCL)
SPI serial port clock (SPC)
I²C serial data (SDA)
4-wire SPI serial data input (SDI)
3-wire serial data input /output (SDI/SDO)
SPI serial data output (SDO)
I²C less significant bit of the device address (SA0)
6.2
I2C serial interface (CS = High)
The LPS25HB I²C is a bus slave. The I²C is employed to write data into registers whose
content can also be read back.
The relevant I²C terminology is given in Table 9.
Table 10. I2C terminology
Term
Description
Transmitter The device which sends data to the bus
Receiver The device which receives data from the bus
Master The device which initiates a transfer, generates clock signals and terminates a transfer
Slave The device addressed by the master
There are two signals associated with the I²C bus: the serial clock line (SCL) and the serial
data line (SDA). The latter is a bi-directional line used for sending and receiving the data
to/from the interface. Both lines have to be connected to Vdd_IO through pull-up resistors.
The I²C interface is compliant with fast mode (400 kHz) I²C standards as well as with the
normal mode.
18/40
DocID027112 Rev 2