STMicroelectronics LSM6DSR Datasheet
Annonce
Annonce
LSM6DSR
Datasheet iNEMO inertial module: always-on 3D accelerometer and 3D gyroscope
LGA-14L
(2.5 x 3.0 x 0.83 mm) typ.
Product status link
LSM6DSR
Order code
Temp. range
[°C]
Product summary
LSM6DSR LSM6DSRTR
-40 to +85
Package
Packing
LGA-14L
(2.5 x 3.0 x 0.83 mm)
Tray Tape & Reel
Product label
Product resources
AN5358 (LSM6DSR)
AN5390 (Finite State Machine)
TN0018 (Design and soldering)
Features
• Extended full-scale range for gyroscope up to 4000 dps
• High stability over temperature and time
• Smart FIFO up to 9 kbytes
• Android compliant
• Auxiliary SPI for OIS data output for gyroscope and accelerometer
• ±2/±4/±8/±16 g full scale
• ±125/±250/±500/±1000/±2000/±4000 dps full scale
• Analog supply voltage: 1.71 V to 3.6 V
• SPI / I²C & MIPI I3C SM serial interface with main processor data synchronization
• Supports sensor synchronization S4S for Qualcomm, full spec compliant (I²C,
MIPI I3C SM , SPI)
• Advanced pedometer, step detector and step counter
• Significant Motion Detection, tilt detection
• Programmable Finite State Machine: accelerometer, gyroscope, and external sensors
• Standard interrupts: free-fall, wakeup, 6D/4D orientation, click and double-click
• Embedded temperature sensor
• ECOPACK , RoHS and “Green” compliant
Applications
• Motion tracking and gesture detection
• Virtual and augmented reality
• OIS for camera applications
• Sensor hub
• Indoor navigation
• IoT and connected devices
• Sports applications
• Vibration monitoring and compensation
• Drones
• Robotics
• High-precision systems
Description
The LSM6DSR is a system-in-package featuring a 3D digital accelerometer and a
3D digital gyroscope with an extended full-scale range for the gyroscope, up to 4000 dps, and high stability over temperature and time.
The LSM6DSR supports main OS requirements, offering real, virtual and batch sensors with 9 kbytes with FIFO compression up to three times for dynamic data batching.
ST’s family of MEMS sensor modules leverages the robust and mature manufacturing processes already used for the production of micromachined accelerometers and gyroscopes.
DS11976 - Rev 2 - November 2020
For further information contact your local STMicroelectronics sales office.
www.st.com
LSM6DSR
The LSM6DSR has a full-scale acceleration range of ±2/±4/±8/±16 g and an angular rate range of ±125/±250/±500/±1000/±2000/±4000 dps.
The LSM6DSR embeds a broad range of advanced functions supporting Android wearable sensors and programmable sensors (suitable for activity recognition).
The LSM6DSR is available in a plastic land grid array (LGA) package.
DS11976 - Rev 2 page 2/168
1
LSM6DSR
Overview
Overview
The LSM6DSR is a system-in-package featuring a high-performance 3-axis digital accelerometer and 3-axis digital gyroscope.
The LSM6DSR delivers best-in-class motion sensing that can detect orientation and gestures in order to empower application developers and consumers with features and capabilities that are more sophisticated than simply orienting their devices to portrait and landscape mode.
This device is suitable for augmented reality and virtual reality applications as well as Optical Image Stabilization and motion-based gaming controllers as a result of its high stability over temperature and time, combined with superior sensing precision.
The LSM6DSR fully supports OIS applications using both the gyroscope and accelerometer sensor. The device can output OIS data through a dedicated auxiliary SPI and includes a dedicated configurable signal processing path for OIS. For both the gyroscope and accelerometer, the UI signal processing path is completely independent from that of the OIS and is readable through FIFO. Moreover, self -test and full scale are available for both the UI and OIS chains.
The event-detection interrupts enable efficient and reliable motion tracking and contextual awareness, implementing hardware recognition of free-fall events, 6D orientation, click and double-click sensing, activity or inactivity, and wakeup events.
The LSM6DSR supports main OS requirements, offering real, virtual and batch mode sensors. In addition, the
LSM6DSR can efficiently run the sensor-related features specified in Android. In particular, the LSM6DSR has been designed to implement hardware features such as significant motion, tilt, pedometer functions, timestamping and to support the data acquisition of an external magnetometer.
The LSM6DSR offers hardware flexibility to connect the pins with different mode connections to external sensors to expand functionalities such as adding a sensor hub.
Up to 9 kbytes of FIFO with compression and dynamic allocation of significant data (i.e. external sensors, timestamp, etc.) allows overall power saving of the system.
Like the entire portfolio of MEMS sensor modules, the LSM6DSR leverages the robust and mature in-house manufacturing processes already used for the production of micromachined accelerometers and gyroscopes. The various sensing elements are manufactured using specialized micromachining processes, while the IC interfaces are developed using CMOS technology that allows the design of a dedicated circuit which is trimmed to better match the characteristics of the sensing element.
The LSM6DSR is available in a small plastic land grid array (LGA) package of 2.5 x 3.0 x 0.83 mm to address ultra-compact solutions.
DS11976 - Rev 2 page 3/168
2
2.1
2.2
LSM6DSR
Embedded low-power features
Embedded low-power features
The LSM6DSR has been designed to be fully compliant with Android, featuring the following on-chip functions:
• 9 kbytes data buffering, data can be compressed two or three times
– 100% efficiency with flexible configurations and partitioning
– Possibility to store timestamp
• Event-detection interrupts (fully configurable):
– Free-fall
– Wakeup
– 6D orientation
– Click and double-click sensing
•
•
•
– Activity/inactivity recognition
– Stationary/Motion detection
Specific IP blocks with negligible power consumption and high-performance:
– Pedometer functions: step detector and step counters
– Tilt
– Significant Motion Detection
– Finite State Machine (FSM) for accelerometer, gyroscope, and external sensors
Sensor hub
– Up to 6 total sensors: 2 internal (accelerometer and gyroscope) and 4 external sensors
S4S data rate synchronization with external trigger for reduced sensor access and enhanced fusion
Tilt detection
The tilt function helps to detect activity change and has been implemented in hardware using only the accelerometer to achieve targets of both ultra-low power consumption and robustness during the short duration of dynamic accelerations.
The tilt function is based on a trigger of an event each time the device's tilt changes and can be used with different scenarios, for example:
•
•
Triggers when phone is in a front pants pocket and the user goes from sitting to standing or standing to sitting;
Doesn’t trigger when phone is in a front pants pocket and the user is walking, running or going up stairs.
Significant Motion Detection
The Significant Motion Detection (SMD) function generates an interrupt when a ‘significant motion’, that could be due to a change in user location, is detected. In the LSM6DSR device this function has been implemented in hardware using only the accelerometer.
SMD functionality can be used in location-based applications in order to receive a notification indicating when the user is changing location.
DS11976 - Rev 2 page 4/168
2.3
LSM6DSR
Finite State Machine
Finite State Machine
The LSM6DSR can be configured to generate interrupt signals activated by user-defined motion patterns. To do this, up to 16 embedded finite state machines can be programmed independently for motion detection such as glance gestures, absolute wrist tilt, shake and double-shake detection.
Definition of Finite State Machine
A state machine is a mathematical abstraction used to design logic connections. It is a behavioral model composed of a finite number of states and transitions between states, similar to a flow chart in which one can inspect the way logic runs when certain conditions are met. The state machine begins with a start state, goes to different states through transitions dependent on the inputs, and can finally end in a specific state (called stop state). The current state is determined by the past states of the system. The following figure shows a generic state machine.
Figure 1. Generic state machine
DS11976 - Rev 2
Finite State Machine in the LSM6DSR
The LSM6DSR works as a combo accelerometer-gyroscope sensor, generating acceleration and angular rate output data. It is also possible to connect an external sensor (magnetometer) by using the Sensor Hub feature
(Mode 2). These data can be used as input of up to 16 programs in the embedded Finite State Machine
( Figure 2. State machine in the LSM6DSR ).
All 16 finite state machines are independent: each one has its dedicated memory area and it is independently executed. An interrupt is generated when the end state is reached or when some specific command is performed.
Figure 2. State machine in the LSM6DSR page 5/168
LSM6DSR
Pin description
3
Pin description
Z
Figure 3. Pin connections
Y
Direction of detectable acceleration (top view)
X
Ω
Y
Ω
R
SDO_Aux
OCS_Aux
INT2
Vdd
11
8
BOTTOM
VIEW
7 5
1
4
SDO/SA0
SDx
SCx
INT1
Direction of detectable angular rate (top view)
Ω
P
DS11976 - Rev 2 page 6/168
3.1
LSM6DSR
Pin connections
Pin connections
The LSM6DSR offers flexibility to connect the pins in order to have four different mode connections and functionalities. In detail:
• Mode 1: I²C / MIPI I3C SM slave interface or SPI (3- and 4-wire) serial interface is available;
•
•
Mode 2: I²C / MIPI I3C SM slave interface or SPI (3- and 4-wire) serial interface and I²C interface master for external sensor connections are available;
Mode 3: I²C/ MIPI I3C SM slave interface or SPI (3- and 4-wire) serial interface is available for the application processor interface while an auxiliary SPI (3- and 4-wire) serial interface for external sensor connections is available for the gyroscope ONLY;
• Mode 4: I²C / MIPI I3C SM slave interface or SPI (3- and 4-wire) serial interface is available for the application processor interface while an auxiliary SPI (3- and 4-wire) serial interface for external sensor connections is available for the accelerometer and gyroscope.
Figure 4. LSM6DSR connection modes
Mode 1
HOST
I 2 C /
MIPI I3C
SM
/
SPI (3/4-w)
LSM6DSR
Mode 2
HOST
I 2 C /
MIPI I3C
SM
/
SPI (3/4-w)
LSM6DSR
Master I 2 C
LSM6DSM sensors
Mode 3
HOST
I 2 C /
MIPI I3C
SM
/
SPI (3/4-w)
LSM6DSR
Mode 4
HOST
I 2 C /
MIPI I3C
SM
/
SPI (3/4-w)
LSM6DSR
Aux SPI (3/4-w)
For gyro data only
Camera module
Aux SPI (3/4-w) For XL and gyro data
Camera module
In the following table each mode is described for the pin connections and function.
DS11976 - Rev 2 page 7/168
LSM6DSR
Pin connections
Table 1. Pin description
Pin #
1
2
3
Name
SDO/SA0
SDx
SCx
Mode 1 function
SPI 4-wire interface serial data output (SDO)
I²C least significant bit of the device address (SA0)
Connect to Vdd_IO or GND
Connect to Vdd_IO or GND
Mode 2 function
SPI 4-wire interface serial data output (SDO)
I²C least significant bit of the device address (SA0)
I²C serial data master (MSDA)
I²C serial clock master (MSCL)
Mode 3/4 function
SPI 4-wire interface serial data output (SDO)
I²C least significant bit of the device address (SA0)
Auxiliary SPI 3/4-wire interface serial data input (SDI) and SPI 3-wire serial data output (SDO)
Auxiliary SPI 3/4-wire interface serial port clock (SPC_Aux)
4
7
8
5
6
INT1
Vdd_IO
GND
GND
Vdd
Programmable interrupt in I²C and SPI
Power supply for I/O pins
0 V supply
0 V supply
Power supply
9
10
11
12
13
14
INT2
OCS_Aux
SDO_Aux
CS
SCL
SDA
Programmable interrupt 2 (INT2) /
Data enabled (DEN)
Programmable interrupt 2 (INT2) /
Data enabled (DEN) / I²C master external synchronization signal
(MDRDY)
Programmable interrupt 2 (INT2) /
Data enabled (DEN)
Connect to Vdd_IO or leave
Connect to Vdd_IO or leave
Auxiliary SPI 3/4-wire interface enable
Auxiliary SPI 3-wire interface: leave unconnected
Auxiliary SPI 4-wire interface: serial data output (SDO_Aux)
I²C and MIPI I3C SM /SPI mode selection (1: SPI idle mode / I²C and
MIPI I3C SM communication enabled;
0: SPI communication mode / I²C and
MIPI I3C SM disabled)
I²C/MIPI I3C SM serial clock (SCL) /
SPI serial port clock (SPC)
I²C/MIPI I3C SM serial data (SDA)
SPI serial data input (SDI)
3-wire interface serial data output
(SDO)
I²C and MIPI I3C SM /SPI mode selection (1: SPI idle mode / I²C and
MIPI I3C SM communication enabled;
0: SPI communication mode / I²C and
MIPI I3C SM disabled)
I²C and MIPI I3C SM /SPI mode selection (1: SPI idle mode / I²C and
MIPI I3C SM communication enabled;
0: SPI communication mode / I²C and
MIPI I3C SM disabled)
I²C/MIPI I3C SM serial clock (SCL) /
SPI serial port clock (SPC)
I²C/MIPI I3C SM serial data (SDA)
SPI serial data input (SDI)
3-wire interface serial data output
(SDO)
I²C/MIPI I3C SM
SPI serial port clock (SPC)
I²C/MIPI I3C SM serial clock (SCL) /
serial data (SDA)
SPI serial data input (SDI)
3-wire interface serial data output
(SDO)
1. Recommended 100 nF filter capacitor.
2. Leave pin electrically unconnected and soldered to PCB.
DS11976 - Rev 2 page 8/168
LSM6DSR
Module specifications
4
Module specifications
4.1
Mechanical characteristics
@ Vdd = 1.8 V, T = 25 °C, unless otherwise noted.
Symbol Parameter
LA_FS Linear acceleration measurement range
G_FS Angular rate measurement range
LA_So
Linear acceleration sensitivity (2)
G_So
Table 2. Mechanical characteristics
G_So%
LA_SoDr Linear acceleration sensitivity change vs. temperature
G_SoDr Angular rate sensitivity change vs. temperature
LA_TyOff Linear acceleration zerog
G_TyOff
Angular rate zero-rate level (5)
LA_OffDr Linear acceleration zerog level change vs. temperature
G_OffDr
Angular rate typical zero-rate level change vs. temperature (4)
Rn Rate noise density in high-performance mode
RnRMS Gyroscope RMS noise in low-power mode
An
Acceleration noise density in high-performance mode (8)
RMS Acceleration RMS noise in low-power mode
Test conditions
FS = ±2 g
FS = ±4 g
FS = ±8 g
FS = ±16 g
FS = ±125 dps
FS = ±250 dps
FS = ±500 dps
FS = ±1000 dps
FS = ±2000 dps
FS = ±4000 dps at component level from -40 °C to +85 °C from -40 °C to +85 °C
Min. Typ.
±2
±4
±8
±16
±125
±250
±500
±1000
0.488
4.375
8.75
17.50
35
70
140
±1
±2000
±4000
0.061
0.122
0.244
±0.01
±0.007
±10
±1
±0.1
±0.005
5
90
60
Max.
m
Unit dps g g
/LSB mdps/LSB
%
%/°C
%/°C m g dps m g /°C dps/°C mdps/√Hz mdps
µ g /√Hz
1.8
m g (RMS)
DS11976 - Rev 2 page 9/168
LSM6DSR
Mechanical characteristics
Symbol
LA_ODR Linear acceleration output data rate
G_ODR
Vst
Parameter
Angular rate output data rate
Linear acceleration self-test output change
Angular rate self-test output change (15)(16)
Test conditions
FS = ±250 dps
FS = ±2000 dps
Top Operating temperature range
1. Typical specifications are not guaranteed.
2. Sensitivity values after factory calibration test and trimming.
3. Subject to change.
4. Measurements are performed in a uniform temperature setup and they are based on characterization data in a limited number of samples. Not measured during final test for production.
5. Values after factory calibration test and trimming.
6. Gyroscope rate noise density in high-performance mode is independent of the ODR and FS setting.
7. Gyroscope RMS noise in low-power mode is independent of the ODR and FS setting.
8. Accelerometer noise density in high-performance mode is independent of the ODR and full scale.
9. Accelerometer RMS noise in low-power mode is independent of the ODR.
10. Noise RMS related to BW = ODR/2.
11. This ODR is available when the accelerometer is in low-power mode.
12. The sign of the linear acceleration self-test output change is defined by the STx_XL bits in a dedicated register for all axes.
13. The linear acceleration self-test output change is defined with the device in stationary condition as the absolute value of: OUTPUT[LSb] (self-test enabled) - OUTPUT[LSb] (self-test disabled). 1LSb = 0.061 mg at ±2 g full scale.
14. Accelerometer self-test limits are full-scale independent.
15. The sign of the angular rate self-test output change is defined by the STx_G bits in a dedicated register for all axes.
16. The angular rate self-test output change is defined with the device in stationary condition as the absolute value of: OUTPUT[LSb] (self-test enabled) - OUTPUT[LSb] (self-test disabled). 1LSb = 70 mdps at ±2000 dps full scale
Min. Typ.
1.6
12.5
26
52
104
208
416
833
1666
3332
6667
12.5
26
52
104
208
416
833
1666
3332
6667
40
20
150
-40
Max.
1700
80
700
+85
Unit
Hz m g dps dps
°C
DS11976 - Rev 2 page 10/168
LSM6DSR
Electrical characteristics
4.2
Electrical characteristics
@ Vdd = 1.8 V, T = 25 °C, unless otherwise noted.
Table 3. Electrical characteristics
Symbol
Vdd Supply voltage
Vdd_IO Power supply for I/O
Parameter
IddHP
IddNM
Gyroscope and accelerometer current consumption in high-performance mode
Gyroscope and accelerometer current consumption in normal mode
LA_IddHP Accelerometer current consumption in high-performance mode
Test conditions
ODR = 208 Hz
Min.
1.71
1.62
LA_IddLM Accelerometer current consumption in low-power mode
ODR = 52 Hz
ODR = 12.5 Hz
ODR = 1.6 Hz
IddPD
Ton
V
IH
V
IL
V
OH
V
OL
Top
Gyroscope and accelerometer current consumption during power-down
Turn-on time
Digital high-level input voltage
Digital low-level input voltage
Digital high-level output voltage
Digital low-level output voltage
Operating temperature range
I
OH
= 4 mA
I
OL
0.7 * Vdd_IO
Vdd_IO - 0.2
-40
1. Typical specifications are not guaranteed.
2. 4 mA is the minimum driving capability, i.e. the minimum DC current that can be sourced/sunk by the digital pad in order to guarantee the correct digital output voltage levels V
OH
and V
OL
.
1.8
32
11
5.5
3
35
1.2
0.7
360
Max.
3.6
3.6
0.3 * Vdd_IO
0.2
+85
Unit
V
V mA mA
µA
µA
V
°C
µA ms
V
V
V
4.3
Temperature sensor characteristics
@ Vdd = 1.8 V, T = 25 °C unless otherwise noted.
Table 4. Temperature sensor characteristics
Symbol
Toff
TSen
TST
T_ADC_res
Top
Parameter
Temperature refresh rate
Temperature offset
Temperature sensitivity
Temperature stabilization time (4)
Temperature ADC resolution
Operating temperature range
Test condition Min.
-15
-40
1. Typical specifications are not guaranteed.
2. When the accelerometer is in low-power mode and the gyroscope part is turned off, the TODR value is equal to the accelerometer ODR.
3. The output of the temperature sensor is 0 LSB (typ.) at 25 °C.
4. Time from power ON to valid output data. Based on characterization data.
Typ.
52
256
16
Max.
+15
500
+85
Unit
Hz
°C
LSB/°C
µs bit
°C
DS11976 - Rev 2 page 11/168
LSM6DSR
Communication interface characteristics
4.4
4.4.1
Communication interface characteristics
SPI - serial peripheral interface
Subject to general operating conditions for Vdd and Top.
Table 5. SPI slave timing values (in mode 3)
Value
Symbol Parameter Unit
Min Max t c(SPC) f c(SPC) t su(CS) t h(CS) t su(SI) t h(SI) t v(SO) t h(SO) t dis(SO)
SPI clock cycle
SPI clock frequency
CS setup time
CS hold time
SDI input setup time
SDI input hold time
SDO valid output time
SDO output hold time
SDO output disable time
100
5
20
5
15
5
10
50
50 ns
MHz 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
Figure 5. SPI slave timing diagram (in mode 3)
DS11976 - Rev 2
Note: Measurement points are done at 0.3·Vdd_IO and 0.7·Vdd_IO for both input and output ports.
page 12/168
LSM6DSR
Communication interface characteristics
4.4.2
I²C - inter-IC control interface
Subject to general operating conditions for Vdd and Top.
Table 6. I²C slave timing values
Symbol Parameter
Min Max
Min Max f
(SCL) t w(SCLL) t w(SCLH) t su(SDA) t h(SDA) t h(ST) t su(SR) t su(SP) t w(SP:SR)
SCL clock frequency
SCL clock low time
SCL clock high time
SDA setup time
SDA data hold time
START/REPEATED START condition hold time
REPEATED START condition setup time
STOP condition setup time
Bus free time between STOP and START condition
0
1.3
0.6
100
0
0.6
0.6
0.6
1.3
400
0.9
0
0.5
0.26
50
0
0.26
0.26
0.26
0.5
1000
Data valid time
Data valid acknowledge time
0.9
0.9
0.45
0.45
C
B
Capacitive load for each bus line 400
1. Data based on standard I²C protocol requirement, not tested in production.
2. Data for I²C fast mode and I²C fast mode + have been validated by characterization, not tested in production.
550
Unit kHz
µs ns
µs pF
Figure 6. I²C slave timing diagram
SDA
START t su(SR) t w(SP:SR)
REPEATED
START
START t su (SDA) t h(SDA) t su(SP)
STOP
SCL t h(ST) t w(SCLL) t w(SCLH)
Note: Measurement points are done at 0.3·Vdd_IO and 0.7·Vdd_IO for both ports.
DS11976 - Rev 2 page 13/168
4.5
LSM6DSR
Absolute maximum ratings
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.
Symbol
Vdd
T
STG
Sg
ESD
Vin
Table 7. Absolute maximum ratings
Ratings
Supply voltage
Storage temperature range
Acceleration g for 0.2 ms
Electrostatic discharge protection (HBM)
Input voltage on any control pin
(including CS, SCL/SPC, SDA/SDI/SDO, SDO/SA0)
Maximum value
-0.3 to 4.8
-40 to +125
20,000
2
-0.3 to Vdd_IO +0.3
Unit
V
°C g kV
V
Note: Supply voltage on any pin should never exceed 4.8 V.
This device is sensitive to mechanical shock, improper handling can cause permanent damage to the part.
This device is sensitive to electrostatic discharge (ESD), improper handling can cause permanent damage to the part.
DS11976 - Rev 2 page 14/168
LSM6DSR
Terminology
4.6
4.6.1
4.6.2
Terminology
Sensitivity
Linear acceleration sensitivity can be determined, for example, by applying 1 g acceleration to the device.
Because the sensor can measure DC accelerations, this can be done easily by pointing the selected axis towards the ground, noting the output value, rotating the sensor 180 degrees (pointing towards the sky) and noting the output value again. By doing so, ±1 g acceleration is applied to the sensor. Subtracting the larger output value from the smaller one, and dividing the result by 2, leads to the actual sensitivity of the sensor. This value changes very little over temperature and over time. The sensitivity tolerance describes the range of sensitivities of a large
number of sensors (see Table 2 ).
An angular rate gyroscope is a device that produces a positive-going digital output for counterclockwise rotation around the 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 (see
).
Zero-g and zero-rate level
Linear acceleration zero-g level offset (TyOff) describes the deviation of an actual output signal from the ideal output signal if no acceleration is present. A sensor in a steady state on a horizontal surface will measure 0 g on both the X-axis and Y-axis, whereas the Z-axis will measure 1 g . Ideally, the output is in the middle of the dynamic range of the sensor (content of OUT registers 00h, data expressed as 2’s complement number). A deviation from the ideal value in this case is called zerog offset.
Offset is to some extent a result of stress to MEMS sensor and therefore the offset can slightly change after mounting the sensor onto a printed circuit board or exposing it to extensive mechanical stress. Offset changes little over temperature, see “Linear acceleration zerog level change vs. temperature” in
. The zerog level tolerance (TyOff) describes the standard deviation of the range of zerog levels of a group of sensors.
Zero-rate level describes the actual output signal if there is no angular rate present. The zero-rate level of precise
MEMS sensors is, to some extent, a result of stress to the sensor and therefore the 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 (see
DS11976 - Rev 2 page 15/168
LSM6DSR
Digital interfaces
5
Digital interfaces
5.1
5.1.1
I²C/SPI interface
The registers embedded inside the LSM6DSR may be accessed through both the I²C and SPI serial interfaces.
The latter may be SW configured to operate either in 3-wire or 4-wire interface mode. The device is compatible with SPI modes 0 and 3.
The serial interfaces are mapped onto the same pins. To select/exploit the I²C interface, the CS line must be tied high (i.e connected to Vdd_IO).
Pin name
CS
SCL/SPC
SDA/SDI/SDO
SDO/SA0
Table 8. Serial interface pin description
Pin description
SPI enable
I²C/SPI mode selection (1: SPI idle mode / I²C communication enabled;
0: SPI communication mode / I²C disabled)
I²C Serial Clock (SCL)
SPI Serial Port Clock (SPC)
I²C Serial Data (SDA)
SPI Serial Data Input (SDI)
3-wire Interface Serial Data Output (SDO)
SPI Serial Data Output (SDO)
I²C less significant bit of the device address
I²C serial interface
The LSM6DSR I²C is a bus slave. The I²C is employed to write the data to the registers, whose content can also be read back.
The relevant I²C terminology is provided in the table below.
Table 9. I²C terminology
Term Description
Transmitter The device which sends data to the bus
Receiver
Master
Slave
The device which receives data from the bus
The device which initiates a transfer, generates clock signals and terminates a transfer
The device addressed by the master
There are two signals associated with the I²C 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 the lines must be connected to Vdd_IO through external pull-up resistors. When the bus is free, both the lines are high.
The I²C interface is implemented with fast mode (400 kHz) I²C standards as well as with fast mode plus
(1000 kHz).
In order to disable the I²C block, (I2C_disable) = 1 must be written in CTRL4_C (13h) .
DS11976 - Rev 2 page 16/168
LSM6DSR
I²C/SPI interface
5.1.1.1
Command
Read
Write
Read
Write
I²C 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 LSM6DSR is 110101xb. The SDO/SA0 pin can be used to modify the less significant bit of the device address. If the SDO/SA0 pin is connected to the supply voltage, LSb is ‘1’
(address 1101011b); else if the SDO/SA0 pin is connected to ground, the LSb value is ‘0’ (address 1101010b).
This solution permits to connect and address two different inertial modules to the same I²C bus.
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.
The I²C embedded inside the LSM6DSR behaves like a slave device and the following protocol must be adhered to. After the start condition (ST) a slave address is sent, once a slave acknowledge (SAK) has been returned,
(IF_INC).
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 will transmit to the slave with direction unchanged.
Table 10 explains how the SAD+Read/Write bit pattern is composed, listing all the possible
configurations.
SAD[6:1]
110101
110101
110101
110101
Table 10. SAD+Read/Write patterns
SAD[0] = SA0
0
0
1
1
R/W
1
0
1
0
SAD+R/W
11010101 (D5h)
11010100 (D4h)
11010111 (D7h)
11010110 (D6h)
Master
Slave
Master
Slave
ST
ST
Table 11. Transfer when master is writing one byte to slave
SAD + W SUB DATA
SAK SAK
Table 12. Transfer when master is writing multiple bytes to slave
SAD + W SUB DATA
SAK SAK SAK
DATA
SAK
SAK
SP
SP
Master
Slave
ST
Table 13. Transfer when master is receiving (reading) one byte of data from slave
SAD + W SUB SR SAD + R
SAK SAK SAK DATA
NMAK SP
Table 14. Transfer when master is receiving (reading) multiple bytes of data from slave
Master ST SAD+W
Slave SAK
SUB
SAK
SR SAD+R
SAK DATA
MAK
DATA
MAK
DATA
NMAK SP
DS11976 - Rev 2 page 17/168
LSM6DSR
I²C/SPI interface
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 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 the presented communication format MAK is master acknowledge and NMAK is no master acknowledge.
DS11976 - Rev 2 page 18/168
LSM6DSR
I²C/SPI interface
5.1.2
SPI bus interface
The LSM6DSR SPI is a bus slave. The SPI allows writing and reading the registers of the device.
The serial interface communicates with the application using 4 wires: CS , SPC , SDI and SDO .
Figure 7. Read and write protocol (in mode 3)
CS
SPC
SDI
RW
AD6 AD5 AD4 AD3 AD2 AD1 AD0
DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0
SDO
DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0
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 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, ...) starts at the last falling edge of SPC just before the rising edge of CS.
bit 0 : RW bit. When 0, the data DI(7:0) is written into the device. When 1, the data DO(7:0) from the device is read. In latter case, the chip will drive SDO at the start of bit 8.
bit 1-7 : address AD(6:0). This is the address field of the indexed register.
bit 8-15 : data DI(7:0) (write mode). This is the data that is written into the device (MSb first).
bit 8-15 : data DO(7:0) (read mode). This is the data that is read from the device (MSb first).
(IF_INC) bit is ‘1’, the address used to read/write data is increased at every block.
The function and the behavior of SDI and SDO remain unchanged.
DS11976 - Rev 2 page 19/168
LSM6DSR
I²C/SPI interface
5.1.2.1
SPI read
Figure 8. SPI read protocol (in mode 3)
CS
SPC
SDI
SDO
RW
AD6 AD5 AD4 AD3 AD2 AD1 AD0
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-7 : address AD(6:0). This is the address field of the indexed register.
bit 8-15 : data DO(7:0) (read mode). This is the data that will be read from the device (MSb first).
bit 16 -...: data DO(...-8). Further data in multiple byte reads.
Figure 9. Multiple byte SPI read protocol (2-byte example) (in mode 3)
CS
SPC
SDI
SDO
RW
AD6 AD5 AD4 AD3 AD2 AD1 AD0
DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0 DO15 DO14 DO13 DO12 DO11DO10 DO9 DO8
DS11976 - Rev 2 page 20/168
LSM6DSR
I²C/SPI interface
5.1.2.2
SPI write
Figure 10. SPI write protocol (in mode 3)
CS
SPC
SDI
RW
AD6 AD5 AD4 AD3 AD2 AD1 AD0
DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0
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-7 : address AD(6: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 inside the device (MSb first).
bit 16-...
: data DI(...-8). Further data in multiple byte writes.
Figure 11. Multiple byte SPI write protocol (2-byte example) (in mode 3)
CS
SPC
SDI
RW
AD6 AD5 AD4 AD3 AD2 AD1 AD0
DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0 DI15 DI14 DI13 DI12 DI11 DI10 DI9 DI8
DS11976 - Rev 2 page 21/168
LSM6DSR
I²C/SPI interface
5.1.2.3
SPI read in 3-wire mode
A 3-wire mode is entered by setting the
CTRL3_C (12h) (SIM) bit equal to ‘1’ (SPI serial interface mode
selection).
Figure 12. SPI read protocol in 3-wire mode (in mode 3)
CS
SPC
SDI/O
RW
AD6 AD5 AD4 AD3 AD2 AD1 AD0
DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0
The SPI read command is performed with 16 clock pulses: bit 0 : READ bit. The value is 1.
bit 1-7 : address AD(6: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).
A multiple read command is also available in 3-wire mode.
DS11976 - Rev 2 page 22/168
LSM6DSR
MIPI I3CSM interface
5.2
5.2.1
5.2.2
MIPI I3C SM interface
•
•
•
•
•
•
•
MIPI I3C
SM
slave interface
The LSM6DSR interface includes a MIPI I3C SM SDR only slave interface (compliant with release 1.0 of the specification) with MIPI I3C SM SDR embedded features:
• CCC command
Direct CCC communication (SET and GET)
Broadcast CCC communication
Private communications
Private read and write for single byte
Multiple read and write
In-Band Interrupt request
Error Detection and Recovery Methods (S0-S6)
Note: Refer to
Section 5.3 I²C/I3C coexistence in LSM6DSR for details concerning the choice of the interface
when powering up the device.
MIPI I3C
SM
CCC supported commands
The list of MIPI I3C SM CCC commands supported by the device is detailed in the following table.
Command
ENTDAA
SETDASA
ENEC
DISEC
ENTAS0
ENTAS1
ENTAS2
ENTAS3
SETXTIME
GETXTIME
RSTDAA
SETMWL
SETMRL
SETNEWDA
GETMWL
GETMRL
Table 15. MIPI I3C SM CCC commands
Command code Default Description
0x07
0x87
0x80 / 0x00
0x81/ 0x01
0x82 / 0x02
0x83 / 0x03
0x84 / 0x04
0x85 / 0x05
0x98 / 0x28
DAA procedure
Assign Dynamic Address using Static Address 0x6B/0x6A depending on SDO pin
Slave activity control (direct and broadcast)
Slave activity control (direct and broadcast)
Enter activity state (direct and broadcast)
Enter activity state (direct and broadcast)
Enter activity state (direct and broadcast)
Enter activity state (direct and broadcast)
Timing information exchange
0x99
0x07
0x00
0x05
0x92
Timing information exchange
0x86 / 0x06
0x89 / 0x08
0x8A / 0x09
0x88
Reset the assigned dynamic address (direct and broadcast)
Define maximum write length during private write (direct and broadcast)
Define maximum read length during private read (direct and broadcast)
Change dynamic address
0x8B
0x8C
0x00
0x08
(2 byte)
0x00
0x10
0x09
Get maximum write length during private write
Get maximum read length during private read
DS11976 - Rev 2 page 23/168
Command
GETPID
GETBCR
GETDCR
GETSTATUS
GETMXDS
Command code Default Description
(3 byte)
0x8D
0x02
0x08
0x00
0x6B
0x10
0x0B
Device ID register
0x8E
0x8F
0x90
0x94
0x07
(1 byte)
Bus characteristics register
0x00 MIPI I3C SM device characteristics register
0x00
0x00
(2 byte)
0x00
0x38
(2 byte)
Status register
Return max data speed
LSM6DSR
MIPI I3CSM interface
DS11976 - Rev 2 page 24/168
5.3
LSM6DSR
I²C/I3C coexistence in LSM6DSR
I²C/I3C coexistence in LSM6DSR
In the LSM6DSR, the SDA and SCL lines are common to both I²C and I3C. The I²C bus requires anti-spike filters on the SDA and SCL pins that are not compatible with I3C timing.
The device can be connected to both I²C and I3C or only to the I3C bus depending on the connection of the INT1 pin when the device is powered up:
• INT1 pin floating (internal pull-down): I²C/I3C both active, see
•
INT1 pin connected to Vdd_IO: only I3C active, see Figure 14
Figure 13. I²C and I3C both active (INT1 pin not connected)
INT1 pin not connected
I²C/I3C both active
I²C/I3C
(both active)
I²C bus case I3C bus case
Master sends
I²C r/w
Master assigns DA to the slave
(1)
Master resets
DA
Slave performs requested r/w
I3C private R/W with and without 7Eh
CCC commands
Slave event management
Error detection and recovery
1.
Address assignment (DAA or ENTDA) must be performed with I²C Fast Mode Plus Timing. When the slave is addressed, the I²C slave is disabled and the timing is compatible with I3C specifications.
Figure 14. Only I3C active (INT1 pin connected to Vdd_IO)
INT1 pin connected to Vdd_IO
Only I3C active
I²C/I3C I3C bus case
Dynamic
Address
Assignment
(1)
Master resets
DA
I3C private R/W with and without 7Eh
CCC commands
Slave event management
Error detection and recovery
1.
When the slave is I3C only, the I²C slave is always disabled. The address can be assigned using I3C SDR timing.
DS11976 - Rev 2 page 25/168
5.4
5.5
LSM6DSR
Master I²C interface
Master I²C interface
If the LSM6DSR is configured in Mode 2, a master I²C line is available. The master serial interface is mapped in the following dedicated pins.
Pin name
MSCL
MSDA
MDRDY
Table 16. Master I²C pin details
I²C serial clock master
I²C serial data master
I²C master external synchronization signal
Pin description
Auxiliary SPI interface
If the LSM6DSR is configured in Mode 3 or Mode 4, the auxiliary SPI is available. The auxiliary SPI interface is mapped to the following dedicated pins.
Table 17. Auxiliary SPI pin details
Pin name
OCS_Aux Auxiliary SPI 3/4-wire enable
SDx
SCx
Pin description
Auxiliary SPI 3/4-wire data input (SDI_Aux) and SPI 3-wire data output (SDO_Aux)
Auxiliary SPI 3/4-wire interface serial port clock
SDO_Aux Auxiliary SPI 4-wire data output (SDO_Aux)
When the LSM6DSR is configured in Mode 3 or Mode 4, the auxiliary SPI can be connected to a camera module for OIS/EIS support. In this configuration, the auxiliary SPI can write only to the dedicated registers
,
,
CTRL3_OIS (72h) . All the registers are accessible in Read mode
from both the primary interface and auxiliary SPI.
Mode 3 is enabled when the OIS_EN_SPI2 bit in
CTRL1_OIS (70h) register is set to 1.
Mode 4 is enabled when both the OIS_EN_SPI2 bit and the Mode4_EN bit in
CTRL1_OIS (70h) register are set
to 1.
DS11976 - Rev 2 page 26/168
6
6.1
6.2
6.3
6.4
LSM6DSR
Functionality
Functionality
Operating modes
•
•
In the LSM6DSR, the accelerometer and the gyroscope can be turned on/off independently of each other and are allowed to have different ODRs and power modes.
The LSM6DSR has three operating modes available:
• only accelerometer active and gyroscope in power-down or sleep mode only gyroscope active and accelerometer in power-down both accelerometer and gyroscope sensors active with independent ODR
The accelerometer is activated from power-down by writing ODR_XL[3:0] in
CTRL1_XL (10h) while the gyroscope
is activated from power-down by writing ODR_G[3:0] in CTRL2_G (11h)
. For combo-mode the ODRs are totally independent.
Gyroscope power modes
In the LSM6DSR, the gyroscope can be configured in four different operating modes: power-down, low-power, normal mode and high-performance mode. The operating mode selected depends on the value of the
G_HM_MODE bit in
CTRL7_G (16h) . If G_HM_MODE is set to '0', high-performance mode is valid for all ODRs
(from 12.5 Hz up to 6.66 kHz).
To enable the low-power and normal mode, the G_HM_MODE bit has to be set to '1'. Low-power mode is available for lower ODRs (12.5, 26, 52 Hz) while normal mode is available for ODRs equal to 104 and 208 Hz.
Accelerometer power modes
In the LSM6DSR, the accelerometer can be configured in four different operating modes: power-down, lowpower, normal mode and high-performance mode. The operating mode selected depends on the value of the
XL_HM_MODE bit in
. If XL_HM_MODE is set to '0', high-performance mode is valid for all ODRs
(from 12.5 Hz up to 6.66 kHz).
To enable the low-power and normal mode, the XL_HM_MODE bit has to be set to '1'. Low-power mode is available for lower ODRs (1.6, 12.5, 26, 52 Hz) while normal mode is available for ODRs equal to 104 and
208 Hz.
Block diagram of filters
Figure 15. Block diagram of filters
M
E
M
S
N
S
S
E
O
R
Gyro UI/OIS front-end
XL UI/OIS front-end
Temperature sensor
ADC1
ADC2
Voltage and current references
Trimming circuit and Test interface
Low Pass
UI Gyro
Low Pass
UI XL
Low Pass
OIS Gyro
Low Pass
OIS XL
Clock and phase generator
Regs array,
FIFO
Regs array
I 2 C/ MIPI I3C
/SPI interface
SM
Interrupt mng
Interrupt mng
Auxiliary
SPI
CS
SCL/SPC
SDA/SDI/SDO
SDO/SA0
INT1
INT2
CS
SPC_Aux
SDI_Aux
SDO_Aux
Power management
FTP
DS11976 - Rev 2 page 27/168
LSM6DSR
Block diagram of filters
6.4.1
Block diagrams of the accelerometer filters
In the LSM6DSR, the filtering chain for the accelerometer part is composed of the following:
• Digital filter (LPF1)
• Composite filter
Details of the block diagram appear in the following figure.
Figure 16. Accelerometer UI chain
LPF1 output
(1)
ADC
Digital
LP Filter
LPF1
Composite
Filter
ODR_XL[3:0]
Figure 17. Accelerometer composite filter
Free-fall
LOW_PASS_ON_6D
Advanced functions
Digital
LP Filter
LPF2
LPF2_XL_EN
0
USER
OFFSET
0
6D / 4D
1
USR_OFF_ON_OUT
0
HP_SLOPE_XL_EN
0
1
1 USR_OFF_W
OFS_USR[7:0]
HPCF_XL[2:0]
Digital
HP Filter
Wake-up
1
0
1
0
USR_OFF_ON_WU SLOPE_FDS
Activity /
Inactivity
001
010
…
111
HPCF_XL[2:0]
1
FIFO
SPI /
I 2 C /
MIPI I3C
SM
SLOPE
FILTER
000
HPCF_XL[2:0]
S/D Tap
1.
The cutoff value of the LPF1 output is ODR/2 when the accelerometer is in high-performance mode and
ODR up to 833 Hz. This value is equal to 780 Hz when the accelerometer is in low-power or normal mode.
Note: Advanced functions include pedometer, step detector and step counter, significant motion detection, tilt function and Finite State Machine.
The accelerometer filtering chain when Mode 4 is enabled is illustrated in the following figure.
DS11976 - Rev 2 page 28/168
LSM6DSR
Block diagram of filters
6.4.2
ADC
Figure 18. Accelerometer chain with Mode 4 enabled
Digital
LP Filter
LPF_OIS
FILTER_XL_CONF_OIS[2:0]
ODR XL
@6.6 kHz
SPI_Aux
UI chain
Note: Mode 4 is enabled when Mode4_EN = 1 and OIS_EN_SPI2 = 1 in
.
The configuration of the accelerometer UI chain is not affected by enabling Mode 4.
Accelerometer output values are in registers
OUTX_L_A (28h) and OUTX_H_A (29h) through
OUTZ_L_A (2Ch) and OUTZ_H_A (2Dh)
and ODR at 6.66 kHz.
Block diagrams of the gyroscope filters
In the LSM6DSR, the gyroscope filtering chain depends on the mode configuration:
• Mode 1 (for User Interface (UI) and Electronic Image Stabilization (EIS) functionality through primary interface) and Mode 2
Figure 19. Gyroscope digital chain - Mode 1 (UI/EIS) and Mode 2
SPI /
I
2
C /
MIPI I3C
SM
ADC
HPF
0
1
HP_EN_G
LPF1
FTYPE [2:0]
0
LPF2
1
LPF1_SEL_G
ODR_G[3:0]
FIFO
FSM
In this configuration, the gyroscope ODR is selectable from 12.5 Hz up to 6.66 kHz. A low-pass filter (LPF1) is available if the auxiliary SPI is disabled, for more details about the filter characteristics see
.
The digital LPF2 filter cannot be configured by the user and its cutoff frequency depends on the selected gyroscope ODR, as indicated in the following table.
DS11976 - Rev 2 page 29/168
DS11976 - Rev 2
LSM6DSR
Block diagram of filters
Table 18. Gyroscope LPF2 bandwidth selection
Gyroscope ODR [Hz]
12.5
26
52
104
208
417
833
1667
3333
6667
LPF2 cutoff [Hz]
4.3
8.3
16.7
33
67
133
267
539
1137
3333
Data can be acquired from the output registers and FIFO over the primary I²C/I3C/SPI interface.
• Mode 3 / Mode 4 (for OIS and EIS functionality)
Figure 20. Gyroscope digital chain - Mode 3 / Mode 4 (OIS/EIS)
SPI /
I 2 C /
MIPI I3C
SM
ADC
Digital
HP Filter
HP_EN_G
(3)
0
1
Digital
LP Filter
LPF2
FIFO
ODR_G[3:0]
FSM
HP_EN_OIS
(3)
1
0
Digital (1) (2)
LP Filter
LPF1
FTYPE[1:0]_OIS
SPI_Aux
ODR Gyro
@6.6 kHz
1.
When Mode3/4 is enabled, the LPF1 filter is not available in the gyroscope UI chain.
2.
It is recommended to avoid using the LPF1 filter in Mode1/2 when Mode3/4 is intended to be used.
3.
HP_EN_OIS can be used to select the HPF on the OIS path only if the HPF is not used in the UI chain. If both the HP_EN_G bit and HP_EN_OIS bit are set to 1, the HP filter is applied to the UI chain only.
Note: When S4S is enabled in the UI chain, the HPF is not available in the OIS chain.
The auxiliary interface needs to be enabled in
In Mode 3/4 configuration, there are two paths:
• the chain for User Interface (UI) where the ODR is selectable from 12.5 Hz up to 6.66 kHz page 30/168
6.5
LSM6DSR
OIS
•
OIS the chain for OIS/EIS where the ODR is at 6.66 kHz and the LPF1 is available. The LPF1 configuration
filter characteristics see
Table 158. Gyroscope OIS chain digital LPF1 filter bandwidth selection
. Gyroscope output values are in registers 22h to 27h with the selected full scale (FS[1:0]_G_OIS bit in
).
This paragraph describes OIS functionality and the dedicated accelerometer-gyroscope DSP chain.
There is a dedicated gyroscope and accelerometer DSP for OIS.
Other features can be configured:
• Self-test on OIS side
• DEN on OIS side
The camera module is completely independent from the application processor as shown in Figure 21
.
The Auxiliary SPI can configure OIS functionality through INT_OIS (6Fh)
,
,
Reading from the Auxiliary SPI is enabled only when the OIS_EN_SPI2 bit in the
register is set to '1'. This bit also turns on the gyroscope OIS chain.
The Primary Interface can access the OIS control registers ( INT_OIS (6Fh) ,
,
,
CTRL3_OIS (72h) ) in read mode.
Figure 21. Auxiliary SPI full control (a) and enabling primary interface (b)
Camera Module
Image
Sensor
Actuator
OIS Driver
Camera Module
Image
Sensor
Actuator
OIS Driver
AP AP
I3C/SPI/I 2 C
SPI_Aux
6x
UI/OIS
(a)
I3C/SPI/I 2 C
SPI_Aux
6x
UI/OIS
(b)
DS11976 - Rev 2 page 31/168
6.6
LSM6DSR
FIFO
FIFO
•
•
•
•
•
•
The presence of a FIFO allows consistent power saving for the system since the host processor does not need continuously poll data from the sensor, but It can wake up only when needed and burst the significant data out from the FIFO.
The LSM6DSR embeds 3 kbytes of data (up to 9 kbytes with the compression feature enabled) in FIFO to store the following data:
Gyroscope
Accelerometer
External sensors (up to 4)
Step counter
Timestamp
Temperature
•
•
Writing data in the FIFO can be configured to be triggered by the:
• Accelerometer / gyroscope data-ready signal
Sensor hub data-ready signal
Step detection signal
•
•
•
•
The applications have maximum flexibility in choosing the rate of batching for physical sensors with FIFOdedicated configurations: accelerometer, gyroscope and temperature sensor batch rates can be selected by the user. External sensor writing in FIFO can be triggered by the accelerometer data-ready signal or by an external sensor interrupt. The step counter can be stored in FIFO with associated timestamp each time a step is detected.
It is possible to select decimation for timestamp batching in FIFO with a factor of 1, 8, or 32.
The reconstruction of a FIFO stream is a simple task thanks to the FIFO_DATA_OUT_TAG byte that allows recognizing the meaning of a word in FIFO.
FIFO allows correct reconstruction of the timestamp information for each sensor stored in FIFO. If a change in the ODR or BDR (Batch Data Rate) configuration is performed, the application can correctly reconstruct the timestamp and know exactly when the change was applied without disabling FIFO batching. FIFO stores information of the new configuration and timestamp in which the change was applied in the device.
Finally, FIFO embeds a compression algorithm that the user can enable in order to have up to 9 kbyte data stored in FIFO and take advantage of interface communication length for FIFO flushing and communication power consumption.
The programmable FIFO watermark threshold can be set in FIFO_CTRL1 (07h) and FIFO_CTRL2 (08h)
using the
) can be read to detect FIFO overrun events, FIFO full status, FIFO empty status, FIFO watermark status and the number of unread samples stored in the FIFO. To generate dedicated interrupts on the INT1 and INT2 pins of these status events, the configuration can be set in
The FIFO buffer can be configured according to six different modes:
• Bypass mode
• FIFO mode
Continuous mode
Continuous-to-FIFO mode
Bypass-to-continuous mode
Bypass-to-FIFO mode
Each mode is selected by the FIFO_MODE_[2:0] bits in the
DS11976 - Rev 2 page 32/168
LSM6DSR
FIFO
6.6.1
6.6.2
6.6.3
6.6.4
6.6.5
Bypass mode
In Bypass mode (
FIFO_CTRL4 (0Ah) (FIFO_MODE_[2:0] = 000), the FIFO is not operational and it remains
empty. Bypass mode is also used to reset the FIFO when in FIFO mode.
FIFO mode
In FIFO mode ( FIFO_CTRL4 (0Ah)
(FIFO_MODE_[2:0] = 001) data from the output channels are stored in the
FIFO until it is full.
To reset FIFO content, Bypass mode should be selected by writing
(FIFO_MODE_[2:0]) to '000'. After this reset command, it is possible to restart FIFO mode by writing
(FIFO_MODE_[2:0]) to '001'.
The FIFO buffer memorizes up to 9 kbytes of data (with compression enabled) but the depth of the FIFO can be resized by setting the WTM [8:0] bits in
and
.
Continuous mode
Continuous mode (
FIFO_CTRL4 (0Ah) (FIFO_MODE_[2:0] = 110) provides a continuous FIFO update: as new
data arrives, the older data is discarded.
A FIFO threshold flag
FIFO_STATUS2 (3Bh) (FIFO_WTM_IA) is asserted when the number of unread samples in
FIFO is greater than or equal to
FIFO_CTRL1 (07h) and FIFO_CTRL2 (08h)
(WTM [8:0]).
It is possible to route the FIFO_WTM_IA flag to the INT1 pin by writing in register INT1_CTRL (0Dh)
(INT1_FIFO_TH) = '1' or to the INT2 pin by writing in register INT2_CTRL (0Eh)
(INT2_FIFO_TH) = '1'.
A full-flag interrupt can be enabled,
(INT1_FIFO_FULL) = '1' or INT2_CTRL (0Eh)
(INT2_FIFO_FULL) = '1', in order to indicate FIFO saturation and eventually read its content all at once.
If an overrun occurs, at least one of the oldest samples in FIFO has been overwritten and the FIFO_OVR_IA flag
in FIFO_STATUS2 (3Bh) is asserted.
In order to empty the FIFO before it is full, it is also possible to pull from FIFO the number of unread samples
available in FIFO_STATUS1 (3Ah) and FIFO_STATUS2 (3Bh) (DIFF_FIFO_[9:0]).
Continuous-to-FIFO mode
•
•
•
•
•
In Continuous-to-FIFO mode (
FIFO_CTRL4 (0Ah) (FIFO_MODE_[2:0] = 011), FIFO behavior changes according
to the trigger event detected in one of the following interrupt events:
Single tap
Double tap
Wake-up
Free-fall
D6D
When the selected trigger bit is equal to '1', FIFO operates in FIFO mode.
When the selected trigger bit is equal to '0', FIFO operates in Continuous mode.
Bypass-to-Continuous mode
In Bypass-to-Continuous mode ( FIFO_CTRL4 (0Ah)
(FIFO_MODE_[2:0] = '100'), data measurement storage inside FIFO operates in Continuous mode when selected triggers are equal to '1', otherwise FIFO content is reset (Bypass mode).
•
•
•
•
FIFO behavior changes according to the trigger event detected in one of the following interrupt events:
• Single tap
Double tap
Wake-up
Free-fall
D6D
DS11976 - Rev 2 page 33/168
LSM6DSR
FIFO
6.6.6
6.6.7
•
•
•
•
•
Bypass-to-FIFO mode
In Bypass-to-FIFO mode (
FIFO_CTRL4 (0Ah) (FIFO_MODE_[2:0] = '111'), data measurement storage inside FIFO
operates in FIFO mode when selected triggers are equal to '1', otherwise FIFO content is reset (Bypass mode).
FIFO behavior changes according to the trigger event detected in one of the following interrupt events:
Single tap
Double tap
Wake-up
Free-fall
D6D
FIFO reading procedure
The data stored in FIFO are accessible from dedicated registers and each FIFO word is composed of 7
(FIFO_DATA_OUT registers from (79h) to (7Eh)).
The DIFF_FIFO_[9:0] field in the
FIFO_STATUS1 (3Ah) and FIFO_STATUS2 (3Bh)
registers contains the number of words (1 byte TAG + 6 bytes DATA) collected in FIFO.
In addition, it is possible to configure a counter of the batch events of accelerometer or gyroscope sensors.
The flag COUNTER_BDR_IA in FIFO_STATUS2 (3Bh)
alerts that the counter reaches a selectable threshold
(CNT_BDR_TH_[10:0] field in COUNTER_BDR_REG1 (0Bh) and COUNTER_BDR_REG2 (0Ch) ). This allows
triggering the reading of FIFO with the desired latency of one single sensor. The sensor is selectable using the TRIG_COUNTER_BDR bit in
COUNTER_BDR_REG1 (0Bh) . As for the other FIFO status events,
the flag COUNTER_BDR_IA can be routed on the INT1 or INT2 pins by asserting the corresponding bits
(INT1_CNT_BDR of
) and INT2_CNT_BDR of
In order to maximize the amount of accelerometer and gyroscope data in FIFO, the user can enable the compression algorithm by setting to 1 both the FIFO_COMPR_EN bit in
functions registers bank) and the FIFO_COMPR_RT_EN bit in FIFO_CTRL2 (08h) . When compression
is enabled, it is also possible to force writing non-compressed data at a selectable rate using the
UNCOPTR_RATE_[1:0] field in FIFO_CTRL2 (08h) .
Meta information about accelerometer and gyroscope sensor configuration changes can be managed by enabling
the ODR_CHG_EN bit in FIFO_CTRL2 (08h)
.
DS11976 - Rev 2 page 34/168
7
7.1
LSM6DSR
Application hints
Application hints
LSM6DSR electrical connections in Mode 1
Figure 22. LSM6DSR electrical connections in Mode 1
GND or Vdd_IO
SDO/SA0
SDx
SCx
INT1
1
4
14 12
5
TOP
VIEW
7
11
8
NC
(1)
NC
(1)
INT2
Vdd
C1
Vdd
GND
100 nF
C2
GND
100 nF
Vdd_IO
Mode 1
HOST
I 2
MIPI I3C
C /
SM
/
SPI (3/4-w)
LSM6DSR
I 2 C configuration
Vdd_IO
R pu
SCL
SDA
Pull-up to be added
R pu
=10kOhm
R pu
1.
Leave pin electrically unconnected and soldered to PCB.
The device core is supplied through the Vdd line. Power supply decoupling capacitors (C1, C2 = 100 nF ceramic) should be placed as near as possible to the supply pin of the device (common design practice).
The functionality of the device and the measured acceleration/angular rate data is selectable and accessible through the SPI/I²C/MIPI I3C SM interface.
The functions, the threshold and the timing of the two interrupt pins for each sensor can be completely programmed by the user through the SPI/I²C/MIPI I3C SM interface.
DS11976 - Rev 2 page 35/168
7.2
LSM6DSR
LSM6DSR electrical connections in Mode 2
LSM6DSR electrical connections in Mode 2
Figure 23. LSM6DSR electrical connections in Mode 2
SDO/SA0
MSDA
MSCL
INT1
1
4
14 12
5
TOP
VIEW
7
11
8
NC
(1)
NC
(1)
MDRDY/INT2
Vdd
C1
Vdd
GND
100 nF
C2
GND
100 nF
Vdd_IO
Mode 2
HOST
I 2 C /
MIPI I3C
SM
/
SPI (3/4-w)
LSM6DSR
Master I 2 C
LSM6DSM sensors
I 2 C configuration
Vdd_IO
R pu
SCL
SDA
Pull-up to be added
R pu
=10kOhm
R pu
1.
Leave pin electrically unconnected and soldered to PCB.
The device core is supplied through the Vdd line. Power supply decoupling capacitors (C1, C2 = 100 nF ceramic) should be placed as near as possible to the supply pin of the device (common design practice).
The functionality of the device and the measured acceleration/angular rate data is selectable and accessible through the SPI/I²C/MIPI I3C SM primary interface.
The functions, the threshold and the timing of the two interrupt pins for each sensor can be completely programmed by the user through the SPI/I²C/MIPI I3C SM primary interface.
DS11976 - Rev 2 page 36/168
7.3
LSM6DSR
LSM6DSR electrical connections in Mode 3 and Mode 4
LSM6DSR electrical connections in Mode 3 and Mode 4
Figure 24. LSM6DSR electrical connections in Mode 3 and Mode 4 (auxiliary 3/4-wire SPI)
Mode 3 Mode 4
SDO
SDI_Aux
SPC_Aux
INT1
C2
100 nF
GND
1
4
14 12
5
TOP
VIEW
7
11
8
NC
(1)
OCS_Aux
INT2
Vdd
Vdd
C1
100 nF
GND
HOST
I 2
MIPI I3C
C /
SM
/
SPI (3/4-w)
LSM6DSR
Aux SPI (3/4-wire) For gyro data only
Camera module
HOST
I 2 C /
MIPI I3C
SM
/
SPI (3/4-w)
LSM6DSR
Aux SPI (3/4-wire) For XL and gyro data
Camera module
I 2 C configuration
Vdd_IO
Vdd_IO
R pu
SCL
SDA
Pull-up to be added
R pu
=10kOhm
R pu
1.
Leave pin electrically unconnected and soldered to PCB.
master can be left on while the OIS system is off.
The device core is supplied through the Vdd line. Power supply decoupling capacitors (C1, C2 = 100 nF ceramic) should be placed as near as possible to the supply pin of the device (common design practice).
The functionality of the device is selectable and accessible through the SPI/I²C/MIPI I3C SM primary interface.
Measured acceleration/angular rate data is selectable and accessible through the SPI/I²C/MIPI I3C SM primary interface and auxiliary SPI.
The functions, the threshold and the timing of the two interrupt pins for each sensor can be completely programmed by the user through the SPI/I²C/MIPI I3C
SM
interface.
DS11976 - Rev 2 page 37/168
7
8
5
6 pin#
1
2
3
4
9
10
11
12
Name
SDO
SA0
SDx
SCx
INT1
Vdd_IO
GND
GND
Vdd
INT2
OCS_Aux
SDO_Aux
CS
Table 19. Internal pin status
Pin status Mode 1 Mode 1 function
SPI 4-wire interface serial data output (SDO)
I²C least significant bit of the device address (SA0)
MIPI I3C SM least significant bit of the static address
(SA0)
Mode 2 function Mode 3 / Mode 4 function
SPI 4-wire interface serial data output (SDO)
I²C least significant bit of the device address (SA0)
MIPI I3C SM least significant bit of the static address
(SA0)
SPI 4-wire interface serial data output (SDO)
I²C least significant bit of the device address (SA0)
MIPI I3C SM least significant bit of the static address
(SA0)
Default: input without pull-up.
Pull-up is enabled if bit
SDO_PU_EN = 1 in reg 02h.
Connect to Vdd_IO or GND
Connect to Vdd_IO or GND
I²C serial data master
(MSDA)
I²C serial clock master
(MSCL)
Auxiliary SPI 3/4-wire interface serial data input
(SDI) and SPI 3-wire serial data output (SDO)
Auxiliary SPI 3/4-wire interface serial port clock
(SPC_Aux)
Default: input without pull-up.
Pull-up is enabled if bit
SHUB_PU_EN = 1 in reg 14h in sensor hub registers (see Note to enable pull-up).
Default: input without pull-up.
Pull-up is enabled if bit
SHUB_PU_EN = 1 in reg 14h in sensor hub registers (see Note to enable pull-up).
Programmable interrupt 1 /
If device is used as MIPI
I3C SM pure slave, this pin must be set to ‘1’.
Power supply for I/O pins
0 V supply
0 V supply
Power supply
Programmable interrupt 2
(INT2) / Data enabled
(DEN)
Programmable interrupt 1 /
If device is used as MIPI
I3C SM pure slave, this pin must be set to ‘1’.
Power supply for I/O pins
0 V supply
0 V supply
Power supply
Programmable interrupt 2
(INT2) / Data enabled
(DEN) / I²C master external synchronization signal
(MDRDY)
Programmable interrupt 1 /
If device is used as MIPI
I3C SM pure slave, this pin must be set to ‘1’.
Power supply for I/O pins
0 V supply
0 V supply
Power supply
Programmable interrupt 2
(INT2) / Data enabled
(DEN)
Default: input with pull-down (2)
Default: output forced to ground
Leave unconnected Leave unconnected
Auxiliary SPI 3/4-wire interface enabled
Default: input with pull-up.
Pull-up is disabled if bit
OIS_PU_DIS = 1 in reg 02h.
Connect to Vdd_IO or leave unconnected
I²C/SPI mode selection
(1:SPI idle mode / I²C communication enabled;
0: SPI communication mode / I²C disabled)
Connect to Vdd_IO or leave unconnected
I²C/SPI mode selection
(1:SPI idle mode / I²C communication enabled;
0: SPI communication mode / I²C disabled)
Auxiliary SPI 3wire interface: leave unconnected / Auxiliary SPI
4-wire interface: serial data output (SDO_Aux)
I²C/SPI mode selection
(1:SPI idle mode / I²C communication enabled;
0: SPI communication mode / I²C disabled)
Default: input with pull-up.
Pull-up is disabled if bit
OIS_PU_DIS = 1 in reg 02h.
Default: input with pull-up.
Pull-up is disabled if bit
I2C_disable = 1 in reg 13h and
I3C_disable = 1 in reg 18h.
Pin status Mode 2
Default: input without pull-up.
Pull-up is enabled if bit
SDO_PU_EN = 1 in reg 02h.
Default: output forced to ground
Pin status Mode 3/4
Default: Input without pull-up.
Pull-up is enabled if bit
SDO_PU_EN = 1 in reg 02h.
Default: input without pull-up.
Pull-up is enabled if bit
SHUB_PU_EN = 1 in reg 14h in sensor hub registers (see Note to enable pull-up).
Default: input without pull-up.
Pull-up is enabled if bit
SHUB_PU_EN = 1 in reg 14h in sensor hub registers (see Note to enable pull-up).
Default: input with pull-down
Default: input without pull-up.
Pull-up is enabled if bit
SHUB_PU_EN = 1 in reg 14h in sensor hub registers (see Note to enable pull-up).
Default: input without pull-up.
Pull-up is enabled if bit
SHUB_PU_EN = 1 in reg 14h in sensor hub registers (see Note to enable pull-up)
Default: input with pull-down
Default: output forced to ground
Default: input with pull-up.
Pull-up is disabled if bit
OIS_PU_DIS = 1 in reg 02h.
Default: input with pull-up.
Pull-up is disabled if bit
OIS_PU_DIS = 1 in reg 02h.
Default: input with pull-up.
Pull-up is disabled if bit
I2C_disable = 1 in reg 13h and
I3C_disable = 1 in reg 18h.
Default: input without pull-up
(regardless of the value of bit
OIS_PU_DIS in reg 02h.)
Default: input without pull-up.
Pull-up is enabled if bit SIM_OIS = 1
(Aux_SPI 3-wire) in reg 70h and bit
OIS_PU_DIS = 0 in reg 02h.
Default: input with pull-up.
Pull-up is disabled if bit
I2C_disable = 1 in reg 13h and
I3C_disable = 1 in reg 18h.
pin#
13
14
Name
SCL
SDA
Mode 1 function Mode 2 function Mode 3 / Mode 4 function
I²C/MIPI I3C SM serial clock
(SCL) / SPI serial port clock
(SPC)
I²C/MIPI I3C SM serial clock
(SCL) / SPI serial port clock
(SPC)
I²C/MIPI I3C SM serial data (SDA) / SPI serial data input (SDI) / 3-wire interface serial data output
(SDO)
I²C/MIPI I3C SM serial data (SDA) / SPI serial data input (SDI) / 3-wire interface serial data output
(SDO)
I²C/MIPI I3C SM serial clock
(SCL) / SPI serial port clock
(SPC)
I²C/MIPI I3C SM serial data (SDA) / SPI serial data input (SDI) / 3-wire interface serial data output
(SDO)
Pin status Mode 1
Default: input without pull-up
Default: input without pull-up
Pin status Mode 2
Default: input without pull-up
Default: input without pull-up
1. Mode 3 is enabled when the OIS_EN_SPI2 bit in the
CTRL1_OIS (70h) register is set to 1. Mode 4 is enabled when both the OIS_EN_SPI2 bit and
the Mode4_EN bit in the
CTRL1_OIS (70h) register are set to 1.
2. INT1 must be set to '0' or left unconnected during power-on if the I²C/SPI interfaces are used.
Internal pull-up value is from 30 kΩ to 50 kΩ, depending on Vdd_IO.
Note: The procedure to enable the pull-up on pins 2 and 3 is as follows:
1. From the primary I²C/I3C/SPI interface : write 40h in register at address 01h (enable access to the sensor hub registers)
2. From the primary I²C/I3C/SPI interface : write 08h in register at address 14h (enable the pull-up on pins 2 and 3)
3. From the primary I²C/I3C/SPI interface : write 00h in register at address 01h (disable access to the sensor hub registers)
Pin status Mode 3/4
Default: input without pull-up
Default:input without pull-up
8
LSM6DSR
Register mapping
Register mapping
Name
FUNC_CFG_ACCESS
PIN_CTRL
RESERVED
S4S_TPH_L
S4S_TPH_H
S4S_RR
FIFO_CTRL1
FIFO_CTRL2
FIFO_CTRL3
FIFO_CTRL4
COUNTER_BDR_REG1
COUNTER_BDR_REG2
INT1_CTRL
INT2_CTRL
WHO_AM_I
CTRL1_XL
CTRL2_G
CTRL3_C
CTRL4_C
CTRL5_C
CTRL6_C
CTRL7_G
CTRL8_XL
CTRL9_XL
CTRL10_C
ALL_INT_SRC
WAKE_UP_SRC
TAP_SRC
D6D_SRC
STATUS_REG
/STATUS_SPIAux
RESERVED
OUT_TEMP_L
OUT_TEMP_H
The table given below provides a list of the 8/16-bit registers embedded in the device and the corresponding addresses.
Table 20. Registers address map
Type
1F
20
21
0F
10
11
12
13
0A
0B
0C
0D
0E
05
06
07
08
09
01
02
03
04
1C
1D
1E
19
1A
1B
14
15
16
17
18
Register address
Hex Binary
00000001
00000010
00001111
00010000
00010001
00010010
00010011
00010100
00010101
00010110
00010111
00011000
00000100
00000101
00000110
00000111
00001000
00001001
00001010
00001011
00001100
00001101
00001110
00011001
00011010
00011011
00011100
00011101
00011110
00100000
00100001
R
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
-
RW
R
R
R
RW
R
R
RW
RW
RW
RW
RW
-
R
R
Default
00000000
00111111
01101011
00000000
00000000
00000100
00000000
00000000
00000000
00000000
00000000
11100000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000 output output output output output output output
Comment
R (SPI2)
R (SPI2)
R (SPI2)
R (SPI2)
R (SPI2)
R (SPI2)
R (SPI2)
R (SPI2)
R (SPI2)
R (SPI2)
R (SPI2)
DS11976 - Rev 2 page 40/168
DS11976 - Rev 2
Name
FIFO_STATUS1
FIFO_STATUS2
RESERVED
TIMESTAMP0
TIMESTAMP1
TIMESTAMP2
TIMESTAMP3
RESERVED
TAP_CFG0
TAP_CFG1
TAP_CFG2
TAP_THS_6D
INT_DUR2
WAKE_UP_THS
WAKE_UP_DUR
FREE_FALL
MD1_CFG
MD2_CFG
S4S_ST_CMD_CODE
S4S_DT_REG
I3C_BUS_AVB
OUTX_L_G
OUTX_H_G
OUTY_L_G
OUTY_H_G
OUTZ_L_G
OUTZ_H_G
OUTX_L_A
OUTX_H_A
OUTY_L_A
OUTY_H_A
OUTZ_L_A
OUTZ_H_A
RESERVED
EMB_FUNC_STATUS_MAINPAGE
FSM_STATUS_A_MAINPAGE
FSM_STATUS_B_MAINPAGE
RESERVED
STATUS_MASTER_MAINPAGE
LSM6DSR
Register mapping output output output output output output
Default output output output output output output output output output output output output output output output output
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
Type
RW
RW
RW
RW
RW
RW
RW
RW
RW
-
RW
RW
RW
RW
-
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
-
R
-
R
R
R
R
5A
5B
5C
5D
5E
5F
60
61
62
3A
3B
3C-3F
40
41
42
43
44-55
56
57
58
59
26
27
28
29
2A
22
23
24
25
2B
2C
2D
2E-34
35
36
37
38
39
Register address
Hex Binary
00100010
00100011
00100100
00100101
00100110
00100111
00101000
00101001
00101010
00101011
00101100
00101101
00110101
00110110
00110111
00111000
00111001
00111010
00111011
01000000
01000001
01000010
01000011
01010110
01010111
01011000
01011001
01011010
01011011
01011100
01011101
01011110
01011111
01100000
01100001
01100010
Comment
R (SPI2)
R (SPI2)
R (SPI2)
R (SPI2) page 41/168
DS11976 - Rev 2
LSM6DSR
Register mapping
Name Type
INTERNAL_FREQ_FINE
RESERVED
INT_OIS
CTRL1_OIS
CTRL2_OIS
CTRL3_OIS
X_OFS_USR
Y_OFS_USR
Z_OFS_USR
RESERVED
FIFO_DATA_OUT_TAG
FIFO_DATA_OUT_X_L
FIFO_DATA_OUT_X_H
FIFO_DATA_OUT_Y_L
FIFO_DATA_OUT_Y_H
FIFO_DATA_OUT_Z_L
FIFO_DATA_OUT_Z_H
R
-
R
R
R
R
RW
RW
RW
-
R
R
R
R
R
R
R
1. This register status is read using the primary interface for user interface data.
2. This register status is read using the auxiliary SPI for OIS data.
Register address
Hex Binary
01100011
71
72
73
74
75
63
64-6E
6F
70
76-77
78
79
7A
7B
7C
7D
7E
01101111
01110000
01110001
01110010
01110011
01110100
01110101
01111000
01111001
01111010
01111011
01111100
01111101
01111110
Default output output output output output output output output
00000000
00000000
00000000
00000000
00000000
00000000
00000000
Comment
RW (SPI2)
RW (SPI2)
RW (SPI2)
RW (SPI2) page 42/168
9
9.1
9.2
LSM6DSR
Register description
Register description
The device contains a set of registers which are used to control its behavior and to retrieve linear acceleration, angular rate and temperature data. The register addresses, made up of 7 bits, are used to identify them and to write the data through the serial interface.
FUNC_CFG_ACCESS (01h)
Enable embedded functions register (r/w)
Table 21. FUNC_CFG_ACCESS register
FUNC_CFG_
ACCESS
SHUB_REG_
ACCESS
0
0
1. This bit must be set to '0' for the correct operation of the device.
0
0
0
0
Table 22. FUNC_CFG_ACCESS register description
FUNC_CFG_ACCESS
SHUB_REG_ACCESS
Enable access to the embedded functions configuration registers.
Default value: 0
Enable access to the sensor hub (I²C master) registers.
Default value: 0
1. Details concerning the embedded functions configuration registers are available in
Section 10 Embedded functions register mapping
and
Section 11 Embedded functions register description .
and
Section 15 Sensor hub register description .
PIN_CTRL (02h)
SDO, OCS_AUX, SDO_AUX pins pull-up enable/disable register (r/w)
Table 23. PIN_CTRL register
OIS_
PU_DIS
SDO_
PU_EN
1
1
1. This bit must be set to '1' for the correct operation of the device.
1
1
1
1
OIS_PU_DIS
SDO_PU_EN
Table 24. PIN_CTRL register description
Disable pull-up on both OCS_Aux and SDO_Aux pins. Default value: 0
(0: OCS_Aux and SDO_Aux pins with pull-up;
1: OCS_Aux and SDO_Aux pins pull-up disconnected)
Enable pull-up on SDO pin. Default value: 0
(0: SDO pin pull-up disconnected (default); 1: SDO pin with pull-up)
DS11976 - Rev 2 page 43/168
9.3
9.4
9.5
LSM6DSR
S4S_TPH_L (04h)
S4S_TPH_L (04h)
Sensor synchronization time frame register (r/w)
TPH_H_
SEL
TPH_L_6 TPH_L_5
Table 25. S4S_TPH_L register
TPH_L_4 TPH_L_3 TPH_L_2 TPH_L_1 TPH_L_0
TPH_H_SEL
TPH_L_[6:0]
Table 26. S4S_TPH_L register description
Chooses if the TPH formula must be taken into account (see equation below).
S4S timeframe expressed in number of samples as described in the equation below.
If TPH_H_SEL=0 and TPH_L_[6:0] = d0, S4S is disabled.
When TPH_H_SEL = 0: TPH [#Samples] = 2 x TPHL
When TPH_H_SEL = 1: TPH [#Samples] = 2 x (TPH_L + 256 x TPH_H)
S4S_TPH_H (05h)
Sensor synchronization time frame register (r/w)
TPH_H_7 TPH_H_6 TPH_H_5
Table 27. S4S_TPH_H register
TPH_H_4 TPH_H_3 TPH_H_2 TPH_H_1 TPH_H_0
Table 28. S4S_TPH_H register description
TPH_H_[7:0]
the value of this register taken into account as described in the equation in
S4S_RR (06h)
Sensor synchronization resolution ratio register (r/w)
Table 29. S4S_RR register
0
0
0
0
1. This bit must be set to '0' for the correct operation of the device.
0
RR_[1:0]
Table 30. S4S_RR register description
(00: S4S, DT resolution 2 11 ;
01: S4S, DT resolution 2 12 ;
10: S4S, DT resolution 2 13 ;
11: S4S, DT resolution 2 14 )
0
RR_1 RR_0
DS11976 - Rev 2 page 44/168
9.6
9.7
LSM6DSR
FIFO_CTRL1 (07h)
FIFO_CTRL1 (07h)
FIFO control register 1 (r/w)
WTM7 WTM6 WTM5
Table 31. FIFO_CTRL1 register
WTM4 WTM3 WTM2 WTM1 WTM0
Table 32. FIFO_CTRL1 register description
WTM[7:0]
FIFO watermark threshold, in conjunction with WTM8 in
.
1 LSB = 1 sensor (6 bytes) + TAG (1 byte) written in FIFO
Watermark flag rises when the number of bytes written in the FIFO is greater than or equal to the threshold level.
FIFO_CTRL2 (08h)
FIFO control register 2 (r/w)
Table 33. FIFO_CTRL2 register
STOP_ON
_WTM
FIFO_
COMPR_RT_
EN
0
ODRCHG
_EN
1. This bit must be set to '0' for the correct operation of the device.
0
UNCOPTR
_RATE_1
UNCOPTR
_RATE_0
WTM8
Table 34. FIFO_CTRL2 register
STOP_ON_WTM
FIFO_COMPR_RT_EN
Enables/Disables compression algorithm runtime
ODRCHG_EN
Sensing chain FIFO stop values memorization at threshold level
(0: FIFO depth is not limited (default);
1: FIFO depth is limited to the threshold level, defined in
and FIFO_CTRL2
(08h)
UNCOPTR_RATE_[1:0]
Enables ODR CHANGE virtual sensor to be batched in FIFO
This field configures the compression algorithm to write non-compressed data at each rate.
(0: Non-compressed data writing is not forced;
1: Non-compressed data every 8 batch data rate;
2: Non-compressed data every 16 batch data rate;
3: Non-compressed data every 32 batch data rate)
WTM8
FIFO watermark threshold, in conjunction with WTM[7:0] in FIFO_CTRL1 (07h)
.
1 LSB = 1 sensor (6 bytes) + TAG (1 byte) written in FIFO
Watermark flag rises when the number of bytes written in FIFO is greater than or equal to the threshold level.
1. This bit is effective if the FIFO_COMPR_EN bit of EMB_FUNC_EN_B (05h) is set to 1.
DS11976 - Rev 2 page 45/168
9.8
LSM6DSR
FIFO_CTRL3 (09h)
FIFO_CTRL3 (09h)
FIFO control register 3 (r/w)
BDR_GY_3 BDR_GY_2
Table 35. FIFO_CTRL3 register
BDR_GY_1 BDR_GY_0 BDR_XL_3 BDR_XL_2 BDR_XL_1 BDR_XL_0
BDR_GY_[3:0]
BDR_XL_[3:0]
Table 36. FIFO_CTRL3 register description
Selects Batch Data Rate (write frequency in FIFO) for gyroscope data.
(0000: Gyro not batched in FIFO (default);
0001: 12.5 Hz;
0010: 26 Hz;
0011: 52 Hz;
0100: 104 Hz;
0101: 208 Hz;
0110: 417 Hz;
0111: 833 Hz;
1000: 1667 Hz;
1001: 3333 Hz;
1010: 6667 Hz;
1011: 6.5 Hz;
1100-1111: not allowed)
Selects Batch Data Rate (write frequency in FIFO) for accelerometer data.
(0000: Accelerometer not batched in FIFO (default);
0001: 12.5 Hz;
0010: 26 Hz;
0011: 52 Hz;
0100: 104 Hz;
0101: 208 Hz;
0110: 417 Hz;
0111: 833 Hz;
1000: 1667 Hz;
1001: 3333 Hz;
1010: 6667 Hz;
1011: 1.6 Hz;
1100-1111: not allowed)
DS11976 - Rev 2 page 46/168
9.9
LSM6DSR
FIFO_CTRL4 (0Ah)
FIFO_CTRL4 (0Ah)
FIFO control register 4 (r/w)
Table 37. FIFO_CTRL4 register
DEC_TS_
BATCH_1
DEC_TS_
BATCH_0
ODR_T_
BATCH_1
ODR_T_
BATCH_0
1. This bit must be set to '0' for the correct operation of the device.
0
FIFO_
MODE2
FIFO_
MODE1
FIFO_
MODE0
Table 38. FIFO_CTRL4 register description
Selects decimation for timestamp batching in FIFO. Write rate will be the maximum rate between XL and GYRO BDR divided by decimation decoder.
(00: Timestamp not batched in FIFO (default);
DEC_TS_BATCH_[1:0]
01: Decimation 1: max(BDR_XL[Hz],BDR_GY[Hz]) [Hz];
10: Decimation 8: max(BDR_XL[Hz],BDR_GY[Hz])/8 [Hz];
11: Decimation 32: max(BDR_XL[Hz],BDR_GY[Hz])/32 [Hz])
ODR_T_BATCH_[1:0]
FIFO_MODE[2:0]
Selects batch data rate (write frequency in FIFO) for temperature data
(00: Temperature not batched in FIFO (default);
01: 1.6 Hz;
10: 12.5 Hz;
11: 52 Hz)
FIFO mode selection
(000: Bypass mode: FIFO disabled;
001: FIFO mode: stops collecting data when FIFO is full;
010: Reserved;
011: Continuous-to-FIFO mode: Continuous mode until trigger is deasserted, then FIFO mode;
100: Bypass-to-Continuous mode: Bypass mode until trigger is deasserted, then Continuous mode;
101: Reserved;
110: Continuous mode: if the FIFO is full, the new sample overwrites the older one;
111: Bypass-to-FIFO mode: Bypass mode until trigger is deasserted, then FIFO mode.)
DS11976 - Rev 2 page 47/168
LSM6DSR
COUNTER_BDR_REG1 (0Bh)
9.10
9.11
COUNTER_BDR_REG1 (0Bh)
Counter batch data rate register 1 (r/w)
Table 39. COUNTER_BDR_REG1 register dataready_ pulsed
RST_
COUNTER_BDR
TRIG_
COUNTER_BDR
1. This bit must be set to '0' for the correct operation of the device.
CNT_BDR_
TH_10
CNT_BDR_
TH_9
CNT_BDR_
TH_8
Table 40. COUNTER_BDR_REG1 register description dataready_pulsed
RST_COUNTER_BDR
Enables pulsed data-ready mode
(0: Data-ready latched mode (returns to 0 only after an interface reading) (default);
1: Data-ready pulsed mode (the data ready pulses are 75 µs long)
Resets the internal counter of batch events for a single sensor.
This bit is automatically reset to zero if it was set to ‘1’.
TRIG_COUNTER_BDR
Selects the trigger for the internal counter of batch events between XL and gyro.
(0: XL batch event;
1: GYRO batch event)
CNT_BDR_TH_[10:8]
In conjunction with CNT_BDR_TH_[7:0] in COUNTER_BDR_REG2 (0Ch)
, sets the threshold for the internal counter of batch events. When this counter reaches the threshold, the counter is reset and the COUNTER_BDR_IA flag in
FIFO_STATUS2 (3Bh) is set to ‘1’.
COUNTER_BDR_REG2 (0Ch)
Counter batch data rate register 2 (r/w)
CNT_BDR_
TH_7
CNT_BDR_
TH_6
Table 41. COUNTER_BDR_REG2 register
CNT_BDR_
TH_5
CNT_BDR_
TH_4
CNT_BDR_
TH_3
CNT_BDR_
TH_2
CNT_BDR_
TH_1
CNT_BDR_
TH_0
Table 42. COUNTER_BDR_REG2 register description
CNT_BDR_TH_[7:0]
In conjunction with CNT_BDR_TH_[10:8] in COUNTER_BDR_REG1 (0Bh) , sets the threshold for the
internal counter of batch events. When this counter reaches the threshold, the counter is reset and the
COUNTER_BDR_IA flag in FIFO_STATUS2 (3Bh)
is set to ‘1’.
DS11976 - Rev 2 page 48/168
LSM6DSR
INT1_CTRL (0Dh)
9.12
INT1_CTRL (0Dh)
INT1 pin control register (r/w)
Each bit in this register enables a signal to be carried over INT1 when the MIPI I3C SM dynamic address is not assigned (I²C or SPI is used). Some bits can be also used to trigger an IBI (In-Band Interrupt) when the MIPI
I3C SM interface is used.. The output of the pad will be the OR combination of the signals selected here and in register
DEN_DRDY
_flag
INT1_
CNT_BDR
INT1_
FIFO_FULL
Table 43. INT1_CTRL register
INT1_
FIFO_OVR
INT1_
FIFO_TH
INT1_
BOOT
INT1_
DRDY_G
INT1_
DRDY_XL
DEN_DRDY_flag
INT1_CNT_BDR
INT1_FIFO_FULL
INT1_FIFO_OVR
INT1_FIFO_TH
INT1_BOOT
INT1_DRDY_G
INT1_DRDY_XL
Table 44. INT1_CTRL register description
Sends DEN_DRDY (DEN stamped on Sensor Data flag) to INT1 pin.
Enables COUNTER_BDR_IA interrupt on INT1.
Enables FIFO full flag interrupt on INT1 pin.
It can be also used to trigger an IBI when the MIPI I3C SM interface is used.
Enables FIFO overrun interrupt on INT1 pin.
It can be also used to trigger an IBI when the MIPI I3C SM interface is used.
Enables FIFO threshold interrupt on INT1 pin.
It can be also used to trigger an IBI when the MIPI I3C SM interface is used.
Enables boot status on INT1 pin.
Enables gyroscope data-ready interrupt on INT1 pin.
It can be also used to trigger an IBI when the MIPI I3C SM interface is used.
Enables accelerometer data-ready interrupt on INT1 pin.
It can be also used to trigger an IBI when the MIPI I3C SM interface is used.
DS11976 - Rev 2 page 49/168
LSM6DSR
INT2_CTRL (0Eh)
9.13
9.14
INT2_CTRL (0Eh)
INT2 pin control register (r/w).
Each bit in this register enables a signal to be carried over INT2 when the MIPI I3C SM dynamic address in not assigned (I²C or SPI is used). Some bits can be also used to trigger an IBI when the MIPI I3C SM interface is
.
Table 45. INT2_CTRL register
0
INT2_
CNT_BDR
INT2_
FIFO_FULL
INT2_
FIFO_OVR
1. This bit must be set to '0' for the correct operation of the device.
INT2_
FIFO_TH
INT2_
DRDY_TEMP
INT2_
DRDY_G
INT2_
DRDY_XL
Table 46. INT2_CTRL register description
INT2_CNT_BDR Enables COUNTER_BDR_IA interrupt on INT2 pin.
INT2_FIFO_FULL Enables FIFO full flag interrupt on INT2 pin.
INT2_FIFO_OVR Enables FIFO overrun interrupt on INT2 pin.
INT_FIFO_TH Enables FIFO threshold interrupt on INT2 pin.
Enables temperature sensor data-ready interrupt on INT2 pin.
INT2_DRDY_TEMP
It can be also used to trigger an IBI when the MIPI I3C SM interface is used and INT2_ON_INT1 = ‘1’ in
.
INT2_DRDY_G
INT2_DRDY_XL
Enables gyroscope data-ready interrupt on INT2 pin.
Enables accelerometer data-ready interrupt on INT2 pin.
WHO_AM_I (0Fh)
WHO_AM_I register (r). This is a read-only register. Its value is fixed at 6Bh.
0 1 1
Table 47. WhoAmI register
0 1 0 1 1
DS11976 - Rev 2 page 50/168
LSM6DSR
CTRL1_XL (10h)
9.15
CTRL1_XL (10h)
Accelerometer control register 1 (r/w)
Table 48. CTRL1_XL register
ODR_XL3 ODR_XL2 ODR_XL1 ODR_XL0
1. This bit must be set to '0' for the correct operation of the device.
FS1_XL FS0_XL LPF2_XL_EN
ODR_XL[3:0]
FS[1:0]_XL
LPF2_XL_EN
Table 49. CTRL1_XL register description
Accelerometer ODR selection (see Table 50
).
Accelerometer full-scale selection. Default value: 00
(00: ±2 g ; 01: ±16 g ; 10: ±4 g ; 11: ±8 g )
Accelerometer high-resolution selection
(0: output from first stage digital filtering selected (default);
1: output from LPF2 second filtering stage selected)
0
0
0
0
0
0
0
1
0
0
1
1
1
1
1
0
1
1
0
0
1
1
0
0 x
0
1
0
1
1
1
0
0
1
0
1
1 x
0
0
1
1
1
0
1
0
0
0
0
0
1
0
0
Table 50. Accelerometer ODR selection
ODR_XL3 ODR_XL2 ODR_XL1 ODR_XL0
ODR selection [Hz] when
XL_HM_MODE = 1 in
Power-down
1.6 Hz (low power only)
12.5 Hz (low power)
26 Hz (low power)
52 Hz (low power)
104 Hz (normal mode)
208 Hz (normal mode)
416 Hz (high performance)
833 Hz (high performance)
1.66 kHz (high performance)
3.33 kHz (high performance)
6.66 kHz (high performance)
Not allowed
ODR selection [Hz] when
Power-down
N.A.
12.5 Hz (high performance)
26 Hz (high performance)
52 Hz (high performance)
104 Hz (high performance)
208 Hz (high performance)
416 Hz (high performance)
833 Hz (high performance)
1.66 kHz (high performance)
3.33 kHz (high performance)
6.66 kHz (high performance)
Not allowed
DS11976 - Rev 2 page 51/168
LSM6DSR
CTRL2_G (11h)
9.16
CTRL2_G (11h)
Gyroscope control register 2 (r/w)
ODR_G3 ODR_G2 ODR_G1
Table 51. CTRL2_G register
ODR_G0 FS1_G FS0_G FS_125 FS_4000
Table 52. CTRL2_G register description
ODR_G[3:0]
FS[1:0]_G
FS_125
Gyroscope output data rate selection. Default value: 0000
(Refer to
)
Gyroscope chain full-scale selection
(00: ±250 dps;
01: ±500 dps;
10: ±1000 dps;
11: ±2000 dps)
Selects gyro chain full-scale ±125 dps
(0: FS selected through bits FS[1:0]_G;
1: FS set to ±125 dps)
Selects gyro chain full-scale ±4000 dps
(0: FS selected through bits FS[1:0]_G or FS_125;
1: FS set to ±4000 dps)
1. This bit has to be set to 0 when the OIS chain is ON (OIS_EN_SPI2 bit =1 in
)
Table 53. Gyroscope ODR configuration setting
ODR_G3 ODR_G2 ODR_G1 ODR_G0
0
0
0
0
1
1
1
1
0
0
0
0
0
0
0
0
1
1
1
1
0
0
0
0
0
0
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
ODR selection [Hz] when
G_HM_MODE = 1 in
Power-down
12.5 Hz (low power)
26 Hz (low power)
52 Hz (low power)
104 Hz (normal mode)
208 Hz (normal mode)
416 Hz (high performance)
833 Hz (high performance)
1.66 kHz (high performance)
3.33 kHz (high performance)
6.66 kHz (high performance)
Not available
ODR selection [Hz] when
G_HM_MODE = 0 in CTRL7_G (16h)
Power-down
12.5 Hz (high performance)
26 Hz (high performance)
52 Hz (high performance)
104 Hz (high performance)
208 Hz (high performance)
416 Hz (high performance)
833 Hz (high performance)
1.66 kHz (high performance)
3.33 kHz (high performance)
6.66 kHz (high performance)
Not available
DS11976 - Rev 2 page 52/168
LSM6DSR
CTRL3_C (12h)
9.17
CTRL3_C (12h)
Control register 3 (r/w)
Table 54. CTRL3_C register
BOOT BDU H_LACTIVE PP_OD
1. This bit must be set to '0' for the correct operation of the device.
SIM IF_INC 0
SW_RESET
Table 55. CTRL3_C register description
BOOT
BDU
Reboots memory content. Default value: 0
(0: normal mode; 1: reboot memory content)
Note: the accelerometer must be ON. This bit is automatically cleared.
Block Data Update. Default value: 0
(0: continuous update;
1: output registers are not updated until MSB and LSB have been read)
H_LACTIVE
Interrupt activation level. Default value: 0
(0: interrupt output pins active high; 1: interrupt output pins active low
PP_OD
SIM
Push-pull/open-drain selection on INT1 and INT2 pins. This bit must be set to '0' when H_LACTIVE is set to '1'.
Default value: 0
(0: push-pull mode; 1: open-drain mode)
SPI Serial Interface Mode selection. Default value: 0
(0: 4-wire interface; 1: 3-wire interface)
IF_INC
Register address automatically incremented during a multiple byte access with a serial interface (I²C or SPI).
Default value: 1
(0: disabled; 1: enabled)
SW_RESET
Software reset. Default value: 0
(0: normal mode; 1: reset device)
This bit is automatically cleared.
DS11976 - Rev 2 page 53/168
LSM6DSR
CTRL4_C (13h)
9.18
CTRL4_C (13h)
Control register 4 (r/w)
Table 56. CTRL4_C register
0
SLEEP_G
INT2_on
_INT1
0
DRDY_MASK
1. This bit must be set to '0' for the correct operation of the device.
I2C_disable LPF1_SEL_G 0
Table 57. CTRL4_C register description
SLEEP_G
INT2_on_INT1
DRDY_MASK
I2C_disable
LPF1_SEL_G
Enables gyroscope Sleep mode. Default value:0
(0: disabled; 1: enabled)
All interrupt signals available on INT1 pin enable. Default value: 0
(0: interrupt signals divided between INT1 and INT2 pins;
1: all interrupt signals in logic or on INT1 pin)
Enables data available
(0: disabled;
1: mask DRDY on pin (both XL & Gyro) until filter settling ends (XL and Gyro independently masked).
Disables I²C interface. Default value: 0
(0: SPI, I²C and MIPI I3C SM interfaces enabled (default); 1: I²C interface disabled)
Enables gyroscope digital LPF1; the bandwidth can be selected through FTYPE[2:0] in
(0: disabled; 1: enabled)
DS11976 - Rev 2 page 54/168
LSM6DSR
CTRL5_C (14h)
9.19
CTRL5_C (14h)
Control register 5 (r/w)
Table 58. CTRL5_C register
0
ROUNDING1 ROUNDING0 0
1. This bit must be set to '0' for the correct operation of the device.
ST1_G ST0_G
ROUNDING[1:0]
ST[1:0]_G
ST[1:0]_XL
ST1_XL
Table 59. CTRL5_C register description
Circular burst-mode (rounding) read of the output registers. Default value: 00
(00: no rounding;
01: accelerometer only;
10: gyroscope only;
11: gyroscope + accelerometer)
Angular rate sensor self-test enable. Default value: 00
(00: Self-test disabled; Other: refer to Table 60
)
Linear acceleration sensor self-test enable. Default value: 00
(00: Self-test disabled; Other: refer to Table 61
)
ST0_XL
ST1_G
0
0
1
1
Table 60. Angular rate sensor self-test mode selection
ST0_G
0
1
0
1
Normal mode
Positive sign self-test
Not allowed
Negative sign self-test
Self-test mode
ST1_XL
0
0
1
1
Table 61. Linear acceleration sensor self-test mode selection
ST0_XL
0
1
0
1
Normal mode
Positive sign self-test
Negative sign self-test
Not allowed
Self-test mode
DS11976 - Rev 2 page 55/168
LSM6DSR
CTRL6_C (15h)
9.20
CTRL6_C (15h)
Control register 6 (r/w)
TRIG_EN LVL1_EN LVL2_EN
Table 62. CTRL6_C register
XL_HM_
MODE
USR_
OFF_W
FTYPE_2 FTYPE_1 FTYPE_0
Table 63. CTRL6_C register description
TRIG_EN
LVL1_EN
LVL2_EN
XL_HM_MODE
USR_OFF_W
FTYPE[2:0]
Enables DEN data edge-sensitive trigger mode. Refer to
Enables DEN data level-sensitive trigger mode. Refer to
Enables DEN level-sensitive latched mode. Refer to
Disables high-performance operating mode for accelerometer. Default value: 0
(0: high-performance operating mode enabled;
1: high-performance operating mode disabled)
Weight of XL user offset bits of registers X_OFS_USR (73h)
,
Y_OFS_USR (74h) , Z_OFS_USR (75h)
(0 = 2 -10 g /LSB;
1 = 2 -6 g /LSB)
Gyroscope low-pass filter (LPF1) bandwidth selection.
shows the selectable bandwidth values.
TRIG_EN, LVL1_EN, LVL2_EN
100
010
011
110
Table 64. Trigger mode selection
Trigger mode
Edge-sensitive trigger mode is selected
Level-sensitive trigger mode is selected
Level-sensitive latched mode is selected
Level-sensitive FIFO enable mode is selected
FTYPE
[2:0]
000
001
010
011
100
101
110
111
12.5 Hz
4.3
4.3
4.3
4.3
4.3
4.3
4.3
4.3
26 Hz
8.3
8.3
8.3
8.3
8.3
8.3
8.3
8.3
Table 65. Gyroscope LPF1 bandwidth selection
52 Hz
16.7
16.7
16.7
16.7
16.7
16.9
13.4
9.8
104 Hz
33
33
33
33
34
31
19
11.6
208 Hz
67
67
67
67
62
43
23
12.2
416 Hz
133
128
112
134
86
48
24.6
12.4
833 Hz
222
186
140
260
96
49
25
12.6
1.67 kHz
274
212
150
390
90
50
25
12.6
3.33 kHz
292
220
153
451
NA
NA
NA
NA
6.67 kHz
297
223
154
470
DS11976 - Rev 2 page 56/168
LSM6DSR
CTRL7_G (16h)
9.21
CTRL7_G (16h)
Control register 7 (r/w)
Table 66. CTRL7_G register
G_HM_
MODE
HP_EN_G HPM1_G HPM0_G
1. This bit must be set to '0' for the correct operation of the device.
0
OIS_ON_EN
USR_OFF_
ON_OUT
OIS_ON
G_HM_MODE
HP_EN_G
HPM_G[1:0]
Disables high-performance operating mode for gyroscope. Default: 0
(0: high-performance operating mode enabled;
1: high-performance operating mode disabled)
Enables gyroscope digital high-pass filter. The filter is enabled only if the gyro is in HP mode. Default value: 0
(0: HPF disabled; 1: HPF enabled)
Gyroscope digital HP filter cutoff selection. Default: 00
(00 = 16 mHz;
01 = 65 mHz;
10 = 260 mHz;
11 = 1.04 Hz)
Selects how to enable and disable the OIS chain, after first configuration and enabling through SPI2.
(0: OIS chain is enabled/disabled with SPI2 interface;
1: OIS chain is enabled/disabled with primary interface)
USR_OFF_ON_OUT
Enables accelerometer user offset correction block; it's valid for the low-pass path - see
Figure 17. Accelerometer composite filter . Default value: 0
(0: accelerometer user offset correction block bypassed;
1: accelerometer user offset correction block enabled)
OIS_ON
Enables/disables the OIS chain from primary interface when the OIS_ON_EN bit is '1'.
(0: OIS disabled; 1: OIS enabled)
1. First, enabling OIS and OIS configurations must be done through SPI2, with OIS_ON_EN and OIS_ON set to '0'.
DS11976 - Rev 2 page 57/168
LSM6DSR
CTRL8_XL (17h)
9.22
CTRL8_XL (17h)
Control register 8 (r/w)
Table 67. CTRL8_XL register
HPCF_XL_2 HPCF_XL_1 HPCF_XL_0
HP_REF_
MODE_XL
FASTSETTL_
MODE_XL
1. This bit must be set to '0' for the correct operation of the device.
HP_SLOPE_
XL_EN
0
LOW_PASS_
ON_6D
HPCF_XL_[2:0]
HP_REF_MODE_XL
Accelerometer LPF2 and HP filter configuration and cutoff setting. Refer to Table 68 .
Enables accelerometer high-pass filter reference mode (valid for high-pass path -
HP_SLOPE_XL_EN bit must be ‘1’). Default value: 0
)
FASTSETTL_MODE_XL
Enables accelerometer LPF2 and HPF fast-settling mode. The filter sets the second samples after writing this bit. Active only during device exit from power- down mode. Default value: 0
(0: disabled, 1: enabled)
HP_SLOPE_XL_EN
Accelerometer slope filter / high-pass filter selection. Refer to Figure 25 .
LOW_PASS_ON_6D
LPF2 on 6D function selection. Refer to Figure 25 . Default value: 0
(0: ODR/2 low-pass filtered data sent to 6D interrupt function;
1: LPF2 output data sent to 6D interrupt function)
1. When enabled, the first output data have to be discarded.
Filter type
Low pass
High pass
Table 68. Accelerometer bandwidth configurations
HP_SLOPE_XL_EN
0
1
LPF2_XL_EN
0
1
-
110
111
000
001
010
011
100
101
110
111
HPCF_XL_[2:0]
-
000
001
010
011
100
101
1. Typical value for ODR up to 833 Hz.
ODR/2
ODR/4
ODR/10
ODR/20
ODR/45
ODR/100
ODR/200
ODR/400
ODR/800
SLOPE (ODR/4)
ODR/10
ODR/20
ODR/45
ODR/100
ODR/200
ODR/400
ODR/800
DS11976 - Rev 2 page 58/168
DS11976 - Rev 2
LSM6DSR
CTRL8_XL (17h)
LPF1 output
(1)
Figure 25. Accelerometer block diagram
Free-fall
LOW_PASS_ON_6D
Advanced functions
Digital
LP Filter
LPF2
LPF2_XL_EN
0
USER
OFFSET
0
1
6D / 4D
USR_OFF_ON_OUT
0
HP_SLOPE_XL_EN
0
1
1 USR_OFF_W
OFS_USR[7:0]
HPCF_XL[2:0]
Digital
HP Filter
1
0
1
0
USR_OFF_ON_WU SLOPE_FDS
Wake-up
Activity /
Inactivity
001
010
…
111
HPCF_XL[2:0]
1
FIFO
SPI /
I 2 C /
MIPI I3C
SM
SLOPE
FILTER
000
HPCF_XL[2:0]
S/D Tap
1.
The cutoff value of the LPF1 output is ODR/2 when the accelerometer is in high-performance mode and
ODR up to 833 Hz. This value is equal to 780 Hz when the accelerometer is in low-power or normal mode.
page 59/168
LSM6DSR
CTRL9_XL (18h)
9.23
9.24
CTRL9_XL (18h)
Control register 9 (r/w)
Table 69. CTRL9_XL register
DEN_X DEN_Y DEN_Z DEN_XL_G DEN_XL_EN
1. This bit must be set to '0' for the correct operation of the device.
DEN_LH I3C_disable 0
Table 70. CTRL9_XL register description
DEN_X
DEN_Y
DEN_Z
DEN_XL_G
DEN_XL_EN
DEN_LH
I3C_disable
DEN value stored in LSB of X-axis. Default value: 1
(0: DEN not stored in X-axis LSB; 1: DEN stored in X-axis LSB)
DEN value stored in LSB of Y-axis. Default value: 1
(0: DEN not stored in Y-axis LSB; 1: DEN stored in Y-axis LSB)
DEN value stored in LSB of Z-axis. Default value: 1
(0: DEN not stored in Z-axis LSB; 1: DEN stored in Z-axis LSB)
DEN stamping sensor selection. Default value: 0
(0: DEN pin info stamped in the gyroscope axis selected by bits [7:5];
1: DEN pin info stamped in the accelerometer axis selected by bits [7:5])
Extends DEN functionality to accelerometer sensor. Default value: 0
(0: disabled; 1: enabled)
DEN active level configuration. Default value: 0
(0: active low; 1: active high)
Disables MIPI I3C SM
(0: SPI, I²C, MIPI I3C SM interfaces enabled (default);
1: MIPI I3C SM interface disabled)
1. It is recommended to set this bit to '1' during the initial device configuration phase, when the I3C interface is not used.
CTRL10_C (19h)
Control register 10 (r/w)
Table 71. CTRL10_C register
0
0
TIMESTAMP
_EN
0
1. This bit must be set to '0' for the correct operation of the device.
0
0
0
Table 72. CTRL10_C register description
TIMESTAMP_EN
Enables timestamp counter. Default value: 0
(0: disabled; 1: enabled)
The counter is readable in TIMESTAMP0 (40h), TIMESTAMP1 (41h), TIMESTAMP2 (42h), and
0
DS11976 - Rev 2 page 60/168
LSM6DSR
ALL_INT_SRC (1A)
9.25
ALL_INT_SRC (1A)
Source register for all interrupts (r)
TIMESTAMP
_ENDCOUNT
0
Table 73. ALL_INT_SRC register
SLEEP_
CHANGE_IA
D6D_IA
DOUBLE_
TAP
SINGLE_
TAP
WU_IA FF_IA
Table 74. ALL_INT_SRC register description
TIMESTAMP_ENDCOUNT Alerts timestamp overflow within 6.4 ms
SLEEP_CHANGE_IA
Detects change event in activity/inactivity status. Default value: 0
(0: change status not detected; 1: change status detected)
D6D_IA
DOUBLE_TAP
SINGLE_TAP
Interrupt active for change in position of portrait, landscape, face-up, face-down. Default value: 0
(0: change in position not detected; 1: change in position detected)
Double-tap event status. Default value: 0
(0:event not detected, 1: event detected)
Single-tap event status. Default value:0
(0: event not detected, 1: event detected)
WU_IA
FF_IA
Wake-up event status. Default value: 0
(0: event not detected, 1: event detected)
Free-fall event status. Default value: 0
(0: event not detected, 1: event detected)
DS11976 - Rev 2 page 61/168
LSM6DSR
WAKE_UP_SRC (1Bh)
9.26
WAKE_UP_SRC (1Bh)
Wake-up interrupt source register (r)
0
SLEEP_
CHANGE_IA
FF_IA
Table 75. WAKE_UP_SRC register
SLEEP_
STATE
WU_IA X_WU Y_WU
SLEEP_CHANGE_IA
FF_IA
SLEEP_STATE
WU_IA
X_WU
Y_WU
Z_WU
Table 76. WAKE_UP_SRC register description
Detects change event in activity/inactivity status. Default value: 0
(0: change status not detected; 1: change status detected)
Free-fall event detection status. Default: 0
(0: free-fall event not detected; 1: free-fall event detected)
Sleep event status. Default value: 0
(0: sleep event not detected; 1: sleep event detected)
Wakeup event detection status. Default value: 0
(0: wakeup event not detected; 1: wakeup event detected.)
Wakeup event detection status on X-axis. Default value: 0
(0: wakeup event on X-axis not detected; 1: wakeup event on X-axis detected)
Wakeup event detection status on Y-axis. Default value: 0
(0: wakeup event on Y-axis not detected; 1: wakeup event on Y-axis detected)
Wakeup event detection status on Z-axis. Default value: 0
(0: wakeup event on Z-axis not detected; 1: wakeup event on Z-axis detected)
Z_WU
DS11976 - Rev 2 page 62/168
LSM6DSR
TAP_SRC (1Ch)
9.27
TAP_IA
SINGLE_TAP
DOUBLE_TAP
TAP_SIGN
X_TAP
Y_TAP
Z_TAP
TAP_SRC (1Ch)
Tap source register (r)
0 TAP_IA
SINGLE_
TAP
Table 77. TAP_SRC register
DOUBLE_
_TAP
TAP_SIGN X_TAP
Table 78. TAP_SRC register description
Tap event detection status. Default: 0
(0: tap event not detected; 1: tap event detected)
Single-tap event status. Default value: 0
(0: single tap event not detected; 1: single tap event detected)
Double-tap event detection status. Default value: 0
(0: double-tap event not detected; 1: double-tap event detected.)
Sign of acceleration detected by tap event. Default: 0
(0: positive sign of acceleration detected by tap event;
1: negative sign of acceleration detected by tap event)
Tap event detection status on X-axis. Default value: 0
(0: tap event on X-axis not detected; 1: tap event on X-axis detected)
Tap event detection status on Y-axis. Default value: 0
(0: tap event on Y-axis not detected; 1: tap event on Y-axis detected)
Tap event detection status on Z-axis. Default value: 0
(0: tap event on Z-axis not detected; 1: tap event on Z-axis detected)
Y_TAP Z_TAP
DS11976 - Rev 2 page 63/168
LSM6DSR
DRD_SRC (1Dh)
9.28
DRD_SRC (1Dh)
Portrait, landscape, face-up and face-down source register (r)
DEN_DRDY D6D_IA ZH
Table 79. D6D_SRC register
ZL YH YL XH
Table 80. D6D_SRC register description
DEN_DRDY
DEN data-ready signal. It is set high when data output is related to the data coming from a DEN active
D6D_IA
ZH
ZL
Interrupt active for change position portrait, landscape, face-up, face-down. Default value: 0
(0: change position not detected; 1: change position detected)
Z-axis high event (over threshold). Default value: 0
(0: event not detected; 1: event (over threshold) detected)
Z-axis low event (under threshold). Default value: 0
(0: event not detected; 1: event (under threshold) detected)
YH
YL
XH
XL
Y-axis high event (over threshold). Default value: 0
(0: event not detected; 1: event (over-threshold) detected)
Y-axis low event (under threshold). Default value: 0
(0: event not detected; 1: event (under threshold) detected)
X-axis high event (over threshold). Default value: 0
(0: event not detected; 1: event (over threshold) detected)
X-axis low event (under threshold). Default value: 0
(0: event not detected; 1: event (under threshold) detected)
1. The DEN data-ready signal can be latched or pulsed depending on the value of the dataready_pulsed bit of the
register.
XL
DS11976 - Rev 2 page 64/168
LSM6DSR
STATUS_REG (1Eh) / STATUS_SPIAux (1Eh)
9.29
STATUS_REG (1Eh) / STATUS_SPIAux (1Eh)
The STATUS_REG register is read by the primary interface SPI/I²C & MIPI I3C SM (r)
0 0 0
Table 81. STATUS_REG register
0 0 TDA GDA XLDA
TDA
GDA
XLDA
Table 82. STATUS_REG register description
Temperature new data available. Default: 0
(0: no set of data is available at temperature sensor output;
1: a new set of data is available at temperature sensor output)
Gyroscope new data available. Default value: 0
(0: no set of data available at gyroscope output;
1: a new set of data is available at gyroscope output)
Accelerometer new data available. Default value: 0
(0: no set of data available at accelerometer output;
1: a new set of data is available at accelerometer output)
The STATUS_SPIAux register is read by the auxiliary SPI.
0 0 0
Table 83. STATUS_SPIAux register
0 0
GYRO
SETTLING
GDA
GYRO_SETTLING
GDA
XLDA
Table 84. STATUS_SPIAux register description
High when the gyroscope output is in the settling phase
Gyroscope data available (reset when one of the high parts of the output data is read)
Accelerometer data available (reset when one of the high parts of the output data is read)
XLDA
DS11976 - Rev 2 page 65/168
LSM6DSR
OUT_TEMP_L (20h), OUT_TEMP_H (21h)
9.30
9.31
OUT_TEMP_L (20h), OUT_TEMP_H (21h)
Temperature data output register (r). L and H registers together express a 16-bit word in two’s complement.
Temp7 Temp6 Temp5
Table 85. OUT_TEMP_L register
Temp4 Temp3 Temp2 Temp1 Temp0
Temp15 Temp14 Temp13
Table 86. OUT_TEMP_H register
Temp12 Temp11 Temp10 Temp9 Temp8
Temp[15:0]
Table 87. OUT_TEMP register description
Temperature sensor output data
The value is expressed as two’s complement sign extended on the MSB.
OUTX_L_G (22h) and OUTX_H_G (23h)
Angular rate sensor pitch axis (X) angular rate output register (r). The value is expressed as a 16-bit word in two’s complement.
If this register is read by the primary interface, data are according to the full scale and ODR settings (
) of gyro user interface.
If this register is read by the auxiliary interface, data are according to the full scale and ODR (6.66 kHz) settings of the OIS gyro.
D7 D6 D5
Table 88. OUTX_L_G register
D4 D3 D2 D1 D0
D15 D14 D13
Table 89. OUTX_H_G register
D12 D11 D10
D[15:0]
Table 90. OUTX_H_G register description
Pitch axis (X) angular rate value
D[15:0] expressed in two’s complement and its value depends on the interface used:
SPI1/I²C/MIPI I3C SM : Gyro UI chain pitch axis output
SPI2: Gyro OIS chain pitch axis output
D9 D8
DS11976 - Rev 2 page 66/168
LSM6DSR
OUTY_L_G (24h) and OUTY_H_G (25h)
9.32
9.33
OUTY_L_G (24h) and OUTY_H_G (25h)
Angular rate sensor roll axis (Y) angular rate output register (r). The value is expressed as a 16-bit word in two’s complement.
If this register is read by the primary interface, data are according to the full scale and ODR settings (
) of the gyro user interface.
.
If this register is read by the auxiliary interface, data are according to the full scale and ODR (6.66 kHz) settings of the OIS gyro.
D7 D6 D5
Table 91. OUTY_L_G register
D4 D3 D2 D1 D0
D15 D14 D13
Table 92. OUTY_H_G register
D12 D11 D10 D9 D8
D[15:0]
Table 93. OUTY_H_G register description
Roll axis (Y) angular rate value
D[15:0] expressed in two’s complement and its value depends on the interface used:
SPI1/I²C/MIPI I3C SM : Gyro UI chain roll axis output
SPI2: Gyro OIS chain roll axis output
OUTZ_L_G (26h) and OUTZ_H_G (27h)
Angular rate sensor yaw axis (Z) angular rate output register (r). The value is expressed as a 16-bit word in two’s complement.
If this register is read by the primary interface, data are according to the full scale and ODR settings (
) of the gyro user interface.
If this register is read by the auxiliary interface, data are according to the full scale and ODR (6.66 kHz) settings of the OIS gyro.
D7 D6 D5
Table 94. OUTZ_L_G register
D4 D3 D2 D1 D0
D15 D14 D13
Table 95. OUTZ_H_G register
D12 D11 D10
D[15:0]
Table 96. OUTZ_H_G register description
Yaw axis (Z) angular rate value
D[15:0] expressed in two’s complement and its value depends on the interface used:
SPI1/I²C/MIPI I3C SM : Gyro UI chain yaw axis output
SPI2: Gyro OIS chain yaw axis output
D9 D8
DS11976 - Rev 2 page 67/168
LSM6DSR
OUTX_L_A (28h) and OUTX_H_A (29h)
9.34
9.35
OUTX_L_A (28h) and OUTX_H_A (29h)
Linear acceleration sensor X-axis output register (r). The value is expressed as a 16-bit word in two’s complement.
) of the accelerometer user interface.
If this register is read by the auxiliary interface, data are according to the full-scale and ODR (6.66 kHz) settings of the OIS (
D7 D6 D5
Table 97. OUTX_L_A register
D4 D3 D2 D1 D0
D15 D14 D13
Table 98. OUTX_H_A register
D12 D11 D10 D9 D8
D[15:0]
Table 99. OUTX_H_A register description
X-axis linear acceleration value.
D[15:0] expressed in two’s complement and its value depends on the interface used:
SPI1/I²C/MIPI I3C SM : Accelerometer UI chain X-axis output
SPI2: Accelerometer OIS chain X-axis output
OUTY_L_A (2Ah) and OUTY_H_A (2Bh)
Linear acceleration sensor Y-axis output register (r). The value is expressed as a 16-bit word in two’s complement.
) of the accelerometer user interface.
If this register is read by the auxiliary interface, data are according to the full-scale and ODR (6.66 kHz) settings of the OIS (
D7 D6 D5
Table 100. OUTY_L_A register
D4 D3 D2 D1 D0
D15 D14 D13
Table 101. OUTY_H_A register
D12 D11 D10
D[15:0]
Table 102. OUTY_H_A register description
Y-axis linear acceleration value
D[15:0] expressed in two’s complement and its value depends on the interface used:
SPI1/I²C/MIPI I3C SM : Accelerometer UI chain Y-axis output
SPI2: Accelerometer OIS chain Y-axis output
D9 D8
DS11976 - Rev 2 page 68/168
LSM6DSR
OUTZ_L_A (2Ch) and OUTZ_H_A (2Dh)
9.36
9.37
OUTZ_L_A (2Ch) and OUTZ_H_A (2Dh)
Linear acceleration sensor Z-axis output register (r). The value is expressed as a 16-bit word in two’s complement.
) of the accelerometer user interface.
If this register is read by the auxiliary interface, data are according to the full-scale and ODR (6.66 kHz) settings of the OIS (
D7 D6 D5
Table 103. OUTZ_L_A register
D4 D3 D2 D1 D0
D15 D14 D13
Table 104. OUTZ_H_A register
D12 D11 D10 D9 D8
D[15:0]
Table 105. OUTZ_H_A register description
Z-axis linear acceleration value
D[15:0] expressed in two’s complement and its value depends on the interface used:
SPI1/I²C/MIPI I3C SM : Accelerometer UI chain Z-axis output
SPI2: Accelerometer OIS chain Z-axis output
EMB_FUNC_STATUS_MAINPAGE (35h)
Embedded function status register (r)
IS_FSM_LC 0
Table 106. EMB_FUNC_STATUS_MAINPAGE register
IS_SIGMOT IS_TILT IS_STEP_DET 0 0
IS_FSM_LC
IS_SIGMOT
IS_TILT
IS_STEP_DET
Table 107. EMB_FUNC_STATUS_MAINPAGE register description
Interrupt status bit for FSM long counter timeout interrupt event.
(1: interrupt detected; 0: no interrupt)
Interrupt status bit for significant motion detection
(1: interrupt detected; 0: no interrupt)
Interrupt status bit for tilt detection
(1: interrupt detected; 0: no interrupt)
Interrupt status bit for step detection
(1: interrupt detected; 0: no interrupt)
0
DS11976 - Rev 2 page 69/168
LSM6DSR
FSM_STATUS_A_MAINPAGE (36h)
9.38
9.39
FSM_STATUS_A_MAINPAGE (36h)
Finite State Machine status register (r)
IS_FSM8 IS_FSM7
Table 108. FSM_STATUS_A_MAINPAGE register
IS_FSM6 IS_FSM5 IS_FSM4 IS_FSM3 IS_FSM2 IS_FSM1
IS_FSM8
IS_FSM7
IS_FSM6
IS_FSM5
IS_FSM4
IS_FSM3
IS_FSM2
IS_FSM1
Table 109. FSM_STATUS_A_MAINPAGE register description
Interrupt status bit for FSM8 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM7 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM6 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM5 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM4 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM3 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM2 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM1 interrupt event. (1: interrupt detected; 0: no interrupt)
FSM_STATUS_B_MAINPAGE (37h)
Finite State Machine status register (r)
IS_FSM16 IS_FSM15
Table 110. FSM_STATUS_B_MAINPAGE register
IS_FSM14 IS_FSM13 IS_FSM12 IS_FSM11 IS_FSM10 IS_FSM9
IS_FSM16
IS_FSM15
IS_FSM14
IS_FSM13
IS_FSM12
IS_FSM11
IS_FSM10
IS_FSM9
Table 111. FSM_STATUS_B_MAINPAGE register description
Interrupt status bit for FSM16 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM15 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM14 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM13 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM12 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM11 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM10 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM9 interrupt event. (1: interrupt detected; 0: no interrupt)
DS11976 - Rev 2 page 70/168
LSM6DSR
STATUS_MASTER_MAINPAGE (39h)
9.40
STATUS_MASTER_MAINPAGE (39h)
Sensor hub source register (r)
WR_ONCE_
DONE
SLAVE3_
NACK
Table 112. STATUS_MASTER_MAINPAGE register
SLAVE2_
NACK
SLAVE1_
NACK
SLAVE0_
NACK
0 0
SENS_HUB_
ENDOP
Table 113. STATUS_MASTER_MAINPAGE register description
WR_ONCE_DONE
SLAVE3_NACK
SLAVE2_NACK
SLAVE1_NACK
When the bit WRITE_ONCE in
is configured as 1, this bit is set to 1 when the write operation on slave 0 has been performed and completed. Default value: 0
This bit is set to 1 if Not acknowledge occurs on slave 3 communication. Default value: 0
This bit is set to 1 if Not acknowledge occurs on slave 2 communication. Default value: 0
This bit is set to 1 if Not acknowledge occurs on slave 1 communication. Default value: 0
SLAVE0_NACK This bit is set to 1 if Not acknowledge occurs on slave 0 communication. Default value: 0
SENS_HUB_ENDOP
Sensor hub communication status. Default value: 0
(0: sensor hub communication not concluded;
1: sensor hub communication concluded)
DS11976 - Rev 2 page 71/168
LSM6DSR
FIFO_STATUS1 (3Ah)
9.41
9.42
FIFO_STATUS1 (3Ah)
FIFO status register 1 (r)
Table 114. FIFO_STATUS1 register
DIFF_FIFO_7 DIFF_FIFO_6 DIFF_FIFO_5 DIFF_FIFO_4 DIFF_FIFO_3 DIFF_FIFO_2 DIFF_FIFO_1 DIFF_FIFO_0
DIFF_FIFO_[7:0]
Table 115. FIFO_STATUS1 register description
Number of unread sensor data (TAG + 6 bytes) stored in FIFO
In conjunction with DIFF_FIFO[9:8] in FIFO_STATUS2 (3Bh)
.
FIFO_STATUS2 (3Bh)
FIFO status register 2 (r)
FIFO_
WTM_IA
FIFO_
OVR_IA
Table 116. FIFO_STATUS2 register
FIFO_
FULL_IA
COUNTER_
BDR_IA
FIFO_OVR_
LATCHED
0 DIFF_FIFO_9 DIFF_FIFO_8
Table 117. FIFO_STATUS2 register description
FIFO_WTM_IA
FIFO_OVR_IA
FIFO_FULL_IA
FIFO watermark status. Default value: 0
(0: FIFO filling is lower than WTM;
1: FIFO filling is equal to or greater than WTM)
Watermark is set through bits WTM[8:0] in
and
.
FIFO overrun status. Default value: 0
(0: FIFO is not completely filled; 1: FIFO is completely filled)
Smart FIFO full status. Default value: 0
(0: FIFO is not full; 1: FIFO will be full at the next ODR)
COUNTER_BDR_IA
Counter BDR reaches the CNT_BDR_TH_[10:0] threshold set in
COUNTER_BDR_REG2 (0Ch) . Default value: 0
This bit is reset when these registers are read.
FIFO_OVR_LATCHED
Latched FIFO overrun status. Default value: 0
This bit is reset when this register is read.
DIFF_FIFO_[9:8]
Number of unread sensor data (TAG + 6 bytes) stored in FIFO. Default value: 00
In conjunction with DIFF_FIFO[7:0] in
DS11976 - Rev 2 page 72/168
LSM6DSR
TIMESTAMP0 (40h), TIMESTAMP1 (41h), TIMESTAMP2 (42h), and TIMESTAMP3 (43h)
9.43
TIMESTAMP0 (40h), TIMESTAMP1 (41h), TIMESTAMP2 (42h), and TIMESTAMP3
(43h)
Timestamp first data output register (r). The value is expressed as a 32-bit word and the bit resolution is 25 µs.
D31 D30 D29
Table 118. TIMESTAMP3 register
D28 D27 D26 D25 D24
D23
D15
D7
D22
D14
D6
D21
Table 119. TIMESTAMP2 register
D20 D19 D18
D13
Table 120. TIMESTAMP1 register
D12 D11 D10
D5
Table 121. TIMESTAMP0 register
D4 D3 D2
D17
D9
D1
D16
D8
D0
D[31:0] Timestamp output registers: 1LSB = 25 µs
The formula below can be used to calculate a better estimation of the actual timestamp resolution:
TS_Res = 1 / (40000 + (0.0015 * INTERNAL_FREQ_FINE * 40000))
where INTERNAL_FREQ_FINE is the content of INTERNAL_FREQ_FINE (63h)
.
DS11976 - Rev 2 page 73/168
LSM6DSR
TAP_CFG0 (56h)
9.44
TAP_CFG0 (56h)
Activity/inactivity functions, configuration of filtering, and tap recognition functions (r/w)
Table 122. TAP_CFG0 register
0
INT_CLR_
ON_READ
SLEEP_STATUS
_ON_INT
SLOPE_
FDS
1. This bit must be set to '0' for the correct operation of the device.
TAP_X_EN TAP_Y_EN TAP_Z_EN LIR
Table 123. TAP_CFG0 register description
INT_CLR_ON_READ
This bit allows immediately clearing the latched interrupts of an event detection upon the read of the corresponding status register. It must be set to 1 together with LIR. Default value: 0
(0: latched interrupt signal cleared at the end of the ODR period;
1: latched interrupt signal immediately cleared)
SLEEP_STATUS_ON_INT
Activity/inactivity interrupt mode configuration.
If INT1_SLEEP_CHANGE or INT2_SLEEP_CHANGE bits are enabled, drives the sleep status or sleep change on the INT pins. Default value: 0
(0: sleep change notification on INT pins; 1: sleep status reported on INT pins)
SLOPE_FDS
HPF or SLOPE filter selection on wake-up and Activity/Inactivity functions. Default value: 0
(0: SLOPE filter applied; 1: HPF applied)
TAP_X_EN
TAP_Y_EN
TAP_Z_EN
LIR
Enable X direction in tap recognition. Default value: 0
(0: X direction disabled; 1: X direction enabled)
Enable Y direction in tap recognition. Default value: 0
(0: Y direction disabled; 1: Y direction enabled)
Enable Z direction in tap recognition. Default value: 0
(0: Z direction disabled; 1: Z direction enabled)
Latched Interrupt. Default value: 0
(0: interrupt request not latched; 1: interrupt request latched)
DS11976 - Rev 2 page 74/168
LSM6DSR
TAP_CFG1 (57h)
9.45
9.46
TAP_CFG1 (57h)
Tap configuration register (r/w)
TAP_
PRIORITY_2
TAP_
PRIORITY_1
TAP_
PRIORITY_0
Table 124. TAP_CFG1 register
TAP_
THS_X_4
TAP_
THS_X_3
TAP_
THS_X_2
TAP_
THS_X_1
TAP_
THS_X_0
TAP_PRIORITY_[2:0]
TAP_THS_X_[4:0]
Table 125. TAP_CFG1 register description
Selection of axis priority for TAP detection (see
X-axis tap recognition threshold. Default value: 0
1 LSB = FS_XL / (2 5 )
TAP_PRIORITY_[2:0]
000
001
010
011
100
101
110
111
Table 126. TAP priority decoding
Max. priority
X
Y
X
Z
X
Y
Z
Z
Mid. priority
Y
X
Z
Y
Y
Z
X
Y
TAP_CFG2 (58h)
Enables interrupt and inactivity functions, and tap recognition functions (r/w)
INTERRUPTS
_ENABLE
INACT_EN1 INACT_EN0
Table 127. TAP_CFG2 register
TAP_
THS_Y_4
TAP_
THS_Y_3
TAP_
THS_Y_2
TAP_
THS_Y_1
Min. priority
Z
Z
Y
X
Z
X
Y
X
TAP_
THS_Y_0
INTERRUPTS_ENABLE
INACT_EN[1:0]
TAP_THS_Y_[4:0]
Table 128. TAP_CFG2 register description
Enable basic interrupts (6D/4D, free-fall, wake-up, tap, inactivity). Default value: 0
(0: interrupt disabled; 1: interrupt enabled)
Enable activity/inactivity (sleep) function. Default value: 00
(00: stationary/motion-only interrupts generated, XL and gyro do not change;
01: sets accelerometer ODR to 12.5 Hz (low-power mode), gyro does not change;
10: sets accelerometer ODR to 12.5 Hz (low-power mode), gyro to sleep mode;
11: sets accelerometer ODR to 12.5 Hz (low-power mode), gyro to power-down mode)
Y-axis tap recognition threshold. Default value: 0
1 LSB = FS_XL / (2 5 )
DS11976 - Rev 2 page 75/168
LSM6DSR
TAP_THS_6D (59h)
9.47
9.48
TAP_THS_6D (59h)
Portrait/landscape position and tap function threshold register (r/w)
D4D_EN
Table 129. TAP_THS_6D register
SIXD_THS1 SIXD_THS0
TAP_
THS_Z_4
TAP_
THS_Z_3
TAP_
THS_Z_2
TAP_
THS_Z_1
TAP_
THS_Z_0
D4D_EN
SIXD_THS[1:0]
TAP_THS_Z_[4:0]
Table 130. TAP_THS_6D register description
Enables detection of 4D orientation. Z-axis position detection is disabled. Default value: 0
(0: disabled; 1: enabled)
Threshold for 4D/6D function:
(00: 80 degrees (default);
01: 70 degrees;
10: 60 degrees;
11: 50 degrees)
Z-axis recognition threshold. Default value: 0
1 LSB = FS_XL / (2 5 )
INT_DUR2 (5Ah)
Tap recognition function setting register (r/w)
DUR3 DUR2 DUR1
Table 131. INT_DUR2 register
DUR0 QUIET1 QUIET0 SHOCK1 SHOCK0
Table 132. INT_DUR2 register description
DUR[3:0]
QUIET[1:0]
Duration of maximum time gap for double-tap recognition. Default: 0000
When double-tap recognition is enabled, this register expresses the maximum time between two consecutive detected taps to determine a double-tap event. The default value of these bits is 0000b which corresponds to
16/ODR_XL time. If the DUR[3:0] bits are set to a different value, 1LSB corresponds to 32/ODR_XL time.
Expected quiet time after a tap detection. Default value: 00
Quiet time is the time after the first detected tap in which there must not be any overthreshold event. The default value of these bits is 00b which corresponds to 2/ODR_XL time. If the QUIET[1:0] bits are set to a different value, 1LSB corresponds to 4/ODR_XL time.
SHOCK[1:0]
Maximum duration of overthreshold event. Default value: 00
Maximum duration is the maximum time of an overthreshold signal detection to be recognized as a tap event.
The default value of these bits is 00b which corresponds to 4/ODR_XL time. If the SHOCK[1:0] bits are set to a different value, 1LSB corresponds to 8/ODR_XL time.
DS11976 - Rev 2 page 76/168
LSM6DSR
WAKE_UP_THS (5Bh)
9.49
9.50
WAKE_UP_THS (5Bh)
Single/double-tap selection and wake-up configuration (r/w)
SINGLE_
DOUBLE_TAP
USR_OFF_
ON_WU
Table 133. WAKE_UP_THS register
WK_THS5 WK_THS4 WK_THS3 WK_THS2 WK_THS1 WK_THS0
Table 134. WAKE_UP_THS register description
SINGLE_DOUBLE_TAP
Single/double-tap event enable. Default: 0
(0: only single-tap event enabled;
1: both single and double-tap events enabled)
USR_OFF_ON_WU
Sends the low-pass filtered data with user offset correction (instead of high-pass filtered data) to the wakeup function.
WK_THS[5:0]
Threshold for wakeup: 1 LSB weight depends on WAKE_THS_W in
. Default value: 000000
WAKE_UP_DUR (5Ch)
Free-fall, wakeup and sleep mode functions duration setting register (r/w)
Table 135. WAKE_UP_DUR register
FF_DUR5 WAKE_DUR1 WAKE_DUR0
WAKE_
THS_W
SLEEP_
DUR3
SLEEP_
DUR2
SLEEP_
DUR1
SLEEP_
DUR0
Table 136. WAKE_UP_DUR register description
FF_DUR5
WAKE_DUR[1:0]
WAKE_THS_W
Free fall duration event. Default: 0
For the complete configuration of the free-fall duration, refer to FF_DUR[4:0] in
configuration.
1 LSB = 1 ODR_time
Wake up duration event. Default: 00
1LSB = 1 ODR_time
Weight of 1 LSB of wakeup threshold. Default: 0
(0: 1 LSB =FS_XL / (2 6 );
1: 1 LSB = FS_XL / (2 8 ))
SLEEP_DUR[3:0]
Duration to go in sleep mode. Default value: 0000 (this corresponds to 16 ODR)
1 LSB = 512 ODR
DS11976 - Rev 2 page 77/168
LSM6DSR
FREE_FALL (5Dh)
9.51
FREE_FALL (5Dh)
Free-fall function duration setting register (r/w)
FF_DUR4 FF_DUR3 FF_DUR2
Table 137. FREE_FALL register
FF_DUR1 FF_DUR0 FF_THS2 FF_THS1 FF_THS0
Table 138. FREE_FALL register description
FF_DUR[4:0]
Free-fall duration event. Default: 0
For the complete configuration of the free fall duration, refer to FF_DUR5 in WAKE_UP_DUR (5Ch)
configuration.
FF_THS[2:0]
Free-fall threshold setting:
(000: 156 m g (default);
001: 219 m g ;
010: 250 m g ;
011: 312 m g ;
100: 344 m g ;
101: 406 m g ;
110: 469 m g ;
111: 500 m g )
DS11976 - Rev 2 page 78/168
LSM6DSR
MD1_CFG (5Eh)
9.52
MD1_CFG (5Eh)
Functions routing on INT1 register (r/w)
INT1_SLEEP
_CHANGE
INT1_
SINGLE_TAP
INT1_WU
Table 139. MD1_CFG register
INT1_FF
INT1_
DOUBLE_TAP
INT1_6D
INT1_
EMB_FUNC
INT1_SHUB
Table 140. MD1_CFG register description
INT1_SLEEP_CHANGE
INT1_SINGLE_TAP
INT1_WU
INT1_FF
INT1_DOUBLE_TAP
INT1_6D
INT1_EMB_FUNC
INT1_SHUB
Routing of activity/inactivity recognition event on INT1. Default: 0
(0: routing of activity/inactivity event on INT1 disabled;
1: routing of activity/inactivity event on INT1 enabled)
Routing of single-tap recognition event on INT1. Default: 0
(0: routing of single-tap event on INT1 disabled;
1: routing of single-tap event on INT1 enabled)
Routing of wakeup event on INT1. Default value: 0
(0: routing of wakeup event on INT1 disabled;
1: routing of wakeup event on INT1 enabled)
Routing of free-fall event on INT1. Default value: 0
(0: routing of free-fall event on INT1 disabled;
1: routing of free-fall event on INT1 enabled)
Routing of tap event on INT1. Default value: 0
(0: routing of double-tap event on INT1 disabled;
1: routing of double-tap event on INT1 enabled)
Routing of 6D event on INT1. Default value: 0
(0: routing of 6D event on INT1 disabled;
1: routing of 6D event on INT1 enabled)
Routing of embedded functions event on INT1. Default value: 0
(0: routing of embedded functions event on INT1 disabled;
1: routing embedded functions event on INT1 enabled)
Routing of sensor hub communication concluded event on INT1. Default value: 0
(0: routing of sensor hub communication concluded event on INT1 disabled;
1: routing of sensor hub communication concluded event on INT1 enabled)
1. Activity/Inactivity interrupt mode (sleep change or sleep status) depends on the SLEEP_STATUS_ON_INT bit in the
DS11976 - Rev 2 page 79/168
LSM6DSR
MD2_CFG (5Fh)
9.53
MD2_CFG (5Fh)
Functions routing on INT2 register (r/w)
INT2_SLEEP
_CHANGE
INT2_
SINGLE_TAP
INT2_WU
Table 141. MD2_CFG register
INT2_FF
INT2_
DOUBLE_TAP
INT2_6D
INT2_
EMB_FUNC
INT2_
TIMESTAMP
Table 142. MD2_CFG register description
INT2_SLEEP_CHANGE
INT2_SINGLE_TAP
INT2_WU
INT2_FF
INT2_DOUBLE_TAP
INT2_6D
INT2_EMB_FUNC
Routing of activity/inactivity recognition event on INT2. Default: 0
(0: routing of activity/inactivity event on INT2 disabled;
1: routing of activity/inactivity event on INT2 enabled)
Single-tap recognition routing on INT2. Default: 0
(0: routing of single-tap event on INT2 disabled;
1: routing of single-tap event on INT2 enabled)
Routing of wakeup event on INT2. Default value: 0
(0: routing of wakeup event on INT2 disabled;
1: routing of wake-up event on INT2 enabled)
Routing of free-fall event on INT2. Default value: 0
(0: routing of free-fall event on INT2 disabled;
1: routing of free-fall event on INT2 enabled)
Routing of tap event on INT2. Default value: 0
(0: routing of double-tap event on INT2 disabled;
1: routing of double-tap event on INT2 enabled)
Routing of 6D event on INT2. Default value: 0
(0: routing of 6D event on INT2 disabled;
1: routing of 6D event on INT2 enabled)
Routing of embedded functions event on INT2. Default value: 0
(0: routing of embedded functions event on INT2 disabled;
1: routing embedded functions event on INT2 enabled)
Enables routing on INT2 pin of the alert for timestamp overflow within 6.4 ms.
INT2_TIMESTAMP
1. Activity/Inactivity interrupt mode (sleep change or sleep status) depends on the SLEEP_STATUS_ON_INT bit in the
DS11976 - Rev 2 page 80/168
LSM6DSR
S4S_ST_CMD_CODE (60h)
9.54
9.55
9.56
S4S_ST_CMD_CODE (60h)
S4S master command register (r/w)
ST_CMD_
CODE7
ST_CMD_
CODE6
Table 143. S4S_ST_CMD_CODE register
ST_CMD_
CODE5
ST_CMD_
CODE4
ST_CMD_
CODE3
ST_CMD_
CODE2
ST_CMD_
CODE1
ST_CMD_
CODE0
ST_CMD_CODE[7:0]
S4S_DT_REG (61h)
S4S DT register (r/w)
Table 144. S4S_ST_CMD_CODE register description
Master command code used for S4S. Default value: 0
DT7 DT6 DT5
Table 145. S4S_DT_REG register
DT4 DT3 DT2 DT1 DT0
DT[7:0]
Table 146. S4S_DT_REG register description
DT used for S4S. Default value: 0
I3C_BUS_AVB (62h)
I3C_BUS_AVB register (r/w)
Table 147. I3C_BUS_AVB register
0
0
0
I3C_Bus_
Avb_Sel1
1. This bit must be set to '0' for the correct operation of the device.
I3C_Bus_
Avb_Sel0
0
0
PD_DIS_
INT1
Table 148. I3C_BUS_AVB register description
These bits are used to select the bus available time when I3C IBI is used.
Default value: 00
I3C_Bus_Avb_Sel[1:0]
(00: bus available time equal to 50 µsec (default);
01: bus available time equal to 2 µsec;
10: bus available time equal to 1 msec;
11: bus available time equal to 25 msec)
PD_DIS_INT1
This bit allows disabling the INT1 pull-down.
(0: Pull-down on INT1 enabled (pull-down is effectively connected only when no interrupts are routed to the INT1 pin or when the I3C dynamic address is assigned);
1: Pull-down on INT1 disabled (pull-down not connected))
DS11976 - Rev 2 page 81/168
LSM6DSR
INTERNAL_FREQ_FINE (63h)
9.57
INTERNAL_FREQ_FINE (63h)
Internal frequency register (r)
Table 149. INTERNAL_FREQ_FINE register
FREQ_FINE7 FREQ_FINE6 FREQ_FINE5 FREQ_FINE4 FREQ_FINE3 FREQ_FINE2 FREQ_FINE1 FREQ_FINE0
Table 150. INTERNAL_FREQ_FINE register description
FREQ_FINE[7:0]
Difference in percentage of the effective ODR (and timestamp rate) with respect to the typical. Step: 0.15%.
8-bit format, 2's complement.
The formula below can be used to calculate a better estimation of the actual ODR:
ODR_Actual = (6667 + ((0.0015 * INTERNAL_FREQ_FINE) * 6667)) / ODR_Coeff
Selected_ODR
12.5
26
52
104
208
416
833
1667
3333
6667
ODR_Coeff
512
256
128
64
32
16
8
4
2
1
The Selected_ODR parameter has to be derived from the ODR_XL selection (
Table 50. Accelerometer ODR selection
DS11976 - Rev 2 page 82/168
LSM6DSR
INT_OIS (6Fh)
9.58
INT_OIS (6Fh)
OIS interrupt configuration register and accelerometer self-test enable setting. Primary interface for read-only (r); only Aux SPI can write to this register (r/w).
Table 151. INT_OIS register
INT2_
DRDY_OIS
LVL2_OIS DEN_LH_OIS -
1. This bit must be set to '0' for the correct operation of the device.
0
ST1_XL_OIS ST0_XL_OIS
INT2_DRDY_OIS
LVL2_OIS
DEN_LH_OIS
ST[1:0]_XL_OIS
Table 152. INT_OIS register description
Enables OIS chain DRDY on INT2 pin. This setting has priority over all other INT2 settings.
Enables level-sensitive latched mode on the OIS chain. Default value: 0
Indicates polarity of DEN signal on OIS chain
(0: DEN pin is active-low;
1: DEN pin is active-high)
Selects accelerometer self-test – effective only if XL OIS chain is enabled. Default value: 00
(00: Normal mode;
01: Positive sign self-test;
10: Negative sign self-test;
11: not allowed)
DS11976 - Rev 2 page 83/168
LSM6DSR
CTRL1_OIS (70h)
9.59
CTRL1_OIS (70h)
OIS configuration register. Primary interface for read-only (r); only Aux SPI can write to this register (r/w).
Table 153. CTRL1_OIS register
0
LVL1_OIS SIM_OIS Mode4_EN FS1_G_OIS
1. This bit must be set to '0' for the correct operation of the device.
FS0_G_OIS FS_125_OIS OIS_EN_SPI2
Table 154. CTRL1_OIS register description
LVL1_OIS
SIM_OIS
Mode4_EN
Enables level-sensitive trigger mode on OIS chain. Default value: 0
SPI2 3- or 4-wire interface. Default value: 0
(0: 4-wire SPI2;
1: 3-wire SPI2)
Enables accelerometer OIS chain. OIS outputs are available through SPI2 in registers
- OUTZ_L_A (2Ch) and OUTZ_H_A (2Dh)
.
Note: OIS_EN_SPI2 must be enabled (i.e. set to ‘1’) to enable also XL OIS chain.
Selects gyroscope OIS chain full-scale
(00: ±250 dps;
FS[1:0]_G_OIS 01: ±500 dps;
10: ±1000 dps;
11: ±2000 dps)
FS_125_OIS
OIS_EN_SPI2
Selects gyroscope OIS chain full-scale ±125 dps
(0: FS selected through bits FS[1:0]_OIS_G;
1: ±125 dps)
Enables OIS chain data processing for gyro in Mode 3 and Mode 4 (mode4_en = 1) and accelerometer data in Mode 4 (mode4_en = 1).
When the OIS chain is enabled, the OIS outputs are available through the SPI2 in registers
(22h) and OUTX_H_G (23h) through
OUTZ_L_A (2Ch) and OUTZ_H_A (2Dh) and
STATUS_SPIAux (1Eh) , and LPF1 is dedicated to this chain.
DEN mode selection can be done using the LVL1_OIS bit of register CTRL1_OIS (70h) and the LVL2_OIS bit of register
.
DEN mode on the OIS path is active in the gyroscope only.
LVL1_OIS, LVL2_OIS
10
11
Table 155. DEN mode selection
DEN mode
Level-sensitive trigger mode is selected
Level-sensitive latched mode is selected
DS11976 - Rev 2 page 84/168
LSM6DSR
CTRL2_OIS (71h)
9.60
CTRL2_OIS (71h)
OIS configuration register. Primary interface for read-only (r); only Aux SPI can write to this register (r/w).
Table 156. CTRL2_OIS register
HPM1_OIS HPM0_OIS
1. This bit must be set to '0' for the correct operation of the device.
0
FTYPE_1_OIS FTYPE_0_OIS HP_EN_OIS
Table 157. CTRL2_OIS register description
HPM[1:0]_OIS
Selects gyroscope OIS chain digital high-pass filter cutoff. Default value: 00
(00: 16 mHz;
01: 65 mHz;
10: 260 mHz;
11: 1.04 Hz)
FTYPE_[1:0]_OIS
Selects gyroscope digital LPF1 filter bandwidth. Table 158
shows cutoff and phase values obtained with all configurations.
HP_EN_OIS Enables gyroscope OIS chain digital high-pass filter.
ODR [Hz]
6.66 kHz
Table 158. Gyroscope OIS chain digital LPF1 filter bandwidth selection
LPF1
FTYPE_[1:0]_OIS
00
01
10
11
Total BW [Hz]
(phase delay @20 Hz)
297 Hz (7°)
222 Hz (9°)
154 Hz (12°)
470 Hz (5°)
DS11976 - Rev 2 page 85/168
LSM6DSR
CTRL3_OIS (72h)
9.61
CTRL3_OIS (72h)
OIS configuration register. Primary interface for read-only (r); only Aux SPI can write to this register (r/w).
Table 159. CTRL3_OIS register
FS1_XL_OIS FS0_XL_OIS
FILTER_XL_
CONF_OIS_2
FILTER_XL_
CONF_OIS_1
FILTER_XL_
CONF_OIS_0
ST1_OIS ST0_OIS
ST_OIS_
CLAMPDIS
Table 160. CTRL3_OIS register description
FS[1:0]_XL_OIS
Selects accelerometer OIS channel full-scale. Default value: 00.
(00: ±2 g ; 01: ±16 g ; 10: ±4 g ; 11: ±8 g )
FILTER_XL_CONF_OIS_[2:0] Selects accelerometer OIS channel bandwidth. See
ST[1:0]_OIS
ST_OIS_CLAMPDIS
Selects gyroscope OIS chain self-test. Default value: 00
lists the output variation when the self-test is enabled and ST_OIS_CLAMPDIS='1'.
(00: Normal mode;
01: Positive sign self-test;
10: Normal mode;
11: Negative sign self-test)
Disables OIS chain clamp
(0: All OIS chain outputs = 8000h during self-test;
1: OIS chain self-test outputs as shown in Table 162
.
Table 161. Accelerometer OIS channel bandwidth and phase
FILTER_XL_CONF_OIS[2:0]
100
101
110
111
000
001
010
011
Typ. overall bandwidth [Hz]
33.6
16.7
8.3
4.14
631
295
140
68.2
Typ. overall phase [°]
-4.20 @ 20 Hz
-6.35 @ 20 Hz
-10.6 @ 20 Hz
-18.9 @ 20 Hz
-17.8 @ 10 Hz
-32.2 @ 10 Hz
-26.2 @ 4 Hz
-26.0 @ 2 Hz
Full scale
±2000
±1000
±500
±250
±125
Table 162. Self-test nominal output variation
Output variation [dps]
±400
±200
±100
±50
±25
DS11976 - Rev 2 page 86/168
LSM6DSR
X_OFS_USR (73h)
9.62
9.63
X_OFS_USR (73h)
Accelerometer X-axis user offset correction (r/w). The offset value set in the X_OFS_USR offset register is internally subtracted from the acceleration value measured on the X-axis.
X_OFS_
USR_7
X_OFS_
USR_6
X_OFS_
USR_5
Table 163. X_OFS_USR register
X_OFS_
USR_4
X_OFS_
USR_3
X_OFS_
USR_2
X_OFS_
USR_1
X_OFS_
USR_0
Table 164. X_OFS_USR register description
X_OFS_USR_[7:0]
Accelerometer X-axis user offset correction expressed in two’s complement, weight depends on
. The value must be in the range [-127 127].
Y_OFS_USR (74h)
Accelerometer Y-axis user offset correction (r/w). The offset value set in the Y_OFS_USR offset register is internally subtracted from the acceleration value measured on the Y-axis.
Y_OFS_
USR_7
Y_OFS_
USR_6
Y_OFS_
USR_5
Table 165. Y_OFS_USR register
Y_OFS_
USR_4
Y_OFS_
USR_3
Y_OFS_
USR_2
Y_OFS_
USR_1
Y_OFS_
USR_0
9.64
Y_OFS_USR_[7:0]
Accelerometer Y-axis user offset calibration expressed in 2’s complement, weight depends on
. The value must be in the range [-127, +127].
Z_OFS_USR (75h)
Accelerometer Z-axis user offset correction (r/w). The offset value set in the Z_OFS_USR offset register is internally subtracted from the acceleration value measured on the Z-axis.
Z_OFS_
USR_7
Z_OFS_
USR_6
Z_OFS_
USR_5
Table 166. Z_OFS_USR register
Z_OFS_
USR_4
Z_OFS_
USR_3
Z_OFS_
USR_2
Z_OFS_
USR_1
Z_OFS_
USR_0
Table 167. Z_OFS_USR register description
Z_OFS_USR_[7:0]
Accelerometer Z-axis user offset calibration expressed in 2’s complement, weight depends on
USR_OFF_W in
. The value must be in the range [-127, +127].
DS11976 - Rev 2 page 87/168
LSM6DSR
FIFO_DATA_OUT_TAG (78h)
9.65
FIFO_DATA_OUT_TAG (78h)
FIFO tag register (r)
TAG_
SENSOR_4
TAG_
SENSOR_3
Table 168. FIFO_DATA_OUT_TAG register
TAG_
SENSOR_2
TAG_
SENSOR_1
TAG_
SENSOR_0
TAG_CNT_1 TAG_CNT_0
TAG_
PARITY
Table 169. FIFO_DATA_OUT_TAG register description
TAG_SENSOR_[4:0]
Identifies the sensor in:
FIFO_DATA_OUT_X_L (79h) and FIFO_DATA_OUT_X_H (7Ah)
,
FIFO_DATA_OUT_Y_H (7Ch) , and FIFO_DATA_OUT_Z_L (7Dh) and FIFO_DATA_OUT_Z_H (7Eh)
For details, refer to Table 170. FIFO tag
TAG_CNT_[1:0]
TAG_PARITY
2-bit counter which identifies sensor time slot
Parity check of TAG content
Table 170. FIFO tag
TAG_SENSOR_[4:0]
0x0A
0x0B
0x0C
0x0D
0x0E
0x0F
0x10
0x11
0x12
0x19
0x01
0x02
0x03
0x04
0x05
0x06
0x07
0x08
0x09
Sensor name
Gyroscope NC
Accelerometer NC
Temperature
Timestamp
CFG_Change
Accelerometer NC_T_2
Accelerometer NC_T_1
Accelerometer 2xC
Accelerometer 3xC
Gyroscope NC_T_2
Gyroscope NC_T_1
Gyroscope 2xC
Gyroscope 3xC
Sensor Hub Slave 0
Sensor Hub Slave 1
Sensor Hub Slave 2
Sensor Hub Slave 3
Step Counter
Sensor Hub Nack
DS11976 - Rev 2 page 88/168
LSM6DSR
FIFO_DATA_OUT_X_L (79h) and FIFO_DATA_OUT_X_H (7Ah)
9.66
FIFO_DATA_OUT_X_L (79h) and FIFO_DATA_OUT_X_H (7Ah)
FIFO data output X (r)
D15
Table 171. FIFO_DATA_OUT_X_H and FIFO_DATA_OUT_X_L registers
D14 D13 D12 D11 D10 D9 D8
9.67
D7 D6 D5 D4 D3 D2 D1 D0
D[15:0]
Table 172. FIFO_DATA_OUT_X_H and FIFO_DATA_OUT_X_L register description
FIFO X-axis output
FIFO_DATA_OUT_Y_L (7Bh) and FIFO_DATA_OUT_Y_H (7Ch)
FIFO data output Y (r)
D15
Table 173. FIFO_DATA_OUT_Y_H and FIFO_DATA_OUT_Y_L registers
D14 D13 D12 D11 D10 D9 D8
9.68
D7 D6 D5 D4 D3 D2 D1 D0
D[15:0]
Table 174. FIFO_DATA_OUT_Y_H and FIFO_DATA_OUT_Y_L register description
FIFO Y-axis output
FIFO_DATA_OUT_Z_L (7Dh) and FIFO_DATA_OUT_Z_H (7Eh)
FIFO data output Z (r)
D15
Table 175. FIFO_DATA_OUT_Z_H and FIFO_DATA_OUT_Z_L registers
D14 D13 D12 D11 D10 D9 D8
D7 D6 D5 D4 D3 D2 D1
D[15:0]
Table 176. FIFO_DATA_OUT_Z_H and FIFO_DATA_OUT_Z_L register description
FIFO Z-axis output
D0
DS11976 - Rev 2 page 89/168
10
LSM6DSR
Embedded functions register mapping
Embedded functions register mapping
The table given below provides a list of the registers for the embedded functions available in the device and the corresponding addresses. Embedded functions registers are accessible when FUNC_CFG_EN is set to '1' in
Name
PAGE_SEL
ADV_PEDO
EMB_FUNC_EN_A
EMB_FUNC_EN_B
PAGE_ADDRESS
PAGE_VALUE
EMB_FUNC_INT1
FSM_INT1_A
FSM_INT1_B
EMB_FUNC_INT2
FSM_INT2_A
FSM_INT2_B
EMB_FUNC_STATUS
FSM_STATUS_A
FSM_STATUS_B
PAGE_RW
RESERVED
EMB_FUNC_FIFO_CFG
FSM_ENABLE_A
FSM_ENABLE_B
FSM_LONG_COUNTER_L
FSM_LONG_COUNTER_H
FSM_LONG_COUNTER_CLEAR
FSM_OUTS1
FSM_OUTS2
FSM_OUTS3
FSM_OUTS4
FSM_OUTS5
FSM_OUTS6
FSM_OUTS7
FSM_OUTS8
FSM_OUTS9
Table 177. Register address map - embedded functions
Type
Register address
Hex Binary
00000010
00000011
00000100
00000101
00001000
00001001
00001010
00001011
00001100
00001110
00001111
00010000
00010010
00010011
00010100
00010111 17
18-43
44
46
47
0F
10
12
13
14
09
0A
0B
0C
0E
02
03
04
05
08
51
52
53
54
4E
4F
50
48
49
4A
4C
4D
01000100
01000110
01000111
01001000
01001001
01001010
01001100
01001101
01001110
01001111
01010000
01010001
01010010
01010011
01010100
RW
-
RW
RW
RW
RW
RW
R
R
R
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
R
R
R
R
R
R
R
RW
RW
RW
R
R
Default
00000000
00000000
00000000
00000000
00000000
00000000 output output output output output output output output output
00000001
00000010
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
01101011
00000000 output output output
00000000
Comment
DS11976 - Rev 2 page 90/168
DS11976 - Rev 2
LSM6DSR
Embedded functions register mapping
Name
FSM_OUTS10
FSM_OUTS11
FSM_OUTS12
FSM_OUTS13
FSM_OUTS14
FSM_OUTS15
FSM_OUTS16
RESERVED
EMB_FUNC_ODR_CFG_B
STEP_COUNTER_L
STEP_COUNTER_H
EMB_FUNC_SRC
EMB_FUNC_INIT_A
EMB_FUNC_INIT_B
Type
R
R
R
-
RW
R
R
R
R
R
R
RW
RW
RW
59
5A
5B
5C-5E
5F
55
56
57
58
62
63
64
66
67
Register address
Hex Binary
01010101
01010110
01010111
01011000
01011001
01011010
01011011
01011111
01100010
01100011
01100100
01100110
01100111
Default output output output output output output output
01001011 output output output
00000000
00000000
Comment
Registers marked as Reserved must not be changed. Writing to those registers may cause permanent damage to the device.
The content of the registers that are loaded at boot should not be changed. They contain the factory calibration values. Their content is automatically restored when the device is powered up.
page 91/168
LSM6DSR
Embedded functions register description
11
Embedded functions register description
11.1
11.2
PAGE_SEL (02h)
Enable advanced features dedicated page (r/w)
Table 178. PAGE_SEL register
PAGE_SEL3 PAGE_SEL2 PAGE_SEL1 PAGE_SEL0
1. This bit must be set to '0' for the correct operation of the device.
2. This bit must be set to '1' for the correct operation of the device.
0
0
PAGE_SEL[3:0]
Table 179. PAGE_SEL register description
Select the advanced features dedicated page
Default value: 0000
ADV_PEDO (03h)
Enable/disable pedometer advanced features register (r/w)
0
1
Table 180. EMB_FUNC_EN_A register
0
0
0
0
0
1. This bit must be set to '0' for the correct operation of the device.
0
PEDO_FPR
_ADF_DIS
PEDO_FPR_ADF_DIS
Table 181. EMB_FUNC_EN_A register description
Disable pedometer false-positive rejection block and advanced detection feature block.
Default value: 1
(0: Pedometer false-positive rejection block and advanced detection feature block enabled;
1: Pedometer false-positive rejection block and advanced detection feature block disabled)
0
DS11976 - Rev 2 page 92/168
LSM6DSR
EMB_FUNC_EN_A (04h)
11.3
11.4
EMB_FUNC_EN_A (04h)
Embedded functions enable register (r/w)
Table 182. EMB_FUNC_EN_A register
0
0
SIGN_
MOTION_EN
TILT_EN PEDO_EN
1. This bit must be set to '0' for the correct operation of the device.
0
SIGN_MOTION_EN
TILT_EN
PEDO_EN
Table 183. EMB_FUNC_EN_A register description
Enable significant motion detection function. Default value: 0
(0: significant motion detection function disabled;
1: significant motion detection function enabled)
Enable tilt calculation. Default value: 0
(0: tilt algorithm disabled;
1: tilt algorithm enabled)
Enable pedometer algorithm. Default value: 0
(0: pedometer algorithm disabled;
1: pedometer algorithm enabled)
EMB_FUNC_EN_B (05h)
Embedded functions enable register (r/w)
Table 184. EMB_FUNC_EN_B register
0
0
0
PEDO_
ADV_EN
1. This bit must be set to '0' for the correct operation of the device.
FIFO_
COMPR_EN
0
0
0
0
FSM_EN
Table 185. EMB_FUNC_EN_B register description
PEDO_ADV_EN
FSM_EN
Enable pedometer false-positive rejection block and advanced detection feature block. Default value: 0
(0: Pedometer advanced features block disabled;
1: Pedometer advanced features block enabled)
FIFO_COMPR_EN
Enable FIFO compression feature. Default value: 0
(0: FIFO compression feature disabled;
1: FIFO compression feature enabled)
Enable Finite State Machine (FSM) feature. Default value: 0
(0: FSM feature disabled; 1: FSM feature enabled)
1. This bit is effective if the FIFO_COMPR_RT_EN bit of
DS11976 - Rev 2 page 93/168
LSM6DSR
PAGE_ADDRESS (08h)
11.5
11.6
PAGE_ADDRESS (08h)
Page address register (r/w)
PAGE_
ADDR7
PAGE_
ADDR6
Table 186. PAGE_ADDRESS register
PAGE_
ADDR5
PAGE_
ADDR4
PAGE_
ADDR3
PAGE_
ADDR2
PAGE_
ADDR1
PAGE_
ADDR0
Table 187. PAGE_ADDRESS register description
PAGE_ADDR[7:0]
the address of the register to be written/read in the advanced features page selected through the bits
PAGE_SEL[3:0] in register
.
PAGE_VALUE (09h)
Page value register (r/w)
PAGE_
VALUE7
PAGE_
VALUE6
PAGE_
VALUE5
Table 188. PAGE_VALUE register
PAGE_
VALUE4
PAGE_
VALUE3
PAGE_
VALUE2
PAGE_
VALUE1
PAGE_
VALUE0
Table 189. PAGE_VALUE register description
PAGE_VALUE[7:0]
PAGE_READ = 1 in register PAGE_RW (17h)
) the data at the address PAGE_ADDR[7:0] of the selected advanced features page.
DS11976 - Rev 2 page 94/168
LSM6DSR
EMB_FUNC_INT1 (0Ah)
11.7
EMB_FUNC_INT1 (0Ah)
INT1 pin control register (r/w)
Each bit in this register enables a signal to be carried over INT1. The pin's output will supply the OR combination of the selected signals.
Table 190. EMB_FUNC_INT1 register
INT1_
FSM_LC
0
INT1_
SIG_MOT
INT1_TILT
INT1_STEP_
DETECTOR
1. This bit must be set to '0' for the correct operation of the device.
0
0
Table 191. EMB_FUNC_INT1 register description
INT1_FSM_LC
INT1_TILT
INT1_STEP_DETECTOR
Routing of FSM long counter timeout interrupt event on INT1. Default value: 0
(0: routing on INT1 disabled; 1: routing on INT1 enabled)
Routing of significant motion event on INT1. Default value: 0
(0: routing on INT1 disabled; 1: routing on INT1 enabled)
Routing of tilt event on INT1. Default value: 0
(0: routing on INT1 disabled; 1: routing on INT1 enabled)
Routing of pedometer step recognition event on INT1. Default value: 0
(0: routing on INT1 disabled; 1: routing on INT1 enabled)
1. This bit is effective if the INT1_EMB_FUNC bit of
0
DS11976 - Rev 2 page 95/168
LSM6DSR
FSM_INT1_A (0Bh)
11.8
FSM_INT1_A (0Bh)
INT1 pin control register (r/w).
Each bit in this register enables a signal to be carried over INT1. The pin's output will supply the OR combination of the selected signals.
Table 192. FSM_INT1_A register
INT1_FSM8 INT1_FSM7 INT1_FSM6 INT1_FSM5 INT1_FSM4 INT1_FSM3 INT1_FSM2 INT1_FSM1
Table 193. FSM_INT1_A register description
Routing of FSM8 interrupt event on INT1. Default value: 0
(0: routing on INT1 disabled; 1: routing on INT1 enabled)
Routing of FSM7 interrupt event on INT1. Default value: 0
(0: routing on INT1 disabled; 1: routing on INT1 enabled)
Routing of FSM6 interrupt event on INT1. Default value: 0
(0: routing on INT1 disabled; 1: routing on INT1 enabled)
Routing of FSM5 interrupt event on INT1. Default value: 0
(0: routing on INT1 disabled; 1: routing on INT1 enabled)
Routing of FSM4 interrupt event on INT1. Default value: 0
(0: routing on INT1 disabled; 1: routing on INT1 enabled)
Routing of FSM3 interrupt event on INT1. Default value: 0
(0: routing on INT1 disabled; 1: routing on INT1 enabled)
Routing of FSM2 interrupt event on INT1. Default value: 0
(0: routing on INT1 disabled; 1: routing on INT1 enabled)
Routing of FSM1 interrupt event on INT1. Default value: 0
(0: routing on INT1 disabled; 1: routing on INT1 enabled)
1. This bit is effective if the INT1_EMB_FUNC bit of
DS11976 - Rev 2 page 96/168
LSM6DSR
FSM_INT1_B (0Ch)
11.9
FSM_INT1_B (0Ch)
INT1 pin control register (r/w).
Each bit in this register enables a signal to be carried over INT1. The pin's output will supply the OR combination of the selected signals.
Table 194. FSM_INT1_B register
INT1_FSM16 INT1_FSM15 INT1_FSM14 INT1_FSM13 INT1_FSM12 INT1_FSM11 INT1_FSM10 INT1_FSM9
Table 195. FSM_INT1_B register description
INT1_FSM16
INT1_FSM15
INT1_FSM14
INT1_FSM13
INT1_FSM12
INT1_FSM11
INT1_FSM10
Routing of FSM16 interrupt event on INT1. Default value: 0
(0: routing on INT1 disabled; 1: routing on INT1 enabled)
Routing of FSM15 interrupt event on INT1. Default value: 0
(0: routing on INT1 disabled; 1: routing on INT1 enabled)
Routing of FSM14 interrupt event on INT1. Default value: 0
(0: routing on INT1 disabled; 1: routing on INT1 enabled)
Routing of FSM13 interrupt event on INT1. Default value: 0
(0: routing on INT1 disabled; 1: routing on INT1 enabled)
Routing of FSM12 interrupt event on INT1. Default value: 0
(0: routing on INT1 disabled; 1: routing on INT1 enabled)
Routing of FSM11 interrupt event on INT1. Default value: 0
(0: routing on INT1 disabled; 1: routing on INT1 enabled)
Routing of FSM10 interrupt event on INT1. Default value: 0
(0: routing on INT1 disabled; 1: routing on INT1 enabled)
Routing of FSM9 interrupt event on INT1. Default value: 0
(0: routing on INT1 disabled; 1: routing on INT1 enabled)
1. This bit is effective if the INT1_EMB_FUNC bit of
DS11976 - Rev 2 page 97/168
LSM6DSR
EMB_FUNC_INT2 (0Eh)
11.10
EMB_FUNC_INT2 (0Eh)
INT2 pin control register (r/w).
Each bit in this register enables a signal to be carried over INT2. The pin's output will supply the OR combination of the selected signals.
Table 196. EMB_FUNC_INT2 register
INT2_
FSM_LC
0
INT2_
SIG_MOT
INT2_TILT
INT2_STEP_
DETECTOR
1. This bit must be set to '0' for the correct operation of the device.
0
0
Table 197. EMB_FUNC_INT2 register description
INT2_FSM_LC
INT2_TILT
INT2_STEP_DETECTOR
Routing of FSM long counter timeout interrupt event on INT2. Default value: 0
(0: routing on INT2 disabled; 1: routing on INT2 enabled)
Routing of significant motion event on INT2. Default value: 0
(0: routing on INT2 disabled; 1: routing on INT2 enabled)
Routing of tilt event on INT2. Default value: 0
(0: routing on INT2 disabled; 1: routing on INT2 enabled)
Routing of pedometer step recognition event on INT2. Default value: 0
(0: routing on INT2 disabled; 1: routing on INT2 enabled)
1. This bit is effective if the INT2_EMB_FUNC bit of
is set to 1.
0
DS11976 - Rev 2 page 98/168
LSM6DSR
FSM_INT2_A (0Fh)
11.11
FSM_INT2_A (0Fh)
INT2 pin control register (r/w).
Each bit in this register enables a signal to be carried over INT2. The pin's output will supply the OR combination of the selected signals.
Table 198. FSM_INT2_A register
INT2_FSM8 INT2_FSM7 INT2_FSM6 INT2_FSM5 INT2_FSM4 INT2_FSM3 INT2_FSM2 INT2_FSM1
Table 199. FSM_INT2_A register description
Routing of FSM8 interrupt event on INT2. Default value: 0
(0: routing on INT2 disabled; 1: routing on INT2 enabled)
Routing of FSM7 interrupt event on INT2. Default value: 0
(0: routing on INT2 disabled; 1: routing on INT2 enabled)
Routing of FSM6 interrupt event on INT2. Default value: 0
(0: routing on INT2 disabled; 1: routing on INT2 enabled)
Routing of FSM5 interrupt event on INT2. Default value: 0
(0: routing on INT2 disabled; 1: routing on INT2 enabled)
Routing of FSM4 interrupt event on INT2. Default value: 0
(0: routing on INT2 disabled; 1: routing on INT2 enabled)
Routing of FSM3 interrupt event on INT2. Default value: 0
(0: routing on INT2 disabled; 1: routing on INT2 enabled)
(0: routing on INT1 disabled; 1: routing on INT1 enabled)
Routing of FSM2 interrupt event on INT2. Default value: 0
(0: routing on INT2 disabled; 1: routing on INT2 enabled)
Routing of FSM1 interrupt event on INT2. Default value: 0
(0: routing on INT2 disabled; 1: routing on INT2 enabled)
1. This bit is effective if the INT2_EMB_FUNC bit of
is set to 1.
DS11976 - Rev 2 page 99/168
LSM6DSR
FSM_INT2_B (10h)
11.12
FSM_INT2_B (10h)
INT2 pin control register (r/w).
Each bit in this register enables a signal to be carried over INT2. The pin's output will supply the OR combination of the selected signals.
Table 200. FSM_INT2_B register
INT2_FSM16 INT2_FSM15 INT2_FSM14 INT2_FSM13 INT2_FSM12 INT2_FSM11 INT2_FSM10 INT2_FSM9
Table 201. FSM_INT2_B register description
INT2_FSM16
INT2_FSM15
INT2_FSM14
INT2_FSM13
INT2_FSM12
INT2_FSM11
INT2_FSM10
Routing of FSM16 interrupt event on INT2. Default value: 0
(0: routing on INT2 disabled; 1: routing on INT2 enabled)
Routing of FSM15 interrupt event on INT2. Default value: 0
(0: routing on INT2 disabled; 1: routing on INT2 enabled)
Routing of FSM14 interrupt event on INT2. Default value: 0
(0: routing on INT2 disabled; 1: routing on INT2 enabled)
Routing of FSM13 interrupt event on INT2. Default value: 0
(0: routing on INT2 disabled; 1: routing on INT2 enabled)
Routing of FSM12 interrupt event on INT2. Default value: 0
(0: routing on INT2 disabled; 1: routing on INT2 enabled)
Routing of FSM11 interrupt event on INT2. Default value: 0
(0: routing on INT2 disabled; 1: routing on INT2 enabled)
(0: routing on INT1 disabled; 1: routing on INT1 enabled)
Routing of FSM10 interrupt event on INT2. Default value: 0
(0: routing on INT2 disabled; 1: routing on INT2 enabled)
Routing of FSM9 interrupt event on INT2. Default value: 0
(0: routing on INT2 disabled; 1: routing on INT2 enabled)
1. This bit is effective if the INT2_EMB_FUNC bit of
is set to 1.
DS11976 - Rev 2 page 100/168
LSM6DSR
EMB_FUNC_STATUS (12h)
11.13
EMB_FUNC_STATUS (12h)
Embedded function status register (r)
IS_FSM_LC 0
Table 202. EMB_FUNC_STATUS register
IS_SIGMOT IS_TILT IS_STEP_DET 0 0 0
11.14
IS_FSM_LC
IS_SIGMOT
IS_TILT
IS_STEP_DET
Table 203. EMB_FUNC_STATUS register description
Interrupt status bit for FSM long counter timeout interrupt event.
(1: interrupt detected; 0: no interrupt)
Interrupt status bit for significant motion detection
(1: interrupt detected; 0: no interrupt)
Interrupt status bit for tilt detection
(1: interrupt detected; 0: no interrupt)
Interrupt status bit for step detection
(1: interrupt detected; 0: no interrupt)
FSM_STATUS_A (13h)
Finite State Machine status register (r)
IS_FSM8 IS_FSM7
Table 204. FSM_STATUS_A register
IS_FSM6 IS_FSM5 IS_FSM4 IS_FSM3 IS_FSM2 IS_FSM1
IS_FSM8
IS_FSM7
IS_FSM6
IS_FSM5
IS_FSM4
IS_FSM3
IS_FSM2
IS_FSM1
Table 205. FSM_STATUS_A register description
Interrupt status bit for FSM8 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM7 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM6 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM5 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM4 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM3 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM2 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM1 interrupt event. (1: interrupt detected; 0: no interrupt)
DS11976 - Rev 2 page 101/168
LSM6DSR
FSM_STATUS_B (14h)
11.15
FSM_STATUS_B (14h)
Finite State Machine status register (r)
IS_FSM16 IS_FSM15
Table 206. FSM_STATUS_B register
IS_FSM14 IS_FSM13 IS_FSM12 IS_FSM11 IS_FSM10 IS_FSM9
IS_FSM16
IS_FSM15
IS_FSM14
IS_FSM13
IS_FSM12
IS_FSM11
IS_FSM10
IS_FSM9
Table 207. FSM_STATUS_B register description
Interrupt status bit for FSM16 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM15 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM14 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM13 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM12 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM11 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM10 interrupt event. (1: interrupt detected; 0: no interrupt)
Interrupt status bit for FSM9 interrupt event. (1: interrupt detected; 0: no interrupt)
DS11976 - Rev 2 page 102/168
LSM6DSR
PAGE_RW (17h)
11.16
11.17
PAGE_RW (17h)
Enable read and write mode of advanced features dedicated page (r/w)
Table 208. PAGE_RW register
EMB_
FUNC_LIR
PAGE_
WRITE
PAGE_
READ
0
1. This bit must be set to '0' for the correct operation of the device.
0
0
0
Table 209. PAGE_RW register description
EMB_FUNC_LIR
PAGE_WRITE
PAGE_READ
Latched Interrupt mode for Embedded Functions. Default value: 0
(0: Embedded Functions interrupt request not latched;
1: Embedded Functions interrupt request latched)
Enable writes to the selected advanced features dedicated page.
Default value: 0
(1: enable; 0: disable)
Enable reads from the selected advanced features dedicated page.
Default value: 0
(1: enable; 0: disable)
1. Page selected by PAGE_SEL[3:0] in register
.
EMB_FUNC_FIFO_CFG (44h)
Embedded functions batching configuration register (r/w)
Table 210. EMB_FUNC_FIFO_CFG register
0
PEDO_
FIFO_EN
0
0
1. This bit must be set to '0' for the correct operation of the device.
0
0
PEDO_FIFO_EN
Table 211. EMB_FUNC_FIFO_CFG register description
Enable FIFO batching of step counter values. Default value: 0
0
0
0
DS11976 - Rev 2 page 103/168
LSM6DSR
FSM_ENABLE_A (46h)
11.18
FSM_ENABLE_A (46h)
FSM enable register (r/w)
FSM8_EN FSM7_EN
Table 212. FSM_ENABLE_A register
FSM6_EN FSM5_EN FSM4_EN FSM3_EN FSM2_EN FSM1_EN
11.19
FSM8_EN
FSM7_EN
FSM6_EN
FSM5_EN
FSM4_EN
FSM3_EN
FSM2_EN
FSM1_EN
Table 213. FSM_ENABLE_A register description
FSM8 enable. Default value: 0 (0: FSM8 disabled; 1: FSM8 enabled)
FSM7 enable. Default value: 0 (0: FSM7 disabled; 1: FSM7 enabled)
FSM6 enable. Default value: 0 (0: FSM6 disabled; 1: FSM6 enabled)
FSM5 enable. Default value: 0 (0: FSM5 disabled; 1: FSM5 enabled)
FSM4 enable. Default value: 0 (0: FSM4 disabled; 1: FSM4 enabled)
FSM3 enable. Default value: 0 (0: FSM3 disabled; 1: FSM3 enabled)
FSM2 enable. Default value: 0 (0: FSM2 disabled; 1: FSM2 enabled)
FSM1 enable. Default value: 0 (0: FSM1 disabled; 1: FSM1 enabled)
FSM_ENABLE_B (47h)
FSM enable register (r/w)
FSM16_EN FSM15_EN
Table 214. FSM_ENABLE_B register
FSM14_EN FSM13_EN FSM12_EN FSM11_EN FSM10_EN FSM9_EN
FSM16_EN
FSM15_EN
FSM14_EN
FSM13_EN
FSM12_EN
FSM11_EN
FSM10_EN
FSM9_EN
Table 215. FSM_ENABLE_B register description
FSM16 enable. Default value: 0 (0: FSM16 disabled; 1: FSM16 enabled)
FSM15 enable. Default value: 0 (0: FSM15 disabled; 1: FSM15 enabled)
FSM14 enable. Default value: 0 (0: FSM14 disabled; 1: FSM14 enabled)
FSM13 enable. Default value: 0 (0: FSM13 disabled; 1: FSM13 enabled)
FSM12 enable. Default value: 0 (0: FSM12 disabled; 1: FSM12 enabled)
FSM11 enable. Default value: 0 (0: FSM11 disabled; 1: FSM11 enabled)
FSM10 enable. Default value: 0 (0: FSM10 disabled; 1: FSM10 enabled)
FSM9 enable. Default value: 0 (0: FSM9 disabled; 1: FSM9 enabled)
DS11976 - Rev 2 page 104/168
LSM6DSR
FSM_LONG_COUNTER_L (48h) and FSM_LONG_COUNTER_H (49h)
11.20
FSM_LONG_COUNTER_L (48h) and FSM_LONG_COUNTER_H (49h)
FSM long counter status register (r/w).
Long counter value is an unsigned integer value (16-bit format); this value can be reset using the LC_CLEAR bit
in FSM_LONG_COUNTER_CLEAR (4Ah) register.
FSM_LC_7 FSM_LC_6
Table 216. FSM_LONG_COUNTER_L register
FSM_LC_5 FSM_LC_4 FSM_LC_3 FSM_LC_2 FSM_LC_1 FSM_LC_0
FSM_LC_[7:0]
Table 217. FSM_LONG_COUNTER_L register description
Long counter current value (LSbyte). Default value: 00000000
Table 218. FSM_LONG_COUNTER_H register
FSM_LC_15 FSM_LC_14 FSM_LC_13 FSM_LC_12 FSM_LC_11 FSM_LC_10 FSM_LC_9 FSM_LC_8
11.21
FSM_LC_[15:8]
Table 219. FSM_LONG_COUNTER_H register description
Long counter current value (MSbyte). Default value: 00000000
FSM_LONG_COUNTER_CLEAR (4Ah)
FSM long counter reset register (r/w)
Table 220. FSM_LONG_COUNTER_CLEAR register
0
0
0
0
1. This bit must be set to '0' for the correct operation of the device.
0
0
FSM_LC_
CLEARED
FSM_LC_
CLEAR
Table 221. FSM_LONG_COUNTER_CLEAR register description
FSM_LC_CLEARED This read-only bit is automatically set to 1 when the long counter reset is done. Default value: 0
FSM_LC_CLEAR Clear FSM long counter value. Default value: 0
DS11976 - Rev 2 page 105/168
LSM6DSR
FSM_OUTS1 (4Ch)
11.22
FSM_OUTS1 (4Ch)
FSM1 output register (r)
P_X N_X P_Y
Table 222. FSM_OUTS1 register
N_Y P_Z N_Z P_V
11.23
Table 223. FSM_OUTS1 register description
P_X FSM1 output: positive event detected on the X-axis. (0: event not detected; 1: event detected)
N_X FSM1 output: negative event detected on the X-axis. (0: event not detected; 1: event detected)
P_Y FSM1 output: positive event detected on the Y-axis. (0: event not detected; 1: event detected)
N_Y FSM1 output: negative event detected on the Y-axis. (0: event not detected; 1: event detected)
P_Z FSM1 output: positive event detected on the Z-axis. (0: event not detected; 1: event detected)
N_Z FSM1 output: negative event detected on the Z-axis. (0: event not detected; 1: event detected)
P_V FSM1 output: positive event detected on the vector. (0: event not detected; 1: event detected)
N_V FSM1 output: negative event detected on the vector. (0: event not detected; 1: event detected)
FSM_OUTS2 (4Dh)
FSM2 output register (r)
P_X N_X P_Y
Table 224. FSM_OUTS2 register
N_Y P_Z N_Z P_V
Table 225. FSM_OUTS2 register description
P_X FSM2 output: positive event detected on the X-axis. (0: event not detected; 1: event detected)
N_X FSM2 output: negative event detected on the X-axis. (0: event not detected; 1: event detected)
P_Y FSM2 output: positive event detected on the Y-axis. (0: event not detected; 1: event detected)
N_Y FSM2 output: negative event detected on the Y-axis. (0: event not detected; 1: event detected)
P_Z FSM2 output: positive event detected on the Z-axis. (0: event not detected; 1: event detected)
N_Z FSM2 output: negative event detected on the Z-axis. (0: event not detected; 1: event detected)
P_V FSM2 output: positive event detected on the vector. (0: event not detected; 1: event detected)
N_V FSM2 output: negative event detected on the vector. (0: event not detected; 1: event detected)
N_V
N_V
DS11976 - Rev 2 page 106/168
LSM6DSR
FSM_OUTS3 (4Eh)
11.24
FSM_OUTS3 (4Eh)
FSM3 output register (r)
P_X N_X P_Y
Table 226. FSM_OUTS3 register
N_Y P_Z N_Z P_V
11.25
Table 227. FSM_OUTS3 register description
P_X FSM3 output: positive event detected on the X-axis. (0: event not detected; 1: event detected)
N_X FSM3 output: negative event detected on the X-axis. (0: event not detected; 1: event detected)
P_Y FSM3 output: positive event detected on the Y-axis. (0: event not detected; 1: event detected)
N_Y FSM3 output: negative event detected on the Y-axis. (0: event not detected; 1: event detected)
P_Z FSM3 output: positive event detected on the Z-axis. (0: event not detected; 1: event detected)
N_Z FSM3 output: negative event detected on the Z-axis. (0: event not detected; 1: event detected)
P_V FSM3 output: positive event detected on the vector. (0: event not detected; 1: event detected)
N_V FSM3 output: negative event detected on the vector. (0: event not detected; 1: event detected)
FSM_OUTS4 (4Fh)
FSM4 output register (r)
P_X N_X P_Y
Table 228. FSM_OUTS4 register
N_Y P_Z N_Z P_V
Table 229. FSM_OUTS4 register description
P_X FSM4 output: positive event detected on the X-axis. (0: event not detected; 1: event detected)
N_X FSM4 output: negative event detected on the X-axis. (0: event not detected; 1: event detected)
P_Y FSM4 output: positive event detected on the Y-axis. (0: event not detected; 1: event detected)
N_Y FSM4 output: negative event detected on the Y-axis. (0: event not detected; 1: event detected)
P_Z FSM4 output: positive event detected on the Z-axis. (0: event not detected; 1: event detected)
N_Z FSM4 output: negative event detected on the Z-axis. (0: event not detected; 1: event detected)
P_V FSM4 output: positive event detected on the vector. (0: event not detected; 1: event detected)
N_V FSM4 output: negative event detected on the vector. (0: event not detected; 1: event detected)
N_V
N_V
DS11976 - Rev 2 page 107/168
LSM6DSR
FSM_OUTS5 (50h)
11.26
FSM_OUTS5 (50h)
FSM5 output register (r)
P_X N_X P_Y
Table 230. FSM_OUTS5 register
N_Y P_Z N_Z P_V
11.27
Table 231. FSM_OUTS5 register description
P_X FSM5 output: positive event detected on the X-axis. (0: event not detected; 1: event detected)
N_X FSM5 output: negative event detected on the X-axis. (0: event not detected; 1: event detected)
P_Y FSM5 output: positive event detected on the Y-axis. (0: event not detected; 1: event detected)
N_Y FSM5 output: negative event detected on the Y-axis. (0: event not detected; 1: event detected)
P_Z FSM5 output: positive event detected on the Z-axis. (0: event not detected; 1: event detected)
N_Z FSM5 output: negative event detected on the Z-axis. (0: event not detected; 1: event detected)
P_V FSM5 output: positive event detected on the vector. (0: event not detected; 1: event detected)
N_V FSM5 output: negative event detected on the vector. (0: event not detected; 1: event detected)
FSM_OUTS6 (51h)
FSM6 output register (r)
P_X N_X P_Y
Table 232. FSM_OUTS6 register
N_Y P_Z N_Z P_V
Table 233. FSM_OUTS6 register description
P_X FSM6 output: positive event detected on the X-axis. (0: event not detected; 1: event detected)
N_X FSM6 output: negative event detected on the X-axis. (0: event not detected; 1: event detected)
P_Y FSM6 output: positive event detected on the Y-axis. (0: event not detected; 1: event detected)
N_Y FSM6 output: negative event detected on the Y-axis. (0: event not detected; 1: event detected)
P_Z FSM6 output: positive event detected on the Z-axis. (0: event not detected; 1: event detected)
N_Z FSM6 output: negative event detected on the Z-axis. (0: event not detected; 1: event detected)
P_V FSM6 output: positive event detected on the vector. (0: event not detected; 1: event detected)
N_V FSM6 output: negative event detected on the vector. (0: event not detected; 1: event detected)
N_V
N_V
DS11976 - Rev 2 page 108/168
LSM6DSR
FSM_OUTS7 (52h)
11.28
FSM_OUTS7 (52h)
FSM7 output register (r)
P_X N_X P_Y
Table 234. FSM_OUTS7 register
N_Y P_Z N_Z P_V
11.29
Table 235. FSM_OUTS7 register description
P_X FSM7 output: positive event detected on the X-axis. (0: event not detected; 1: event detected)
N_X FSM7 output: negative event detected on the X-axis. (0: event not detected; 1: event detected)
P_Y FSM7 output: positive event detected on the Y-axis. (0: event not detected; 1: event detected)
N_Y FSM7 output: negative event detected on the Y-axis. (0: event not detected; 1: event detected)
P_Z FSM7 output: positive event detected on the Z-axis. (0: event not detected; 1: event detected)
N_Z FSM7 output: negative event detected on the Z-axis. (0: event not detected; 1: event detected)
P_V FSM7 output: positive event detected on the vector. (0: event not detected; 1: event detected)
N_V FSM7 output: negative event detected on the vector. (0: event not detected; 1: event detected)
FSM_OUTS8 (53h)
FSM8 output register (r)
P_X N_X P_Y
Table 236. FSM_OUTS8 register
N_Y P_Z N_Z P_V
Table 237. FSM_OUTS8 register description
P_X FSM8 output: positive event detected on the X-axis. (0: event not detected; 1: event detected)
N_X FSM8 output: negative event detected on the X-axis. (0: event not detected; 1: event detected)
P_Y FSM8 output: positive event detected on the Y-axis. (0: event not detected; 1: event detected)
N_Y FSM8 output: negative event detected on the Y-axis. (0: event not detected; 1: event detected)
P_Z FSM8 output: positive event detected on the Z-axis. (0: event not detected; 1: event detected)
N_Z FSM8 output: negative event detected on the Z-axis. (0: event not detected; 1: event detected)
P_V FSM8 output: positive event detected on the vector. (0: event not detected; 1: event detected)
N_V FSM8 output: negative event detected on the vector. (0: event not detected; 1: event detected)
N_V
N_V
DS11976 - Rev 2 page 109/168
LSM6DSR
FSM_OUTS9 (54h)
11.30
FSM_OUTS9 (54h)
FSM9 output register (r)
P_X N_X P_Y
Table 238. FSM_OUTS9 register
N_Y P_Z N_Z P_V
11.31
Table 239. FSM_OUTS9 register description
P_X FSM9 output: positive event detected on the X-axis. (0: event not detected; 1: event detected)
N_X FSM9 output: negative event detected on the X-axis. (0: event not detected; 1: event detected)
P_Y FSM9 output: positive event detected on the Y-axis. (0: event not detected; 1: event detected)
N_Y FSM9 output: negative event detected on the Y-axis. (0: event not detected; 1: event detected)
P_Z FSM9 output: positive event detected on the Z-axis. (0: event not detected; 1: event detected)
N_Z FSM9 output: negative event detected on the Z-axis. (0: event not detected; 1: event detected)
P_V FSM9 output: positive event detected on the vector. (0: event not detected; 1: event detected)
N_V FSM9 output: negative event detected on the vector. (0: event not detected; 1: event detected)
FSM_OUTS10 (55h)
FSM10 output register (r)
P_X N_X P_Y
Table 240. FSM_OUTS10 register
N_Y P_Z N_Z P_V
Table 241. FSM_OUTS10 register description
P_X FSM10 output: positive event detected on the X-axis. (0: event not detected; 1: event detected)
N_X FSM10 output: negative event detected on the X-axis. (0: event not detected; 1: event detected)
P_Y FSM10 output: positive event detected on the Y-axis. (0: event not detected; 1: event detected)
N_Y FSM10 output: negative event detected on the Y-axis. (0: event not detected; 1: event detected)
P_Z FSM10 output: positive event detected on the Z-axis. (0: event not detected; 1: event detected)
N_Z FSM10 output: negative event detected on the Z-axis. (0: event not detected; 1: event detected)
P_V FSM10 output: positive event detected on the vector. (0: event not detected; 1: event detected)
N_V FSM10 output: negative event detected on the vector. (0: event not detected; 1: event detected)
N_V
N_V
DS11976 - Rev 2 page 110/168
11.32
FSM_OUTS11 (56h)
FSM11 output register (r)
P_X N_X P_Y
Table 242. FSM_OUTS11 register
N_Y P_Z N_Z P_V
11.33
Table 243. FSM_OUTS11 register description
P_X FSM11 output: positive event detected on the X-axis. (0: event not detected; 1: event detected)
N_X FSM11 output: negative event detected on the X-axis. (0: event not detected; 1: event detected)
P_Y FSM11 output: positive event detected on the Y-axis. (0: event not detected; 1: event detected)
N_Y FSM11 output: negative event detected on the Y-axis. (0: event not detected; 1: event detected)
P_Z FSM11 output: positive event detected on the Z-axis. (0: event not detected; 1: event detected)
N_Z FSM11 output: negative event detected on the Z-axis. (0: event not detected; 1: event detected)
P_V FSM11 output: positive event detected on the vector. (0: event not detected; 1: event detected)
N_V FSM11 output: negative event detected on the vector. (0: event not detected; 1: event detected)
FSM_OUTS12 (57h)
FSM12 output register (r)
P_X N_X P_Y
Table 244. FSM_OUTS12 register
N_Y P_Z N_Z P_V
Table 245. FSM_OUTS12 register description
P_X FSM12 output: positive event detected on the X-axis. (0: event not detected; 1: event detected)
N_X FSM12 output: negative event detected on the X-axis. (0: event not detected; 1: event detected)
P_Y FSM12 output: positive event detected on the Y-axis. (0: event not detected; 1: event detected)
N_Y FSM12 output: negative event detected on the Y-axis. (0: event not detected; 1: event detected)
P_Z FSM12 output: positive event detected on the Z-axis. (0: event not detected; 1: event detected)
N_Z FSM12 output: negative event detected on the Z-axis. (0: event not detected; 1: event detected)
P_V FSM12 output: positive event detected on the vector. (0: event not detected; 1: event detected)
N_V FSM12 output: negative event detected on the vector. (0: event not detected; 1: event detected)
LSM6DSR
FSM_OUTS11 (56h)
N_V
N_V
DS11976 - Rev 2 page 111/168
11.34
FSM_OUTS13 (58h)
FSM13 output register (r)
P_X N_X P_Y
Table 246. FSM_OUTS13 register
N_Y P_Z N_Z P_V
11.35
Table 247. FSM_OUTS13 register description
P_X FSM13 output: positive event detected on the X-axis. (0: event not detected; 1: event detected)
N_X FSM13 output: negative event detected on the X-axis. (0: event not detected; 1: event detected)
P_Y FSM13 output: positive event detected on the Y-axis. (0: event not detected; 1: event detected)
N_Y FSM13 output: negative event detected on the Y-axis. (0: event not detected; 1: event detected)
P_Z FSM13 output: positive event detected on the Z-axis. (0: event not detected; 1: event detected)
N_Z FSM13 output: negative event detected on the Z-axis. (0: event not detected; 1: event detected)
P_V FSM13 output: positive event detected on the vector. (0: event not detected; 1: event detected)
N_V FSM13 output: negative event detected on the vector. (0: event not detected; 1: event detected)
FSM_OUTS14 (59h)
FSM14 output register (r)
P_X N_X P_Y
Table 248. FSM_OUTS14 register
N_Y P_Z N_Z P_V
Table 249. FSM_OUTS14 register description
P_X FSM14 output: positive event detected on the X-axis. (0: event not detected; 1: event detected)
N_X FSM14 output: negative event detected on the X-axis. (0: event not detected; 1: event detected)
P_Y FSM14 output: positive event detected on the Y-axis. (0: event not detected; 1: event detected)
N_Y FSM14 output: negative event detected on the Y-axis. (0: event not detected; 1: event detected)
P_Z FSM14 output: positive event detected on the Z-axis. (0: event not detected; 1: event detected)
N_Z FSM14 output: negative event detected on the Z-axis. (0: event not detected; 1: event detected)
P_V FSM14 output: positive event detected on the vector. (0: event not detected; 1: event detected)
N_V FSM14 output: negative event detected on the vector. (0: event not detected; 1: event detected)
LSM6DSR
FSM_OUTS13 (58h)
N_V
N_V
DS11976 - Rev 2 page 112/168
11.36
FSM_OUTS15 (5Ah)
FSM15 output register (r)
P_X N_X P_Y
Table 250. FSM_OUTS15 register
N_Y P_Z N_Z P_V
11.37
Table 251. FSM_OUTS15 register description
P_X FSM15 output: positive event detected on the X-axis. (0: event not detected; 1: event detected)
N_X FSM15 output: negative event detected on the X-axis. (0: event not detected; 1: event detected)
P_Y FSM15 output: positive event detected on the Y-axis. (0: event not detected; 1: event detected)
N_Y FSM15 output: negative event detected on the Y-axis. (0: event not detected; 1: event detected)
P_Z FSM15 output: positive event detected on the Z-axis. (0: event not detected; 1: event detected)
N_Z FSM15 output: negative event detected on the Z-axis. (0: event not detected; 1: event detected)
P_V FSM15 output: positive event detected on the vector. (0: event not detected; 1: event detected)
N_V FSM15 output: negative event detected on the vector. (0: event not detected; 1: event detected)
FSM_OUTS16 (5Bh)
FSM16 output register (r)
P_X N_X P_Y
Table 252. FSM_OUTS16 register
N_Y P_Z N_Z P_V
Table 253. FSM_OUTS16 register description
P_X FSM16 output: positive event detected on the X-axis. (0: event not detected; 1: event detected)
N_X FSM16 output: negative event detected on the X-axis. (0: event not detected; 1: event detected)
P_Y FSM16 output: positive event detected on the Y-axis. (0: event not detected; 1: event detected)
N_Y FSM16 output: negative event detected on the Y-axis. (0: event not detected; 1: event detected)
P_Z FSM16 output: positive event detected on the Z-axis. (0: event not detected; 1: event detected)
N_Z FSM16 output: negative event detected on the Z-axis. (0: event not detected; 1: event detected)
P_V FSM16 output: positive event detected on the vector. (0: event not detected; 1: event detected)
N_V FSM16 output: negative event detected on the vector. (0: event not detected; 1: event detected)
LSM6DSR
FSM_OUTS15 (5Ah)
N_V
N_V
DS11976 - Rev 2 page 113/168
LSM6DSR
EMB_FUNC_ODR_CFG_B (5Fh)
11.38
EMB_FUNC_ODR_CFG_B (5Fh)
Finite State Machine output data rate configuration register (r/w)
Table 254. EMB_FUNC_ODR_CFG_B register
0
1
0
FSM_ODR1 FSM_ODR0
1. This bit must be set to '0' for the correct operation of the device.
2. This bit must be set to '1' for the correct operation of the device
0
FSM_ODR[1:0]
Table 255. EMB_FUNC_ODR_CFG_B register description
Finite State Machine ODR configuration:
(00: 12.5 Hz;
01: 26 Hz (default);
10: 52 Hz;
11: 104 Hz)
1
1
DS11976 - Rev 2 page 114/168
LSM6DSR
STEP_COUNTER_L (62h) and STEP_COUNTER_H (63h)
11.39
STEP_COUNTER_L (62h) and STEP_COUNTER_H (63h)
Step counter output register (r)
STEP_7 STEP_6
Table 256. STEP_COUNTER_L register
STEP_5 STEP_4 STEP_3 STEP_2 STEP_1 STEP_0
STEP_[7:0]
STEP_[15:8]
Table 257. STEP_COUNTER_L register description
Step counter output (LSbyte)
STEP_15 STEP_14
Table 258. STEP_COUNTER_H register
STEP_13 STEP_12 STEP_11 STEP_10 STEP_9 STEP_8
Table 259. STEP_COUNTER_H register description
Step counter output (MSbyte)
DS11976 - Rev 2 page 115/168
LSM6DSR
EMB_FUNC_SRC (64h)
11.40
11.41
EMB_FUNC_SRC (64h)
Embedded function source register (r/w)
Table 260. EMB_FUNC_SRC register
PEDO_
RST_STEP
0
STEP_
DETECTED
STEP_COUNT
_DELTA_IA
1. This bit must be set to '0' for the correct operation of the device.
STEP_
OVERFLOW
STEPCOUNTER
_BIT_SET
PEDO_RST_STEP
STEP_DETECTED
STEP_COUNT_DELTA_IA
STEP_OVERFLOW
STEPCOUNTER_BIT_SET
Table 261. EMB_FUNC_SRC register description
Reset pedometer step counter. Read/write bit.
(0: disabled; 1: enabled)
Step detector event detection status. Read-only bit.
(0: step detection event not detected; 1: step detection event detected)
Pedometer step recognition on delta time status. Read-only bit.
(0: no step recognized during delta time;
1: at least one step recognized during delta time)
Step counter overflow status. Read-only bit.
(0: step counter value < 2 16 ; 1: step counter value reached 2 16 )
This bit is equal to 1 when the step count is increased. Read-only bit.
EMB_FUNC_INIT_A (66h)
Embedded functions initialization register (r/w)
Table 262. EMB_FUNC_INIT_A register
0
0
SIG_MOT
_INIT
TILT_INIT
1. This bit must be set to '0' for the correct operation of the device.
STEP_DET
_INIT
0
0
SIG_MOT_INIT
TILT_INIT
STEP_DET_INIT
Table 263. EMB_FUNC_INIT_A register description
Significant Motion Detection algorithm initialization request. Default value: 0
Tilt algorithm initialization request. Default value: 0
Pedometer Step Counter/Detector algorithm initialization request. Default value: 0
0
DS11976 - Rev 2 page 116/168
LSM6DSR
EMB_FUNC_INIT_B (67h)
11.42
EMB_FUNC_INIT_B (67h)
Embedded functions initialization register (r/w)
Table 264. EMB_FUNC_INIT_B register
0
0
0
0
FIFO_
COMPR_INIT
1. This bit must be set to '0' for the correct operation of the device.
0
FIFO_COMPR_INIT
FSM_INIT
Table 265. EMB_FUNC_INIT_B register description
FIFO compression feature initialization request. Default value: 0
FSM initialization request. Default value: 0
0
FSM_INIT
DS11976 - Rev 2 page 117/168
12
LSM6DSR
Embedded advanced features pages
Embedded advanced features pages
The table given below provides a list of the registers for the embedded advanced features page 0. These
registers are accessible when PAGE_SEL[3:0] are set to 0000 in PAGE_SEL (02h) .
Table 266. Register address map - embedded advanced features page 0
Name
MAG_SENSITIVITY_L
MAG_SENSITIVITY_H
MAG_OFFX_L
MAG_OFFX_H
MAG_OFFY_L
MAG_OFFY_H
MAG_OFFZ_L
MAG_OFFZ_H
MAG_SI_XX_L
MAG_SI_XX_H
MAG_SI_XY_L
MAG_SI_XY_H
MAG_SI_XZ_L
MAG_SI_XZ_H
MAG_SI_YY_L
MAG_SI_YY_H
MAG_SI_YZ_L
MAG_SI_YZ_H
MAG_SI_ZZ_L
MAG_SI_ZZ_H
MAG_CFG_A
MAG_CFG_B
Type
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
Hex
Register address
Binary
CC
CD
CE
CF
D0
D1
D4
D5
C7
C8
C9
CA
CB
C2
C3
C4
C5
C6
BA
BB
C0
C1
11000111
11001000
11001001
11001010
11001011
11001100
11001101
11001110
11001111
11010000
11010001
11010100
11010101
10111010
10111011
11000000
11000001
11000010
11000011
11000100
11000101
11000110
Default
00111100
00000000
00000000
00000000
00000000
00000000
00111100
00000000
00000000
00000000
00111100
00000101
00000010
00100100
00010110
00000000
00000000
00000000
00000000
00000000
00000000
00000000
Comment
The following table provides a list of the registers for the embedded advanced features page 1. These registers are accessible when PAGE_SEL[3:0] are set to 0001 in
.
DS11976 - Rev 2 page 118/168
DS11976 - Rev 2
LSM6DSR
Embedded advanced features pages
Table 267. Register address map - embedded advanced features page 1
Name
FSM_LC_TIMEOUT_L
FSM_LC_TIMEOUT_H
FSM_PROGRAMS
FSM_START_ADD_L
FSM_START_ADD_H
PEDO_CMD_REG
PEDO_DEB_STEPS_CONF
PEDO_SC_DELTAT_L
PEDO_SC_DELTAT_H
Type
RW
RW
RW
RW
RW
RW
RW
RW
RW
84
D0
D1
7C
7E
7F
83
Register address
Hex Binary
7A
7B
01111010
01111011
01111100
01111110
01111111
10000011
10000100
11010000
11010001
Default
00000000
00000000
00000000
00000000
00000000
00000000
00001010
00000000
00000000
Comment
Registers marked as Reserved must not be changed. Writing to those registers may cause permanent damage to the device.
The content of the registers that are loaded at boot should not be changed. They contain the factory calibration values. Their content is automatically restored when the device is powered up.
Write procedure example:
Example: write value 06h register at address 84h (PEDO_DEB_STEPS_CONF) in Page 1
1. Write bit FUNC_CFG_EN = 1 in FUNC_CFG_ACCESS (01h)
2. Write bit PAGE_WRITE = 1 in PAGE_RW (17h) register
3. Write 0001 in PAGE_SEL[3:0] field of register PAGE_SEL (02h)
4. Write 84h in PAGE_ADDR register (08h)
5. Write 06h in PAGE_DATA register (09h)
6. Write bit PAGE_WRITE = 0 in PAGE_RW (17h) register
7. Write bit FUNC_CFG_EN = 0 in FUNC_CFG_ACCESS (01h)
// Enable access to embedded functions registers
// Select write operation mode
// Select page 1
// Set address
// Set value to be written
// Write operation disabled
// Disable access to embedded functions registers
Read procedure example:
Example: read value of register at address 84h (PEDO_DEB_STEPS_CONF) in Page 1
1. Write bit FUNC_CFG_EN = 1 in FUNC_CFG_ACCESS (01h)
2. Write bit PAGE_READ = 1 in PAGE_RW (17h) register
3. Write 0001 in PAGE_SEL[3:0] field of register PAGE_SEL (02h)
4. Write 84h in PAGE_ADDR register (08h)
5. Read value of PAGE_DATA register (09h)
// Enable access to embedded functions registers
// Select read operation mode
// Select page 1
// Set address
// Get register value page 119/168
LSM6DSR
Embedded advanced features pages
6. Write bit PAGE_READ = 0 in PAGE_RW (17h) register
7. Write bit FUNC_CFG_EN = 0 in FUNC_CFG_ACCESS (01h)
// Read operation disabled
// Disable access to embedded functions registers
Note: Steps 1 and 2 of both procedures are intended to be performed at the beginning of the procedure. Steps
6 and 7 of both procedures are intended to be performed at the end of the procedure. If the procedure involves multiple operations, only steps 3, 4 and 5 must be repeated for each operation. If, in particular, multiple operations involve consecutive registers, only step 5 can be performed.
DS11976 - Rev 2 page 120/168
LSM6DSR
Embedded advanced features register description
13
Embedded advanced features register description
13.1
13.1.1
Page 0 - Embedded advanced features registers
MAG_SENSITIVITY_L (BAh) and MAG_SENSITIVITY_H (BBh)
External magnetometer sensitivity value register for the Finite State Machine (r/w).
This register corresponds to the LSB-to-gauss conversion value of the external magnetometer sensor. The register value is expressed as half-precision floating-point format: SEEEEEFFFFFFFFFF
(S: 1 sign bit; E: 5 exponent bits; F: 10 fraction bits).
Default value of MAG_SENS[15:0] is 0x1624, corresponding to 0.0015 gauss/LSB.
MAG_
SENS_7
MAG_
SENS_6
Table 268. MAG_SENSITIVITY_L register
MAG_
SENS_5
MAG_
SENS_4
MAG_
SENS_3
MAG_
SENS_2
MAG_
SENS_1
MAG_
SENS_0
MAG_SENS_[7:0]
Table 269. MAG_SENSITIVITY_L register description
External magnetometer sensitivity (LSbyte). Default value: 00100100
MAG_
SENS_15
MAG_
SENS_14
Table 270. MAG_SENSITIVITY_H register
MAG_
SENS_13
MAG_
SENS_12
MAG_
SENS_11
MAG_
SENS_10
MAG_
SENS_9
MAG_
SENS_8
MAG_SENS_[15:8]
Table 271. MAG_SENSITIVITY_H register description
External magnetometer sensitivity (MSbyte). Default value: 00010110
DS11976 - Rev 2 page 121/168
LSM6DSR
Page 0 - Embedded advanced features registers
13.1.2
MAG_OFFX_L (C0h) and MAG_OFFX_H (C1h)
Offset for X-axis hard-iron compensation register (r/w).
The value is expressed as half-precision floating-point format: SEEEEEFFFFFFFFFF
(S: 1 sign bit; E: 5 exponent bits; F: 10 fraction bits).
MAG_
OFFX_7
MAG_
OFFX_6
MAG_
OFFX_5
Table 272. MAG_OFFX_L register
MAG_
OFFX_4
MAG_
OFFX_3
MAG_
OFFX_2
MAG_
OFFX_1
MAG_
OFFX_0
MAG_OFFX_[7:0]
Table 273. MAG_OFFX_L register description
Offset for X-axis hard-iron compensation (LSbyte). Default value: 00000000
MAG_
OFFX_15
MAG_
OFFX_14
Table 274. MAG_OFFX_H register
MAG_
OFFX_13
MAG_
OFFX_12
MAG_
OFFX_11
MAG_
OFFX_10
MAG_
OFFX_9
MAG_
OFFX_8
13.1.3
MAG_OFFX_[15:8]
Table 275. MAG_OFFX_H register description
Offset for X-axis hard-iron compensation (MSbyte). Default value: 00000000
MAG_OFFY_L (C2h) and MAG_OFFY_H (C3h)
Offset for Y-axis hard-iron compensation register (r/w).
The value is expressed as half-precision floating-point format: SEEEEEFFFFFFFFFF
(S: 1 sign bit; E: 5 exponent bits; F: 10 fraction bits).
MAG_
OFFY_7
MAG_
OFFY_6
MAG_
OFFY_5
Table 276. MAG_OFFY_L register
MAG_
OFFY_4
MAG_
OFFY_3
MAG_
OFFY_2
MAG_
OFFY_1
MAG_
OFFY_0
MAG_OFFY_[7:0]
Table 277. MAG_OFFY_L register description
Offset for Y-axis hard-iron compensation (LSbyte). Default value: 00000000
MAG_
OFFY_15
MAG_
OFFY_14
Table 278. MAG_OFFY_H register
MAG_
OFFY_13
MAG_
OFFY_12
MAG_
OFFY_11
MAG_
OFFY_10
MAG_
OFFY_9
MAG_
OFFY_8
MAG_OFFY_[15:8]
Table 279. MAG_OFFY_H register description
Offset for Y-axis hard-iron compensation (MSbyte). Default value: 00000000
DS11976 - Rev 2 page 122/168
LSM6DSR
Page 0 - Embedded advanced features registers
13.1.4
MAG_OFFZ_L (C4h) and MAG_OFFZ_H (C5h)
Offset for Z-axis hard-iron compensation register (r/w).
The value is expressed as half-precision floating-point format: SEEEEEFFFFFFFFFF
(S: 1 sign bit; E: 5 exponent bits; F: 10 fraction bits).
MAG_
OFFZ_7
MAG_
OFFZ_6
MAG_
OFFZ_5
Table 280. MAG_OFFZ_L register
MAG_
OFFZ_4
MAG_
OFFZ_3
MAG_
OFFZ_2
MAG_
OFFZ_1
MAG_
OFFZ_0
MAG_OFFZ_[7:0]
Table 281. MAG_OFFZ_L register description
Offset for Z-axis hard-iron compensation (LSbyte). Default value: 00000000
MAG_
OFFZ_15
MAG_
OFFZ_14
MAG_
OFFZ_13
Table 282. MAG_OFFZ_H register
MAG_
OFFZ_12
MAG_
OFFZ_11
MAG_
OFFZ_10
MAG_
OFFZ_9
MAG_
OFFZ_8
13.1.5
MAG_OFFZ_[15:8]
Table 283. MAG_OFFZ_H register description
Offset for Z-axis hard-iron compensation (MSbyte). Default value: 00000000
MAG_SI_XX_L (C6h) and MAG_SI_XX_H (C7h)
Soft-iron (3x3 symmetric) matrix correction register (r/w).
The value is expressed as half-precision floating-point format: SEEEEEFFFFFFFFFF
(S: 1 sign bit; E: 5 exponent bits; F: 10 fraction bits).
MAG_SI_
XX_7
MAG_SI_
XX_6
Table 284. MAG_SI_XX_L register
MAG_SI_
XX_5
MAG_SI_
XX_4
MAG_SI_
XX_3
MAG_SI_
XX_2
MAG_SI_
XX_1
MAG_SI_
XX_0
MAG_SI_XX_[7:0]
Table 285. MAG_SI_XX_L register description
Soft-iron correction row1 col1 coefficient (LSbyte). Default value: 00000000
MAG_SI_
XX_15
MAG_SI_
XX_14
Table 286. MAG_SI_XX_H register
MAG_SI_
XX_13
MAG_SI_
XX_12
MAG_SI_
XX_11
MAG_SI_
XX_10
MAG_SI_
XX_9
MAG_SI_
XX_8
MAG_SI_XX_[15:8]
Table 287. MAG_SI_XX_H register description
Soft-iron correction row1 col1 coefficient (MSbyte). Default value: 00111100
DS11976 - Rev 2 page 123/168
LSM6DSR
Page 0 - Embedded advanced features registers
13.1.6
MAG_SI_XY_L (C8h) and MAG_SI_XY_H (C9h)
Soft-iron (3x3 symmetric) matrix correction register (r/w).
The value is expressed as half-precision floating-point format: SEEEEEFFFFFFFFFF
(S: 1 sign bit; E: 5 exponent bits; F: 10 fraction bits).
MAG_SI_
XY_7
MAG_SI_
XY_6
Table 288. MAG_SI_XY_L register
MAG_SI_
XY_5
MAG_SI_
XY_4
MAG_SI_
XY_3
MAG_SI_
XY_2
MAG_SI_
XY_1
MAG_SI_
XY_0
MAG_SI_XY_[7:0]
Table 289. MAG_SI_XY_L register description
Soft-iron correction row1 col2 (and row2 col1) coefficient (LSbyte). Default value: 00000000
MAG_SI_
XY_15
MAG_SI_
XY_14
Table 290. MAG_SI_XY_H register
MAG_SI_
XY_13
MAG_SI_
XY_12
MAG_SI_
XY_11
MAG_SI_
XY_10
MAG_SI_
XY_9
MAG_SI_
XY_8
13.1.7
Table 291. MAG_SI_XY_H register description
MAG_SI_XY_[15:8] Soft-iron correction row1 col2 (and row2 col1) coefficient (MSbyte). Default value: 00000000
MAG_SI_XZ_L (CAh) and MAG_SI_XZ_H (CBh)
Soft-iron (3x3 symmetric) matrix correction register (r/w).
The value is expressed as half-precision floating-point format: SEEEEEFFFFFFFFFF
(S: 1 sign bit; E: 5 exponent bits; F: 10 fraction bits).
MAG_SI_
XZ_7
MAG_SI_
XZ_6
Table 292. MAG_SI_XZ_L register
MAG_SI_
XZ_5
MAG_SI_
XZ_4
MAG_SI_
XZ_3
MAG_SI_
XZ_2
MAG_SI_
XZ_1
MAG_SI_
XZ_0
MAG_SI_XZ_[7:0]
Table 293. MAG_SI_XZ_L register description
Soft-iron correction row1 col3 (and row3 col1) coefficient (LSbyte). Default value: 00000000
MAG_SI_
XZ_15
MAG_SI_
XZ_14
Table 294. MAG_SI_XZ_H register
MAG_SI_
XZ_13
MAG_SI_
XZ_12
MAG_SI_
XZ_11
MAG_SI_
XZ_10
MAG_SI_
XZ_9
MAG_SI_
XZ_8
Table 295. MAG_SI_XZ_H register description
MAG_SI_XZ_[15:8] Soft-iron correction row1 col3 (and row3 col1) coefficient (MSbyte). Default value: 00000000
DS11976 - Rev 2 page 124/168
LSM6DSR
Page 0 - Embedded advanced features registers
13.1.8
MAG_SI_YY_L (CCh) and MAG_SI_YY_H (CDh)
Soft-iron (3x3 symmetric) matrix correction register (r/w).
The value is expressed as half-precision floating-point format: SEEEEEFFFFFFFFFF
(S: 1 sign bit; E: 5 exponent bits; F: 10 fraction bits).
MAG_SI_
YY_7
MAG_SI_
YY_6
Table 296. MAG_SI_YY_L register
MAG_SI_
YY_5
MAG_SI_
YY_4
MAG_SI_
YY_3
MAG_SI_
YY_2
MAG_SI_
YY_1
MAG_SI_
YY_0
MAG_SI_YY_[7:0]
Table 297. MAG_SI_YY_L register description
Soft-iron correction row2 col2 coefficient (LSbyte). Default value: 00000000
MAG_SI_
YY_15
MAG_SI_
YY_14
Table 298. MAG_SI_YY_H register
MAG_SI_
YY_13
MAG_SI_
YY_12
MAG_SI_
YY_11
MAG_SI_
YY_10
MAG_SI_
YY_9
MAG_SI_
YY_8
13.1.9
MAG_SI_YY_[15:8]
Table 299. MAG_SI_YY_H register description
Soft-iron correction row2 col2 coefficient (MSbyte). Default value: 00111100
MAG_SI_YZ_L (CEh) and MAG_SI_YZ_H (CFh)
Soft-iron (3x3 symmetric) matrix correction register (r/w).
The value is expressed as half-precision floating-point format: SEEEEEFFFFFFFFFF
(S: 1 sign bit; E: 5 exponent bits; F: 10 fraction bits).
MAG_SI_
YZ_7
MAG_SI_
YZ_6
Table 300. MAG_SI_YZ_L register
MAG_SI_
YZ_5
MAG_SI_
YZ_4
MAG_SI_
YZ_3
MAG_SI_
YZ_2
MAG_SI_
YZ_1
MAG_SI_
YZ_0
MAG_SI_YZ_[7:0]
Table 301. MAG_SI_YZ_L register description
Soft-iron correction row2 col3 (and row3 col2) coefficient (LSbyte). Default value: 00000000
MAG_SI_
YZ_15
MAG_SI_
YZ_14
Table 302. MAG_SI_YZ_H register
MAG_SI_
YZ_13
MAG_SI_
YZ_12
MAG_SI_
YZ_11
MAG_SI_
YZ_10
MAG_SI_
YZ_9
MAG_SI_
YZ_8
Table 303. MAG_SI_YZ_H register description
MAG_SI_YZ_[15:8] Soft-iron correction row2 col3 (and row3 col2) coefficient (MSbyte). Default value: 00000000
DS11976 - Rev 2 page 125/168
LSM6DSR
Page 0 - Embedded advanced features registers
13.1.10
MAG_SI_ZZ_L (D0h) and MAG_SI_ZZ_H (D1h)
Soft-iron (3x3 symmetric) matrix correction register (r/w).
The value is expressed as half-precision floating-point format: SEEEEEFFFFFFFFFF
(S: 1 sign bit; E: 5 exponent bits; F: 10 fraction bits).
MAG_SI_
ZZ_7
MAG_SI_
ZZ_6
MAG_SI_
ZZ_5
Table 304. MAG_SI_ZZ_L register
MAG_SI_
ZZ_4
MAG_SI_
ZZ_3
MAG_SI_
ZZ_2
MAG_SI_
ZZ_1
MAG_SI_
ZZ_0
MAG_SI_ZZ_[7:0]
Table 305. MAG_SI_ZZ_L register description
Soft-iron correction row3 col3 coefficient (LSbyte). Default value: 00000000
MAG_SI_
ZZ_15
MAG_SI_
ZZ_14
Table 306. MAG_SI_ZZ_H register
MAG_SI_
ZZ_13
MAG_SI_
ZZ_12
MAG_SI_
ZZ_11
MAG_SI_
ZZ_10
MAG_SI_
ZZ_9
MAG_SI_
ZZ_8
MAG_SI_ZZ_[15:8]
Table 307. MAG_SI_ZZ_H register description
Soft-iron correction row3 col3 coefficient (MSbyte). Default value: 00111100
DS11976 - Rev 2 page 126/168
LSM6DSR
Page 0 - Embedded advanced features registers
13.1.11
13.1.12
MAG_CFG_A (D4h)
External magnetometer coordinates (Z and Y axes) rotation register (r/w)
Table 308. MAG_CFG_A register
0
MAG_Y_
AXIS2
MAG_Y_
AXIS1
MAG_Y_
AXIS0
1. This bit must be set to ‘0’ for the correct operation of the device.
0
MAG_Z_
AXIS2
MAG_Z_
AXIS1
MAG_Z_
AXIS0
Table 309. MAG_CFG_A register description
MAG_Y_AXIS[2:0]
MAG_Z_AXIS[2:0]
Magnetometer Y-axis coordinates rotation (to be aligned to accelerometer/gyroscope axes orientation)
(000: Y = Y; (default)
001: Y = -Y;
010: Y = X;
011: Y = -X;
100: Y = -Z;
101: Y = Z;
Others: Y = Y)
Magnetometer Z-axis coordinates rotation (to be aligned to accelerometer/gyroscope axes orientation)
(000: Z = Y;
001: Z = -Y;
010: Z = X;
011: Z = -X;
100: Z = -Z;
101: Z = Z; (default)
Others: Z = Y)
MAG_CFG_B (D5h)
External magnetometer coordinates (X-axis) rotation register (r/w)
0
0
0
Table 310. MAG_CFG_B register
0
0
MAG_X_
AXIS2
1. This bit must be set to ‘0’ for the correct operation of the device.
MAG_X_
AXIS1
MAG_X_
AXIS0
Table 311. MAG_CFG_B register description
MAG_X_AXIS[2:0]
Magnetometer X-axis coordinates rotation (to be aligned to accelerometer/gyroscope axes orientation)
(000: X = Y;
001: X = -Y;
010: X = X; (default)
011: X = -X;
100: X = -Z;
101: X = Z;
Others: X = Y)
DS11976 - Rev 2 page 127/168
LSM6DSR
Page 1 - Embedded advanced features registers
13.2
13.2.1
Page 1 - Embedded advanced features registers
FSM_LC_TIMEOUT_L (7Ah) and FSM_LC_TIMEOUT_H (7Bh)
FSM long counter timeout register (r/w).
The long counter timeout value is an unsigned integer value (16-bit format). When the long counter value reaches this value, the FSM generates an interrupt.
FSM_LC_
TIMEOUT7
FSM_LC_
TIMEOUT6
Table 312. FSM_LC_TIMEOUT_L register
FSM_LC_
TIMEOUT5
FSM_LC_
TIMEOUT4
FSM_LC_
TIMEOUT3
FSM_LC_
TIMEOUT2
FSM_LC_
TIMEOUT1
FSM_LC_
TIMEOUT0
FSM_LC_TIMEOUT[7:0]
Table 313. FSM_LC_TIMEOUT_L register description
FSM long counter timeout value (LSbyte). Default value: 00000000
FSM_LC_
TIMEOUT15
FSM_LC_
TIMEOUT14
Table 314. FSM_LC_TIMEOUT_H register
FSM_LC_
TIMEOUT13
FSM_LC_
TIMEOUT12
FSM_LC_
TIMEOUT11
FSM_LC_
TIMEOUT10
FSM_LC_
TIMEOUT9
FSM_LC_
TIMEOUT8
13.2.2
FSM_LC_TIMEOUT[15:8]
Table 315. FSM_LC_TIMEOUT_H register description
FSM long counter timeout value (MSbyte). Default value: 00000000
FSM_PROGRAMS (7Ch)
FSM number of programs register (r/w)
FSM_N_
PROG7
FSM_N_
PROG6
Table 316. FSM_PROGRAMS register
FSM_N_
PROG5
FSM_N_
PROG4
FSM_N_
PROG3
FSM_N_
PROG2
FSM_N_
PROG1
FSM_N_
PROG0
FSM_N_PROG[7:0]
Table 317. FSM_PROGRAMS register description
Number of FSM programs; must be less than or equal to 16. Default value: 00000000
DS11976 - Rev 2 page 128/168
LSM6DSR
Page 1 - Embedded advanced features registers
13.2.3
FSM_START_ADD_L (7Eh) and FSM_START_ADD_H (7Fh)
FSM start address register (r/w). First available address is 0x033C.
FSM_
START7
FSM_
START6
Table 318. FSM_START_ADD_L register
FSM_
START5
FSM_
START4
FSM_
START3
FSM_
START2
FSM_
START1
FSM_
START0
FSM_START[7:0]
Table 319. FSM_START_ADD_L register description
FSM start address value (LSbyte). Default value: 00000000
FSM_
START15
FSM_
START14
Table 320. FSM_START_ADD_H register
FSM_
START13
FSM_
START12
FSM_
START11
FSM_
START10
FSM_
START9
FSM_
START8
13.2.4
FSM_START[15:8]
Table 321. FSM_START_ADD_H register description
FSM start address value (MSbyte). Default value: 00000000
PEDO_CMD_REG (83h)
Pedometer configuration register (r/w)
Table 322. PEDO_CMD_REG register
0
0
0
1. This bit must be set to '0' for the correct operation of the device.
CARRY_
COUNT_EN
FP_
REJECTION_EN
AD_DET_EN
Table 323. PEDO_CMD_REG register description
CARRY_COUNT_EN
FP_REJECTION_EN
Set when user wants to generate interrupt only on count overflow event.
Enables the false-positive rejection feature.
Enables the advanced detection feature.
1. This bit is effective if the PEDO_ADV_EN bit of
is set to 1 and the PEDO_FPR_ADF_DIS bit of
2. This bit is effective if the FP_REJECTION_EN bit in PEDO_CMD_REG (83h) is set to 1, the PEDO_ADV_EN bit of
is set to 1 and the PEDO_FPR_ADF_DIS bit of
is set to 0.
DS11976 - Rev 2 page 129/168
LSM6DSR
Page 1 - Embedded advanced features registers
13.2.5
PEDO_DEB_CONF (84h)
Pedometer debounce configuration register (r/w)
DEB_
STEP7
DEB_
STEP6
Table 324. PEDO_DEB_STEPS_CONF register
DEB_
STEP5
DEB_
STEP4
DEB_
STEP3
DEB_
STEP2
DEB_
STEP1
DEB_
STEP0
DEB_STEP[7:0]
Table 325. PEDO_DEB_STEPS_CONF register description
Debounce threshold. Minimum number of steps to increment the step counter (debounce).
Default value: 00001010
DS11976 - Rev 2 page 130/168
LSM6DSR
Page 1 - Embedded advanced features registers
13.2.6
PEDO_SC_DELTAT_L (D0h) and PEDO_SC_DELTAT_H (D1h)
Time period register for step detection on delta time (r/w)
PD_SC_7 PD_SC_6
Table 326. PEDO_SC_DELTAT_L register
PD_SC_5 PD_SC_4 PD_SC_3 PD_SC_2 PD_SC_1 PD_SC_0
PD_SC_15 PD_SC_14
Table 327. PEDO_SC_DELTAT_H register
PD_SC_13 PD_SC_12 PD_SC_11 PD_SC_10 PD_SC_9 PD_SC_8
PD_SC_[15:0]
Table 328. PEDO_SC_DELTAT_H/L register description
Time period value (1LSB = 6.4 ms)
DS11976 - Rev 2 page 131/168
14
LSM6DSR
Sensor hub register mapping
Sensor hub register mapping
Name
SENSOR_HUB_1
SENSOR_HUB_2
SENSOR_HUB_3
SENSOR_HUB_4
SENSOR_HUB_5
SENSOR_HUB_6
SENSOR_HUB_7
SENSOR_HUB_8
SENSOR_HUB_9
SENSOR_HUB_10
SENSOR_HUB_11
SENSOR_HUB_12
SENSOR_HUB_13
SENSOR_HUB_14
SENSOR_HUB_15
SENSOR_HUB_16
SENSOR_HUB_17
SENSOR_HUB_18
MASTER_CONFIG
SLV0_ADD
SLV0_SUBADD
SLV0_CONFIG
SLV1_ADD
SLV1_SUBADD
SLV1_CONFIG
SLV2_ADD
SLV2_SUBADD
SLV2_CONFIG
SLV3_ADD
SLV3_SUBADD
SLV3_CONFIG
DATAWRITE_SLV0
STATUS_MASTER
The table given below provides a list of the registers for the sensor hub functions available in the device and the corresponding addresses. The sensor hub registers are accessible when bit SHUB_REG_ACCESS is set to '1' in
RW
RW
RW
RW
RW
R
R
RW
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
RW
RW
RW
RW
RW
RW
RW
RW
R
Table 329. Registers address map
Type
1D
1E
1F
1A
1B
1C
20
21
22
15
16
17
18
19
12
13
14
0F
10
11
0A
0B
0C
07
08
09
0D
0E
Hex
Register address
Binary
02
03
04
05
06
00000010
00000011
00000100
00000101
00000110
00000111
00001000
00001001
00001010
00001011
00001100
00001101
00001110
00001111
00010000
00010001
00010010
00010011
00010100
00010101
00010110
00010111
00011000
00011001
00011010
00011011
00011100
00011101
00011110
00011111
00100000
00100001
00100010
Comment Default output output output output output
00000000
00000000
00000000
00000000
00000000
00000000 output output output output output output output output output output output output output
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000 output
DS11976 - Rev 2 page 132/168
LSM6DSR
Sensor hub register mapping
Registers marked as Reserved must not be changed. Writing to those registers may cause permanent damage to the device.
The content of the registers that are loaded at boot should not be changed. They contain the factory calibration values. Their content is automatically restored when the device is powered up.
DS11976 - Rev 2 page 133/168
LSM6DSR
Sensor hub register description
15
Sensor hub register description
15.1
15.2
15.3
SENSOR_HUB_1 (02h)
Sensor hub output register (r)
First byte associated to external sensors. The content of the register is consistent with the SLAVEx_CONFIG number of read operation configurations (for external sensors from x = 0 to x = 3).
Sensor
Hub1_7
Sensor
Hub1_6
Table 330. SENSOR_HUB_1 register
Sensor
Hub1_5
Sensor
Hub1_4
Sensor
Hub1_3
Sensor
Hub1_2
Sensor
Hub1_1
Sensor
Hub1_0
SensorHub1[7:0]
Table 331. SENSOR_HUB_1 register description
First byte associated to external sensors
SENSOR_HUB_2 (03h)
Sensor hub output register (r)
Second byte associated to external sensors. The content of the register is consistent with the SLAVEx_CONFIG number of read operation configurations (for external sensors from x = 0 to x = 3).
Sensor
Hub2_7
Sensor
Hub2_6
Table 332. SENSOR_HUB_2 register
Sensor
Hub2_5
Sensor
Hub2_4
Sensor
Hub2_3
Sensor
Hub2_2
Sensor
Hub2_1
Sensor
Hub2_0
SensorHub2[7:0]
Table 333. SENSOR_HUB_2 register description
Second byte associated to external sensors
SENSOR_HUB_3 (04h)
Sensor hub output register (r)
Third byte associated to external sensors. The content of the register is consistent with the SLAVEx_CONFIG number of read operation configurations (for external sensors from x = 0 to x = 3).
Sensor
Hub3_7
Sensor
Hub3_6
Table 334. SENSOR_HUB_3 register
Sensor
Hub3_5
Sensor
Hub3_4
Sensor
Hub3_3
Sensor
Hub3_2
Sensor
Hub3_1
Sensor
Hub3_0
SensorHub3[7:0]
Table 335. SENSOR_HUB_3 register description
Third byte associated to external sensors
DS11976 - Rev 2 page 134/168
LSM6DSR
SENSOR_HUB_4 (05h)
15.4
15.5
15.6
SENSOR_HUB_4 (05h)
Sensor hub output register (r)
Fourth byte associated to external sensors. The content of the register is consistent with the SLAVEx_CONFIG number of read operation configurations (for external sensors from x = 0 to x = 3).
Sensor
Hub4_7
Sensor
Hub4_6
Table 336. SENSOR_HUB_4 register
Sensor
Hub4_5
Sensor
Hub4_4
Sensor
Hub4_3
Sensor
Hub4_2
Sensor
Hub4_1
Sensor
Hub4_0
SensorHub4[7:0]
Table 337. SENSOR_HUB_4 register description
Fourth byte associated to external sensors
SENSOR_HUB_5 (06h)
Sensor hub output register (r)
Fifth byte associated to external sensors. The content of the register is consistent with the SLAVEx_CONFIG number of read operation configurations (for external sensors from x = 0 to x = 3).
Sensor
Hub5_7
Sensor
Hub5_6
Table 338. SENSOR_HUB_5 register
Sensor
Hub5_5
Sensor
Hub5_4
Sensor
Hub5_3
Sensor
Hub5_2
Sensor
Hub5_1
Sensor
Hub5_0
SensorHub5[7:0]
Table 339. SENSOR_HUB_5 register description
Fifth byte associated to external sensors
SENSOR_HUB_6 (07h)
Sensor hub output register (r)
Sixth byte associated to external sensors. The content of the register is consistent with the SLAVEx_CONFIG number of read operation configurations (for external sensors from x = 0 to x = 3).
Sensor
Hub6_7
Sensor
Hub6_6
Table 340. SENSOR_HUB_6 register
Sensor
Hub6_5
Sensor
Hub6_4
Sensor
Hub6_3
Sensor
Hub6_2
Sensor
Hub6_1
Sensor
Hub6_0
SensorHub6[7:0]
Table 341. SENSOR_HUB_6 register description
Sixth byte associated to external sensors
DS11976 - Rev 2 page 135/168
LSM6DSR
SENSOR_HUB_7 (08h)
15.7
15.8
15.9
SENSOR_HUB_7 (08h)
Sensor hub output register (r)
Seventh byte associated to external sensors. The content of the register is consistent with the SLAVEx_CONFIG number of read operation configurations (for external sensors from x = 0 to x = 3).
Sensor
Hub7_7
Sensor
Hub7_6
Table 342. SENSOR_HUB_7 register
Sensor
Hub7_5
Sensor
Hub7_4
Sensor
Hub7_3
Sensor
Hub7_2
Sensor
Hub7_1
Sensor
Hub7_0
SensorHub7[7:0]
Table 343. SENSOR_HUB_7 register description
Seventh byte associated to external sensors
SENSOR_HUB_8 (09h)
Sensor hub output register (r)
Eighth byte associated to external sensors. The content of the register is consistent with the SLAVEx_CONFIG number of read operation configurations (for external sensors from x = 0 to x = 3).
Sensor
Hub8_7
Sensor
Hub8_6
Table 344. SENSOR_HUB_8 register
Sensor
Hub8_5
Sensor
Hub8_4
Sensor
Hub8_3
Sensor
Hub8_2
Sensor
Hub8_1
Sensor
Hub8_0
SensorHub8[7:0]
Table 345. SENSOR_HUB_8 register description
Eighth byte associated to external sensors
SENSOR_HUB_9 (0Ah)
Sensor hub output register (r)
Ninth byte associated to external sensors. The content of the register is consistent with the SLAVEx_CONFIG number of read operation configurations (for external sensors from x = 0 to x = 3).
Sensor
Hub9_7
Sensor
Hub9_6
Table 346. SENSOR_HUB_9 register
Sensor
Hub9_5
Sensor
Hub9_4
Sensor
Hub9_3
Sensor
Hub9_2
Sensor
Hub9_1
Sensor
Hub9_0
SensorHub9[7:0]
Table 347. SENSOR_HUB_9 register description
Ninth byte associated to external sensors
DS11976 - Rev 2 page 136/168
LSM6DSR
SENSOR_HUB_10 (0Bh)
15.10
SENSOR_HUB_10 (0Bh)
Sensor hub output register (r)
Tenth byte associated to external sensors. The content of the register is consistent with the SLAVEx_CONFIG number of read operation configurations (for external sensors from x = 0 to x = 3).
Sensor
Hub10_7
Sensor
Hub10_6
Table 348. SENSOR_HUB_10 register
Sensor
Hub10_5
Sensor
Hub10_4
Sensor
Hub10_3
Sensor
Hub10_2
Sensor
Hub10_1
Sensor
Hub10_0
15.11
SensorHub10[7:0]
Table 349. SENSOR_HUB_10 register description
Tenth byte associated to external sensors
SENSOR_HUB_11 (0Ch)
Sensor hub output register (r)
Eleventh byte associated to external sensors. The content of the register is consistent with the SLAVEx_CONFIG number of read operation configurations (for external sensors from x = 0 to x = 3).
Sensor
Hub11_7
Sensor
Hub11_6
Table 350. SENSOR_HUB_11 register
Sensor
Hub11_5
Sensor
Hub11_4
Sensor
Hub11_3
Sensor
Hub11_2
Sensor
Hub11_1
Sensor
Hub11_0
15.12
SensorHub11[7:0]
Table 351. SENSOR_HUB_11 register description
Eleventh byte associated to external sensors
SENSOR_HUB_12 (0Dh)
Sensor hub output register (r)
Twelfth byte associated to external sensors. The content of the register is consistent with the SLAVEx_CONFIG number of read operation configurations (for external sensors from x = 0 to x = 3).
Sensor
Hub12_7
Sensor
Hub12_6
Table 352. SENSOR_HUB_12 register
Sensor
Hub12_5
Sensor
Hub12_4
Sensor
Hub12_3
Sensor
Hub12_2
Sensor
Hub12_1
Sensor
Hub12_0
SensorHub12[7:0]
Table 353. SENSOR_HUB_12 register description
Twelfth byte associated to external sensors
DS11976 - Rev 2 page 137/168
LSM6DSR
SENSOR_HUB_13 (0Eh)
15.13
SENSOR_HUB_13 (0Eh)
Sensor hub output register (r)
Thirteenth byte associated to external sensors. The content of the register is consistent with the
SLAVEx_CONFIG number of read operation configurations (for external sensors from x = 0 to x = 3).
Sensor
Hub13_7
Sensor
Hub13_6
Table 354. SENSOR_HUB_13 register
Sensor
Hub13_5
Sensor
Hub13_4
Sensor
Hub13_3
Sensor
Hub13_2
Sensor
Hub13_1
Sensor
Hub13_0
15.14
SensorHub13[7:0]
Table 355. SENSOR_HUB_13 register description
Thirteenth byte associated to external sensors
SENSOR_HUB_14 (0Fh)
Sensor hub output register (r)
Fourteenth byte associated to external sensors. The content of the register is consistent with the
SLAVEx_CONFIG number of read operation configurations (for external sensors from x = 0 to x = 3).
Sensor
Hub14_7
Sensor
Hub14_6
Table 356. SENSOR_HUB_14 register
Sensor
Hub14_5
Sensor
Hub14_4
Sensor
Hub14_3
Sensor
Hub14_2
Sensor
Hub14_1
Sensor
Hub14_0
15.15
SensorHub14[7:0]
Table 357. SENSOR_HUB_14 register description
Fourteenth byte associated to external sensors
SENSOR_HUB_15 (10h)
Sensor hub output register (r)
Fifteenth byte associated to external sensors. The content of the register is consistent with the SLAVEx_CONFIG number of read operation configurations (for external sensors from x = 0 to x = 3).
Sensor
Hub15_7
Sensor
Hub15_6
Table 358. SENSOR_HUB_15 register
Sensor
Hub15_5
Sensor
Hub15_4
Sensor
Hub15_3
Sensor
Hub15_2
Sensor
Hub15_1
Sensor
Hub15_0
SensorHub15[7:0]
Table 359. SENSOR_HUB_15 register description
Fifteenth byte associated to external sensors
DS11976 - Rev 2 page 138/168
LSM6DSR
SENSOR_HUB_16 (11h)
15.16
SENSOR_HUB_16 (11h)
Sensor hub output register (r)
Sixteenth byte associated to external sensors. The content of the register is consistent with the SLAVEx_CONFIG number of read operation configurations (for external sensors from x = 0 to x = 3).
Sensor
Hub16_7
Sensor
Hub16_6
Table 360. SENSOR_HUB_16 register
Sensor
Hub16_5
Sensor
Hub16_4
Sensor
Hub16_3
Sensor
Hub16_2
Sensor
Hub16_1
Sensor
Hub16_0
15.17
SensorHub16[7:0]
Table 361. SENSOR_HUB_16 register description
Sixteenth byte associated to external sensors
SENSOR_HUB_17 (12h)
Sensor hub output register (r)
Seventeenth byte associated to external sensors. The content of the register is consistent with the
SLAVEx_CONFIG number of read operation configurations (for external sensors from x = 0 to x = 3).
Sensor
Hub17_7
Sensor
Hub17_6
Table 362. SENSOR_HUB_17 register
Sensor
Hub17_5
Sensor
Hub17_4
Sensor
Hub17_3
Sensor
Hub17_2
Sensor
Hub17_1
Sensor
Hub17_0
15.18
SensorHub17[7:0]
Table 363. SENSOR_HUB_17 register description
Seventeenth byte associated to external sensors
SENSOR_HUB_18 (13h)
Sensor hub output register (r)
Eighteenth byte associated to external sensors. The content of the register is consistent with the
SLAVEx_CONFIG number of read operation configurations (for external sensors from x = 0 to x = 3).
Sensor
Hub18_7
Sensor
Hub18_6
Table 364. SENSOR_HUB_18 register
Sensor
Hub18_5
Sensor
Hub18_4
Sensor
Hub18_3
Sensor
Hub18_2
Sensor
Hub18_1
Sensor
Hub18_0
SensorHub18[7:0]
Table 365. SENSOR_HUB_18 register description
Eighteenth byte associated to external sensors
DS11976 - Rev 2 page 139/168
LSM6DSR
MASTER_CONFIG (14h)
15.19
MASTER_CONFIG (14h)
Master configuration register (r/w)
RST_
MASTER_REGS
WRITE_
ONCE
Table 366. MASTER_CONFIG register
START_
CONFIG
PASS_
THROUGH_MODE
SHUB_
PU_EN
MASTER
_ON
AUX_SENS
_ON1
AUX_SENS
_ON0
Table 367. MASTER_CONFIG register description
RST_MASTER_REGS
WRITE_ONCE
START_CONFIG
PASS_THROUGH_MODE
SHUB_PU_EN
MASTER_ON
AUX_SENS_ON[1:0]
Reset Master logic and output registers. Must be set to ‘1’ and then set it to ‘0’. Default value: 0
Slave 0 write operation is performed only at the first sensor hub cycle.
Default value: 0
(0: write operation for each sensor hub cycle;
1: write operation only for the first sensor hub cycle)
Sensor hub trigger signal selection. Default value: 0
(0: sensor hub trigger signal is the accelerometer/gyro data-ready;
1: sensor hub trigger signal external from INT2 pin)
I²C interface pass-through. Default value: 0
(0: pass-through disabled;
1: pass-through enabled, main I²C line is short-circuited with the auxiliary line)
Master I²C pull-up enable. Default value: 0
(0: internal pull-up on auxiliary I²C line disabled;
1: internal pull-up on auxiliary I²C line enabled)
Sensor hub I²C master enable. Default: 0
(0: master I²C of sensor hub disabled; 1: master I²C of sensor hub enabled)
Number of external sensors to be read by the sensor hub.
(00: one sensor (default);
01: two sensors;
10: three sensors;
11: four sensors)
DS11976 - Rev 2 page 140/168
LSM6DSR
SLV0_ADD (15h)
15.20
SLV0_ADD (15h)
I²C slave address of the first external sensor (Sensor 1) register (r/w) slave0_ add6 slave0_ add5 slave0_ add4
Table 368. SLV0_ADD register slave0_ add3 slave0_ add2 slave0_ add1 slave0_ add0 rw_0
15.21
slave0_add[6:0] rw_0
Table 369. SLV0_ADD register description
I²C slave address of Sensor1 that can be read by the sensor hub.
Default value: 0000000
Read/write operation on Sensor 1. Default value: 0
(0: write operation; 1: read operation)
SLV0_SUBADD (16h)
Address of register on the first external sensor (Sensor 1) register (r/w) slave0_ reg7 slave0_ reg6 slave0_ reg5
Table 370. SLV0_SUBADD register slave0_ reg4 slave0_ reg3 slave0_ reg2 slave0_ reg1 slave0_ reg0
15.22
Table 371. SLV0_SUBADD register description slave0_reg[7:0]
Address of register on Sensor1 that has to be read/written according to the rw_0 bit value in
(15h) . Default value: 00000000
SLAVE0_CONFIG (17h)
First external sensor (Sensor1) configuration and sensor hub settings register (r/w)
Table 372. SLAVE0_CONFIG register
SHUB_
ODR_1
SHUB_
ODR_0
0
0
BATCH_EXT_
SENS_0_EN
1. This bit must be set to ‘0’ for the correct operation of the device.
Slave0_ numop2
Slave0_ numop1
Slave0_ numop0
SHUB_ODR_[1:0]
BATCH_EXT_SENS_0_EN
Slave0_numop[2:0]
Table 373. SLAVE0_CONFIG register description
Rate at which the master communicates. Default value: 00
(00: 104 Hz (or at the maximum ODR between the accelerometer and gyro if it is less than 104 Hz);
01: 52 Hz (or at the maximum ODR between the accelerometer and gyro if it is less than 52 Hz);
10: 26 Hz (or at the maximum ODR between the accelerometer and gyro if it is less than 26 Hz);
11: 12.5 Hz (or at the maximum ODR between the accelerometer and gyro if it is less than 12.5 Hz)
Enable FIFO data batching of first slave. Default value: 0
Number of read operations on Sensor 1. Default value: 000
DS11976 - Rev 2 page 141/168
LSM6DSR
SLV1_ADD (18h)
15.23
SLV1_ADD (18h)
I²C slave address of the second external sensor (Sensor 2) register (r/w)
Slave1_ add6
Slave1_ add5
Slave1_ add4
Table 374. SLV1_ADD register
Slave1_ add3
Slave1_ add2
Slave1_ add1
Slave1_ add0 r_1
15.24
Slave1_add[6:0] r_1
Table 375. SLV1_ADD register description
I²C slave address of Sensor 2 that can be read by the sensor hub.
Default value: 0000000
Read operation on Sensor 2 enable. Default value: 0
(0: read operation disabled; 1: read operation enabled)
SLV1_SUBADD (19h)
Address of register on the second external sensor (Sensor 2) register (r/w)
Slave1_ reg7
Slave1_ reg6
Slave1_ reg5
Table 376. SLV1_SUBADD register
Slave1_ reg4
Slave1_ reg3
Slave1_ reg2
Slave1_ reg1
Slave1_ reg0
15.25
Table 377. SLV1_SUBADD register description
Slave1_reg[7:0]
SLAVE1_CONFIG (1Ah)
Second external sensor (Sensor 2) configuration register (r/w)
Table 378. SLAVE1_CONFIG register
0
0
0
0
BATCH_EXT_
SENS_1_EN
1. This bit must be set to ‘0’ for the correct operation of the device.
Slave1_ numop2
BATCH_EXT_SENS_1_EN
Slave1_numop[2:0]
Slave1_ numop1
Table 379. SLAVE1_CONFIG register description
Enable FIFO data batching of second slave. Default value: 0
Number of read operations on Sensor 2. Default value: 000
Slave1_ numop0
DS11976 - Rev 2 page 142/168
LSM6DSR
SLV2_ADD (1Bh)
15.26
SLV2_ADD (1Bh)
I²C slave address of the third external sensor (Sensor 3) register (r/w)
Slave2_ add6
Slave2_ add5
Slave2_ add4
Table 380. SLV2_ADD register
Slave2_ add3
Slave2_ add2
Slave2_ add1
Slave2_ add0 r_2
15.27
Slave2_add[6:0] r_2
Table 381. SLV2_ADD register description
I²C slave address of Sensor 3 that can be read by the sensor hub.
Read operation on Sensor 3 enable. Default value: 0
(0: read operation disabled; 1: read operation enabled)
SLV2_SUBADD (1Ch)
Address of register on the third external sensor (Sensor 3) register (r/w)
Slave2_ reg7
Slave2_ reg6
Slave2_ reg5
Table 382. SLV2_SUBADD register
Slave2_ reg4
Slave2_ reg3
Slave2_ reg2
Slave2_ reg1
Slave2_ reg0
15.28
Table 383. SLV2_SUBADD register description
Slave2_reg[7:0]
.
SLAVE2_CONFIG (1Dh)
Third external sensor (Sensor 3) configuration register (r/w)
Table 384. SLAVE2_CONFIG register
0
0
0
0
BATCH_EXT_
SENS_2_EN
1. This bit must be set to ‘0’ for the correct operation of the device.
Slave2_ numop2
BATCH_EXT_SENS_2_EN
Slave2_numop[2:0]
Table 385. SLAVE2_CONFIG register description
Enable FIFO data batching of third slave. Default value: 0
Number of read operations on Sensor 3. Default value: 000
Slave2_ numop1
Slave2_ numop0
DS11976 - Rev 2 page 143/168
LSM6DSR
SLV3_ADD (1Eh)
15.29
SLV3_ADD (1Eh)
I²C slave address of the fourth external sensor (Sensor 4) register (r/w)
Slave3_ add6
Slave3_ add5
Slave3_ add4
Table 386. SLV3_ADD register
Slave3_ add3
Slave3_ add2
Slave3_ add1
Slave3_ add0 r_3
15.30
Slave3_add[6:0] r_3
Table 387. SLV3_ADD register description
I²C slave address of Sensor 4 that can be read by the sensor hub.
Read operation on Sensor 4 enable. Default value: 0
(0: read operation disabled; 1: read operation enabled)
SLV3_SUBADD (1Fh)
Address of register on the fourth external sensor (Sensor 4) register (r/w)
Slave3_ reg7
Slave3_ reg6
Slave3_ reg5
Table 388. SLV3_SUBADD register
Slave3_ reg4
Slave3_ reg3
Slave3_ reg2
Slave3_ reg1
Slave3_ reg0
15.31
Table 389. SLV3_SUBADD register description
Slave3_reg[7:0] Address of register on Sensor 4 that has to be read according to the r_3 bit value in
SLAVE3_CONFIG (20h)
Fourth external sensor (Sensor 4) configuration register (r/w)
Table 390. SLAVE3_CONFIG register
0
0
0
0
BATCH_EXT_
SENS_3_EN
1. This bit must be set to ‘0’ for the correct operation of the device.
Slave3_ numop2
Slave3_ numop1
Slave3_ numop0
BATCH_EXT_SENS_3_EN
Slave3_numop[2:0]
Table 391. SLAVE3_CONFIG register description
Enable FIFO data batching of fourth slave. Default value: 0
Number of read operations on Sensor 4. Default value: 000
DS11976 - Rev 2 page 144/168
LSM6DSR
DATAWRITE_SLV0 (21h)
15.32
DATAWRITE_SLV0 (21h)
Data to be written into the slave device register (r/w)
Slave0_ dataw7
Slave0_ dataw6
Table 392. DATAWRITE_SLV0 register
Slave0_ dataw5
Slave0_ dataw4
Slave0_ dataw3
Slave0_ dataw2
Slave0_ dataw1
Slave0_ dataw0
15.33
Slave0_dataw[7:0]
Table 393. DATAWRITE_SLV0 register description
Data to be written into the slave 0 device according to the rw_0 bit in register SLV0_ADD (15h)
.
Default value: 00000000
STATUS_MASTER (22h)
Sensor hub source register (r)
WR_ONCE
_DONE
SLAVE3_
NACK
Table 394. STATUS_MASTER register
SLAVE2_
NACK
SLAVE1_
NACK
SLAVE0_
NACK
0 0
SENS_HUB
_ENDOP
Table 395. STATUS_MASTER register description
WR_ONCE_DONE
When the bit WRITE_ONCE in
is configured as 1, this bit is set to 1 when the write operation on slave 0 has been performed and completed. Default value: 0
This bit is set to 1 if Not acknowledge occurs on slave 3 communication. Default value: 0 SLAVE3_NACK
SLAVE2_NACK
SLAVE1_NACK
SLAVE0_NACK
This bit is set to 1 if Not acknowledge occurs on slave 2 communication. Default value: 0
This bit is set to 1 if Not acknowledge occurs on slave 1 communication. Default value: 0
This bit is set to 1 if Not acknowledge occurs on slave 0 communication. Default value: 0
SENS_HUB_ENDOP
Sensor hub communication status. Default value: 0
(0: sensor hub communication not concluded;
1: sensor hub communication concluded)
DS11976 - Rev 2 page 145/168
16
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.
Land pattern and soldering recommendations are available at www.st.com/mems .
LSM6DSR
Soldering information
DS11976 - Rev 2 page 146/168
LSM6DSR
Package information
17
17.1
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.
LGA-14L package information
Figure 26. LGA-14L 2.5 x 3.0 x 0.86 mm package outline and mechanical data
Pin1 indicator W H 0.5
Pin1 indicator
4x (0.1)
TOP VIEW
14x 0.25±0.05
1
BOTTOM VIEW
14x 0.475±0.05
L e
ITEM n g t h [ L ]
W i
H e i d t g h [ h t [
W
H ]
]
Dimensions are in millimeter unless otherwise specified
General tolerance is +/-0.1mm unless otherwise specified
OUTER DIMENSIONS
DIMENSION [mm]
2 .
5 0
3 .
0 .
0
8
0
6
TOLERANCE [mm]
± 0 .
1
±
M
0 .
1
A X
DM00249496_1
DS11976 - Rev 2 page 147/168
17.2
LGA-14 packing information
Figure 27. Carrier tape information for LGA-14 package
LSM6DSR
LGA-14 packing information
Figure 28. LGA-14 package orientation in carrier tape
DS11976 - Rev 2 page 148/168
DS11976 - Rev 2
LSM6DSR
LGA-14 packing information
A
Figure 29. Reel information for carrier tape of LGA-14 package
T
40mm min.
Access hole at slot location
B
C
D N
Full radius
G measured at hub
Tape slot in core for tape start
2.5mm min. width
Table 396. Reel dimensions for carrier tape of LGA-14 package
Reel dimensions (mm)
A (max)
B (min)
C
D (min)
N (min)
G
T (max)
330
1.5
13 ±0.25
20.2
60
12.4 +2/-0
18.4
page 149/168
LSM6DSR
Revision history
Date
25-Mar-2019
18-Nov-2020 2
Table 397. Document revision history
Version
1
Changes
Initial release
Updated linear acceleration self-test output change in Table 2. Mechanical characteristics
Updated Table 6. I²C slave timing values
and
and
Updated Table 50. Accelerometer ODR selection
Updated description of bit 7 in
Updated description of bits in
Updated bit 0 in I3C_BUS_AVB (62h)
DS11976 - Rev 2 page 150/168
LSM6DSR
Contents
Contents
DS11976 - Rev 2 page 151/168
LSM6DSR
Contents
DS11976 - Rev 2 page 152/168
LSM6DSR
Contents
DS11976 - Rev 2 page 153/168
LSM6DSR
Contents
TIMESTAMP0 (40h), TIMESTAMP1 (41h), TIMESTAMP2 (42h), and TIMESTAMP3 (43h) 73
FIFO_DATA_OUT_X_L (79h) and FIFO_DATA_OUT_X_H (7Ah) . . . . . . . . . . . . . . . . . . . . . 89
FIFO_DATA_OUT_Y_L (7Bh) and FIFO_DATA_OUT_Y_H (7Ch) . . . . . . . . . . . . . . . . . . . . . 89
FIFO_DATA_OUT_Z_L (7Dh) and FIFO_DATA_OUT_Z_H (7Eh) . . . . . . . . . . . . . . . . . . . . . 89
DS11976 - Rev 2 page 154/168
LSM6DSR
Contents
FSM_LONG_COUNTER_L (48h) and FSM_LONG_COUNTER_H (49h) . . . . . . . . . . . . . . 105
DS11976 - Rev 2 page 155/168
LSM6DSR
Contents
STEP_COUNTER_L (62h) and STEP_COUNTER_H (63h) . . . . . . . . . . . . . . . . . . . . . . . . . 115
MAG_SENSITIVITY_L (BAh) and MAG_SENSITIVITY_H (BBh) . . . . . . . . . . . . . . . . . . 121
FSM_LC_TIMEOUT_L (7Ah) and FSM_LC_TIMEOUT_H (7Bh). . . . . . . . . . . . . . . . . . . 128
FSM_START_ADD_L (7Eh) and FSM_START_ADD_H (7Fh) . . . . . . . . . . . . . . . . . . . . 129
DS11976 - Rev 2 page 156/168
LSM6DSR
Contents
PEDO_SC_DELTAT_L (D0h) and PEDO_SC_DELTAT_H (D1h) . . . . . . . . . . . . . . . . . . 131
DS11976 - Rev 2 page 157/168
LSM6DSR
Contents
DS11976 - Rev 2 page 158/168
LSM6DSR
List of tables
List of tables
DS11976 - Rev 2 page 159/168
LSM6DSR
List of tables
DS11976 - Rev 2 page 160/168
LSM6DSR
List of tables
DS11976 - Rev 2 page 161/168
LSM6DSR
List of tables
DS11976 - Rev 2 page 162/168
LSM6DSR
List of tables
DS11976 - Rev 2 page 163/168
LSM6DSR
List of tables
DS11976 - Rev 2 page 164/168
LSM6DSR
List of tables
DS11976 - Rev 2 page 165/168
LSM6DSR
List of tables
DS11976 - Rev 2 page 166/168
LSM6DSR
List of figures
List of figures
DS11976 - Rev 2 page 167/168
LSM6DSR
IMPORTANT NOTICE – PLEASE READ CAREFULLY
STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement.
Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of
Purchasers’ products.
No license, express or implied, to any intellectual property right is granted by ST herein.
Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.
ST and the ST logo are trademarks of ST. For additional information about ST trademarks, please refer to www.st.com/trademarks . All other product or service names are the property of their respective owners.
Information in this document supersedes and replaces information previously supplied in any prior versions of this document.
© 2020 STMicroelectronics – All rights reserved
DS11976 - Rev 2 page 168/168
Download
Annonce