The L3G3200D is a low-power three-axis angular
rate sensor.
It includes a sensing element and an IC interface
able to provide the measured angular rate to the
external world through a digital interface
2
(I
C/SPI).
The sensing element is manufactured using a
dedicated micromachining process developed by
ST to produce inertial sensors and actuators on
silicon wafers. The IC interface is manufactured
using a CMOS process that allows a high level of
integration to design a dedicated circuit which is
trimmed to better match the sensing element
characteristics.
Applications
■ Gaming and virtual reality input devices
■ Motion control with MMI (man-machine
interface)
■ GPS navigation systems
■ Appliances and robotics
±2000 dps and is capable of measuring rates with
a user selectable bandwidth.
The L3G3200D is available in a plastic land grid
array (LGA)package and can operate within a
temperature range of -40 °C to +85 °C.
Table 1. Device summary
Order codeTemperature range (°C)PackagePacking
L3G3200D-40 to +85LGA-16 (3x3.5x1.0)Tray
L3G3200DTR-40 to +85LGA-16 (3x3.5x1.0)Tape and reel
December 2011Doc ID 022557 Rev 11/45
The L3G3200D has a full scale of ±250/±500/
This is preliminary information on a new product now in development or undergoing evaluation. Details are subject to
change without notice.
The vibration of the structure is maintained by a drive circuitry in a feedback loop. The
sensing signal is filtered and appears as a digital signal at the output.
1.1 Pin description
Figure 2.Pin connection
(TOP VIEW)
DIRECTIONS OF THE
DETECTABLE
ANGULA RATES
+ Ω
RES
Z
X
+Ω
Y
GND
13
RES
14
RES
RES
RES
+Ω
X
RES
9
8
RES
Doc ID 022557 Rev 17/45
Vdd
16
BOTTOM
VIEW
6
INT1
DRDY/INT2
1
Vdd_IO
SCL/SPC
SDA/SDI/SDO
SDO/SA0
5
CS
AM10220V1
Page 8
Block diagram and pin descriptionL3G3200D
Table 2.Pin description
Pin#NameFunction
SCL
SPC
SDA
SDI
SDO
SDO
SA0
(1)
Power supply for I/O pins
2
I
C serial clock (SCL)
SPI serial port clock (SPC)
2
C serial data (SDA)
I
SPI serial data input (SDI)
3-wire interface serial data output (SDO)
SPI serial data output (SDO)
2
C less significant bit of the device address (SA0)
I
2
C/SPI mode selection (1: SPI idle mode / I2C communication
I
enabled; 0: SPI communication mode / I2C disabled)
2. 10 nF (+/-10%), 25 V. 1 nF minimum value has to be guaranteed under 11 V bias condition.
3. Recommended 100 nF plus 10 μF capacitors.
(3)
Power supply
8/45Doc ID 022557 Rev 1
Page 9
L3G3200DMechanical and electrical specifications
dpsHz(⁄
2 Mechanical and electrical specifications
2.1 Mechanical characteristics
@ Vdd = 3.0 V, T = 25 °C unless otherwise noted
Table 3.Mechanical characteristics
SymbolParameterTest conditionMin. Typ.
FSMeasurement rangeUser selectable
SoSensitivity
SoDr
DVoffDigital Zero-rate level
OffDr
NLNon linearity
RnRate noise density
Sensitivity change vs.
temperature
Zero-rate level change
vs temperature
(2)
(2)
FS = 250 dps8.75
FS = 2000 dps70
From -40 °C to +85 °C±2%
FS = 250 dps±10
FS = 2000 dps±20
Best fit straight line0.2% FS
(a)
.
(1)
±250
±2000
±0.04dps/°C
0.03
Max.Unit
dps±500
mdps/digitFS = 500 dps17.50
dpsFS = 500 dps±15
ODRDigital output data rate
Top
1. Typical specifications are not guaranteed.
2. Guaranteed by design.
Operating temperature
range
a. The product is factory calibrated at 3.0 V. The operational power supply range is specified in Table 4.
95/190/
380/760
Hz
-40+85°C
Doc ID 022557 Rev 19/45
Page 10
Mechanical and electrical specificationsL3G3200D
2.2 Electrical characteristics
@ Vdd = 3.0 V, T = 25 °C unless otherwise noted
Table 4.Electrical characteristics
SymbolParameterTest conditionMin.Typ.
VddSupply voltage2.43.03.6V
Vdd_IOI/O pins supply voltage
IddSupply current6.1mA
(2)
(b)
.
(1)
1.71Vdd+0.1V
Max.Unit
IddSL
IddPdn
VIH
VIL
To p
1. Typical specifications are not guaranteed.
2. It is possible to remove Vdd maintaining Vdd_IO without blocking the communication busses, in this condition the
measurement chain is powered off.
3. Sleep mode introduce a faster turn-on time related to power down mode.
Supply current
in sleep mode
Supply current in powerdown mode
Digital high level input
voltage
Digital low level input
voltage
Operating temperature
range
(3)
Selectable by digital
interface
Selectable by digital
interface
2mA
5μA
0.8*Vdd_I
O
0.2*Vdd_I
O
-40+85°C
2.3 Temperature sensor characteristics
@ Vdd = 3.0 V, T = 25 °C unless otherwise noted
Table 5.Electrical characteristics
SymbolParameterTest conditionMin.Typ.
(b)
.
(1)
Max.Unit
V
V
Temperature sensor
TSDr
TODRTemperature refresh rate1Hz
To p
1. Typical specifications are not guaranteed.
10/45Doc ID 022557 Rev 1
output change vs.
temperature
Operating temperature
range
b. The product is factory calibrated at 3.0 V.
-1°C/digit
-
-40+85°C
Page 11
L3G3200DMechanical and electrical 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
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
tv(SO)SDO valid output time50
th(SO)SDO output hold time5
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)
Figure 3.SPI slave timing diagram
c. Measurement points are done at 0.2·Vdd_IO and 0.8·Vdd_IO, for both input and output ports.
Doc ID 022557 Rev 111/45
Page 12
Mechanical and electrical specificationsL3G3200D
SDA
SCL
t
f(SDA)
t
su(SP)
t
w(SCLL)
t
su(SDA)
t
r(SDA)
t
su(SR)
t
h(ST)
t
w(SCLH)
t
h(SDA)
t
r(SCL)
t
f(SCL)
t
w(SP:SR)
START
REPEATED
START
STOP
START
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)
SCL clock frequency100400kHz
SCL clock low time4.71.3
SCL clock high time4.00.6
SDA setup time250100ns
SDA data hold time03.450.010.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
4.71.3
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
2
C slave timing diagram
(d)
20 + 0.1C
20 + 0.1C
µs
(2)
b
(2)
b
300
ns
300
µs
d. Measurement points are done at 0.2·Vdd_IO and 0.8·Vdd_IO, for both ports.
12/45Doc ID 022557 Rev 1
Page 13
L3G3200DMechanical and electrical 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_IO I/O pins Supply voltage-0.3 to 4.8V
Vin
T
ESDElectrostatic discharge protection2 (HBM)kV
Note:Supply voltage on any pin should never exceed 4.8 V
Input voltage on any control pin (SCL, SDA, DEN,
CS)
Storage temperature range-40 to +125°C
STG
-0.3 to Vdd_IO +0.3V
SgAcceleration g for 0.1 ms10,000g
Doc ID 022557 Rev 113/45
Page 14
Mechanical and electrical specificationsL3G3200D
2.6 Terminology
2.6.1 Sensitivity
An angular rate gyroscope is device that produces a positive-going digital output for
counterclockwise rotation around the sensible 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.
2.6.2 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.
2.7 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
.
14/45Doc ID 022557 Rev 1
Page 15
L3G3200DApplication hints
100 nF
VddGND
C1
GND
10 µF
SCL/SPC
DRDY/INT2
INT1
SDO/SA0
SDA_SDI_SDO
10nF(25V)*
Vdd_IO
Vdd
GND
(TOP VIEW)
DIRECTIONS OF THE
DETECTABLE
ANGULA RATES
Vdd I2C bus
Rpu = 10kOhm
Rpu
SCL/SPC
SDA_SDI_SDO
Pull-up to be added when I2C interface isused
GND
* C1 must guarantee 1nF minimum value under
11V bias condition
1
X
+Ω
Z
+Ω
X
+Ω
Y
6
14
8
16
TOP
VIEW
5
1
9
13
CS
3 Application hints
Figure 5.L3G3200D electrical connections and external component values
Power supply decoupling capacitors (100 nF + 10 µF) should be placed as near as possible
to the device (common design practice).
If Vdd and Vdd_IO are not connected together, 100 nF and 10 µF decoupling capacitors
must be placed between Vdd and common ground while 100 nF between Vdd_IO and
common ground. Capacitors should be placed as near as possible to the device (common
design practice).
Doc ID 022557 Rev 115/45
AM10221V1
Page 16
Digital main blocksL3G3200D
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 Digital main blocks
4.1 Block diagram
Figure 6.Block diagram
4.2 FIFO
L3G3200D embeds a 32-slot of a 16-bit data FIFO for each of the three output channels,
Yaw, Pitch, and Roll. 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
according to 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 (2Eh). Programmable Watermark level, FIFO_empty or FIFO_Full
events can be enabled to generate dedicated interrupts on DRDY/INT2 pin (configuration
16/45Doc ID 022557 Rev 1
through CTRL_REG3 (22h) and event detection information are available in
FIFO_SRC_REG (2Fh). Watermark level can be configured to WTM4:0 in
FIFO_CTRL_REG (2Eh).
Page 17
L3G3200DDigital main blocks
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
4.2.1 Bypass mode
In bypass mode, the FIFO is not operational and for this reason it remains empty. As
described in Figure 7, for each channel only the first address is used. The remaining FIFO
slots are empty. When a new data is available the old one is overwritten.
Figure 7.Bypass mode
4.2.2 FIFO mode
In FIFO mode, data from yaw, pitch and roll channels are stored in the FIFO. A watermark
interrupt can be enabled (I2_WMK bit into CTRL_REG3 (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 (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 collecting data it is
necessary to write FIFO_CTRL_REG (2Eh) back to Bypass mode.
FIFO mode is represented in Figure 8.
Doc ID 022557 Rev 117/45
Page 18
Digital main blocksL3G3200D
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 8.FIFO mode
4.2.3 Stream mode
In Stream mode, data from yaw, pitch and roll measurements 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 16-bit data for yaw, pitch and roll). When full, the FIFO discards the
older data as the new arrive. Programmable watermark level events can be enabled to
generate dedicated interrupts on the DRDY/INT2 pin (configuration through CTRL_REG3
(22h).
Stream mode is represented in Figure 9.
18/45Doc ID 022557 Rev 1
Page 19
L3G3200DDigital main blocks
Figure 9.Stream mode
xi,yi,z
i
x
0
y
0
z
0
x
1
x
2
x
30
x
31
y
1
y
2
y
30
y
31
z
1
z
2
z
30
z
31
AM07234v1
Doc ID 022557 Rev 119/45
Page 20
Digital main blocksL3G3200D
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
Trigger 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.2.4 Bypass-to-stream mode
In bypass-to-stream mode, the FIFO starts operating in bypass mode and once a trigger
event occurs (related to INT1_CFG (30h) register events), the FIFO starts operating in
Stream mode.
Figure 10. Bypass-to-stream mode
4.2.5 Stream-to-FIFO mode
In Stream-to-FIFO mode, data from yaw, pitch and roll measurements are stored in the
FIFO. A watermark interrupt can be enabled on pin DRDY/INT2 setting the I2_WTM bit in
CTRL_REG3 (22h) in order to be raised when the FIFO is filled to the level specified in the
WTM4:0 bits of FIFO_CTRL_REG (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
arrive. Once trigger event occurs (related to INT1_CFG (30h) register events), the FIFO
starts operating in FIFO mode.
Figure 11. Trigger Stream mode
20/45Doc ID 022557 Rev 1
Page 21
L3G3200DDigital main blocks
4.2.6 Retrieve data from FIFO
FIFO data is read through OUT_X (Addr reg 28h,29h), OUT_Y (Addr reg 2Ah,2Bh) and
OUT_Z (Addr reg 2Ch,2Dh). When the FIFO is in Stream, Trigger, or FIFO mode, a read
operation to the OUT_X, OUT_Y or OUT_Z 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 into the
OUT_X, OUT_Y and OUT_Z 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 (2Dh)
is read, the system restarts to read information from addr OUT_X_L (28h).
Doc ID 022557 Rev 121/45
Page 22
Digital interfacesL3G3200D
5 Digital interfaces
The registers embedded inside the L3G3200D 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.
The serial interfaces are mapped onto the same pins. To select/exploit the I
line must be tied high (i.e connected to Vdd_IO).
C Serial Data (SDA)
SPI Serial Data Input (SDI)
3-wire Interface Serial Data Output (SDO)
SPI Serial Data Output (SDO)
I2C less significant bit of the device address
5.1 I2C serial interface
The L3G3200D I2C is a bus slave. The I2C is employed to write data into registers whose
content can also be read back.
The relevant I
Table 10.I2C terminology
TransmitterThe device which sends data to the bus
ReceiverThe device which receives data from the bus
Master
2
C terminology is given in the table below.
TermDescription
The device which initiates a transfer, generates clock signals and terminates a
transfer
SlaveThe device addressed by the master
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. Both lines must be connected to Vdd_IO through an external pull-up
resistor. When the bus is free, both the lines are high.
2
The I
C interface is compliant with fast mode (400 kHz) I2C standards as well as with the
normal mode.
22/45Doc ID 022557 Rev 1
Page 23
L3G3200DDigital 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.
The slave address (SAD) associated to the L3G3200D is 110101xb. The SDO pin can be
used to modify the less significant bit of the device address. If the SDO pin is connected to
the voltage supply, LSb is ‘1’ (address 1101011b), or, if the SDO pin is connected to ground,
the LSb value is ‘0’ (address 1101010b). This solution permits to connect and address two
different gyroscopes 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 inside the L3G3200D 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 bus.
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. Tab l e 1 1 explains how the
SAD+read/write bit pattern is composed, listing all the possible configurations.
Table 11.SAD+read/write patterns
CommandSAD[6:1]SAD[0] = SDOR/WSAD+R/W
Read1101010111010101 (D5h)
Write1101010011010100 (D4h)
Read1101011111010111 (D7h)
Write1101011011010110 (D6h)
Table 12.Transfer when master is writing one byte to slave
MasterSTSAD + WSUBDATASP
SlaveSAKSAKSAK
Doc ID 022557 Rev 123/45
Page 24
Digital interfacesL3G3200D
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+RMAKMAKNMAKSP
SlaveSAKSAKSAK DATADATADATA
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
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.
5.2 SPI bus interface
The 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.
24/45Doc ID 022557 Rev 1
Page 25
L3G3200DDigital 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 12. Read and write protocol
CS is the Serial Port Enable and it is controlled by the SPI master. It goes low at the start of
the transmission and goes back 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.
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 the 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 MS
0, the address used to read/write data remains the same for every block. When MS
bit is
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 022557 Rev 125/45
Page 26
Digital interfacesL3G3200D
5.2.1 SPI read
Figure 13. SPI read protocol
CS
SPC
SDI
RW
MS
AD5 AD4 AD3 AD2 AD1 AD0
SDO
DO7 DO6 DO5 DO4 DO3DO2 DO1 DO0
AM10130V1
The SPI Read command is performed with 16 clock pulses. 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.
DI7 DI6 DI5 DI4 DI3 DI 2 DI1 DI0 DI15 D I1 4 DI13 DI12 DI 11 DI 10 DI9 DI 8
AM10133V1
3-wire mode is entered by setting bit SIM (SPI serial interface mode selection) to 1 in
CTRL_REG4 (23h).
Doc ID 022557 Rev 127/45
Page 28
Digital interfacesL3G3200D
Figure 17. SPI read protocol in 3-wire mode
CS
SPC
SDI/O
RW
AD5 AD4 AD3 AD2 AD1 AD0MS
The SPI read command is performed with 16 clock pulses:
bit 0: READ bit. The value is 1.
DO7 DO6 DO5 DO4 DO3 DO 2 DO 1 DO 0
AM10134V1
bit 1: MS
bit. When 0, do not increment address, when 1, increment address in multiple
reading.
bit 2-7: address AD(5:0). This is the address field of the indexed register.
bit 8-15: data DO(7:0) (read mode). This is the data that is read from the device (MSb first).
Multiple read command is also available in 3-wire mode.
28/45Doc ID 022557 Rev 1
Page 29
L3G3200DOutput register mapping
6 Output register mapping
Ta bl e 1 6 provides a listing of the 8-bit registers embedded in the device and the related
addresses:
Table 16.Register address map
Register address
NameType
HexBinary
Reserved--00-0E----
WHO_AM_Ir0F000 111111010100
Reserved--10-1F----
CTRL_REG1rw20010 000000000111
CTRL_REG2rw21010 000100000000
CTRL_REG3rw22010 001000000000
CTRL_REG4rw23010 001100000000
CTRL_REG5rw24010 010000000000
REFERENCErw25010 010100000000
OUT_TEMPr26010 0110Output
Default
STATUS_REGr27010 0111Output
OUT_X_Lr28010 1000Output
OUT_X_Hr29010 1001Output
OUT_Y_Lr2A010 1010Output
OUT_Y_Hr2B010 1011Output
OUT_Z_Lr2C010 1100Output
OUT_Z_Hr2D010 1101Output
FIFO_CTRL_REGrw2E010 111000000000
FIFO_SRC_REGr2F010 1111Output
INT1_CFGrw30011 000000000000
INT1_SRCr31011 0001Output
INT1_TSH_XHrw32011 001000000000
INT1_TSH_XLrw33011 001100000000
INT1_TSH_YHrw34011 010000000000
INT1_TSH_YLrw35011 010100000000
INT1_TSH_ZHrw36011 011000000000
INT1_TSH_ZLrw37011 011100000000
INT1_DURATIONrw38011 100000000000
Doc ID 022557 Rev 129/45
Page 30
Output register mappingL3G3200D
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.
30/45Doc ID 022557 Rev 1
Page 31
L3G3200DRegister description
7 Register description
The device contains a set of registers which are used to control its behavior and to retrieve
angular data rate. The registers’ address, made up of 7 bits, is used to identify them and to
write the data through the serial interface.
7.1 WHO_AM_I (0Fh)
Table 17.WHO_AM_I register
11010100
Device identification register.
7.2 CTRL_REG1 (20h)
Table 18.CTRL_REG1 register
DR1DR0BW1BW0PDZenXenYen
Table 19.CTRL_REG1 description
DR1-DR0Output Data Rate selection. Refer to Ta bl e 2 0
BW1-BW0Bandwidth selection. Refer to Tab l e 2 0
PD
ZenZ axis enable. Default value: 1
YenY axis enable. Default value: 1
XenX axis enable. Default value: 1
DR<1:0> is used to set ODR selection. BW <1:0> is used to set Bandwidth selection.
In Ta bl e 20 all frequencies resulting in a combination 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 022557 Rev 131/45
Page 32
Register descriptionL3G3200D
Table 20.DR and BW configuration setting
DR <1:0>BW <1:0>ODR [Hz]Cut-Off [Hz]
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 are used to set the device in different modes (power
down / normal / sleep mode) according to Tab le 2 1 .
Table 21.Power mode selection configuration
ModePDZenYenXen
Power down0---
Sleep1000
Normal1---
32/45Doc ID 022557 Rev 1
Page 33
L3G3200DRegister description
7.3 CTRL_REG2 (21h)
Table 22.CTRL_REG2 register
(1)
0
1. These bits must be set to ‘0’ for proper working of the device.
Table 23.CTRL_REG2 description
HPM1HPM0
HPCF3HPCF0
Table 24.High-pass filter mode configuration
HPM1HPM0High-pass filter mode
00Normal mode (reset reading HP_RESET_FILTER)
(1)
0
High-pass filter mode selection. Default value: 00.
Refer toTa bl e 2 4
High-pass filter cut-off frequency selection.
Refer to Ta bl e 2 5
HPM1HPM1HPCF3HPCF2HPCF1HPCF0
01Reference signal for filtering
10Normal mode
11Autoreset on interrupt event
Table 25.High-pass filter cut-off frequency configuration [Hz]
Low-pass-filtered data are used for interrupt
generation
High-pass and low-pass-filtered data are
used for interrupt generation
7.7 REFERENCE/DATACAPTURE (25h)
Table 34.REFERENCE register
Ref7Ref6Ref5Ref4Ref3Ref2Ref1Ref0
Table 35.REFERENCE register description
Ref 7-Ref0Reference value for interrupt generation. Default value: 0
7.8 OUT_TEMP (26h)
Table 36.OUT_TEMP register
Temp7Temp6Temp5Temp4Temp3Temp2Temp1Temp0
Table 37.OUT_TEMP register description
Temp7-Temp0Temperature data. The value is expressed as 2’s complement.
7.9 STATUS_REG (27h)
Table 38.STATUS_REG register
ZYXORZORYORXORZYXDAZDAYDAXDA
Table 39.STATUS_REG description
X, Y, Z -axis data overrun. Default value: 0
ZYXOR
ZOR
YOR
(0: no overrun has occurred; 1: new data has overwritten the previous one before it was
read)
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)
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)
36/45Doc ID 022557 Rev 1
Page 37
L3G3200DRegister description
Table 39.STATUS_REG description (continued)
XOR
ZYXDA X, Y, Z -axis new data available. Default value: 0
ZDAZ axis new data available. Default value: 0
YDAY axis new data available. Default value: 0
XDAX axis new data available. Default value: 0
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)
(0: a new set of data is not yet available; 1: a new set of data is available)
(0: a new data for the Z-axis is not yet available; 1: a new data for the Z-axis is available)
(0: a new data for the Y-axis is not yet available;1: a new data for the Y-axis is available)
(0: a new data for the X-axis is not yet available; 1: a new data for the X-axis is available)
7.10 OUT_X_L (28h), OUT_X_H (29h)
X-axis angular rate data. The value is expressed as 2’s complement.
7.11 OUT_Y_L (2Ah), OUT_Y_H (2Bh)
Y-axis angular rate data. The value is expressed as 2’s complement.
7.12 OUT_Z_L (2Ch), OUT_Z_H (2Dh)
Z-axis angular rate data. The value is expressed as 2’s complement.
7.13 FIFO_CTRL_REG (2Eh)
Table 40.REFERENCE register
FM2FM1FM0WTM4WTM3WTM2WTM1WTM0
Table 41.REFERENCE register description
FM2-FM0FIFO mode selection. Default value: 00 (see Ta b le 4 2 )
WTM4-WTM0FIFO threshold. Watermark level setting
Table 42.FIFO mode configuration
FM2FM1FM0FIFO mode
000Bypass mode
001FIFO mode
010Stream mode
Doc ID 022557 Rev 137/45
Page 38
Register descriptionL3G3200D
Table 42.FIFO mode configuration (continued)
FM2FM1FM0FIFO mode
011Stream-to-FIFO mode
100Bypass-to-Stream mode
7.14 FIFO_SRC_REG (2Fh)
Table 43.FIFO_SRC register
WTMOVRNEMPTYFSS4FSS3FSS2FSS1FSS0
Table 44.FIFO_SRC register description
WTMWatermark status. (0: FIFO filling is lower than WTM level; 1: FIFO filling is equal
or higher than WTM level)
OVRNOverrun bit status.
(0: FIFO is not completely filled; 1:FIFO is completely filled)
EMPTYFIFO empty bit.
(0: FIFO not empty; 1: FIFO empty)
FSS4-FSS1FIFO stored data level
7.15 INT1_CFG (30h)
Table 45.INT1_CFG register
AND/ORLIRZHIEZLIEYHIEYLIEXHIEXLIE
Table 46.INT1_CFG description
AND/OR
LIR
ZHIE
ZLIE
YHIE
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 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 Y high event. Default value: 0
(0: disable interrupt request; 1: enable interrupt request on measured accel. value
higher than preset threshold)
38/45Doc ID 022557 Rev 1
Page 39
L3G3200DRegister description
Table 46.INT1_CFG description
Enable interrupt generation on Y low event. Default value: 0
YLIE
XHIE
XLIE
(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.16 INT1_SRC (31h)
Table 47.INT1_SRC register
0 IA ZHZLYHYLXHXL
Table 48.INT1_SRC 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)
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 to refresh data in the INT1_SRC register if the latched option was
chosen.
D6 - D0 bits set the minimum duration of the Interrupt event to be recognized. Duration
steps and maximum values depend on the ODR chosen.
The WAIT 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 the number of samples at the selected data rate, written into the duration
counter register.
Doc ID 022557 Rev 141/45
Page 42
Register descriptionL3G3200D
Figure 19. Wait disabled
Figure 20. Wait enabled
42/45Doc ID 022557 Rev 1
Page 43
L3G3200DPackage information
Dimensions
Ref.
mm
Min.Typ.Max.
A11.0001.027
A20.800
A30.200
D12.8503.0003.150
E13.3503.5003.650
L11.0001.060
L22.0002.060
N10.500
N21.000
M0.0400.1000.160
P10.875
P21.275
T10.2900.3500.410
T20.1900.2500.310
d0.150
k0.050
LGA-16 (3.5x3.0x1.0 mm)
Land Grid Array Package
Outline and
8297582_A
mechanical data
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.
Figure 21. LGA-16: mechanical data and package dimensions
®
packages, depending on their level of environmental compliance. ECOPACK
Doc ID 022557 Rev 143/45
Page 44
Revision historyL3G3200D
9 Revision history
Table 63.Document revision history
DateRevisionChanges
02-Dec-111Initial release.
44/45Doc ID 022557 Rev 1
Page 45
L3G3200D
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.