ST’s family of MEMS sensor modules leverages
the robust and mature manufacturing processes
already used for the production of micromachined
accelerometers.
The various sensing elements are manufactured
using specialized micromachining processes,
while the IC interfaces are developed using a
CMOS technology that allows the design of a
dedicated circuit which is trimmed to better match
the sensing element characteristics.
The LSM330DLC has dynamically user-
Application
■ GPS navigation systems
■ Impact recognition and logging
■ Gaming and virtual reality input devices
■ Motion activated functions
■ Intelligent power saving for handheld devices
■ Vibration monitoring and compensation
■ Free-fall detection
■ 6D orientation detection
selectable full scale acceleration range of
±2 g/±4 g/±8 g/±16 g and angular rate of
±250/±500/±2000 deg/sec.
The accelerometer and gyroscope sensors can
be either activated or separately put in Low
power/Power-down mode for applications
optimized for power saving.
The LSM330DLC is available in a plastic land grid
array (LGA) package.
Description
The LSM330DLC is a system-in-package
featuring a 3D digital accelerometer and a 3D
digital gyroscope.
Table 1.Device summary
Part numberTemperature range [°C]PackagePacking
LSM330DLC-40 to +85
LSM330DLCTR-40 to +85Tape and reel
LGA-28L (4x5x1.1 mm)
Tr ay
September 2011Doc ID 022162 Rev 11/67
This is preliminary information on a new product now in development or undergoing evaluation. Details are subject to
change without notice.
2. Verified by wafer level test and measurement of initial offset and sensitivity.
3. Typical zero-g level offset value after MSL3 preconditioning.
4. Offset can be eliminated by enabling the built-in high-pass filter.
H
14/67Doc ID 022162 Rev 1
Page 15
LSM330DLCModule specifications
2.2 Electrical characteristics
@ Vdd = 3 V, T = 25 °C unless otherwise noted
Table 4.Electrical characteristics
SymbolParameterTest conditionsMin.Typ.
VddSupply voltage2.43.6V
Vdd_IOPower supply for I/O1.71Vdd+0.1V
LA_Idd
LA_IddLowP
LA_IddPdn
G_Idd
Accelerometer current
consumption in Normal mode
Accelerometer current
consumption in Low power
mode
Accelerometer current
consumption in Power-down
mode
Gyroscope current
consumption in Normal mode
ODR = 50 Hz11
ODR = 1 Hz2
ODR = 50 Hz6µA
(1)
0.5µA
6.1mA
Max.Unit
µA
G_IddLowP
G_IddPdn
VIHDigital high level input voltage0.8*Vdd_IOV
VILDigital low level input voltage0.2*Vdd_IOV
VOHHigh level output voltage0.9*Vdd_IOV
VOLLow level output voltage0.1*Vdd_IOV
TopOperating temperature range-40+85
1. Typical specifications are not guaranteed.
2. Sleep mode introduces a faster turn-on time compared to Power-down mode.
Gyroscope supply current
in Sleep mode
Gyroscope current
consumption in Power-down
mode
(2)
2mA
5µA
°C
Doc ID 022162 Rev 115/67
Page 16
Module specificationsLSM330DLC
2.3 Temperature sensor characteristics
@ Vdd = 3V, T = 25 °C unless otherwise noted
Table 5.Electrical characteristics
SymbolParameterTest conditionMin.Typ.
(b)
(1)
Max.Unit
TSDr
TODRTemperature refresh rate1Hz
Top Operating temperature range-40+85°C
1. Typical specifications are not guaranteed.
Temperature sensor output
change vs. temperature
-1°C/digit
-
b. The product is factory calibrated at 3.0 V.
16/67Doc ID 022162 Rev 1
Page 17
LSM330DLCModule specifications
t
t
t
t
t
t
t
t
2.4 Communication interface characteristics
2.4.1 SPI - serial peripheral interface
Subject to general operating conditions for Vdd and TOP.
Table 6.SPI slave timing values
(1)
Val u e
SymbolParameter
MinMax
tc(SPC)SPI clock cycle100ns
fc(SPC)SPI clock frequency10MHz
tsu(CS)CS setup time6
th(CS)CS hold time8
tsu(SI)SDI input setup time5
th(SI)SDI input hold time15
tv(SO)SDO valid output time50
th(SO)SDO output hold time9
tdis(SO)SDO output disable time50
Unit
ns
1. Values are guaranteed at 10 MHz clock frequency for SPI with both 4 and 3 wires, based on characterization results. Not
tested in production.
(c)(d)
Figure 3.SPI slave timing diagram
CS
(3)
su(CS)
SPC
(3)
h(SI)
MSB IN
MSB OUT
SDI
SDO
su(SI)
(3)
(3)
v(SO)
c(SPC)
h(SO)
h(CS)
LSB IN
LSB OUT
dis(SO)
3. Data on CS, SPC, SDI and SDO refer to pins: CS_A, CS_G, SCL_A/G, SDA_A/G, SDO_A / SDO_G.
(3)
(3)
(3)
(3)
c. The SDO output line features an internal pull-up.
d. Measurement points are done at 0.2·Vdd_IO and 0.8·Vdd_IO, for both input and output ports.
Doc ID 022162 Rev 117/67
Page 18
Module specificationsLSM330DLC
W
W
W
W
W
W
W
W
W
W
W
W
2.4.2 I2C - inter IC control interface
Subject to general operating conditions for Vdd and TOP.
Table 7.I2C slave timing values
SymbolParameter
(1)
I2C standard mode
(1)
I2C fast mode
MinMaxMinMax
(1)
Unit
f
(SCL)
t
w(SCLL)
t
w(SCLH)
t
su(SDA)
t
h(SDA)
t
r(SDA) tr(SCL)
t
f(SDA) tf(SCL)
t
h(ST)
t
su(SR)
t
su(SP)
t
w(SP:SR)
1. SCL (SCL_A/G pin), SDA (SDA_A/G pin)
2. Cb = total capacitance of one bus line, in pF
Figure 4.I
SCL clock frequency01000400KHz
SCL clock low time4.71.3
SCL clock high time4.00.6
SDA setup time250100ns
SDA data hold time0.013.4500.9µs
SDA and SCL rise time1000
SDA and SCL fall time300
START condition hold time40.6
Repeated START condition
setup time
STOP condition setup time40.6
Bus free time between STOP
and START condition
2
C slave timing diagram
67$57
(e)
20 + 0.1C
20 + 0.1C
4.70.6
4.71.3
µs
(2)
b
(2)
b
300
ns
300
µs
5(3($7('
67$57
6'$
I6'$
U6'$
VX6'$
K6'$
6&/
Z6&//
K67
e. Measurement points are done at 0.2·Vdd_IO and 0.8·Vdd_IO, for both ports
Z6&/+
U6&/
I6&/
18/67Doc ID 022162 Rev 1
VX65
VX63
Z6365
67$57
6723
!-V
Page 19
LSM330DLCModule specifications
2.5 Absolute maximum ratings
Stresses above those listed as “absolute maximum ratings” may cause permanent damage
to the device. This is a stress rating only and functional operation of the device under these
conditions is not implied. Exposure to maximum rating conditions for extended periods may
affect device reliability.
Table 8.Absolute maximum ratings
SymbolRatingsMaximum valueUnit
VddSupply voltage-0.3 to 4.8V
Vdd_IOI/O pins supply voltage-0.3 to 4.8V
Input voltage on any control pin (SCL_A/G, SDA_A/G,
SDO_A, SDO_G, CS_A, CS_G, DEN_G)
Acceleration (any axis, powered, Vdd = 3 V)
Acceleration (any axis, unpowered)
Operating temperature range-40 to +85°C
OP
Storage temperature range-40 to +125°C
A
A
T
T
Vin
POW
UNP
STG
ESDElectrostatic discharge protection2 (HBM)kV
1. Supply voltage on any pin should never exceed 4.8 V.
(1)
-0.3 to Vdd_IO +0.3V
3000 g for 0.5 ms
10000 g for 0.1 ms
3000 g for 0.5 ms
10000 g for 0.1 ms
This is a mechanical shock sensitive device, improper handling can cause permanent
damage to the part.
This is an ESD sensitive device, improper handling can cause permanent damage to
the part.
Doc ID 022162 Rev 119/67
Page 20
TerminologyLSM330DLC
3 Terminology
3.1 Sensitivity
Linear acceleration sensitivity can be determined e.g. by applying 1 g acceleration to the
device. Because the sensor can measure DC accelerations, this can be done easily by
pointing the selected axis towards the ground, noting the output value, rotating the sensor
180 degrees (pointing towards the sky) and noting the output value again. By doing so, ±1 g
acceleration is applied to the sensor. Subtracting the larger output value from the smaller
one, and dividing the result by 2, leads to the actual sensitivity of the sensor. This value
changes very little over temperature and over time. The sensitivity tolerance describes the
range of sensitivities of a large number of sensors.
Angular Rate Sensitivity describes the angular rate gain of the sensor and can be
determined by applying a defined angular velocity to it. This value changes very little over
temperature and also very little over time.
3.2 Zero-g level
Linear acceleration zero-g level offset (TyOff) describes the deviation of an actual output
signal from the ideal output signal if no acceleration is present. A sensor in a steady state on
a horizontal surface will measure 0 g on both the X axis and Y axes, whereas the Z axis will
measure 1 g. Ideally, the output is in the middle of the dynamic range of the sensor (content
of OUT registers 00h, data expressed as 2’s complement number). A deviation from the
ideal value in this case is called zero-g offset.
Offset is to some extent a result of stress to MEMS sensor and therefore the offset can
slightly change after mounting the sensor onto a printed circuit board or exposing it to
extensive mechanical stress. Offset changes little over temperature, see “Linear
acceleration zero-g level change vs. temperature” in Ta bl e 3 . The zero-g level tolerance
(TyOff) describes the standard deviation of the range of zero-g levels of a group of sensors.
Angular rate zero-rate level describes the actual output value if there is no angular rate
present. zero-rate level of precise MEMS sensors is, to some extent, a result of stress to the
sensor and therefore zero-rate level can slightly change after mounting the sensor onto a
printed circuit board or after exposing it to extensive mechanical stress. This value changes
very little over temperature and over time.
20/67Doc ID 022162 Rev 1
Page 21
LSM330DLCFunctionality
4 Functionality
The LSM330DLC is a system-in-package featuring a 3D digital accelerometer and a 3D
digital gyroscope.
The device includes specific sensing elements and two IC interfaces capable to measuring
both the acceleration and angular rate applied to the module and to provide a signal to
external applications through an SPI/I
The various sensing elements are manufactured using specialized micromachining
processes, while the IC interfaces are developed using a CMOS technology that allows the
design of a dedicated circuit which is trimmed to better match the sensing element
characteristics.
The LSM330DLC may also be configured to generate an inertial wakeup and free-fall
interrupt signal according to a programmed acceleration event along the enabled axes.
4.1 Normal mode, Low power mode
The LSM330DLC provides two different operating modes: Normal mode and Low power
mode. Normal mode guarantees high resolution, while Low power mode further reduces
current consumption.
2
C serial interface.
The table below summarizes how to select the operating mode and the corresponding
characteristics.
Table 9.Operating mode selection
Operating mode
Low power mode (8-bit)10ODR/21
Normal mode (12-bit)01ODR/97/ODR(kHz)
CTRL_REG1[3]
(LPen bit)
4.1.1 Self-test
Self-test allows the checking of sensor functionality without moving it. The self-test function
is off when the self-test bit (ST) is programmed to ‘0’. When the self-test bit is programmed
to ‘1’ an actuation force is applied to the sensor, simulating a definite input acceleration. In
this case, the sensor outputs exhibit a change in their DC levels which are related to the
selected full scale through the device sensitivity. When self-test is activated, the device
output level is given by the algebraic sum of the signals produced by the acceleration acting
on the sensor and by the electrostatic test-force. If the output signals change within the
amplitude specified in Ta bl e 3 , then the sensor is working properly and the parameters of
the interface chip are within the defined specifications.
4.1.2 6D/4D orientation detection
CTRL_REG4[3]
(HR bit)
BW [Hz]Turn-on time [ms]
The LSM330DLC includes 6D/4D orientation detection. In this configuration the interrupt is
generated when the device is stable in a known direction. In 4D configuration, Z axis
position detection is disabled.
Doc ID 022162 Rev 121/67
Page 22
FunctionalityLSM330DLC
4.1.3 “Sleep-to-wake” and “Return to sleep”
The LSM330DLC can be programmed to automatically switch to Low power mode upon
recognition of a determined event. Once the event condition is over, the device returns to the
preset Normal mode.
To enable this function, the desired threshold value must be stored in the Act_THS register,
while the duration value is written in the Act_DUR register.
When the internally high-pass filtered acceleration becomes lower than the threshold value
on all the three axes, the device automatically switches to Low power mode (10Hz ODR).
During this condition, the ODRx bits and LPen bit in the CTRL_REG1_G register and the
HR bit in the CTRL_REG3_G register are not considered.
When the acceleration goes back over the threshold (on at least one axis), the system
restores the operating mode and ODRs as per the CTRL_REG1_G register and
CTRL_REG3_G register settings.
4.2 Linear acceleration digital main blocks
4.2.1 FIFO
The LSM330DLC embeds 32 slots of data FIFO for each of the three output channels: X, Y
and Z. This allows consistent power saving for the system, since the host processor does
not need to continuously poll data from the sensor, but it can wake up only when needed
and burst the significant data out from the FIFO. This buffer can work accordingly in four
different modes: Bypass mode, FIFO mode, Stream mode and Stream-to-FIFO mode. Each
mode is selected by the FIFO_MODE bits in the FIFO_CTRL_REG_A register.
Programmable watermark level, FIFO_empty or FIFO_Full events can be enabled to
generate dedicated interrupts on the INT1_A/INT2_A pin (configured through the
FIFO_CTRL_REG_A register).
4.2.2 Bypass mode
In Bypass mode, the FIFO is not operational and for this reason it remains empty. For each
channel only the first address is used. The remaining FIFO slots are empty.
4.2.3 FIFO mode
In FIFO mode, data from the X, Y and Z channels are stored into the FIFO. A watermark
interrupt can be enabled (FIFO_WTMK_EN bit in the FIFO_CTRL_REG_A register in order
to be raised when the FIFO is filled to the level specified into the FIFO_WTMK_LEVEL bits
of the FIFO_CTRL_REG_A register. The FIFO continues filling until it is full (32 slots of data
for X, Y and Z). When full, the FIFO stops collecting data from the input channels.
4.2.4 Stream mode
In Stream mode, data from X, Y and Z measurement are stored into the FIFO. A watermark
interrupt can be enabled and set as in FIFO mode.The FIFO continues filling until it is full (32
slots of data for X, Y and Z). When full, the FIFO discards the older data as the new data
arrives.
22/67Doc ID 022162 Rev 1
Page 23
LSM330DLCFunctionality
4.2.5 Stream-to-FIFO mode
In Stream-to-FIFO mode, data from X, Y and Z measurement is stored in the FIFO. A
watermark interrupt can be enabled (FIFO_WTMK_EN bit in the FIFO_CTRL_REG_A
register) in order to be raised when the FIFO is filled to the level specified in the
FIFO_WTMK_LEVEL bits of the FIFO_CTRL_REG_A register. The FIFO continues filling
until it is full (32 slots of 8 -bit data for X, Y and Z). When full, the FIFO discards the older
data as the data new arrives. Once trigger event occurs, the FIFO starts operating in FIFO
mode.
4.2.6 Retrieve data from FIFO
FIFO data is read through OUT_X_L_A (28h), OUT_X_H_A (29h), OUT_Y_L_A (2Ah),
OUT_Y_H_A (2Bh) and OUT_Z_L _A (2Ch), OUT_Z_H_A (2Dh). When the FIFO is in
Stream, Trigger or FIFO mode, a read operation to the OUT_X_L_A (28h), OUT_X_H_A
registers provides the data stored in the FIFO. Each time data is read from the FIFO, the
oldest X, Y and Z data are placed in the OUT_X_L_A (28h), OUT_X_H_A (29h),
OUT_Y_L_A (2Ah), OUT_Y_H_A (2Bh) and OUT_Z_L _A (2Ch), OUT_Z_H_A (2Dh)
registers and both single read and read_burst operations can be used.
4.3 Gyroscope digital main blocks
Figure 5.Gyroscope block diagram
0
LPF2
ADC
LPF1
HPF
1
HPen
Out_Sel
00
01
10
11
INT_Sel
10
11
01
00
DataReg
FIFO
32x16x3
Interrupt
generator
I2C
SPI
SCR REG
CONF REG
INT1
AM07230v1
Doc ID 022162 Rev 123/67
Page 24
FunctionalityLSM330DLC
4.4 FIFO
The LSM330DLC embeds 32 slots of 16-bit data FIFO for each of the three output channels:
yaw, pitch and roll. This allows consistent power saving for the system, since the host
processor does not need to continuously poll data from the sensor, but can wake up only
when needed and burst the significant data out from the FIFO. This buffer can work
accordingly in five different modes: Bypass mode, FIFO mode, Stream mode, Bypass-toStream mode and Stream-to-FIFO mode. Each mode is selected by the FIFO_MODE bits in
the FIFO_CTRL_REG_G register. Programmable watermark level, FIFO_empty or
FIFO_Full events can be enabled to generate dedicated interrupts on the DRDY_G/INT2_G
pin (configured through the CTRL_REG3_G register and event detection information is
available in the FIFO_SRC_REG_G register. Watermark level can be configured to WTM4:0
in the FIFO_CTRL_REG_G register.
4.4.1 Bypass mode
In Bypass mode, the FIFO is not operational and for this reason it remains empty. As
described in Figure 6 below, for each channel only the first address is used. The remaining
FIFO slots are empty. When new data is available the old data is overwritten.
Figure 6.Bypass mode
xi,yi,z
empty
4.4.2 FIFO mode
In FIFO mode, data from the yaw, pitch and roll channels is stored in the FIFO. A watermark
interrupt can be enabled (I2_WMK bit in the CTRL_REG3_G register) in order to be raised
when the FIFO is filled to the level specified in the WTM 4:0 bits of the FIFO_CTRL_REG_G
register. The FIFO continues filling until it is full (32 slots of 16-bit data for yaw, pitch and
roll). When full, the FIFO stops collecting data from the input channels. To restart data
collection, the FIFO_CTRL_REG_G register must be written back to Bypass mode.
i
l
z
0
z
1
z
2
z
31
AM07231v1
x
0
x
1
x
2
x
31
y
y
0
y
1
y
2
y
31
FIFO mode is represented in Figure 7: FIFO mode.
24/67Doc ID 022162 Rev 1
Page 25
LSM330DLCFunctionality
Figure 7.FIFO mode
xi,yi,z
i
4.4.3 Stream mode
In Stream mode, data from yaw, pitch and roll measurement is stored in the FIFO. A
watermark interrupt can be enabled and set as in FIFO mode.The FIFO continues filling until
it is full (32 slots of 16-bit data for yaw, pitch and roll). When full, the FIFO discards the older
data as the new data arrives. Programmable watermark level events can be enabled to
generate dedicated interrupts on the DRDY_G/INT2_G pin (configured through the
CTRL_REG3_G register.
x
0
x
1
x
2
x
31
y
y
0
y
1
y
2
y
31
z
0
z
1
z
2
z
31
AM07232v1
Stream mode is represented in Figure 8: Stream mode.
Doc ID 022162 Rev 125/67
Page 26
FunctionalityLSM330DLC
Figure 8.Stream mode
xi,yi,z
i
x
0
x
1
x
2
x
30
x
31
y
0
y
1
y
2
y
30
y
31
z
0
z
1
z
2
z
30
z
31
AM07234v1
26/67Doc ID 022162 Rev 1
Page 27
LSM330DLCFunctionality
4.4.4 Bypass-to-stream mode
In Bypass-to-stream mode, the FIFO starts operating in Bypass mode and once a trigger
event occurs (related to INT1_CFG_G register events) the FIFO starts operating in Stream
mode. Refer to Figure 9 below.
Figure 9.Bypass-to-stream mode
xi,yi,z
Empty
i
x
x
x
x
y
y
0
y
1
y
2
y
31
z
i
0
1
2
31
0
z
1
z
2
z
31
xi,yi,z
i
x
x
x
x
x
y
0
y
1
y
2
y
30
y
31
z
0
1
2
30
31
0
z
1
z
2
z
30
z
31
Bypass mode
4.4.5 Stream-to-FIFO mode
In Stream-to-FIFO mode, data from yaw, pitch and roll measurement is stored in the FIFO. A
watermark interrupt can be enabled on pin DRDY/INT2 by setting the I2_WTM bit in
CTRL_REG3_G register to be raised when the FIFO is filled to the level specified in the
WTM4:0 bits of the FIFO_CTRL_REG_G register. The FIFO continues filling until it is full
(32 slots of 16-bit data for yaw, pitch and roll). When full, the FIFO discards the older data as
the new data arrives. Once a trigger event occurs (related to INT1_CFG_G register events),
the FIFO starts operating in FIFO mode. Refer to Figure 10: Trigger stream mode.
Trigger ev e nt
Stream mode
AM07235v1
Doc ID 022162 Rev 127/67
Page 28
FunctionalityLSM330DLC
Figure 10. Trigger stream mode
xi,yi,z
i
x
x
x
x
30
x
y
0
1
2
31
0
y
1
y
2
y
30
y
31
Stream Mode
4.4.6 Retrieve data from FIFO
FIFO data is read through OUT_X_L_G (28h), OUT_X_H_G (29h), OUT_Y_L_G (2Ah),
OUT_Y_H_G (2Bh) and OUT_Z_L_G (2Ch), OUT_Z_H_G (2Dh). When the FIFO is in
Stream, Trigger or FIFO mode, a read operation to the OUT_X_L_G (28h), OUT_X_H_G
(29h), OUT_Y_L_G (2Ah), OUT_Y_H_G (2Bh) or OUT_Z_L_G (2Ch), OUT_Z_H_G (2Dh)
registers provides the data stored in the FIFO. Each time data is read from the FIFO, the
oldest pitch, roll and yaw data are placed in the OUT_X_L_G (28h), OUT_X_H_G (29h),
OUT_Y_L_G (2Ah), OUT_Y_H_G (2Bh) and OUT_Z_L_G (2Ch), OUT_Z_H_G (2Dh)
registers and both single read and read_burst (X,Y & Z with autoincremental address)
operations can be used. When data included in OUT_Z_H_G is read, the system again
starts to read information from addr OUT_X_L _G.
xi,yi,z
z
0
z
1
z
2
z
30
z
31
i
x
x
x
x
y
y
0
y
1
y
2
y
31
z
i
0
1
2
31
0
z
1
z
2
z
31
FIFO Mode
Trigger event
AM07236v1
4.5 Level-sensitive / Edge-sensitive data enable
The LSM330DLC allows external trigger level recognition through the enabling of the
EXTRen and LVLen bits in the CTRL_REG2_G register. Two different modes can be used:
Level-sensitive or Edge-sensitive trigger.
Once enabled, DEN level replaces the LSb of the X, Y or Z axes, configurable through the
Xen, Yen, Zen bits in the CTRL_REG1_G register. Data is stored in the FIFO with the
internally-selected ODR.
4.5.2 Edge-sensitive trigger
Once enabled by setting EXTRen = 1, FIFO is filled with the pitch, roll and yaw data on the
rising edge of the DEN input signal. When selected ODR is 800 Hz, the maximum DEN
sample frequency is f
DEN
= 1/T
DEN
= 400 Hz.
Doc ID 022162 Rev 129/67
Page 30
FunctionalityLSM330DLC
Figure 12. Edge-sensitive trigger
4.6 Factory calibration
The IC interface is factory calibrated for sensitivity and zero level. The trimming values are
stored in the device in non volatile memory. Any time the device is turned on, the trimming
parameters are downloaded to the registers to be used during normal operation. This allows
use of the device without further calibration.
30/67Doc ID 022162 Rev 1
Page 31
LSM330DLCApplication hints
5 Application hints
Figure 13. LSM330DLC electrical connection
Vdd_IO
C2
GND
10nF(25V)
*C1
GND
100 nF
100 nF
DRDY_G
Vdd
C3C4
10 µF
GND
GND
INT1_A
INT2_A
INT1_G
DEN_G
CAP
20
15
VDD_IO
CS_G
CS_A
SCL_A/G
(BOTTOM VIEW)
14
RES
RES
RES
RES
SDO_G
VDD_IO
SDO_A
SDA_A/G
8212
GND
1
RES
FILTVDD
FILTIN Y
FILTOUT Y/ OUT Y
7
RES
RES
RES
GND
6
GND
RES
VDD
VDD
VDD
* C1 must guarantee 1 nF value under 11 V bias condition
Z
Y
1
DIRECTION OF
DETECTABLE
ACCELERATIONS
+Ω
Y
+Ω
Z
X
DIRECTION OF
DETECTABLE
ANGULAR RATE
1
X
+Ω
X
z
X
Digital signal from/to signal controller. Signals levels are defined by proper selection of Vdd
5.1 External capacitors
The device core is supplied through the Vdd line. Power supply decoupling capacitors (C2,
C3=100 nF ceramic, C4=10 µF Al) should be placed as near as possible to the supply pin of
the device (common design practice).
All voltage and ground supplies must be present at the same time to achieve proper
behavior of the IC (refer to Figure 13).
The functionality of the device and the measured acceleration/angular rate data is
selectable and accessible through the SPI/I
The functions, the threshold and the timing of the two interrupt pins for each sensor can be
completely programmed by the user through the SPI/I
AM10163V1
2
C interface.
2
C interface.
Doc ID 022162 Rev 131/67
Page 32
Application hintsLSM330DLC
5.2 Soldering information
The LGA package is compliant with ECOPACK®, RoHS and “Green” standards. It is
qualified for soldering heat resistance according to JEDEC J-STD-020D.
Leave “Pin 1 Indicator” unconnected during soldering.
Land pattern and soldering recommendations are available at www.st.com/mems
.
32/67Doc ID 022162 Rev 1
Page 33
LSM330DLCDigital interfaces
6 Digital interfaces
The registers embedded in the LSM330DLC may be accessed through both the I2C and SPI
serial interfaces. The latter may be SW configured to operate either in 3-wire or 4-wire
interface mode.
To select/exploit the I
Table 10.Serial interface pin description
Pin namePin description
2
C interface, the CS line must be tied high (i.e. connected to Vdd_IO).
CS_A
CS_G
SCL_A/G
SDA_A/G
SDO_A
SDO_G
Linear acceleration SPI enable
Linear acceleration I2C/SPI mode selection (1: I2C mode; 0: SPI enabled)
Angular rate SPI enable
Angular rate I
2
C serial clock (SCL)
I
SPI serial port clock (SPC)
2
I
C serial data (SDA)
SPI serial data input (SDI)
3-wire interface serial data output (SDO)
2
C least significant bit of the device address (SA0)
I
SPI serial data output (SDO)
6.1 I2C serial interface
The LSM330DLC I2C is a bus slave. The I2C is employed to write the data to the registers,
whose content can also be read back.
ReceiverThe device which receives data from the bus
Master
SlaveThe device addressed by the master
The device which initiates a transfer, generates clock signals and terminates a
transfer
There are two signals associated with the I2C bus: the Serial Clock Line (SCL) and the
Serial DAta line (SDA). The latter is a bidirectional line used for sending and receiving the
data to/from the interface.
Doc ID 022162 Rev 133/67
Page 34
Digital interfacesLSM330DLC
6.1.1 I2C operation
The transaction on the bus is started through a START (ST) signal. A START condition is
defined as a HIGH to LOW transition on the data line while the SCL line is held HIGH. After
this has been transmitted by the master, the bus is considered busy. The next byte of data
transmitted after the start condition contains the address of the slave in the first 7 bits, and
the eighth bit tells whether the master is receiving data from the slave or transmitting data to
the slave. When an address is sent, each device in the system compares the first seven bits
after a start condition with its address. If they match, the device considers itself addressed
by the master.
Data transfer with acknowledge is mandatory. The transmitter must release the SDA line
during the acknowledge pulse. The receiver must then pull the data line LOW so that it
remains stable low during the HIGH period of the acknowledge clock pulse. A receiver which
has been addressed is obliged to generate an acknowledge after each byte of data
received.
2
The I
C embedded in the LSM330DLC behaves like a slave device and the following
protocol must be adhered to. After the start condition (ST), a slave address is sent. Once a
slave acknowledge (SAK) has been returned, an 8-bit sub-address (SUB) is transmitted: the
7 LSb represent the actual register address while the MSb enables address auto increment.
If the MSb of the SUB field is ‘1’, the SUB (register address) will be automatically increased
to allow multiple data read/write.
Table 12.Transfer when master is writing one byte to slave
MasterSTSAD + WSUBDATASP
SlaveSAKSAKSAK
Table 13.Transfer when master is writing multiple bytes to slave
MasterSTSAD + WSUBDATADATASP
SlaveSAKSAKSAKSAK
Table 14.Transfer when master is receiving (reading) one byte of data from slave
MasterSTSAD + WSUBSRSAD + RNMAKSP
SlaveSAKSAKSAKDATA
Table 15.Transfer when master is receiving (reading) multiple bytes of data from slave
Master ST SAD+WSUBSR SAD+RMAKMAKNMAK SP
SlaveSAKSAKSAK DATADATADATA
Data is transmitted in byte format (DATA). Each data transfer contains 8 bits. The number of
bytes sent per transfer is unlimited. Data is transferred with the most significant bit (MSb)
first. If a receiver cannot receive another complete byte of data until it has performed some
other function, it can hold the clock line, SCL, LOW to force the transmitter into a wait state.
34/67Doc ID 022162 Rev 1
Page 35
LSM330DLCDigital interfaces
Data transfer only continues when the receiver is ready for another byte and releases the
data line. If a slave receiver does not acknowledge the slave address (i.e. it is not able to
receive because it is performing some real-time function) the data line must be left HIGH by
the slave. The master can then abort the transfer. A LOW to HIGH transition on the SDA line
while the SCL line is HIGH is defined as a STOP condition. Each data transfer must be
terminated by the generation of a STOP (SP) condition.
In order to read multiple bytes, it is necessary to assert the most significant bit of the subaddress field. In other words, SUB(7) must be equal to 1 while SUB(6-0) represents the
address of first register to be read.
In the communication format presented, MAK is Master Acknowledge and NMAK is No
Master Acknowledge.
Default address:
The SDO/SA0 pin (SDO_A / SDO_G) can be used to modify the least significant bit of the
device address. If the SA0 pad is connected to voltage supply, the LSb is ‘1’ (ex. address
0011001b), otherwise if the SA0 pad is connected to ground, the LSb value is ‘0’ (ex
address 0011000b).
The slave address is completed with a Read/Write bit. If the bit was ‘1’ (Read), a repeated
START (SR) condition will have to be issued after the two sub-address bytes; if the bit is ‘0’
(Write) the master will transmit to the slave with direction unchanged. Tab le 1 6 and 17
explain how the SAD+Read/Write bit pattern is composed, listing all the possible
configurations.
Linear acceleration address: the default (factory) 7-bit slave address is
001100xb.
Angular rate sensor: the default (factory) 7-bit slave address is 110101xb.
Table 17.Angular rate SAD+Read/Write patterns
CommandSAD[6:1]SAD[0] = SDO_G pinR/WSAD+R/W
Read1101010111010101 (D5h)
Write1101010011010100 (D4h)
Read1101011111010111 (D7h)
Write1101011011010110 (D6h)
Doc ID 022162 Rev 135/67
Page 36
Digital interfacesLSM330DLC
6.2 SPI bus interface
The LSM330DLC SPI is a bus slave. The SPI allows writing and reading the registers of the
device.
The serial interface interacts with the outside world through 4 wires: CS, SPC, SDI and SDO
(SPC, SDI, SD0 are common).
Figure 14. Read and write protocol
CS
SPC
SDI
RW
MS
AD5 AD4 AD3 AD2 AD1 AD0
SDO
CS is the serial port enable and is controlled by the SPI master. It goes low at the start of the
transmission and returns high at the end. SPC is the serial port clock and is controlled by
the SPI master. It is stopped high when CS is high (no transmission). SDI and SDO are
respectively the serial port data input and output. These lines are driven at the falling edge
of SPC and should be captured at the rising edge of SPC.
DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0
DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0
AM10129V1
Both the read register and write register commands are completed in 16 clock pulses or in
multiples of 8 in case of multiple-byte read/write. Bit duration is the time between two falling
edges of SPC. The first bit (bit 0) starts at the first falling edge of SPC after the falling edge
of CS, while the last bit (bit 15, bit 23, ...) starts at the last falling edge of SPC just before the
rising edge of CS.
bit 0: RW
bit. When 0, the data DI(7:0) is written to the device. When 1, the data DO(7:0)
from the device is read. In the latter case, the chip drives SDO at the start of bit 8.
bit 1: MS
bit. When 0, the address remains unchanged in multiple read/write commands.
When 1, the address is auto-incremented in multiple read/write commands.
bit 2-7: address AD(5:0). This is the address field of the indexed register.
bit 8-15: data DI(7:0) (Write mode). This is the data that will be written to the device (MSb
first).
bit 8-15: data DO(7:0) (Read mode). This is the data that will be read from the device (MSb
first).
In multiple read/write commands, further blocks of 8 clock periods will be added. When the
MS
bit is ‘0’, the address used to read/write data remains the same for every block. When
the MS
bit is ‘1’, the address used to read/write data is increased at every block.
The function and the behavior of SDI and SDO remain unchanged.
36/67Doc ID 022162 Rev 1
Page 37
LSM330DLCDigital interfaces
6.2.1 SPI read
Figure 15. SPI read protocol
CS
SPC
SDI
RW
MS
AD5 AD4 AD3 AD2 AD1 AD0
SDO
DO7 DO6 DO5 DO4 DO3DO2 DO1 DO0
AM10130V1
The SPI read command is performed with 16 clock pulses. A multiple-byte read command is
performed by adding blocks of 8 clock pulses to the previous one.
bit 0: READ bit. The value is 1.
bit 1: MS
bit. When 0, do not increment address; when 1, increment address in multiple
reading.
bit 2-7: address AD(5:0). This is the address field of the indexed register.
bit 8-15: data DO(7:0) (Read mode). This is the data that will be read from the device (MSb
first).
bit 16-... : data DO(...-8). Further data in multiple-byte reading.
The SPI write command is performed with 16 clock pulses. A multiple-byte write command
is performed by adding blocks of 8 clock pulses to the previous one.
bit 0: WRITE bit. The value is 0.
DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0
AM10132V1
bit 1: MS
bit. When 0, do not increment address; when 1, increment address in multiple
writing.
bit 2 -7: address AD(5:0). This is the address field of the indexed register.
bit 8-15: data DI(7:0) (Write mode). This is the data that will be written to the device (MSb
first).
bit 16-... : data DI(...-8). Further data in multiple-byte writing.
DI7 DI6 DI 5 D I4 DI 3 DI 2 DI1 DI0 DI15 D I1 4 DI13 DI12 DI 11 DI10 DI 9 DI8
AM10133V1
3-wire mode is entered by setting the SIM bit to ‘1’ (SPI serial interface mode selection) in
the CTRL_REG4_G register.
38/67Doc ID 022162 Rev 1
Page 39
LSM330DLCDigital interfaces
Figure 19. SPI read protocol in 3-wire mode
CS
SPC
SDI/O
RW
AD5 AD 4 AD3 AD2 AD1 AD 0MS
The SPI read command is performed with 16 clock pulses:
bit 0: READ bit. The value is 1.
DO7 DO6 DO5 DO4 DO3 DO 2 DO 1 DO0
AM10134V1
bit 1: MS
bit. When 0, do not increment address; when 1, increment address in multiple
reading.
bit 2-7: address AD(5:0). This is the address field of the indexed register.
bit 8-15: data DO(7:0) (Read mode). This is the data that will be read from the device (MSb
first).
Multiple read command is also available in 3-wire mode.
Doc ID 022162 Rev 139/67
Page 40
Register mappingLSM330DLC
7 Register mapping
The table below provides a listing of the 8-bit registers embedded in the device, and their
related addresses:
Table 18.Register address map
Name
Reserved (do not modify)Ta b le 1 600 - 1FReserved
CTRL_REG1_ATa b l e 16rw20010 000000000111
CTRL_REG2_ATa b l e 16rw21010 000100000000
CTRL_REG3_ATa b l e 16rw22010 001000000000
CTRL_REG4_ATa b l e 16rw23010 001100000000
CTRL_REG5_ATa b l e 16rw24010 010000000000
CTRL_REG6_ATa b l e 16rw25010 010100000000
REFERENCE_ATa b le 1 6rw26010 011000000000
STATUS_REG_ATa b le 1 6r27010 011100000000
OUT_X_L_ATa bl e 1 6r28010 1000output
OUT_X_H_ATa b le 1 6r29010 1001output
OUT_Y_L_ATa bl e 1 6r2A010 1010output
OUT_Y_H_ATa b le 1 6r2B010 1011output
OUT_Z_L_ATa b le 1 6r2C010 1100output
OUT_Z_H_ATa b l e 1 6r2D010 1101output
FIFO_CTRL_REGTa bl e 1 6rw2E010 111000000000
Slave
address
Typ e
Register address
DefaultComment
HexBinary
FIFO_SRC_REGTa b l e 1 6r2F010 1111
INT1_CFG_ATa bl e 1 6rw30011 000000000000
INT1_SOURCE_ATa b le 1 6r31011 000100000000
INT1_THS_ATa b l e 16rw32011 001000000000
INT1_DURATION_ATa b l e 1 6rw33011 001100000000
INT2_CFG_ATa bl e 1 6rw34011 010000000000
INT2_SOURCE_ATa b le 1 6r35011 010100000000
INT2_THS_ATa b l e 16rw36011 011000000000
INT2_DURATION_ATa b l e 1 6rw37011 011100000000
CLICK_CFG_ATa b l e 16rw38011 100000000000
CLICK_SRC_ATa b l e 16rw39011 100100000000
CLICK_THS_ATa bl e 1 6rw3A011 101000000000
TIME_LIMIT_ATa b le 1 6rw3B011 101100000000
40/67Doc ID 022162 Rev 1
Page 41
LSM330DLCRegister mapping
Table 18.Register address map (continued)
Name
TIME_LATENCY_ATa b l e 1 6rw3C011 110000000000
TIME_WINDOW_ATa b le 1 6rw3D011 110100000000
Act_THSTa b le 1 6rw3E011 111000000000
Act_DURTab l e 1 6rw3F011 111100000000
ReservedTa b l e 17-00-1E--Reserved
WHO_AM_I_GTa bl e 1 7rw0F000111111010100
ReservedTa b l e 17rw10-1F--
CTRL_REG1_GTa bl e 1 7rw20010 000000000111
CTRL_REG2_GTa bl e 1 7rw21010 000100000000
CTRL_REG3_GTa bl e 1 7rw22010 001000000000
CTRL_REG4_GTa bl e 1 7rw23010 001100000000
CTRL_REG5_GTa bl e 1 7r24010 010000000000
REFERENCE_GTa b l e 1 7r25010 010100000000
OUT_TEMP_GTa bl e 1 7r26010 0110output
STATUS_REG_GTa b le 1 7r27010 0111output
Slave
address
Typ e
Register address
DefaultComment
HexBinary
OUT_X_L_GTa b l e 1 7r28010 1000output
OUT_X_H_GTa b l e 17r29010 1001output
OUT_Y_L_GTa b l e 1 7r2A010 1010output
OUT_Y_H_GTa b l e 17r2B010 1011output
OUT_Z_L_GTa bl e 1 7rw2C010 1100output
OUT_Z_H_GTa bl e 1 7r2D010 1101output
FIFO_CTRL_REG_GTa b le 1 7rw2E010 111000000000
FIFO_SRC_REG_GTa b le 1 7r2F010 1111output
INT1_CFG_GTa bl e 1 7rw30011 0001output
INT1_SRC_GTa b l e 1 7rw31011 0001output
INT1_TSH_XH_GTa bl e 1 7rw32011 001000000000
INT1_TSH_XL_GTa b le 1 7rw33011 001100000000
INT1_TSH_YH_GTa bl e 1 7rw34011 010000000000
INT1_TSH_YL_GTa b le 1 7rw35011 010100000000
INT1_TSH_ZH_GTa b le 1 7rw36011 011000000000
INT1_TSH_ZL_GTa b le 1 7rw37011 011100000000
INT1_DURATION_GTa b le 1 7rw38011 100000000000
Doc ID 022162 Rev 141/67
Page 42
Register mappingLSM330DLC
Registers marked as Reserved must not be changed. Writing to those registers may cause
permanent damage 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.
42/67Doc ID 022162 Rev 1
Page 43
LSM330DLCRegister descriptions
8 Register descriptions
The device contains a set of registers which are used to control its behavior and to retrieve
acceleration, angular rate and temperature data. The register addresses, made up of 7 bits,
are used to identify them and to write the data through the serial interface.
8.1 CTRL_REG1_A (20h)
Table 19.CTRL_REG1_A register
ODR3ODR2ODR1ODR0LPenZenYenXen
Table 20.CTRL_REG1_A description
ODR3-0
LPen
Zen
Ye n
Xen
Data rate selection. Default value: 0
(0000: Power-down; Others: refer to Ta bl e 2 1, “Data rate configuration”)
Low power mode enable. Default value: 0
(0: Normal mode, 1: Low power mode)
Z axis enable. Default value: 1
(0: Z axis disabled; 1: Z axis enabled)
Y axis enable. Default value: 1
(0: Y axis disabled; 1: Y axis enabled)
X axis enable. Default value: 1
(0: X axis disabled; 1: X axis enabled)
ODR<3:0> is used to set the power mode and ODR selection. Ta bl e 2 1 below provides all
the frequencies resulting from the ODR<3:0> combinations.
Table 21.Data rate configuration
ODR3ODR2ODR1ODR0Power mode selection
0000Power-down mode
0001Normal / Low power mode (1 Hz)
0010Normal / Low power mode (10 Hz)
0011Normal / Low power mode (25 Hz)
0100Normal / Low power mode (50 Hz)
0101Normal / Low power mode (100 Hz)
0110Normal / Low power mode (200 Hz)
0111Normal / Low power mode (400 Hz)
1000Low power mode (1.620 kHz)
1001Normal (1.344 kHz) / Low power mode (5.376 kHz)
0: Trigger event linked to trigger signal on INT1_A
1: Trigger event linked to trigger signal on INT2_A
Doc ID 022162 Rev 147/67
Page 48
Register descriptionsLSM330DLC
Table 39.FIFO mode configuration
FM1FM0FIFO mode
00Bypass mode
01FIFO mode
10Stream mode
11Trigger mode
8.13 FIFO_SRC_REG_A (2Fh)
Table 40.FIFO_SRC_REG_A register
WTMOVRN_FIFOEMPTYFSS4FSS3FSS2FSS1FSS0
Table 41.FIFO_SRC_REG_A description
WTMWTM bit is set high when FIFO content exceeds watermark level
OVRN_FIFOOVRN bit is set high when FIFO buffer is full, this means that the FIFO buffer
contains 32 unread samples. At the following ODR a new sample set replaces the
oldest FIFO value. The OVRN bit is reset when the first sample set has been read
EMPTYEMPTY flag is set high when all FIFO samples have been read and FIFO is empty
FSS4-0FSS[4:0] field always contains the current number of unread samples stored in the
FIFO buffer. When FIFO is enabled, this value increases at ODR frequency until
the buffer is full, whereas, it decreases every time that one sample set is retrieved
from FIFO
8.14 INT1_CFG_A (30h)
Table 42.INT1_CFG_A register
AOI6DZHIE/
ZUPE
Table 43.INT1_CFG_A description
AOIAnd/Or combination of interrupt events. Default value: 0. Refer to Table 44: Inter-
rupt mode, “Interrupt mode”
6D6 direction detection function enabled. Default value: 0. Refer to Table 44: Interrupt
mode
ZLIE/
ZDOWNE
YHIE/
YUPE
YLIE/
YDOWNE
XHIE/
XUPE
XLIE/
XDOWNE
ZHIE/
ZUPE
ZLIE/
ZDOWNE
48/67Doc ID 022162 Rev 1
Enable interrupt generation on Z high event or on direction recognition. Default
value: 0 (0: disable interrupt request;1: enable interrupt request)
Enable interrupt generation on Z low event or on direction recognition. Default
value: 0 (0: disable interrupt request;1: enable interrupt request)
Page 49
LSM330DLCRegister descriptions
Table 43.INT1_CFG_A description (continued)
YHIE/
YUPE
YLIE/
YDOWNE
Enable interrupt generation on Y high event or on direction recognition. Default
value: 0 (0: disable interrupt request; 1: enable interrupt request.)
Enable interrupt generation on Y low event or on direction recognition. Default
value: 0 (0: disable interrupt request; 1: enable interrupt request.)
XHIE/
XUPE
XLIE/XDOWNE Enable interrupt generation on X low event or on direction recognition. Default
Enable interrupt generation on X high event or on direction recognition. Default
value: 0 (0: disable interrupt request; 1: enable interrupt request.)
A write operation at this address is possible only after system boot.
.
Table 44.Interrupt mode
AOI6DInterrupt mode
00OR combination of interrupt events
016 direction movement recognition
10AND combination of interrupt events
116 direction position recognition
The difference between AOI-6D = ‘01’ and AOI-6D = ‘11’.
AOI-6D = ‘01’ is movement recognition. An interrupt is generated when the orientation
moves from “unknown zone” to “known zone”. The interrupt signal remains for an ODR
duration.
AOI-6D = ‘11’ is direction recognition. An interrupt is generated when the orientation is
inside a “known zone”. The interrupt signal remains until orientation is within the zone.
8.15 INT1_SRC_A (31h)
Table 45.INT1_SRC_A register
(1)
0
1. This bit must be set to ‘0’ for correct operation.
Table 46.INT1_SRC_A description
IA
ZH
ZL
IAZHZLYHYLXHXL
Interrupt active. Default value: 0
(0: no interrupt has been generated; 1: one or more interrupts have been generated)
Z high. Default value: 0
(0: no interrupt, 1: Z High event has occurred)
Z low. Default value: 0
(0: no interrupt; 1: Z Low event has occurred)
Doc ID 022162 Rev 149/67
Page 50
Register descriptionsLSM330DLC
Table 46.INT1_SRC_A description (continued)
Y high. Default value: 0
YH
(0: no interrupt, 1: Y High event has occurred)
Y low. Default value: 0
YL
(0: no interrupt, 1: Y Low event has occurred)
X high. Default value: 0
XH
(0: no interrupt, 1: X High event has occurred)
X low. Default value: 0
XL
(0: no interrupt, 1: X Low event has occurred)
Interrupt 1 source register. Read only register.
Reading at this address clears INT1_SRC_A IA bit (and the interrupt signal on INT 1 pin)
and allows the refreshing of the data in the INT1_SRC_A register if the latched option was
chosen.
8.16 INT1_THS_A (32h)
Table 47.INT1_THS_A register
(1)
0
THS6THS5THS4THS3THS2THS1THS0
1. This bit has to be set ‘0’ for correct operation.
TLI7-TLI0CLICK-CLICK Time limit. Default value: 000 0000
8.22 TIME_LATENCY_A (3Ch)
Table 59.TIME_LATENCY_A register
TLA7TLA6TLA5TLA4TLA3TLA2TLA1TLA0
Table 60.TIME_LATENCY_A description
TLA7-TLA0CLICK-CLICK time latency. Default value: 000 0000
8.23 TIME WINDOW_A (3Dh)
Table 61.TIME_WINDOW_A register
TW7TW6TW5TW4TW3TW2TW1TW0
52/67Doc ID 022162 Rev 1
Page 53
LSM330DLCRegister descriptions
Table 62.TIME_WINDOW_A description
TW7-TW0CLICK-CLICK time window
8.24 Act_THS (3Eh)
Table 63.Act_THS register
--Acth6Acth5Acth4Acth3Acth2Acth1Acth0
Table 64.Act_THS description
Acth[6-0]Sleep-to-Wake, Return to Sleep activation threshold
1LSb = 16mg
8.25 Act_DUR (3Fh)
Table 65.Act_DUR register
ActD7ActD6ActD5ActD4ActD3ActD2ActD1ActD0
Table 66.Act_DUR description
ActD[7-0]Sleep-to-Wake, Return to Sleep duration
DUR = (Act_DUR + 1)*8/ODR
8.26 WHO_AM_I_G (0Fh)
Table 67.WHO_AM_I_G register
11010100
Device identification register.
8.27 CTRL_REG1_G (20h)
Table 68.CTRL_REG1_G register
DR1DR0BW1BW0PDZenXenYen
Table 69.CTRL_REG1_G description
DR1-DR0Output data rate selection. Refer to Ta bl e 7 0
BW1-BW0Bandwidth selection. Refer to Ta bl e 7 0
Doc ID 022162 Rev 153/67
Page 54
Register descriptionsLSM330DLC
Table 69.CTRL_REG1_G description
PD
ZenZ axis enable. Default value: 1
YenY axis enable. Default value: 1
XenX axis enable. Default value: 1
Power-down mode enable. Default value: 0
(0: Power-down mode, 1: Normal mode or Sleep mode)
(0: Z axis disabled; 1: Z axis enabled)
(0: Y axis disabled; 1: Y axis enabled)
(0: X axis disabled; 1: X axis enabled)
DR<1:0> is used to set ODR selection. BW <1:0> is used to set bandwidth selection.
Ta bl e 7 0 below provides all the frequencies resulting from the DR / BW bit combinations.
Table 70.DR and BW configuration setting
DR <1:0>BW <1:0>ODR [Hz]Cut-off
00009512.5
00019525
00109525
00119525
010019012.5
010119025
011019050
011119070
100038020
100138025
101038050
1011380100
110076030
110176035
111076050
1111760100
The combination of PD, Zen, Yen, Xen is used to set the device in different modes (Power-
down / Normal / Sleep mode) according to the following table:
INT1 selection configuration. Default value: 0
(see Figure 20)
Out selection configuration. Default value: 0
(see Figure 20)
Figure 20. INT1_Sel and Out_Sel configuration block diagram
Out_Sel <1:0>
00
01
0
10
11
INT1_Sel <1:0>
10
11
01
00
ADC
LPF1
HPF
LPF2
1
HPen
DataReg
FIFO
32x16x3
Interrupt
generator
AM07949V2
8.32 REFERENCE_G (25h)
Table 82.REFERENCE_G register
Ref7Ref6Ref5Ref4Ref3Ref2Ref1Ref0
Table 83.REFERENCE_G register description
Ref 7-Ref0Reference value for interrupt generation. Default value: 0
Doc ID 022162 Rev 157/67
Page 58
Register descriptionsLSM330DLC
8.33 OUT_TEMP_G (26h)
Table 84.OUT_TEMP_G register
Temp7Temp6Temp5Temp4Temp3Temp2Temp1Temp0
Table 85.OUT_TEMP_G register description
Temp7-Temp0Temperature data (1LSb/deg - 8-bit resolution). The value is expressed as
two’s complement.
8.34 STATUS_REG_G (27h)
Table 86.STATUS_REG_G register
ZYXORZORYORXORZYXDAZDAYDAXDA
Table 87.STATUS_REG description
X, Y, Z-axis data overrun. Default value: 0
ZYXOR
ZOR
YOR
XOR
ZYXDA X, Y, Z -axis new data available. Default value: 0
ZDAZ axis new data available. Default value: 0
(0: no overrun has occurred; 1: new data has overwritten the previous data before it was
read)
Z axis data overrun. Default value: 0
(0: no overrun has occurred; 1: new data for the Z-axis has overwritten the previous data)
Y axis data overrun. Default value: 0
(0: no overrun has occurred; 1: new data for the Y-axis has overwritten the previous data)
X axis data overrun. Default value: 0
(0: no overrun has occurred; 1: new data for the X-axis has overwritten the previous data)
(0: a new set of data is not yet available; 1: a new set of data is available)
(0: new data for the Z-axis is not yet available; 1: new data for the Z-axis is available)
YDAY axis new data available. Default value: 0
(0: new data for the Y-axis is not yet available;1: new data for the Y-axis is available)
XDAX axis new data available. Default value: 0
(0: new data for the X-axis is not yet available; 1: new data for the X-axis is available)
8.35 OUT_X_L_G (28h), OUT_X_H_G (29h)
X-axis angular rate data. The value is expressed as two’s complement.
8.36 OUT_Y_L_G (2Ah), OUT_Y_H_G (2Bh)
Y-axis angular rate data. The value is expressed as two’s complement.
58/67Doc ID 022162 Rev 1
Page 59
LSM330DLCRegister descriptions
8.37 OUT_Z_L_G (2Ch), OUT_Z_H_G (2Dh)
Z-axis angular rate data. The value is expressed as two’s complement.
8.38 FIFO_CTRL_REG_G (2Eh)
Table 88.FIFO_CTRL_REG_G register
FM2FM1FM0WTM4WTM3WTM2WTM1WTM0
Table 89.FIFO_CTRL_REG_G description
FM2-FM0FIFO mode selection. Default value: 00 (see Ta b le 9 0 )
WTM4-WTM0FIFO threshold. Watermark level setting
Table 90.FIFO mode configuration
FM2FM1FM0FIFO mode
000Bypass mode
001FIFO mode
010Stream mode
011Stream-to-FIFO mode
100Bypass-to-stream mode
8.39 FIFO_SRC_REG_G (2Fh)
Table 91.FIFO_SRC_REG_G register
WTMOVRNEMPTYFSS4FSS3FSS2FSS1FSS0
Table 92.FIFO_SRC_REG_G description
WTMWatermark status. (0: FIFO filling is lower than WTM level; 1: FIFO filling is equal
or higher than WTM level)
OVRNOverrun bit status.
(0: FIFO is not completely filled; 1:FIFO is completely filled)
EMPTYFIFO empty bit.
(0: FIFO not empty; 1: FIFO empty)
FSS4-FSS1FIFO stored data level
Doc ID 022162 Rev 159/67
Page 60
Register descriptionsLSM330DLC
8.40 INT1_CFG_G (30h)
Table 93.INT1_CFG_G register
AND/ORLIRZHIEZLIEYHIEYLIEXHIEXLIE
Table 94.INT1_CFG_G description
AND/OR
AND/OR combination of interrupt events. Default value: 0
(0: OR combination of interrupt events 1: AND combination of interrupt events
LIR
ZHIE
ZLIE
YHIE
YLIE
XHIE
XLIE
Latch Interrupt request. Default value: 0
(0: interrupt request not latched; 1: interrupt request latched)
Cleared by reading INT1_SRC_G reg.
Enable interrupt generation on Z high event. Default value: 0
(0: disable interrupt request; 1: enable interrupt request on measured value higher
than preset threshold)
Enable interrupt generation on Z low event. Default value: 0
(0: disable interrupt request; 1: enable interrupt request on measured value lower than
preset threshold)
Enable interrupt generation on Y high event. Default value: 0
(0: disable interrupt request; 1: enable interrupt request on measured value higher
than preset threshold)
Enable interrupt generation on Y low event. Default value: 0
(0: disable interrupt request; 1: enable interrupt request on measured value lower than
preset threshold)
Enable interrupt generation on X high event. Default value: 0
(0: disable interrupt request; 1: enable interrupt request on measured value higher
than preset threshold)
Enable interrupt generation on X low event. Default value: 0
(0: disable interrupt request; 1: enable interrupt request on measured value lower than
preset threshold)
Configuration register for interrupt source.
8.41 INT1_SRC_G (31h)
Table 95.INT1_SRC_G register
0 IA ZHZLYHYLXHXL
Table 96.INT1_SRC_G description
IA
ZHZ high. Default value: 0 (0: no interrupt, 1: Z High event has occurred)
60/67Doc ID 022162 Rev 1
Interrupt active. Default value: 0
(0: no interrupt has been generated; 1: one or more interrupts have been generated)
Page 61
LSM330DLCRegister descriptions
Table 96.INT1_SRC_G description
ZLZ low. Default value: 0 (0: no interrupt; 1: Z Low event has occurred)
YHY high. Default value: 0 (0: no interrupt, 1: Y High event has occurred)
YLY low. Default value: 0 (0: no interrupt, 1: Y Low event has occurred)
XHX high. Default value: 0 (0: no interrupt, 1: X High event has occurred)
XLX low. Default value: 0 (0: no interrupt, 1: X Low event has occurred)
Interrupt source register. Read only register.
Reading at this address clears the INT1_SRC_G IA bit (and eventually the interrupt signal
on the INT1_G pin) and allows the refreshing of data in the INT1_SRC_G register if the
latched option was chosen.
D6 - D0 bits set the minimum duration of the interrupt event to be recognized. Duration steps
and maximum values depend on the ODR chosen.
62/67Doc ID 022162 Rev 1
Page 63
LSM330DLCRegister descriptions
WAI T bit has the following meaning:
Wait =’0’: the interrupt falls immediately if signal crosses the selected threshold
Wait =’1’: if the signal crosses the selected threshold, the interrupt falls only after the
duration has counted the number of samples at the selected data rate, written into the
duration counter register.
Figure 21. Wait disabled
Doc ID 022162 Rev 163/67
Page 64
Register descriptionsLSM330DLC
Figure 22. Wait enabled
64/67Doc ID 022162 Rev 1
Page 65
LSM330DLCPackage information
9 Package information
In order to meet environmental requirements, ST offers these devices in different grades of
ECOPACK
®
packages, depending on their level of environmental compliance. ECOPACK
specifications, grade definitions and product status are available at: www.st.com.
ECOPACK is an ST trademark.
Figure 23. LGA-28 (4x5x1.1 mm): mechanical data and package dimensions
Dimensions
Ref.
A11.1
A20.855
A30.200
D13.8504.0004.150
E14.8505.0005.150
L13.75
L22.75
N10.500
M0.075
P12.200
P21.700
T10.2650.3250.385
T20.190.2500.310
d0.200
k0.050
h0.100
Min.Typ.Max.
mm
Land Grid Array Package
Outline and
mechanical data
LGA-28 (4x5x1.1mm)
®
8181393A
Doc ID 022162 Rev 165/67
Page 66
Revision historyLSM330DLC
10 Revision history
Table 111. Document revision history
DateRevisionChanges
2-Sep-20111Initial release.
66/67Doc ID 022162 Rev 1
Page 67
LSM330DLC
Please Read Carefully:
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY TWO AUTHORIZED ST REPRESENTATIVES, ST PRODUCTS ARE NOT
RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING
APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY,
DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE
GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.