The LSM333D is an inertial module capable of
providing 9 DOF (degrees of freedom) inertial
sensing by combining a 3D accelerometer, a 3D
2
C serial interfaces
®
RoHS and “Green” compliant
LSM333D
iNEMO Intertial Module:
Datasheet — preliminary data
gyroscope and a 3D magnetometer in a systemin-package.
The LSM333D has linear acceleration full-scales
of ±2g/±4g/±8g/±16g, a magnetic field full-scale
of±2/±4/±8/±12 gauss and an angular rate of
250/±500/±2000 dps. All full-scales available are
fully selectable by the user.
The LSM333D includes an I
supporting standard and Fast mode 100 kHz and
400 kHz, and SPI serial standard interface.
The system can be configured to generate
interrupt signals, on dedicated pins, motion and
magnetic field detection. Thresholds and the
timing of interrupt generators are programmable
by the end user.
Magnetic, accelerometer and gyroscope sensing
can be enabled or set in Power-down mode
separately for smart power management.
The LSM333D is available in a plastic land grid
array package (LGA) and it is guaranteed to
operate over an extended temperature range from
-40 °C to +85 °C.
Table 1.Device summary
Part number
LSM333D-40 to +85LGA-28Tray
LSM333DTR-40 to +85LGA-28
Temperature
range [°C]
2
C serial bus interface
PackagePacking
Tape and
reel
March 2012Doc ID 022907 Rev 11/75
This is preliminar y information on a new product now in development or undergoing evaluation. Details are subject to
change without notice.
19INT2_A/MAccelerometer/Magnetometer interrupt2 signal
20INT1_A/MAccelerometer/Magnetometer interrupt1 signal
21Vdd_IOPower supply for I/O pins
Gyroscope: SPI enable
22CS_G
2
I
C/SPI mode selection (1: SPI idle mode / I2C communication
enabled; 0: SPI communication mode / I2C disabled)
Accelerometer/Magnetometer: SPI enable
23CS_A/M
24
SCL
SPC
2
I
C/SPI mode selection (1: SPI idle mode / I2C communication
enabled; 0: SPI communication mode / I
2
C serial clock (SCL)
I
2
C disabled)
SPI serial port clock (SPC)
25Vdd_IOPower supply for I/O pins
26SDO_G
27SDO_A
28SDA
Gyroscope: SPI serial data output (SDO) /
2
I
C least significant bit of the device address (SA0)
Accelerometer/Magnetometer:SPI serial data output (SDO) /
2
I
C least significant bit of the device address (SA0)
2
I
C serial data (SDA) / SPI serial data input (SDI)
3-wire interface serial data output (SDO)
Doc ID 022907 Rev 113/75
Module specificationsLSM333D
2 Module specifications
2.1 Sensor characteristics
@ Vdd = 3.0 V, T = 25 °C unless otherwise noted
Table 3.Sensor characteristics
SymbolParameterTest conditionsMin.Typ.
LA_FS
M_FS
G_FS
LA_SoLinear acceleration sensitivity
M_GNMagnetic sensitivity
G_SoAngular rate sensitivity
LA_TCSo
M_TCSo
G_SoDr
Linear acceleration
measurement range
Magnetic
measurement range
Angular rate
measurement range
Linear acceleration sensitivity
change vs. temperature
Magnetic sensitivity change
vs. temperature
Angular rate sensitivity
change vs. temperature
(2)
Linear acceleration FS=±2g0.06
Linear acceleration FS=±4g0.12
Linear acceleration FS=±8g0.24
Linear acceleration FS=±16g0.73
Magnetic FS=±2 gauss0.08
Magnetic FS=±4 gauss0.16
Magnetic FS=±8 gauss0.32
Magnetic FS=±12 gauss0.48
Angular rate FS=±250 dps8.75
Angular rate FS=±500 dps17.50
Angular rate FS=±2000 dps70
From -40 °C to +85 °C±2%
(a)
.
(1)
Max.Unit
±2
±4
±8
±16
±2
±4
±8
±12
±250
±2000
±0.01%/°C
±0.05%/°C
g
gauss
dps±500
mg/LSB
mgauss/
LSB
mdps/
digit
a. The product is factory calibrated at 3.0 V. The operational power supply range is from 2.4 V to 3.6 V.
14/75Doc ID 022907 Rev 1
LSM333DModule specifications
Table 3.Sensor characteristics
SymbolParameterTest conditionsMin.Typ.
Linear acceleration
LA_TyOff
Typ i c a l zer o - g level offset
accuracy
(3) (4)
FS = 250 dps±10
G_TyOff
Angular rate
Typical zero-rate level
FS = 2000 dps±25
LA_TCOff
G_TCOff
An
Linear acceleration zerolevel change vs. temperature
Zero-rate level change vs.
temperature
Linear acceleration noise
density
MnMagnetic noise density
g
Max. delta from 25 °C±0.5mg/°C
Linear acceleration FS=2g;
ODR = 100Hz
Magnetic FS=2gauss;
ODR = 100Hz
RnRate noise densityFS = ±250 dps, BW = 50 Hz0.03
M_EFMaximum exposed field
No permitting effect on zero
reading
Sensitivity starts to degrade.
M_DFMagnetic disturbing field
Automatic S/R pulse restores
the sensitivity
(5)
TopOperating temperature range-40+85°C
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.
5. Set / reset pulse is automatically applied at each conversion cycle.
(1)
Max.Unit
±60mg
dpsFS = 500 dps±15
±0.05dps/°C
150
210
ug/
sqrt(Hz)
ugauss/
sqrt(Hz)
dps/
sqrt(Hz)
10000gauss
20gauss
2.2 Temperature sensor characteristics
@ Vdd =3.0 V, T=25 °C unless otherwise noted.
Table 4.Electrical characteristics
SymbolParameterTest conditionMin.Typ.
Temperature sensor
TSDr
TODRTemperature refresh rate1Hz
To p
1. The product is factory calibrated at 3.0 V.
output change vs.
temperature
Operating temperature
range
(1)
(2)
Max.Unit
-1°C/digit
-
-40+85°C
Doc ID 022907 Rev 115/75
Module specificationsLSM333D
2. Typical specifications are not guaranteed.
2.3 Electrical characteristics
@ Vdd = 3.0 V, T = 25 °C unless otherwise noted
Table 5.Electrical characteristics
(b)
.
SymbolParameter
Tes t
conditions
Min.Typ.
(1)
Max.Unit
VddSupply voltage2.43.6V
Vdd_IOModule power supply for I/O1.711.8Vdd+0.1
Idd_A/M
Idd_A/M_SL
G_Idd
G_IddLowP
G_IddPdn
eCompass
in Normal mode
eCompass current consumption in
Power-down mode
Gyroscope current consumption in
Normal mode
Gyroscope supply current
in Sleep mode
Gyroscope current consumption in
Power-down mode
VIHDigital high level input voltage
VILDigital low level input voltage
VOHHigh level output voltage
(2)
current consumption
(3)
(4)
(5)
350µA
1µA
6.1mA
2mA
5µA
0.8*Vdd_I
O
0.2*Vdd_I
O
0.9*Vdd_I
O
V
V
V
VOLLow level output voltage
TopOperating temperature range-40+85
1. Typical specifications are not guaranteed.
2. eCompass
3. Magnetic sensor setting ODR =6.25 Hz, accelerometer sensor ODR = 50 Hz.
4. Linear accelerometer and magnetic sensor in Power-down mode.
5. Sleep mode introduces a faster turn-on time compared to Power-down mode.
: accelerometer - magnetic sensor.
b. Gyroscope is factory calibrated at 3.0 V.
16/75Doc ID 022907 Rev 1
0.1*Vdd_I
O
V
°C
LSM333DModule specifications
SPC
CS
SDI
SDO
t
su(CS)
t
v(SO)
t
h(SO)
t
h(SI)
t
su(SI)
t
h(CS)
t
dis(SO)
t
c(SPC)
MSB IN
MSB OUT
LSB OUT
LSB IN
(3)
(3)
(3)
(3)
(3)
(3)
(3)
(3)
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
Unit
Min.Max.
tc(SPC)SPI clock cycle100ns
fc(SPC)SPI clock frequency10MHz
tsu(CS)CS setup time5
th(CS)CS hold time20
tsu(SI)SDI input setup time5
th(SI)SDI input hold time15
ns
tv(SO)SDO valid output time50
th(SO)SDO output hold time5
tdis(SO)SDO output disable time50
(2)
Figure 3.SPI slave timing diagram
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.
2. Measurement points are done at 0.2·Vdd_IO and 0.8·Vdd_IO, for both Input and output ports.
Doc ID 022907 Rev 117/75
Module specificationsLSM333D
6'$
6&/
W
I6'$
W
VX63
W
Z6&//
W
VX6'$
W
U6'$
W
VX65
W
K67
W
Z6&/+
W
K6'$
W
U6&/
W
I6&/
W
Z6365
67$57
5(3($7('
67$57
6723
67$57
!-V
2.4.2 Sensor 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)
Figure 4.I
SCL clock frequency01000400kHz
SCL clock low time4.71.3
SCL clock high time4.00.6
SDA setup time250100ns
SDA data hold time03.4500.9µs
SDA and SCL rise time100020 + 0.1C
SDA and SCL fall time30020 + 0.1C
(2)
b
(2)
b
300
300
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
(3)
4.71.3
µs
ns
µs
2
1. Data based on standard I
2. Cb = total capacitance of one bus line, in pF.
3. Measurement points are done at 0.2·Vdd_IO and 0.8·Vdd_IO, for both ports.
C protocol requirement, not tested in production.
18/75Doc ID 022907 Rev 1
LSM333DModule specifications
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
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
Vin
Input voltage on any control pin (SCL, SDA,
SDO_A/M, SDO_G, CS_G, CS_A/M, DEN_G)
-0.3 to Vdd_IO +0.3V
A
POW
A
UNP
T
OP
T
STG
ESDElectrostatic discharge protection2 (HBM)kV
Acceleration (any axis, powered, Vdd = 2.5 V)
Acceleration (any axis, unpowered)
Operating temperature range-40 to +85°C
Storage temperature range-40 to +125°C
Note:Supply voltage on any pin should never exceed 4.8 V.
3,000 for 0.5 msg
10,000 for 0.1 msg
3,000 for 0.5 msg
10,000 for 0.1 msg
Doc ID 022907 Rev 119/75
TerminologyLSM333D
3 Terminology
3.1 Set/Reset pulse
The set/reset pulse is an automatic operation performed before each magnetic acquisition
cycle to de-gauss the sensor and to ensure alignment of the magnetic dipoles and therefore
the linearity of the sensor itself.
3.2 Sensitivity
3.2.1 Linear acceleration sensor sensitivity
Linear acceleration sensitivity describes the gain of the sensor and can be determined e.g.
by applying 1 g acceleration to it. 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 time. The sensitivity
tolerance describes the range of sensitivities of a large population of sensors.
3.2.2 Angular rate sensor sensitivity
An angular rate gyroscope is a device that produces a positive-going digital output for
counter-clockwise rotation around the sensitive axis considered. Sensitivity describes the
gain of the sensor and can be determined by applying a defined angular velocity to it. This
value changes very little over temperature and time.
3.2.3 Magnetic sensor sensitivity
Sensitivity describes the gain of the sensor and can be determined e.g. by applying a
magnetic field of 1 gauss to it.
3.3 Zero-g level
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 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
“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.
20/75Doc ID 022907 Rev 1
LSM333DTerminology
3.4 Zero-rate level
Zero-rate level describes the actual output signal if there is no angular rate present. Zerorate 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 time.
3.5 Zero-gauss level
Zero-gauss level offset describes the deviation of an actual output signal from the ideal
output if no magnetic field is present. Thanks to the set/reset pulse and to the magnetic
sensor readout chain, the offset is dynamically cancelled. The zero-gauss level does not
show any dependencies from temperature and power supply.
Doc ID 022907 Rev 121/75
FunctionalityLSM333D
4 Functionality
The LSM333D is a system-in-package featuring a 3D digital accelerometer, a 3D digital
Magnetometer, and a 3D digital gyroscope.
The device includes specific sensing elements and two IC interfaces capable of measuring
both the acceleration/Magnetometer 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 LSM333D 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.
4.1 Accelerometer / Gyroscope self-test
Self-test allows the linear acceleration sensor functionality to be tested without moving it.
The self-test function is off when the self-test bit (ST) is programmed to ‘0’. When the selftest 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 inside Section 2.1: Sensor characteristics, then the
sensor is working properly and the parameters of the interface chip are within the defined
specifications.
2
C serial interface.
4.2 Linear acceleration digital main blocks
4.2.1 FIFO
The LSM333D embeds 32 slots of data FIFO for each of the three output channels: X, Y and
Z. This allows a 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 FIFO_SRC_REG_A (2Fh). 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 FIFO_SRC_REG_A (2Fh)).
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.
22/75Doc ID 022907 Rev 1
LSM333DFunctionality
4.2.3 FIFO mode
In FIFO mode, data from the X, Y and Z channels are stored in the FIFO. A watermark
interrupt can be enabled (FIFO_WTMK_EN bit in FIFO_CNTRL_REG_A (2Eh)) in order to
be raised when the FIFO is filled to the level specified in the FIFO_WTMK_LEVEL bits of
FIFO_CNTRL_REG_A (2Eh). 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 the X, Y and Z measurement are 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 data for X, Y and Z). When full, the FIFO discards the older data as
the new data arrives.
4.2.5 Stream-to-FIFO mode
In Stream-to-FIFO mode, data from the X, Y and Z measurement is stored in the FIFO. A
watermark interrupt can be enabled (FIFO_WTMK_EN bit in FIFO_CNTRL_REG_A (2Eh))
in order to be raised when the FIFO is filled to the level specified in the
FIFO_WTMK_LEVEL bits of FIFO_CNTRL_REG_A (2Eh). 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 a 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_X_H_A (2Bh) and OUT_X_L_A (2Ch), OUT_X_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
(29h), OUT_Y_L_A (2Ah), OUT_X_H_A (2Bh) or OUT_X_L_A (2Ch), OUT_X_H_A (2Dh)
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_X_H_A (2Bh) and OUT_X_L_A (2Ch), OUT_X_H_A (2Dh)
registers and both single read and read_burst operations can be used.
Doc ID 022907 Rev 123/75
FunctionalityLSM333D
ADC
LPF1
HPF
0
1
HPen
LPF2
10
11
01
00
Out_Sel
DataReg
00
11
10
01
Interrupt
generator
INT_Sel
I2C
SPI
INT1
SCR REG
CONF REG
FIFO
32x16x3
AM07230v1
4.3 Gyroscope digital main blocks
Figure 5.Gyroscope block diagram
4.3.1 FIFO
The LSM333D 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
FIFO_CTRL_REG_G (2Eh). 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 CNTRL3_G (22h) and event detection information is available in
FIFO_SRC_REG_G (2Fh). Watermark level can be configured to WTM4:0 in
FIFO_CTRL_REG_G (2Eh).
4.3.2 Bypass mode
24/75Doc ID 022907 Rev 1
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.
LSM333DFunctionality
l
x
0
y
i
z
0
y
0
x
1
y
1
z
1
x
2
y
2
z
2
x
31
y
31
z
31
xi,yi,z
i
empty
AM07231v1
x
0
y
i
z
0
y
0
x
1
y
1
z
1
x
2
y
2
z
2
x
31
y
31
z
31
xi,yi,z
i
AM07232v1
Figure 6.Bypass mode
4.3.3 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 CNTRL3_G (22h)) in order to be raised when the
FIFO is filled to the level specified in the WTM 4:0 bits of FIFO_CTRL_REG_G (2Eh). 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,
FIFO_CTRL_REG_G (2Eh) must be written back to Bypass mode.
FIFO mode is represented in Figure 7.
Figure 7.FIFO mode
Doc ID 022907 Rev 125/75
FunctionalityLSM333D
4.3.4 Stream mode
In Stream mode, data from the 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 CNTRL3_G
(22h).
Stream mode is represented in Figure 8.
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
26/75Doc ID 022907 Rev 1
AM07234v1
LSM333DFunctionality
x
0
y
i
z
0
y
0
x
1
y
1
z
1
x
2
y
2
z
2
x
31
y
31
z
31
xi,yi,z
i
Empty
Bypass mode
Stream mode
Trig g er eve n t
x
0
y
0
z
0
x
1
y
1
z
1
x
2
y
2
z
2
x
31
y
31
z
31
xi,yi,z
i
x
30
y
30
z
30
AM07235v1
x
0
y
i
z
0
y
0
x
1
y
1
z
1
x
2
y
2
z
2
x
31
y
31
z
31
xi,yi,z
i
Stream Mode
FIFO Mode
Trigger event
x
0
y
0
z
0
x
1
y
1
z
1
x
2
y
2
z
2
x
31
y
31
z
31
xi,yi,z
i
x
30
y
30
z
30
AM07236v1
4.3.5 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 (30h) events) the FIFO starts operating in Stream
mode. Refer to Figure 9 below.
Figure 9.Bypass-to-stream mode
4.3.6 Stream-to-FIFO mode
In Stream-to-FIFO mode, data from the 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
CNTRL3_G (22h) to be raised when the FIFO is filled to the level specified in the WTM4:0
bits of FIFO_CTRL_REG_G (2Eh). 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 (30h) events), the FIFO starts
operating in FIFO mode. Refer to Figure 10.
Figure 10. Trigger stream mode
Doc ID 022907 Rev 127/75
FunctionalityLSM333D
xi(15-1)
xi,yi,z
i
D
E
N
y
i
(15-0)
Z
i
(15-0)
x
i-N+1
D
E
N
(15-1)
y
i-N+1
(15-0)
z
i-N+1
(15-0)
xi(15-0)
xi,yi,z
i
D
E
N
y
i
(15-1)
Z
i
(15-0)
xi(15-0)
xi,yi,z
i
D
E
N
y
i
(15-0)
Z
i
(15-1)
x
i-N+1
D
E
N
(15-0)
y
i-N+1
(15-0)
z
i-N+1
(15-1)
x
i-N+1
D
E
N
y
i-N+1
Z
i-N+1
(15-0)
(15-1)
(15-0)
Level-sensitive
Trigger enabled
on X-Axis
Level-sensitive
Trigger enabled
on Y-axis
Level-sensitive
Trigger enabled
on Z-axis
Xen=1,Yen=Zen=0
Yen=1, Xen=Zen=0
Zen=1,
Xen=Yen=0
AM10162V1
4.3.7 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 auto-incremental 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.
4.4 Level-sensitive / edge-sensitive data enable
The LSM333D allows external trigger level recognition through the enabling of the EXTRen
and LVLen bits in CNTRL2_G (21h). Two different modes can be used: Level-sensitive or
Edge-sensitive trigger.
Once enabled, the DEN level replaces the LSb of the X, Y or Z axes, configurable through
the Xen, Yen, and Zen bits in CNTRL1_G (20h). Data is stored in the FIFO with the
internally-selected ODR.
LSM333DFunctionality
4.4.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 the selected ODR is 800 Hz, the maximum DEN
sample frequency is f
Figure 12. Edge-sensitive trigger
DEN
= 1/T
DEN
= 400 Hz.
4.5 Temperature sensor
The LSM333D features an internal temperature sensor. Temperature data can be enabled
by setting the TEMP_EN bit on the CNTRL7_A (26h) register to 1.
Both OUT_TEMP_H and OUT_TEMP_L registers must be read.
Temperature data is stored inside STATUS_REG_M (07h) as 2’s complement data in 12-bit
format, right justified. The output data rate of the temperature sensor is set by M_ODR in
CNTRL5_A (24h) and is equal the magnetic sensor output data rate.
4.6 Factory calibration
The IC interface is factory calibrated. 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 normal operation. This allows the user to
use the device without further calibration.
Doc ID 022907 Rev 129/75
Application hintsLSM333D
T
Digital signal from/to signal controller.Signals levelsare defined by proper selection of Vdd
FILTVDD
FILTIN Y
(BOTTOM VIEW)
19
INT1_A/M
CS_G
Vdd_IO
SDO_G
INT2_A/M
RES
GND
LSM333D
RES
18
SDA
SCL
28
5
1
4
15
SDO_A/M
CS_A/M
Vdd_IO
RES
INT1_G
DRDY_G/INT2_G
GND
SETP
VDD
DEN_G
SETC
VDD
VDD
GND
VDD
RES
VDD
C1
14
GND
Vdd_IO
GND
100 nF
C5
Vdd
GND
GND
C3
100 nF10 µF
C4
C1= 4.7µF
C2= 0.22µF
AM12607V1
5 Application hints
Figure 13. LSM333D electrical connection
5.1 External capacitors
The C1 and C2 external capacitors should be of a low SR value ceramic type construction
(typ. suggested value 200 mOhm). Reservoir capacitor C1 is nominally 4.7 μF in
capacitance, with the set/reset capacitor C2 nominally 0.22 μF in capacitance.
The device core is supplied through the Vdd line. Power supply decoupling capacitors
(C5=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 achieve proper behavior of the IC (refer to Figure 13).
The functionality of the device and the measured acceleration/magnetic field data is
selectable and accessible through the I
30/75Doc ID 022907 Rev 1
2
C/SPI interfaces.
LSM333DApplication hints
The functions, the threshold and the timing of the two interrupt pins (INT1_A/M, INT2_A/M
and INT1_G, DRDY_G/INT2_G) can be completely programmed by the user through the
2
I
C/SPI interfaces.
5.2 Pull-up resistors
If an I2C interface is used, pull-up resistors (suggested value 10 kOhm) must be placed on
the two I
2
C bus lines.
5.3 Digital interface power supply
This digital interface dedicated to the linear acceleration and to the magnetic field signal is
capable of operating with a standard power supply (Vdd) or using a dedicated power supply
(Vdd_IO).
5.4 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-020.
Leave “Pin 1 Indicator” unconnected during soldering.
Land pattern and soldering recommendations are available at www.st.com/mems
5.5 High current wiring effects
High current in the wiring and printed circuit trace may cause errors in magnetic field
measurements for compassing.
.
Conductor generated magnetic fields add to the earth’s magnetic field making errors in the
compass heading computation.
Keep currents higher than 10 mA a few millimeters further away from the sensor IC.
Doc ID 022907 Rev 131/75
Digital interfacesLSM333D
6 Digital interfaces
The registers embedded in the LSM333D 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 9.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/M
CS_G
SCL
SDA
SDO_A/M
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
I2C serial clock (SCL)
SPI serial port clock (SPC)
2
I
C serial data (SDA)
SPI serial data input (SDI)
3-wire interface serial data output (SDO)
2
I
C least significant bit of the device address (SA0)
SPI serial data output (SDO)
6.1 I2C serial interface
The LSM333D I2C is a bus slave. The I2C is employed to write data into 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 bi-directional line used for sending and receiving the data
to/from the interface. Both lines must be connected to Vdd_IO through external pull-up
resistors. When the bus is free, both lines are HIGH.
2
The I
C interface is compliant with Fast mode (400 kHz) I2C standards as well as with
Normal mode.
32/75Doc ID 022907 Rev 1
LSM333DDigital interfaces
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 7 bits after
a START condition with its address. If they match, the device considers itself addressed by
the master.
The slave address (SAD) associated to the LSM333D is 00111xxb, whereas the xx bits are
modified by the SDO/SA0 pin in order to modify the device address. If the SEL pin is
connected to the voltage supply, the address is 0011101b, otherwise, if the SDO/SA0 pin is
connected to ground, the address is 0011110b. This solution allows the connection and
addressing of two different accelerometers to the same I
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 LSM333D 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 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 incremented to allow
multiple data read/write.
2
C lines.
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. Ta b le 1 1 and Tabl e 12 explain
how the SAD+read/write bit pattern is composed, listing all the possible configurations.
Table 1 1 .
CommandSDO/SA0 pin SAD[6:2]SAD[1:0]R/WSAD+R/W
Read0
Write0
Read1
Write1
eCompass SAD+read/write patterns
00111
00111
00111
00111
1013D
1003C
0113B
0103A
Table 12.Angular rate SAD+read/write patterns
CommandSAD[6:1]SAD[0] = SDO_G pinR/WSAD+R/W
Read11010101D5
Write11010100D4
Read11010111D7
Write11010110D6
Doc ID 022907 Rev 133/75
Digital interfacesLSM333D
Table 13.Transfer when master is writing one byte to slave
MasterSTSAD + WSUBDATASP
SlaveSAKSAKSAK
Table 14.Transfer when master is writing multiple bytes to slave
MasterSTSAD + WSUBDATADATASP
SlaveSAKSAKSAKSAK
Table 15.Transfer when master is receiving (reading) one byte of data from slave
MasterST SAD + WSUBSRSAD + RNMAKSP
SlaveSAKSAKSAKDATA
Table 16.Transfer when master is receiving (reading) multiple bytes of data from slave
Master ST SAD+WSUBSR SAD+RMAKMAKNMAKSP
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.
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 the first register to be read.
In the communication format presented, MAK is master acknowledge and NMAK is no
master acknowledge.
6.2 SPI bus interface
The SPI is a bus slave. The SPI allows the writing and reading of the registers of the device.
The serial interface interacts with the outside world through 4 wires: CS, SPC, SDI and SDO.
34/75Doc ID 022907 Rev 1
LSM333DDigital interfaces
CS
SPC
SDI
SDO
RW
AD5 AD4 AD3 AD2 AD1 AD0
DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0
DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0
MS
AM10129V1
Figure 14. Read and write protocol
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. Those lines are driven at the falling
edge of SPC and should be captured at the rising edge of SPC.
Both the read register and write register commands are completed in 16 clock pulses or in
multiples of 8 in the 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 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 is written to 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 incremented at every block.
The function and the behavior of SDI and SDO remain unchanged.
Doc ID 022907 Rev 135/75
Digital interfacesLSM333D
CS
SPC
SDI
SDO
RW
DO7 DO6 DO5DO4 DO3 DO2 DO1 DO0
AD5 AD4 AD3 AD2 AD1 AD0
MS
AM10130V1
C S
SPC
SDI
SDO
RW
DO7DO6DO5 DO4DO3 DO 2 DO 1 DO 0
AD5 AD4AD3 AD2 AD1 AD0
DO15 DO 14 DO 13 DO 12 DO11 DO 10 D O9 D O8
M S
AM10131V1
6.2.1 SPI read
Figure 15. SPI read protocol
The SPI read command is performed with 16 clock pulses. The 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
readings.
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 readings.
DI7 D I6 DI5 D I4 DI3 DI2 DI 1 DI 0 DI15 D I1 4 DI13 DI12 DI 11 DI10 DI 9 DI8
MS
AM10133V1
6.2.2 SPI write
Figure 17. SPI write protocol
The SPI write command is performed with 16 clock pulses. The 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.
bit 1: MS
bit. When 0, do not increment address; when 1, increment address in multiple
writings.
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 to the device (MSb first).
bit 16-... : data DI(...-8). Further data in multiple byte writings.
3-wire mode is entered by setting the bit SIM (SPI serial interface mode selection) to ‘1’ in
CNTRL2_A (21 h).
Doc ID 022907 Rev 137/75
Digital interfacesLSM333D
CS
SPC
SDI/O
RW
DO7 DO6 DO5 DO4 DO3 DO2 DO 1 DO 0
AD5 AD 4 AD3 AD2 AD1 AD 0MS
AM10134V1
Figure 19. SPI read protocol in 3-wire mode
The SPI read command is performed with 16 clock pulses:
bit 0: READ bit. The value is 1.
bit 1: MS
bit. When 0, do not increment address; when 1, increment address in multiple
readings.
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).
Multiple read command is also available in 3-wire mode.
38/75Doc ID 022907 Rev 1
LSM333DOutput register mapping
7 Output register mapping
The table below provides a listing of the 8-bit registers embedded in the device, and the
related addresses:
Table 17.Accelerometer and Magnetometer sensing register address map
Register address
NameType
HexBinary
Reserved--00-04----Reserved
Reserved--05000 0101--Reserved
Reservedr--06000 0110--Reserved
STATUS_REG_Mr07000 011100000000
OUT_X_L_Mr08000 1000Output
OUT_X_H_Mr09000 1001Output
OUT_Y_L_Mr0A000 1010Output
OUT_Y_H_Mr0B000 1011Output
DefaultComment
OUT_Z_L_Mr0C000 1100Output
OUT_Z_H_Mr0D000 1101Output
Reserved--0E000 1110--Reserved
WHO_AM_Ir0F000 111101001001
Reserved--10-11----Reserved
INT_CTRL_REG_Mrw12001 001011101000
INT_SRC_REG_Mr13001 001100000000
INT_THS_L_Mrw14001 010000000000
INT_THS_H_Mrw15001 010100000000
OFFSET_X_L_Mrw16001 011000000000
OFFSET_X_H_Mrw17001 011100000000
OFFSET_Y_L_Mrw18001 0100000000000
OFFSET_Y_H_Mrw19001 0100100000000
OFFSET_Z_L_Mrw1A001 0101000000000
OFFSET_Z_H_Mrw1B001 0101100000000
REFERENCE_Xrw1C001 0110000000000
REFERENCE_Yrw1D001 0110100000000
REFERENCE_Zrw1E001 0111000000000
CNTRL0_Arw1F001 111100000000
CNTRL1_Arw20010 000000000111
CNTRL2_Arw21010 000100000000
Doc ID 022907 Rev 139/75
Output register mappingLSM333D
Table 17.Accelerometer and Magnetometer sensing register address map
Register address
NameType
HexBinary
CNTRL3_Arw22010 001000000000
CNTRL4_Arw23010 001100000000
CNTRL5_Arw24010 010000011000
CNTRL6_Arw25010 010100100000
CNTRL7_Arw26010 011000000001
STATUS_REG_Ar27010 011100000000
OUT_X_L_Ar28010 1000Output
OUT_X_H_Ar29010 1001Output
OUT_Y_L_Ar2A010 1010Output
OUT_Y_H_Ar2B010 1011Output
OUT_Z_L_Ar2C010 1100Output
OUT_Z_H_Ar2D010 1101Output
DefaultComment
FIFO_CNTRL_REG_Arw2E010 111000000000
FIFO_SRC_REG_Ar2F010 111100000000
INT_GEN_1_REG_Arw30011 000000000000
INT_GEN_1_SRC_Ar31011 000100000000
INT_GEN_1_THS_Arw32011 001000000000
INT_GEN_1_DURATION_
A
INT_GEN_2_REG_Arw34011 010000000000
INT_GEN_2_SRC_Ar35011 010100000000
INT_GEN_2_THS_Arw36011 011000000000
INT_GEN_2_DURATION_
A
CLICK_CFG_Arw38011 100000000000
CLICK_SRC_Ar39011 100100000000
CLICK_THS_Arw3A011 101000000000
TIME_LIMIT_Arw3B011 101100000000
TIME _LATENCY_Arw3C011 110000000000
TIME_WINDOW_Arw3D011 110100000000
rw33011 001100000000
rw37011 011100000000
Act_THS_Arw3E011 111000000000
Act_DUR_Arw3F011 111100000000
40/75Doc ID 022907 Rev 1
LSM333DOutput register mapping
Table 18.Gyroscope sensing register address map
Register address
NameType
HexBinary
Reserved-00-0E--
WHO_AM_Ir0F000 111111010100
Reserved-10-1F--
CNTRL1_Grw20010 000000000111
CNTRL2_Grw21010 000100000000
CNTRL3_Grw22010 001000000000
CNTRL4_Grw23010 001100000000
CNTRL5_Grw24010 010000000000
REFERENCE_Grw25010 010100000000
OUT_TEMP_Gr26010 0110Output
STATUS_REG_Gr27010 0111Output
OUT_X_L_Gr28010 1000Output
Default
OUT_X_H_Gr29010 1001Output
OUT_Y_L_Gr2A010 1010Output
OUT_Y_H_Gr2B010 1011Output
OUT_Z_L_Gr2C010 1100Output
OUT_Z_H_Gr2D010 1101Output
FIFO_CTRL_REG_Grw2E010 111000000000
FIFO_SRC_REG_Gr2F010 1111Output
INT1_CFG_Grw30011 000000000000
INT1_SRC_Gr31011 0001Output
INT1_TSH_XH_Grw32011 001000000000
INT1_TSH_XL_Grw33011 001100000000
INT1_TSH_YH_Grw34011 010000000000
INT1_TSH_YL_Grw35011 010100000000
INT1_TSH_ZH_Grw36011 011000000000
INT1_TSH_ZL_Grw37011 011100000000
INT1_DURATION_Grw38011 100000000000
Registers marked as Reserved must not be changed. Writing to these 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 022907 Rev 141/75
Register descriptionLSM333D
8 Register description
The device contains a set of registers which are used to control its behavior and to retrieve
acceleration and magnetic data. The register address, consisting of 7 bits, is used to identify
them and to write the data through the serial interface.
8.1 Accelerometer and Magnetometer register description
Magnetic X, Y and Z-axis and temperature data overrun. Default value: 0
(0: no overrun has occurred; 1: a new set of data has overwritten the previous ones)
Temperature data overrun if the TONLY bit inCNTRL7_A (26h) is set to ‘1’. Default
value:0.
(0: no overrun has occurred; 1: a new data for the Z-axis has overwritten the previous
one)
(0: no overrun has occurred; 1: a new data for the Y-axis has overwritten the previous
one)
(0: no overrun has occurred; 1: a new data for the X-axis has overwritten the previous
one)
X, Y and Z-axis and temperature new data available. Default value: 0
(0: a new set of data is not yet available; 1: a new set of data is available)
Temperature new data available if the TONLY bit inCNTRL7_A (26h) is set to ‘1’.
Default value: 0.
ZMDAZ-axis new data available. Default value: 0
(0: a new data for the Z-axis is not yet available; 1: a new data for the Z-axis is available)
YMDAY-axis new data available. Default value: 0
(0: a new data for the Y-axis is not yet available; 1: a new data for the Y-axis is available)
XMDAX-axis new data available. Default value: 0
(0: a new data for the X-axis is not yet available; 1: a new data for the X-axis is available)
42/75Doc ID 022907 Rev 1
LSM333DRegister description
8.3 OUT_X_L_M (08h), OUT_X_H_M (09h)
X-axis magnetic data.
The value is expressed in 16 bits as 2’s complement left justified.
8.4 OUT_Y_L_M (0Ah), OUT_X_H_M (0Bh)
Y-axis magnetic data.
The value is expressed in 16 bits as 2’s complement left justified.
8.5 OUT_X_L_M (0Ch), OUT_X_H_M (0Dh)
Z-axis magnetic data.
The value is expressed in 16 bits as 2’s complement left justified.
8.6 WHO_AM_I (0Fh)
Table 21.WHO_AM_I register
0 1 0 01001
Device identification register.
8.7 INT_CTRL_REG_M (12h)
Table 22.INT_CTRL_REG_M register
XMIENYMIENZMIENPP_ODMIEAMIEL4DMIEN
Table 23.INT_CTRL_REG_M description
XMIENEnable interrupt recognition on X-axis for magnetic data. Default value: 0.
1. This bit must be set to ‘0’ for the correct working of the device.
Table 46.CNTRL7_A description
AHPM1-0High-pass filter mode selection for acceleration data. Default value: 00
Refer to Table 47: High-pass filter mode selection
AFDSFiltered acceleration data selection. Default value: 0
(0: internal filter bypassed; 1: data from internal filter sent to output register and FIFO)
MLPMagnetic data low power mode. Default value: 0
If this bit is ‘1’, the MODR is set to 3.125 Hz independently from the MODR settings.
Once the bit is set to ‘0’, the magnetic data rate is configured by MODR bits in the
CNTRL5_A (24h) register.
MD1-0Magnetic sensor mode selection. Default 10
Refer to Table 48: Magnetic sensor mode selection
Table 47.High-pass filter mode selection
AHPM1AHPM0High pass filter mode
00Normal mode (reset X, Y and Z-axis reading REFERENCE_X
(1Ch), REFERENCE_Y (1Dh) and REFERENCE_Y (1Dh) register
respectively)
01Reference signal for filtering
10Normal mode
11Auto-reset on interrupt event
50/75Doc ID 022907 Rev 1
LSM333DRegister description
Table 48.Magnetic sensor mode selection
MD1-0MD1-0Magnetic sensor mode
00Continuous-conversion mode
01Single-conversion mode
10Power-down mode
11Power-down mode
8.24 STATUS_REG_A (27h)
Table 49.STATUS_REG_A register
ZYXAORZAORYAORXAORZYXADAZADAYADAXADA
Table 50.STATUS_REG_A description
ZYXAOR/Acceleration X, Y and Z-axis data overrun. Default value: 0
(0: no overrun has occurred; 1: a new set of data has overwritten the previous ones)
ZAORAcceleration Z-axis data overrun. Default value: 0
(0: no overrun has occurred; 1: a new data for the Z-axis has overwritten the previous
one)
YAORAcceleration Y-axis data overrun. Default value: 0
(0: no overrun has occurred; 1: a new data for the Y-axis has overwritten the previous
one)
XAORAcceleration X-axis data overrun. Default value: 0
(0: no overrun has occurred; 1: a new data for the X-axis has overwritten the previous
one)
ZYXADAAcceleration X, Y and Z-axis new value available. Default value: 0
(0: a new set of data is not yet available; 1: a new set of data is available)
ZADAAcceleration Z-axis new value available. Default value: 0
(0: a new data for the Z-axis is not yet available; 1: a new data for the Z-axis is available)
YADAAcceleration Y-axis new value available. Default value: 0
(0: a new data for the Y-axis is not yet available; 1: a new data for the Y-axis is available)
XADAAcceleration X-axis new value available. Default value: 0
(0: a new data for the X-axis is not yet available; 1: a new data for the X-axis is available)
8.25 OUT_X_L_A (28h), OUT_X_H_A (29h)
X-axis acceleration data.
The value is expressed in 16 bits as 2’s complement left justified.
Doc ID 022907 Rev 151/75
Register descriptionLSM333D
8.26 OUT_Y_L_A (2Ah), OUT_X_H_A (2Bh)
Y-axis acceleration data.
The value is expressed in 16 bits as 2’s complement left justified.
8.27 OUT_X_L_A (2Ch), OUT_X_H_A (2Dh)
Z-axis acceleration data.
The value is expressed in 16 bits as 2’s complement left justified.
8.28 FIFO_CNTRL_REG_A (2Eh)
Table 51.FIFO_CTRL_REG_A register
FM2FM1FM0FTH4FTH3FTH2FTH1FTH0
Table 52.FIFO_CTRL_REG_A register description
FM1-FM0FIFO mode selection. Default value: 000
Refer to Ta bl e :
FTH4:0FIFO watermark level. Default value: 0000
Table 53.FIFO mode configuration
FM2FM1FM0FIFO mode
000Bypass mode
001FIFO mode
010Stream mode
011Stream-to-FIFO mode
100Bypass-to-stream mode
Interrupt generator 2 can change the FIFO mode.
8.29 FIFO_SRC_REG_A (2Fh)
Table 54.FIFO_SRC_REG_A register
WTMOVRNEMPTYFSS4FSS3FSS2FSS1FSS0
52/75Doc ID 022907 Rev 1
LSM333DRegister description
Table 55.FIFO_SRC_REG_A description
WTMWatermark status.
WTM bit is set to ‘1’ when FIFO content exceeds watermark level.
OVRNFIFO overrun status.
OVRN bit is set to ‘1’ when FIFO buffer is full.
EMPTYEmpty status.
EMPTY bit is set to ‘1’ when all FIFO samples have been read and FIFO is empty.
FSS4-0FIFO stored data level.
FSS4-0 bits contain the current number of unread FIFO levels.
8.30 INT_GEN_1_REG_A (2Fh)
This register contains the settings for the inertial interrupt generator 1.
Table 56.INT_GEN_1_REG_A register
AOI6DZHIE/
ZUPE
ZLIE/
ZDOWNE
YHIE/
YUPE
YLIE/
YDOWNE
XHIE/
XUPE
XLIE/
XDOWNE
Table 57.INT_GEN_1_REG_A description
AOIAND/OR combination of interrupt events. Default value: 0. Refer to Table 58, "Inter-
rupt mode"
6D6-direction detection function enabled. Default value: 0. Refer to Table 58, "Interrupt
mode"
ZHIE/
ZUPE
ZLIE/
ZDOWNE
YHIE/
YUPE
YLIE/
YDOWNE
XHIE/
XUPE
XLIE/XDOWNEEnable interrupt generation on X low event or on direction recognition. Default
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)
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.)
Enable interrupt generation on X high event or on direction recognition. Default
value: 0 (0: disable interrupt request; 1: enable interrupt request.)
Write operation at this address is possible only after system boot.
Doc ID 022907 Rev 153/75
Register descriptionLSM333D
.
Table 58.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’.
AOI-6D = ‘01’ is movement recognition. An interrupt is generated when orientation moves
from an unknown zone to a 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.
8.31 INT_GEN_1_SRC_A (31h)
This register contains the status for the inertial interrupt generator 1.
Table 59.INT_GEN_1_SRC_A register
0 IA ZHZLYHYLXHXL
Table 60.INT_GEN_1_SRC_A description
IA
ZH
ZL
YH
YL
XH
XL
Interrupt status. 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)
Y high. Default value: 0
(0: no interrupt, 1: Y high event has occurred)
Y low. Default value: 0
(0: no interrupt, 1: Y low event has occurred)
X high. Default value: 0
(0: no interrupt, 1: X high event has occurred)
X low. Default value: 0
(0: no interrupt, 1: X low event has occurred)
Reading at this address clears the INT_GEN_1_SRC_A (31h) IA bit (and the interrupt signal
on the corresponding interrupt pin) and allows the refreshment of data in the
INT_GEN_1_SRC_A (31h) register if the latched option was chosen.
Write operation at this address is possible only after system boot.
Table 67.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’.
AOI-6D = ‘01’ is movement recognition. An interrupt is generated when orientation moves
from an unknown zone to a 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.
8.35 INT_GEN_2_SRC_A (35h)
This register contains the status for the inertial interrupt generator 2.
Table 68.INT_GEN_2_SRC_A register
0 IA ZHZLYHYLXHXL
Table 69.INT_GEN_2_SRC_A description
IA
ZH
ZL
Interrupt status. 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)
YH
56/75Doc ID 022907 Rev 1
Y high. Default value: 0
(0: no interrupt, 1: Y high event has occurred)
LSM333DRegister description
Table 69.INT_GEN_2_SRC_A description (continued)
YL
Y low. Default value: 0
(0: no interrupt, 1: Y low event has occurred)
XH
XL
X high. Default value: 0
(0: no interrupt, 1: x high event has occurred)
X low. Default value: 0
(0: no interrupt, 1: X low event has occurred)
Reading at this address clears the INT_GEN_2_SRC_A (35h) IA bit (and the interrupt signal
on the corresponding interrupt pin) and allows the refreshment of data in the
INT_GEN_2_SRC_A (35h) register if the latched option was chosen.
TLI7-TLI0Click-click time limit. Default value: 000 0000
8.42 TIME_LATENCY_A (3Ch)
Table 82.TIME_LATENCY_A register
TLA7TLA6TLA5TLA4TLA3TLA2TLA1TLA0
Table 83.TIME_LATENCY_A description
TLA7-TLA0Click-click time latency. Default value: 000 0000
8.43 TIME_WINDOW_A (3Dh)
Table 84.TIME_WINDOW_ register
TW7TW6TW5TW4TW3TW2TW1TW0
Table 85.TIME_WINDOW_A description
TW7-TW0Click-click time window
Doc ID 022907 Rev 159/75
Register descriptionLSM333D
8.44 Act_THS_A (3Eh)
Table 86.Act_THS_A register
--Acth6Acth5Acth4Acth3Acth2Acth1Acth0
Table 87.Act_THS_A description
Acth[6-0]Sleep-to-Wake, Return to Sleep activation threshold
1LSb = 16mg
8.45 Act_DUR_A (3Fh)
Table 88.Act_DUR_A register
ActD7ActD6ActD5ActD4ActD3ActD2ActD1ActD0
Table 89.Act_DUR_A description
ActD[7-0]Sleep-to-Wake, Return to Sleep duration DUR = (Act_DUR + 1)*8/ODR
60/75Doc ID 022907 Rev 1
LSM333DGyroscope register description
9 Gyroscope register description
The device contains a set of registers which are used to control its behavior and to retrieve
angular rate data. The register address, consisting of 7 bits, is used to identify them and to
write the data through the serial interface.
9.1 WHO_AM_I_G (0Fh)
Table 90.WHO_AM_I register
11010100
Device identification register.
9.2 CNTRL1_G (20h)
Table 91.CNTRL1_G register
DR1DR0BW1BW0PDZenXenYen
Table 92.CNTRL1_G description
DR1-DR0Output data rate selection. Refer to Table 93: DR and BW configuration setting
BW1-BW0Bandwidth selection. Refer to Table 93: DR and BW configuration setting
PD
ZenZ-axis enable. Default value: 1
YenY-axis enable. Default value: 1
XenX-axis enable. Default value: 1
DR<1:0> is used for ODR selection. BW <1:0> is used for bandwidth selection.
In Table 93: DR and BW configuration setting, all frequencies resulting in combinations of
DR / BW bits are reported.
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)
Doc ID 022907 Rev 161/75
Gyroscope register descriptionLSM333D
Table 93.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
A combination of PD, Zen, Yen, Xen is used to set the device to different modes (Power-
down / Normal / Sleep) in accordance with Table 94: Power mode selection configuration
below.
Table 94.Power mode selection configuration
ModePDZenYenXen
Power-down0---
Sleep1000
Normal1---
9.3 CNTRL2_G (21h)
Table 95.CNTRL2_G register
(1)
0
(1)
0
HPM1HPM1HPCF3HPCF2HPCF1HPCF0
1. These bits must be set to ‘0’ to ensure proper operation of the device.
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
9.15 INT1_CFG_G (30h)
Table 116. INT1_CFG_G register
AND/ORLIRZHIEZLIEYHIEYLIEXHIEXLIE
Doc ID 022907 Rev 167/75
Gyroscope register descriptionLSM333D
Table 117. INT1_CFG_G description
AND/OR
LIR
ZHIE
ZLIE
YHIE
YLIE
XHIE
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.
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
XLIE
(0: disable interrupt request; 1: enable interrupt request on measured value lower than
preset threshold)
9.16 INT1_SRC_G (31h)
Interrupt source register. Read only register.
Table 118. INT1_SRC_G register
0 IA ZHZLYHYLXHXL
Table 119. 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)
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 active. Default value: 0
(0: no interrupt has been generated; 1: one or more interrupts have been generated)
68/75Doc ID 022907 Rev 1
LSM333DGyroscope register description
Reading at this address clears the INT1_SRC_G (31h) IA bit (and eventually the interrupt
signal on the INT1 pin) and allows the refresh of data in the INT1_SRC_G (31h) register if
the latched option was chosen.
The D6 - D0 bits set the minimum duration of the interrupt event to be recognized. Duration
steps and maximum values depend on the ODR chosen.
The WAIT bit has the following definitions:
Wait = ‘0’: the interrupt falls immediately if the 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.
70/75Doc ID 022907 Rev 1
LSM333DGyroscope register description
Figure 21. Wait disabled
Figure 22. Wait enabled
Doc ID 022907 Rev 171/75
Package InformationLSM333D
10 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.
Table 134. TFLGA 6x3.5x1 28L mechanical data
(mm)
Dim.
Min.Typ.Max.
A11.0001.027
A20.800
A30.200
D13.3503.5003.650
E15.8506.0006.150
L12.250
L20.750
N10.500
M0.100
P12.800
P21.550
T10.300
T20.400
d0.200
k0.050
h0.100
72/75Doc ID 022907 Rev 1
LSM333DPackage Information
8356582_A
Table 135. TFLGA 6x3.5x1 28L drawing
Doc ID 022907 Rev 173/75
Revision historyLSM333D
11 Revision history
Table 136. Document revision history
DateRevisionChanges
13-Mar-20121Initial release.
74/75Doc ID 022907 Rev 1
LSM333D
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.