AN4159
Pin mapping
Doc ID 023639 Rev 3
7/27
3 Pin
mapping
Table 1.
LPS331AP pin mapping details
Pin #
Name
Class
What to do
1
VDD_IO
IO supply
Power supply for I/Os (1.8 ~ 3.3 V)
2
NC
Don’t connect
3
NC
Don’t connect
4
SCL (I2C)
SPC (SPI)
In (open-drain)
In (open-drain)
External pull-up needed
(2.2 k
Ω
~ 10 k
Ω
to VDD_IO)
---
5
GND
Connect to PCB ground
6
SDA (I2C)
SDI (SPI 4W)
SDIO (SPI 3W)
I2C (open-drain)
SPI 4-wire data input
SPI 3-wire data bi-dir
External pull-up needed (2.2 k
Ω
~
10 k
Ω
to VDD_IO)
7
SA0 (I2C)
SDO (SPI 4W)
NC (SPI 3W)
I2C slave address select
SPI 4-wire data output
Not connect SPI 3-wire
High (VDD_IO): 0xBA/BB I2C
slave address (best)
Low (GND_IO): 0xB8/B9 I2C slave
address
8
CS
SPI slave select and
I2C/SPI mode selection
1 = VDD_IO: I2C mode
0 = GND: SPI mode
9
INT1
Interrupt 1 / data ready
Leave unconnected if unused
10
GND
Connect to PCB ground
11
INT2
Interrupt 2 / data ready
Leave unconnected if unused
12
GND_IO
Connect to PCB ground
13
GND
Connect to PCB ground
14
VDD
Core supply voltage
1.8 ~ 3.3 V very clean supply
(put 10 µF and 100 nF decoupling
caps near device)
15
VDD
1.8 ~ 3.3 V
16
GND
Connect to PCB ground