L3G4200D
L3G4200D
Features
■ Three selectable full scales (250/500/2000
dps)
■ I2C/SPI digital output interface
■ 16 bit-rate value data output
■ 8-bit temperature data output LGA-16 (4x4x1.1 mm)
■ Two digital output lines (interrupt and data
ready)
■ Integrated low- and high-pass filters with user- Description
selectable bandwidth
■ Embedded self-test The L3G4200D is a low-power three-axis angular
rate sensor.
■ Wide supply voltage: 2.4 V to 3.6 V
■ Low voltage-compatible IOs (1.8 V) It includes a sensing element and an IC interface
capable of providing the measured angular rate to
■ Embedded power-down and sleep mode the external world through a digital interface
■ Embedded temperature sensor (I2C/SPI).
■ 96 levels of 16-bit data output (FIFO) The sensing element is manufactured using a
■ High shock survivability dedicated micro-machining process developed by
STMicroelectronics to produce inertial sensors
■ Extended operating temperature range (-40 °C
and actuators on silicon wafers.
to +85 °C)
■ ECOPACK® RoHS and “Green” compliant 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
Applications better match the sensing element characteristics.
■ Gaming and virtual reality input devices The L3G4200D has a full scale of ±250/±500/
■ Motion control with MMI (man-machine ±2000 dps and is capable of measuring rates with
interface) a user-selectable bandwidth.
■ GPS navigation systems The L3G4200D is available in a plastic land grid
array (LGA) package and can operate within a
■ Appliances and robotics
temperature range of -40 °C to +85 °C.
Contents
4 Application hints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
5 Digital interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
5.1 I2C serial interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
5.1.1 I2C operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5.2 SPI bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
6 Package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
7 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
List of tables
List of figures
T
E
M
S
P
E E A
N D
DRIVING MASS R
S C
A
O 2
T
R
U
Feedback loop R
E
AM07225v1
The vibration of the structure is maintained by drive circuitry in a feedback loop. The sensing
signal is filtered and appears as a digital signal at the output.
+Ω
Z
GND
RES
Vdd
1
X 13 16
+Ω
Y RES 12 1 Vdd_IO
RES BOTTOM SCL/SPC
VIEW
RES SDA/SDI/SDO
+Ω RES 9 4 SDO/SA0
X 8 5
RES
INT
DRDY/INT2
CS
(TOP VIEW)
DIRECTIONS OF THE
DETECTABLE
ANGULAR RATES
AM07226v1
VQRKP %
% 4
)0&
#/X
C1 10 nF
C2 470 nF
R2 10 kΩ
Table 5. Electrical characteristics @ Vdd =3.0 V, T=25 °C, unless otherwise noted(1)
Symbol Parameter Test condition Min. Typ.(2) Max. Unit
Temperature sensor
TSDr output change vs. -1 °C/digit
temperature
TODR Temperature refresh rate 1 Hz
Operating temperature
Top -40 +85 °C
range
1. The product is factory calibrated at 3.0 V.
2. Typical specifications are not guaranteed.
&6
63&
WVX 6, WK 6,
WY 62 WK 62 WGLV 62
!-V
b. Measurement points are done at 0.2·Vdd_IO and 0.8·Vdd_IO, for both input and output ports.
tr(SDA) tr(SCL) SDA and SCL rise time 1000 20 + 0.1Cb (2) 300
ns
tf(SDA) tf(SCL) SDA and SCL fall time 300 20 + 0.1Cb (2) 300
WVX 65
WZ 6365 67$57
6'$
WVX 63 6723
6&/
c. Measurement points are done at 0.2·Vdd_IO and 0.8·Vdd_IO, for both ports.
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.6 Terminology
2.6.1 Sensitivity
An angular rate gyroscope is a device that produces a positive-going digital output for
counterclockwise 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.
2.6.3 Self-test
Self-test allows testing of the mechanical and electric part of the sensor, allowing the
seismic mass to be moved by means of an electrostatic test-force. When self-test is
activated by the IC, an actuation force is applied to the sensor, emulating a definite Coriolis
force. In this case the sensor output exhibits an output change.
When ST (self-test) is active, the device output level is given by the algebraic sum of the
signals produced by the velocity acting on the sensor and by the electrostatic test-force.
$ATA2EG
&)&/
,0& XX
!$# ,0& (0& )#
30)
(0EN ).4?3EL
)NTERRUPT
GENERATOR
3#2 2%'
#/.& 2%'
).4
!-V
3.2 FIFO
The L3G4200D embeds a 32-slot, 16-bit data FIFO for each of the three output channels:
yaw, pitch, and roll. This allows consistent power saving for the system, as the host
processor does not need to continuously poll data from the sensor. Instead, it can wake up
only when needed and burst the significant data out from the FIFO. This buffer can work in
five different modes. Each mode is selected by the FIFO_MODE bits in the
FIFO_CTRL_REG. Programmable watermark level, FIFO_empty or FIFO_Full events can
be enabled to generate dedicated interrupts on the DRDY/INT2 pin (configured through
CTRL_REG3), and event detection information is available in FIFO_SRC_REG. The
watermark level can be configured to WTM4:0 in FIFO_CTRL_REG.
XI YI ZI
X Y I Z
X Y Z
X Y Z
EMPTY
X Y Z
!-V
XI YI ZI
X Y I Z
X Y Z
X Y Z
X Y Z
!-V
older data as the new data arrives. Programmable watermark level events can be enabled to
generate dedicated interrupts on the DRDY/INT2 pin (configured through CTRL_REG3).
Stream mode is represented in Figure 9.
XI YI ZI
X Y Z
X Y Z
X Y Z
X Y Z
X Y Z
!-V
XI YI ZI XI YI ZI
X Y I Z X Y Z
X Y Z
X Y Z
X Y Z
X Y Z
%MPTY
X Y Z
X Y Z
X Y Z
XI YI ZI XI YI ZI
X Y Z
X Y I Z
X Y Z
X Y Z
X Y Z
X Y Z
X Y Z
X Y Z
X Y Z
4RIGGER EVENT
!-V
4 Application hints
100 nF 10 µF
1
X
+Ω
PLLFILT
Y
Vdd
16 13
+Ω Vdd_IO
X 1 12
GND
10kOhm 470nF
CS DR INT
R2 C2
Vdd I2C bus
SCL/SPC
SDA_SDI_SDO
Pull-up to be added when I2C interface is used
AM07949V1
Power supply decoupling capacitors (100 nF ceramic or polyester +10 µF) should be placed
as near as possible to the device (common design practice).
If Vdd and Vdd_IO are not connected together, power supply decoupling capacitors
(100 nF and 10 µF between Vdd and common ground, 100 nF between Vdd_IO and
common ground) should be placed as near as possible to the device (common design
practice).
The L3G4200D IC includes a PLL (phase locked loop) circuit to synchronize driving and
sensing interfaces. Capacitors and resistors must be added at the PLLFILT pin (as shown in
Figure 12) to implement a second-order low-pass filter. Table 10 summarizes the PLL low-
pass filter component values.
C1 10 nF ± 10 %
C2 470 nF ± 10 %
R2 10 kΩ ± 10 %
5 Digital interfaces
The registers embedded in the L3G4200DH may be accessed through both the I2C and SPI
serial interfaces. The latter may be software-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 I2C interface, the
CS line must be tied high (i.e., connected to Vdd_IO).
SPI enable
CS
I2C/SPI mode selection (1: I2C mode; 0: SPI enabled)
I2C serial clock (SCL)
SCL/SPC
SPI serial port clock (SPC)
I2C serial data (SDA)
SDA/SDI/SDO SPI serial data input (SDI)
3-wire interface serial data output (SDO)
SPI serial data output (SDO)
SDO
I2C least significant bit of the device address
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.
The I2C interface is compliant with fast mode (400 kHz) I2C standards as well as with normal
mode.
Table 16. Transfer when master is receiving (reading) one byte of data from slave
Master ST SAD + W SUB SR SAD + R NMAK SP
Slave SAK SAK SAK DATA
Table 17. Transfer when master is receiving (reading) multiple bytes of data from slave
Master ST SAD+W SUB SR SAD+R MAK MAK NMAK SP
Slave SAK SAK SAK DATA DATA DATA
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 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 sub-
address 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”.
CS
SPC
SDI
RW DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0
MS AD5 AD4 AD3 AD2 AD1 AD0
SDO
DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0
CS is the serial port enable and is controlled by the SPI master. It goes low at the start of the
transmission and returns to high at the end. SPC is the serial port clock and is controlled by
the SPI master. It is stopped high when CS is high (no transmission). SDI and SDO are,
respectively, the serial port data input and output. These lines are driven at the falling edge
of SPC and should be captured at the rising edge of SPC.
Both the read register and write register commands are completed in 16 clock pulses, or in
multiples of 8 in case of multiple read/write bytes. 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, etc.) 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.
CS
SPC
SDI
RW
MS AD5 AD4 AD3 AD2 AD1 AD0
SDO
DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0
The SPI read command is performed with 16 clock pulses. A multiple byte read command is
performed by adding blocks of 8 clock pulses to the previous one.
Bit 0: READ bit. The value is 1.
Bit 1: MS bit. When 0, do not increment address; when 1, increment address in multiple
reading.
Bit 2-7: address AD(5:0). This is the address field of the indexed register.
Bit 8-15: data DO(7:0) (read mode). This is the data that is read from the device (MSb first).
Bit 16-... : data DO(...-8). Further data in multiple byte reading.
CS
SPC
SDI
RW
MS AD5 AD4 AD3 AD2 AD1 AD0
SDO
DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0 DO15DO14DO13DO12DO11DO10DO9 DO8
CS
SPC
SDI
RW DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0
MS AD5 AD4 AD3 AD2 AD1 AD0
The SPI write command is performed with 16 clock pulses. A multiple byte write command is
performed by adding blocks of 8 clock pulses to the previous one.
Bit 0: WRITE bit. The value is 0.
Bit 1: MS bit. When 0, do not increment address; when 1, increment address in multiple
writing.
Bit 2 -7: address AD(5:0). This is the address field of the indexed register.
Bit 8-15: data DI(7:0) (write mode). This is the data that is written to the device (MSb first).
Bit 16-... : data DI(...-8). Further data in multiple byte writing.
CS
SPC
SDI
DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0 DI15 DI14 DI13 DI12 DI11 DI10 DI9 DI8
RW
MS AD5 AD4 AD3 AD2 AD1 AD0
CS
SPC
SDI/O
RW DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0
MS AD5 AD4 AD3 AD2 AD1 AD0
6 Package information
7 Revision history
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOT
RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING
APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY,
DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE
GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
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.