The various sensing elements are manufactured
using specialized micromachining processes,
while the IC interfaces are realized using a CMOS
technology that allows to design a dedicated
circuit which is trimmed to better match the
sensing element characteristics.
LSM320DL has a dynamic user selectable fullscale acceleration range of ±2g/±4g/±8/±16g and
angular rate of ±250/±500/±2000 deg/sec.
The accelerometer and gyroscope sensors can
be either activated or put in low power/powerdown mode separately for application optimized
power saving.
■ 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
Description
The LSM320DL is a system-in-package featuring
a 3D digital accelerometer and a 2D digital
gyroscope.
The LSM320DL is available in a plastic land grid
array (LGA) package.
Several years ago ST successfully pioneered the
use of this package for accelerometers. Today, ST
has the widest manufacturing capability and
strongest expertise in the world for production of
sensors in a plastic LGA package.
Table 1.Device summary
Order codes
LSM320DL
LSM320DLTR
Temperature
range [°C]
-40 to +85LGA 28L
PackagePacking
Tr ay
Tape and
reel
The ST modules family uses a robust and mature
manufacturing process already used for the
production of micromachined accelerometers.
May 2011Doc ID 018845 Rev 11/53
This is preliminary information on a new product now in development or undergoing evaluation. Details are subject to
change without notice.
I2C serial data (SDA)
SPI serial data input (SDI)
3-wire interface serial data output (SDO)
Accelerometer:
SPI serial data output (SDO)
2
C least significant bit of the device address (SA0)
I
Accelerometer:
2
I
C serial clock (SCL)
SPI serial port clock (SPC)
Gyroscope:
7SDO_G
SPI serial data output (SDO)
2
C least significant bit of the device address (SA0)
I
8INT2_AAccelerometer interrupt signal
Gyroscope:
9SDA/SDI_G
I2C serial data (SDA)
SPI serial data input (SDI)
3-wire interface serial data output (SDO)
10/53Doc ID 018845 Rev 1
Page 11
LSM320DLBlock diagram and pin description
Table 2.Pin description (continued)
Pin#NameFunction
Gyroscope:
10CS_G
11ResReserved connect to GND
12VddIO_GGyroscope power supply for IO pins
13SCL_G
14ResReserved connect to GND
15VddPower supply
16ResReserved connect to GND
17CS_A
18ResReserved connect to GND
19ResReserved connect to GND
SPI enable
2
C/SPI mode selection (1: SPI idle mode / I2C communication
I
enabled; 0: SPI communication mode / I2C disabled)
Gyroscope:
2
I
C serial clock (SCL)
SPI serial port clock (SPC)
Accelerometer:
SPI enable
2
C/SPI mode selection (1: SPI idle mode / I2C communication
I
enabled; 0: SPI communication mode / I
2
C disabled)
20ResReserved connect to GND
21INT_GGyroscope interrupt signal
22VddPower supply
23ResReserved connect to GND
24ResReserved connect to GND
25GND0 V power supply
26VCONTPLL filter connection
27ResReserved connect to GND
28VddIO_AAccelerometer power supply for IO pins
Doc ID 018845 Rev 111/53
Page 12
Module specificationsLSM320DL
zHz
2 Module specifications
2.1 Mechanical characteristics
@ Vdd = 3V, T = 25 °C unless otherwise noted
Table 3.Mechanical characteristics
SymbolParameterTest conditionsMin.Typ.
FS bit set to 00±2.0
LA_FS
G_FS
LA_So
G_SoAngular rate sensitivity
LA_So
G_So
LA_TyOff
G_TyOffTypical zero-rate level
LA_TCOff
G_TCOff
AnAcceleration noise density
RnRate noise densityFS bit set to 000.03°/s/
TopOperating temperature range-40+85°C
Linear acceleration
measurement range
Angular rate
measurement range
Linear acceleration
sensitivity
Linear acceleration
sensitivity change vs.
temperature
Angular rate sensitivity
change vs. temperature
Typical Zero-g level offset
accuracy
Zerotemperature
Zero-rate level change vs.
temperature
(3)
g level change vs.
(2)
(2)
(4)
FS bit set to 01±4.0
FS bit set to 10±8.0
FS bit set to 11±16.0
FS bit set to 00±250
FS bit set to 10±2000
FS bit set to 001
FS bit set to 012
FS bit set to 104
FS bit set to 1112
FS bit set to 008.75
FS bit set to 0117.5
FS bit set to 1070
FS bit set to 00±0.05%/°C
From -40 to +85 °C±2%
FS bit set to 00±60mg
FS bit set to 0010LSb
Max. delta from 25 °C±0.5m
FS bit set to 00
from -40 to +85 °C
FS bit set to 00
Normal mode, ODR bit set to
1001
(a)
.
(1)
Max.Unit
g
dpsFS bit set to 01±500
mg/digit
mdps/
digit
g/°C
±0.03dps/°C
g/
220µ
H
a. The product is factory calibrated at 3 V. The operational power supply range is from 2.4 V to 3.6 V.
12/53Doc ID 018845 Rev 1
Page 13
LSM320DLModule specifications
1. Typical specifications are not guaranteed.
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.
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
(1)
Max.Unit
LA_Idd
LA_IddLowP
LA_IddPdn
G_Idd
G_IddSL
G_IddPdn
LA current consumption in
normal mode
LA current consumption in low
power mode
LA current consumption in
power-down mode
AR current consumption in
normal mode
Supply current
in sleep mode
(2)
AR current consumption in
power-down mode
ODR = 50Hz11
ODR = 1Hz2
ODR = 50Hz6µA
T = 25°C0.5µA
6mA
1.5mA
T = 25 °C5µA
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°C
1. Typical specifications are not guaranteed.
2. Sleep mode introduces a faster turn-on time compared to power-down mode.
µA
Doc ID 018845 Rev 113/53
Page 14
Module specificationsLSM320DL
2.3 Temperature sensor characteristics
@ Vdd =3.0 V, T= 25 °C, unless otherwise noted.
Table 5.Temperature sensor characteristics
SymbolParameterTest conditionMin.Typ.
Temperature sensor
TSDr
TODR
To p
1. Typical specifications are not guaranteed.
output change vs.
temperature
Temperature refresh
rate
Operating
temperature range
-
(b)
(1)
-1°C/digit
1Hz
-40+85°C
Max.Unit
b. The product is factory calibrated at 3.0 V.
14/53Doc ID 018845 Rev 1
Page 15
LSM320DLModule 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 ue
SymbolParameter
Min.Max.
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)
h(SI)
h(CS)
LSB IN
LSB OUT
dis(SO)
v(SO)
c(SPC)
h(SO)
Figure 3.SPI slave timing diagram
CS
(3)
su(CS)
SPC
(3)
su(SI)
(3)
SDI
(3)
SDO
3. When no communication is on-going, data on CS, SPC, SDI, and SDO are driven by internal pull-up resistors.
MSB IN
MSB OUT
(3)
(3)
(3)
(3)
c. Measurement points are done at 0.2·Vdd_IO and 0.8·Vdd_IO, for both input and output ports.
Doc ID 018845 Rev 115/53
Page 16
Module specificationsLSM320DL
t
t
t
t
t
t
t
t
t
t
t
t
2.4.2 I2C - inter IC control interface
Subject to general operating conditions for Vdd and Top.
Table 7.I2C slave timing values
SymbolParameter
I2C standard mode
(1)
I2C fast mode
Min.Max.Min.Max.
(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. Data based on standard I2C protocol requirement, not tested in production.
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
4.70.6
STOP condition setup time40.6
Bus free time between STOP
and START condition
2
C slave timing diagram
(d)
4.71.3
20 + 0.1C
20 + 0.1C
b
b
(2)
(2)
µs
300
ns
300
µs
START
SDA
f(SDA)
r(SDA)
su(SDA)
h(SDA)
SCL
w(SCLL)
h(ST)
d. Measurement points are done at 0.2·Vdd_IO and 0.8·Vdd_IO, for both ports.
w(SCLH)
r(SCL)
f(SCL)
16/53Doc ID 018845 Rev 1
su(SR)
su(SP)
w(SP:SR)
REPEATED
START
START
STOP
AM09238V1
Page 17
LSM320DLModule 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
VinInput voltage on any control pin (SCL, SDA/SDI) -0.3 to Vdd_IO +0.3V
A
POW
Acceleration (any axis, powered, Vdd = 3 V)
10000 g for 0.1 ms
3000 g for 0.5 ms
3000 g for 0.5 ms
A
T
UNP
T
STG
Acceleration (any axis, unpowered)
10000 g for 0.1 ms
Operating temperature range-40 to +85°C
OP
Storage temperature range-40 to +125°C
ESDElectrostatic discharge protection2 (HBM)kV
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 018845 Rev 117/53
Page 18
Module specificationsLSM320DL
2.6 Terminology
2.6.1 Sensitivity
Linear acceleration sensitivity can be determined, for example, by applying 1 g acceleration
to the device. As the sensor can measure DC accelerations this can be done easily by
pointing the axis of interest towards the center of the Earth, noting the output value, rotating
the sensor by 180 degrees (pointing to 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 also very little over time. The sensitivity
tolerance describes the range of sensitivities of a large population 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.
2.6.2 Zero 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 measures 0 g in the X axis and 0 g in the Y axis, whereas the Z axis
measures 1 g. The output is ideally 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 the 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. The offset
changes little over temperature, see “Zero-g level change vs. temperature”. The Zero-g level
tolerance (TyOff) describes the standard deviation of the range of Zero-g levels of a
population of sensors.
Angular rate zero-rate level describes the actual output value if there is no angular rate
present. The 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 also very little over time.
18/53Doc ID 018845 Rev 1
Page 19
LSM320DLFunctionality
3 Functionality
The LSM320DL is a system-in-package featuring a 3D digital accelerometer and a 2D digital
gyroscope.
The complete device includes specific sensing elements and two IC interfaces able to
measure both the acceleration and angular rate applied to the module and to provide a
signal to the external world through an SPI/I
The various sensing elements are manufactured using specialized micromachining
processes, while the IC interfaces are realized using a CMOS technology that allows to
design a dedicated circuit which is trimmed to better match the sensing element
characteristics.
The LSM320DL may also be configured to generate an inertial wake-up and free-fall
interrupt signal according to a programmed acceleration event along the enabled axes.
3.1 Factory calibration
The IC interface is factory calibrated for sensitivity and zero level. The trimming values are
stored inside the device by a non-volatile memory. Any time the device is turned on, the
trimming parameters are downloaded into the registers to be used during the normal
operation. This allows the user to use the device without further calibration.
2
C serial interface.
Doc ID 018845 Rev 119/53
Page 20
Application hintsLSM320DL
4 Application hints
Figure 5.LSM320DL electrical connection
Vdd_IO
Reserved pins have to be connected to GND
C5
SDA/SDI_G
GND
CS_G
10
Res
11
Vdd_IO_G
SCL_G
Res
14
15
Res
Vdd
Vdd
Digital signal from/to signal controller.Signals levels are defined by proper selection of Vdd
Table 9.Part list
ComponentTypical value
DRDY_G
SDO_G
INT2_A
INT1_A
LSM320DL
(TOP VIEW)
FILTVDD
FILTIN Y
CS_A
Res
Res
Res
Z
Y
1
Vdd_IO
X
SDA/SDI_A
SDO_A
SCL_A
Res
1
28
VddIO_A
Res
VCONT
GND
25
24
Res
INT_G
Vdd
Res
C1
R2C2
DIRECTION OF
DETECTABLE
ACCELERATIONS
+Ω
z
Z
1
DIRECTION OF
DETECTABLE
ANGULAR RATE
+Ω
X
X
GND
C3
GND
C4
AM09275V1
C110 nF
C2470 nF
C310 µF
C4100 nF
C5100 nF
R210 kOhm
4.1 External capacitors
The device core is supplied through Vdd line. Power supply decoupling capacitors (C4=100
nF ceramic, C3=10 µF Al) should be placed as near as possible to the supply pin of the
device (common design practice).
All the voltage and ground supplies must be present at the same time to have proper
behavior of the IC (refer to Figure 5).
The functionality of the device and the measured acceleration/angular rate data is
selectable and accessible through the SPI/I
2
C interface.
20/53Doc ID 018845 Rev 1
Page 21
LSM320DLApplication hints
The functions, the threshold, and the timing of the two interrupt pins for each sensor can be
completely programmed by the user though the SPI/I
4.2 Soldering information
The LGA package is compliant with the ECOPACK®, RoHS and “Green” standard.
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
2
C interface.
.
Doc ID 018845 Rev 121/53
Page 22
Digital interfacesLSM320DL
5 Digital interfaces
The registers embedded inside the LSM320DL 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, CS line must be tied high (i.e. connected to Vdd_IO).
CS_A
CS_G
SCL_A
SCL_G
SDA/SDI_A
SDA/SDI_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 less significant bit of the device address (SA0)
I
SPI serial data output (SDO)
5.1 I2C serial interface
The LSM320DL I2C is a bus slave. The I2C is employed to write the data into 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.
22/53Doc ID 018845 Rev 1
Page 23
LSM320DLDigital interfaces
5.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 inside the LSM320DL behaves as 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) is 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
SlaveSAKSAKSAKDATADATADATA
Data are transmitted in byte format (DATA). Each data transfer contains 8 bits. The number
of bytes transferred per transfer is unlimited. Data is transferred with the most significant bit
(MSb) first. If a receiver can’t 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
Doc ID 018845 Rev 123/53
Page 24
Digital interfacesLSM320DL
state. Data transfer only continues when the receiver is ready for another byte and releases
the data line. If a slave receiver doesn’t 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 the first register to be read.
In the presented communication format, MAK is Master Acknowledge, and NMAK is No
Master Acknowledge.
Default address:
The SDO/SA0 pad can be used to modify less significant bits of the device address. If the
SA0 pad is connected to voltage supply, LSb is ‘1’ (ex. address 0011001b), or else, 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 is ‘1’ (Read), a repeated
START (SR) condition must be issued after the two sub-address bytes; if the bit is ‘0’ (Write)
the master transmits to the slave with direction unchanged. Table 16 and Table 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 110100xb.
Table 17.Angular rate SAD+Read/Write patterns
CommandSAD[6:1]SAD[0] = SA0R/WSAD+R/W
Read1101000111010001 (F1h)
Write1101000011010000 (F0h)
Read1101001111010011 (F3h)
Write1101001011010010 (F2h)
24/53Doc ID 018845 Rev 1
Page 25
LSM320DLDigital interfaces
5.2 SPI bus interface
The LSM320DL SPI is a bus slave. The SPI allows to write and read the registers of the
device.
The serial interface interacts with the outside world with 4 wires: CS, SPC, SDI, and
SDO.(SPC, SDI, SD0 are common)
Figure 6.Read and write protocol
CS
SPC
SDI
RW
MS
AD5 AD4 AD3 AD2 AD1 AD0
SDO
CS is the serial port enable and it is controlled by the SPI master. It goes low at the start of
the transmission and returns to high at the end. SPC is the serial port clock and it 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. Those lines are driven at the
falling edge of SPC and should be captured at the rising edge of SPC.
DI7DI6DI5DI4DI3DI2DI1DI0
DO7DO6DO5DO4DO3DO2DO1DO0
Both the read register and write register commands are completed in 16 clock pulses or in
multiples of 8 in case of multiple bytes 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 into 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 is written into the device (MSb first).
bit 8-15: data DO(7:0) (read mode). This is the data that is read from the device (MSb first).
In multiple read/write commands, further blocks of 8 clock periods are 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.
Doc ID 018845 Rev 125/53
Page 26
Digital interfacesLSM320DL
5.2.1 SPI read
Figure 7.SPI read protocol
CS
SPC
SDI
RW
MS
AD5 AD4 AD3 AD2 AD1 AD0
SDO
DO7 DO6 DO5DO4 DO3 DO2 DO1 DO0
The SPI Read command is performed with 16 clock pulses. Multiple byte read command is
performed adding blocks of 8 clock pulses at 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 is read from the device (MSb first).
bit 16-... : data DO(...-8). Further data in multiple byte reading.
Registers marked as Reserved must not be changed. The 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.
Doc ID 018845 Rev 129/53
Page 30
Registers descriptionLSM320DL
7 Registers description
The device contains a set of registers which are used to control its behavior and to retrieve
acceleration, angular rate and temperature data. The registers address, made of 7 bits, is
used to identify them and to write the data through serial interface.
7.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 Table 21., “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 power mode and ODR selection. In Table 21 all the frequencies
resulting in a combination of ODR<3:0> are reported.
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)
Write operation at this address is possible only after system boot.
Table 43.Interrupt mode
AOI6DInterrupt mode
00OR combination of interrupt events
016-direction movement recognition
10AND combination of interrupt events
116-direction position recognition
Difference between AOI-6D = ‘01’ and AOI-6D = ‘11’.
Doc ID 018845 Rev 135/53
Page 36
Registers descriptionLSM320DL
AOI-6D = ‘01’ is movement recognition. An interrupt is generated when orientation moves
from unknown zone to known zone. The interrupt signal stays for a duration ODR.
AOI-6D = ‘11’ is direction recognition. An interrupt is generated when orientation is inside a
known zone. The interrupt signal stays until orientation is inside the zone.
7.15 INT1_SRC_A (31h)
Table 44.INT1_SRC_A register
0 IA ZHZLYHYLXHXL
Table 45.INT1_SRC_A description
Interrupt active. Default value: 0
IA
(0: no interrupt has been generated; 1: one or more interrupts have been generated)
Z high. Default value: 0
ZH
(0: no interrupt, 1: Z high event has occurred)
Z low. Default value: 0
ZL
(0: no interrupt; 1: Z low event has occurred)
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 the INT1_SRC IA bit (and the interrupt signal on the INT 1
pin) and allows the refreshment of data in the INT1_SRC register if the latched option is
chosen.
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
7.36 INT1_CFG_G (30h)
Table 89.INT1_CFG_G register
AND/ORLIRZHIEZLIE0
1. This bit must be set to ‘0’ for correct operation.
Table 90.INT1_CFG_G description
AND/OR
LIR
AND/OR combination of interrupt events. Default value: 0
(0: OR combination of interrupt events 1: AND combination of interrupt events
Latch interrupt request. Default value: 0
(0: interrupt request not latched; 1: interrupt request latched)
Cleared by reading INT1_SRC reg.
(1)
(1)
0
XHIEXLIE
Enable interrupt generation on Z high event. Default value: 0
ZHIE
ZLIE
XHIE
XLIE
(0: disable interrupt request; 1: enable interrupt request on measured accel. 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 accel. 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 accel. 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 accel. value
lower than preset threshold)
Configuration register for interrupt source.
7.37 INT1_SRC_G (31h)
Table 91.INT1_SRC_G register
0IAZHZL----XHXL
46/53Doc ID 018845 Rev 1
Page 47
LSM320DLRegisters description
Table 92.INT1_SRC_G description
IA
ZHZ high. Default value: 0 (0: no interrupt; 1: Z high event has occurred)
ZLZ low. Default value: 0 (0: no interrupt; 1: Z 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 active. Default value: 0
(0: no interrupt has been generated; 1: one or more interrupts have been generated)
Interrupt source register. Read only register.
Reading at this address clears the INT1_SRC IA bit (and eventually the interrupt signal on
the INT1 pin) and allows the refreshment of data in the INT1_SRC register if the latched
option is 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.
WAI T bit has the following meaning:
Wait =’0’: the interrupt falls immediately if signal crosses the selected threshold
Wait =’1’: if signal crosses the selected threshold, the interrupt falls only after the duration
has counted a number of samples at the selected data rate, written into the duration counter
register.
48/53Doc ID 018845 Rev 1
Page 49
LSM320DLRegisters description
Figure 13. Wait disabled
!-6
Figure 14. Wait enabled
!-6
!-6
Doc ID 018845 Rev 149/53
Page 50
Package informationLSM320DL
8 Package information
In order to meet environmental requirements, ST offers these devices in different grades of
ECOPACK
specifications, grade definitions, and product status are available at: www.st.com.
ECOPACK is an ST trademark.
®
packages, depending on their level of environmental compliance. ECOPACK
50/53Doc ID 018845 Rev 1
Page 51
LSM320DLPackage information
Table 103. LGA 28L 7.5 x 4.4 x 1.1 mechanical data
mm
Dim.
Min. Typ. Max.
A1 1.1
A2 0.855
A3 0.2
D1 4.25 4.44.55
E1 7.257.5 7.55
N1 0.3
L1 5.4
L2 1.8
P2 1.2
T1 0.6
T2 0.4
M 0.1
d 0.3
k 0.05
h 0.1
Figure 15. LGA 28L 7.5 x 4.4 x 1.1 package drawing
Pin 1 Indicator
A
k
1
D
TOP VIEW
E1
E
B
k
C
A3
D
E
k
A2
Seating
Plane
A1
K
D
k
C
h
d
2
P
2
L
M
==
L1
N1
T1
T2
Doc ID 018845 Rev 151/53
Page 52
Revision historyLSM320DL
9 Revision history
Table 104. Document revision history
DateRevisionChanges
18-May-20111Initial release.
52/53Doc ID 018845 Rev 1
Page 53
LSM320DL
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 AN AUTHORIZED ST REPRESENTATIVE, 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.