0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
LSM6DSRTR

LSM6DSRTR

  • 厂商:

    STMICROELECTRONICS(意法半导体)

  • 封装:

    LGA14_2.5X3MM

  • 描述:

    IMU - 惯性测量单元 iNEMO 惯性模块:3D 加速度计和 3D 陀螺仪

  • 数据手册
  • 价格&库存
LSM6DSRTR 数据手册
LSM6DSR iNEMO inertial module: always-on 3D accelerometer and 3D gyroscope Datasheet - production data LGA-14L (2.5 x 3 x 0.83 mm) typ. 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 I3CSM serial interface with main processor data synchronization  Supports sensor synchronization S4S for Qualcomm, full spec compliant (I²C,MIPI I3CSM, 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  Motion tracking and gesture detection  Virtual and augmented reality  OIS for camera applications  Sensor hub  Indoor navigation  IoT and connected devices March 2019 This is information on a product in full production. Sports applications  Vibration monitoring and compensation  Drones   Robotics High-precision systems Description  Applications  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. 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. Table 1. Device summary Part number Temp. range [°C] LSM6DSR -40 to +85 LSM6DSRTR -40 to +85 DocID030186 Rev 1 Package LGA-14L (2.5x3x0.83 mm) Packing Tray Tape & Reel 1/166 www.st.com Contents LSM6DSR Contents 1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2 Embedded low-power features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3 2.1 Tilt detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 2.2 Significant Motion Detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 2.3 Finite State Machine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.1 4 5 Module specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 4.1 Mechanical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 4.2 Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 4.3 Temperature sensor characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 4.4 Communication interface characteristics . . . . . . . . . . . . . . . . . . . . . . . . . 31 4.4.1 SPI - serial peripheral interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 4.4.2 I²C - inter-IC control interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 4.5 Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 4.6 Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 4.6.1 Sensitivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 4.6.2 Zero-g and zero-rate level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Digital interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 5.1 5.2 2/166 Pin connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 I²C/SPI interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 5.1.1 I²C serial interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 5.1.2 SPI bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 MIPI I3CSM interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 5.2.1 MIPI I3CSM slave interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 5.2.2 MIPI I3CSM CCC supported commands . . . . . . . . . . . . . . . . . . . . . . . . 42 5.3 I²C/I3C coexistence in LSM6DSR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 5.4 Master I²C interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 5.5 Auxiliary SPI interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 DocID030186 Rev 1 LSM6DSR 6 7 Contents Functionality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 6.1 Operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 6.2 Gyroscope power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 6.3 Accelerometer power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 6.4 Block diagram of filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 6.4.1 Block diagrams of the accelerometer filters . . . . . . . . . . . . . . . . . . . . . . 47 6.4.2 Block diagrams of the gyroscope filters . . . . . . . . . . . . . . . . . . . . . . . . . 49 6.5 OIS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 6.6 FIFO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 6.6.1 Bypass mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 6.6.2 FIFO mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 6.6.3 Continuous mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 6.6.4 Continuous-to-FIFO mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 6.6.5 Bypass-to-Continuous mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 6.6.6 Bypass-to-FIFO mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 6.6.7 FIFO reading procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 Application hints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 7.1 LSM6DSR electrical connections in Mode 1 . . . . . . . . . . . . . . . . . . . . . . 57 7.2 LSM6DSR electrical connections in Mode 2 . . . . . . . . . . . . . . . . . . . . . . 58 7.3 LSM6DSR electrical connections in Mode 3 and Mode 4 . . . . . . . . . . . . 59 8 Register mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 9 Register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 9.1 FUNC_CFG_ACCESS (01h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 9.2 PIN_CTRL (02h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 9.3 S4S_TPH_L (04h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 9.4 S4S_TPH_H (05h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 9.5 S4S_RR (06h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 9.6 FIFO_CTRL1 (07h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 9.7 FIFO_CTRL2 (08h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 9.8 FIFO_CTRL3 (09h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 9.9 FIFO_CTRL4 (0Ah) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 9.10 COUNTER_BDR_REG1 (0Bh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 DocID030186 Rev 1 3/166 166 Contents 4/166 LSM6DSR 9.11 COUNTER_BDR_REG2 (0Ch) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 9.12 INT1_CTRL (0Dh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 9.13 INT2_CTRL (0Eh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 9.14 WHO_AM_I (0Fh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 9.15 CTRL1_XL (10h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 9.16 CTRL2_G (11h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 9.17 CTRL3_C (12h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 9.18 CTRL4_C (13h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 9.19 CTRL5_C (14h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 9.20 CTRL6_C (15h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 9.21 CTRL7_G (16h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 9.22 CTRL8_XL (17h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 9.23 CTRL9_XL (18h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 9.24 CTRL10_C (19h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 9.25 ALL_INT_SRC (1Ah) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 9.26 WAKE_UP_SRC (1Bh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 9.27 TAP_SRC (1Ch) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 9.28 D6D_SRC (1Dh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 9.29 STATUS_REG (1Eh) / STATUS_SPIAux (1Eh) . . . . . . . . . . . . . . . . . . . . 86 9.30 OUT_TEMP_L (20h), OUT_TEMP_H (21h) . . . . . . . . . . . . . . . . . . . . . . . 86 9.31 OUTX_L_G (22h) and OUTX_H_G (23h) . . . . . . . . . . . . . . . . . . . . . . . . 87 9.32 OUTY_L_G (24h) and OUTY_H_G (25h) . . . . . . . . . . . . . . . . . . . . . . . . 87 9.33 OUTZ_L_G (26h) and OUTZ_H_G (27h) . . . . . . . . . . . . . . . . . . . . . . . . . 88 9.34 OUTX_L_A (28h) and OUTX_H_A (29h) . . . . . . . . . . . . . . . . . . . . . . . . . 88 9.35 OUTY_L_A (2Ah) and OUTY_H_A (2Bh) . . . . . . . . . . . . . . . . . . . . . . . . 89 9.36 OUTZ_L_A (2Ch) and OUTZ_H_A (2Dh) . . . . . . . . . . . . . . . . . . . . . . . . 89 9.37 EMB_FUNC_STATUS_MAINPAGE (35h) . . . . . . . . . . . . . . . . . . . . . . . . 90 9.38 FSM_STATUS_A_MAINPAGE (36h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 9.39 FSM_STATUS_B_MAINPAGE (37h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 9.40 STATUS_MASTER_MAINPAGE (39h) . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 9.41 FIFO_STATUS1 (3Ah) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 9.42 FIFO_STATUS2 (3Bh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 DocID030186 Rev 1 LSM6DSR Contents 9.43 TIMESTAMP0 (40h), TIMESTAMP1 (41h), TIMESTAMP2 (42h), and TIMESTAMP3 (43h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 9.44 TAP_CFG0 (56h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 9.45 TAP_CFG1 (57h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 9.46 TAP_CFG2 (58h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 9.47 TAP_THS_6D (59h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 9.48 INT_DUR2 (5Ah) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 9.49 WAKE_UP_THS (5Bh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 9.50 WAKE_UP_DUR (5Ch) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 9.51 FREE_FALL (5Dh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 9.52 MD1_CFG (5Eh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 9.53 MD2_CFG (5Fh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 9.54 S4S_ST_CMD_CODE (60h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 9.55 S4S_DT_REG (61h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 9.56 I3C_BUS_AVB (62h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 9.57 INTERNAL_FREQ_FINE (63h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 9.58 INT_OIS (6Fh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 9.59 CTRL1_OIS (70h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 9.60 CTRL2_OIS (71h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 9.61 CTRL3_OIS (72h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 9.62 X_OFS_USR (73h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 9.63 Y_OFS_USR (74h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 9.64 Z_OFS_USR (75h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 9.65 FIFO_DATA_OUT_TAG (78h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 9.66 FIFO_DATA_OUT_X_L (79h) and FIFO_DATA_OUT_X_H (7Ah) . . . . . 109 9.67 FIFO_DATA_OUT_Y_L (7Bh) and FIFO_DATA_OUT_Y_H (7Ch) . . . . 109 9.68 FIFO_DATA_OUT_Z_L (7Dh) and FIFO_DATA_OUT_Z_H (7Eh) . . . . . 109 10 Embedded functions register mapping . . . . . . . . . . . . . . . . . . . . . . . . 110 11 Embedded functions register description . . . . . . . . . . . . . . . . . . . . . 112 11.1 PAGE_SEL (02h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 11.2 ADV_PEDO (03h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 11.3 EMB_FUNC_EN_A (04h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 DocID030186 Rev 1 5/166 166 Contents LSM6DSR 11.4 EMB_FUNC_EN_B (05h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 11.5 PAGE_ADDRESS (08h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 11.6 PAGE_VALUE (09h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 11.7 EMB_FUNC_INT1 (0Ah) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 11.8 FSM_INT1_A (0Bh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 11.9 FSM_INT1_B (0Ch) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 11.10 EMB_FUNC_INT2 (0Eh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 11.11 FSM_INT2_A (0Fh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 11.12 FSM_INT2_B (10h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 11.13 EMB_FUNC_STATUS (12h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 11.14 FSM_STATUS_A (13h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 11.15 FSM_STATUS_B (14h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 11.16 PAGE_RW (17h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 11.17 EMB_FUNC_FIFO_CFG (44h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 11.18 FSM_ENABLE_A (46h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 11.19 FSM_ENABLE_B (47h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 11.20 FSM_LONG_COUNTER_L (48h) and FSM_LONG_COUNTER_H (49h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 11.21 FSM_LONG_COUNTER_CLEAR (4Ah) . . . . . . . . . . . . . . . . . . . . . . . . 124 11.22 FSM_OUTS1 (4Ch) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 11.23 FSM_OUTS2 (4Dh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 11.24 FSM_OUTS3 (4Eh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 11.25 FSM_OUTS4 (4Fh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 11.26 FSM_OUTS5 (50h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 11.27 FSM_OUTS6 (51h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 11.28 FSM_OUTS7 (52h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 11.29 FSM_OUTS8 (53h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 11.30 FSM_OUTS9 (54h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 11.31 FSM_OUTS10 (55h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 11.32 FSM_OUTS11 (56h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 11.33 FSM_OUTS12 (57h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 11.34 FSM_OUTS13 (58h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 11.35 FSM_OUTS14 (59h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 6/166 DocID030186 Rev 1 LSM6DSR Contents 11.36 FSM_OUTS15 (5Ah) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 11.37 FSM_OUTS16 (5Bh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132 11.38 EMB_FUNC_ODR_CFG_B (5Fh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132 11.39 STEP_COUNTER_L (62h) and STEP_COUNTER_H (63h) . . . . . . . . . 133 11.40 EMB_FUNC_SRC (64h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 11.41 EMB_FUNC_INIT_A (66h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 11.42 EMB_FUNC_INIT_B (67h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 12 Embedded advanced features pages . . . . . . . . . . . . . . . . . . . . . . . . . 135 13 Embedded advanced features register description . . . . . . . . . . . . . . 138 13.1 Page 0 - Embedded advanced features registers . . . . . . . . . . . . . . . . . 138 13.1.1 MAG_SENSITIVITY_L (BAh) and MAG_SENSITIVITY_H (BBh) . . . . 138 13.1.2 MAG_OFFX_L (C0h) and MAG_OFFX_H (C1h) . . . . . . . . . . . . . . . . . 138 13.1.3 MAG_OFFY_L (C2h) and MAG_OFFY_H (C3h) . . . . . . . . . . . . . . . . . 139 13.1.4 MAG_OFFZ_L (C4h) and MAG_OFFZ_H (C5h) . . . . . . . . . . . . . . . . . 139 13.1.5 MAG_SI_XX_L (C6h) and MAG_SI_XX_H (C7h) . . . . . . . . . . . . . . . . 140 13.1.6 MAG_SI_XY_L (C8h) and MAG_SI_XY_H (C9h) . . . . . . . . . . . . . . . . 140 13.1.7 MAG_SI_XZ_L (CAh) and MAG_SI_XZ_H (CBh) . . . . . . . . . . . . . . . . 141 13.1.8 MAG_SI_YY_L (CCh) and MAG_SI_YY_H (CDh) . . . . . . . . . . . . . . . 141 13.1.9 MAG_SI_YZ_L (CEh) and MAG_SI_YZ_H (CFh) . . . . . . . . . . . . . . . . 142 13.1.10 MAG_SI_ZZ_L (D0h) and MAG_SI_ZZ_H (D1h) . . . . . . . . . . . . . . . . 142 13.1.11 MAG_CFG_A (D4h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 13.1.12 MAG_CFG_B (D5h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 13.2 Page 1 - Embedded advanced features registers . . . . . . . . . . . . . . . . . 144 13.2.1 FSM_LC_TIMEOUT_L (7Ah) and FSM_LC_TIMEOUT_H (7Bh) . . . . 144 13.2.2 FSM_PROGRAMS (7Ch) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 13.2.3 FSM_START_ADD_L (7Eh) and FSM_START_ADD_H (7Fh) . . . . . . 145 13.2.4 PEDO_CMD_REG (83h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 13.2.5 PEDO_DEB_STEPS_CONF (84h) . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 13.2.6 PEDO_SC_DELTAT_L (D0h) & PEDO_SC_DELTAT_H (D1h) . . . . . . 146 14 Sensor hub register mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147 15 Sensor hub register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 15.1 SENSOR_HUB_1 (02h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 DocID030186 Rev 1 7/166 166 Contents LSM6DSR 15.2 SENSOR_HUB_2 (03h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 15.3 SENSOR_HUB_3 (04h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 15.4 SENSOR_HUB_4 (05h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 15.5 SENSOR_HUB_5 (06h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 15.6 SENSOR_HUB_6 (07h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 15.7 SENSOR_HUB_7 (08h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 15.8 SENSOR_HUB_8 (09h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 15.9 SENSOR_HUB_9 (0Ah) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 15.10 SENSOR_HUB_10 (0Bh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 15.11 SENSOR_HUB_11 (0Ch) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 15.12 SENSOR_HUB_12 (0Dh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 15.13 SENSOR_HUB_13 (0Eh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 15.14 SENSOR_HUB_14 (0Fh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 15.15 SENSOR_HUB_15 (10h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 15.16 SENSOR_HUB_16 (11h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 15.17 SENSOR_HUB_17 (12h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 15.18 SENSOR_HUB_18 (13h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 15.19 MASTER_CONFIG (14h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 15.20 SLV0_ADD (15h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 15.21 SLV0_SUBADD (16h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 15.22 SLAVE0_CONFIG (17h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 15.23 SLV1_ADD (18h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 15.24 SLV1_SUBADD (19h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 15.25 SLAVE1_CONFIG (1Ah) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 15.26 SLV2_ADD (1Bh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 15.27 SLV2_SUBADD (1Ch) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 15.28 SLAVE2_CONFIG (1Dh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 15.29 SLV3_ADD (1Eh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 15.30 SLV3_SUBADD (1Fh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 15.31 SLAVE3_CONFIG (20h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 15.32 DATAWRITE_SLV0 (21h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 15.33 STATUS_MASTER (22h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 8/166 DocID030186 Rev 1 LSM6DSR Contents 16 Soldering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 17 Package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162 18 17.1 LGA-14L package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162 17.2 LGA-14 packing information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165 DocID030186 Rev 1 9/166 166 List of tables LSM6DSR List of tables Table 1. Table 2. Table 3. Table 4. Table 5. Table 6. Table 7. Table 8. Table 9. Table 10. Table 11. Table 12. Table 13. Table 14. Table 15. Table 16. Table 17. Table 18. Table 19. Table 20. Table 21. Table 22. Table 23. Table 24. Table 25. Table 26. Table 27. Table 28. Table 29. Table 30. Table 31. Table 32. Table 33. Table 34. Table 35. Table 36. Table 37. Table 38. Table 39. Table 40. Table 41. Table 42. Table 43. Table 44. Table 45. Table 46. Table 47. Table 48. 10/166 Device summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Mechanical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Temperature sensor characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 SPI slave timing values (in mode 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 I²C slave timing values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Serial interface pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 I²C terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 SAD+Read/Write patterns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Transfer when master is writing one byte to slave . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Transfer when master is writing multiple bytes to slave . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Transfer when master is receiving (reading) one byte of data from slave . . . . . . . . . . . . . 37 Transfer when master is receiving (reading) multiple bytes of data from slave . . . . . . . . . 37 MIPI I3CSM CCC commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 Master I²C pin details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 Auxiliary SPI pin details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 Gyroscope LPF2 bandwidth selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 Internal pin status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Registers address map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 FUNC_CFG_ACCESS register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 FUNC_CFG_ACCESS register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 PIN_CTRL register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 PIN_CTRL register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 S4S_TPH_L register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 S4S_TPH_L register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 S4S_TPH_H register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 S4S_TPH_H register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 S4S_RR register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 S4S_RR register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 FIFO_CTRL1 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 FIFO_CTRL1 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 FIFO_CTRL2 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 FIFO_CTRL2 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 FIFO_CTRL3 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 FIFO_CTRL3 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 FIFO_CTRL4 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 FIFO_CTRL4 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 COUNTER_BDR_REG1 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 COUNTER_BDR_REG1 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 COUNTER_BDR_REG2 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 COUNTER_BDR_REG2 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 INT1_CTRL register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 INT1_CTRL register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 INT2_CTRL register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 INT2_CTRL register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 WhoAmI register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 DocID030186 Rev 1 LSM6DSR List of tables Table 49. Table 50. Table 51. Table 52. Table 53. Table 54. Table 55. Table 56. Table 57. Table 58. Table 59. Table 60. Table 61. Table 62. Table 63. Table 64. Table 65. Table 66. Table 67. Table 68. Table 69. Table 70. Table 71. Table 72. Table 73. Table 74. Table 75. Table 76. Table 77. Table 78. Table 79. Table 80. Table 81. Table 82. Table 83. Table 84. Table 85. Table 86. Table 87. Table 88. Table 89. Table 90. Table 91. Table 92. Table 93. Table 94. Table 95. Table 96. Table 97. Table 98. Table 99. Table 100. CTRL1_XL register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 CTRL1_XL register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Accelerometer ODR register setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 CTRL2_G register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 CTRL2_G register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 Gyroscope ODR configuration setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 CTRL3_C register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 CTRL3_C register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 CTRL4_C register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 CTRL4_C register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 CTRL5_C register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 CTRL5_C register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 Angular rate sensor self-test mode selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 Linear acceleration sensor self-test mode selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 CTRL6_C register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 CTRL6_C register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 Trigger mode selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 Gyroscope LPF1 bandwidth selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 CTRL7_G register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 CTRL7_G register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 CTRL8_XL register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 CTRL8_XL register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 Accelerometer bandwidth configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 CTRL9_XL register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 CTRL9_XL register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 CTRL10_C register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 CTRL10_C register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 ALL_INT_SRC register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 ALL_INT_SRC register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 WAKE_UP_SRC register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 WAKE_UP_SRC register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 TAP_SRC register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 TAP_SRC register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 D6D_SRC register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 D6D_SRC register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 STATUS_REG register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 STATUS_REG register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 STATUS_SPIAux register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 STATUS_SPIAux description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 OUT_TEMP_L register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 OUT_TEMP_H register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 OUT_TEMP register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 OUTX_L_G register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 OUTX_H_G register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 OUTX_H_G register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 OUTY_L_G register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 OUTY_H_G register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 OUTY_H_G register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 OUTZ_L_G register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 OUTZ_H_G register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 OUTZ_H_G register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 OUTX_L_A register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 DocID030186 Rev 1 11/166 166 List of tables Table 101. Table 102. Table 103. Table 104. Table 105. Table 106. Table 107. Table 108. Table 109. Table 110. Table 111. Table 112. Table 113. Table 114. Table 115. Table 116. Table 117. Table 118. Table 119. Table 120. Table 121. Table 122. Table 123. Table 124. Table 125. Table 126. Table 127. Table 128. Table 129. Table 130. Table 131. Table 132. Table 133. Table 134. Table 135. Table 136. Table 137. Table 138. Table 139. Table 140. Table 141. Table 142. Table 143. Table 144. Table 145. Table 146. Table 147. Table 148. Table 149. Table 150. Table 151. Table 152. 12/166 LSM6DSR OUTX_H_A register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 OUTX_H_A register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 OUTY_L_A register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 OUTY_H_A register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 OUTY_H_A register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 OUTZ_L_A register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 OUTZ_H_A register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 OUTZ_H_A register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 EMB_FUNC_STATUS_MAINPAGE register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 EMB_FUNC_STATUS_MAINPAGE register description . . . . . . . . . . . . . . . . . . . . . . . . . . 90 FSM_STATUS_A_MAINPAGE register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 FSM_STATUS_A_MAINPAGE register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 FSM_STATUS_B_MAINPAGE register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 FSM_STATUS_B_MAINPAGE register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 STATUS_MASTER_MAINPAGE register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 STATUS_MASTER_MAINPAGE register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 FIFO_STATUS1 register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 FIFO_STATUS1 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 FIFO_STATUS2 register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 FIFO_STATUS2 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 TIMESTAMP output registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 TIMESTAMP output register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 TAP_CFG0 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 TAP_CFG0 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 TAP_CFG1 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 TAP_CFG1 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 TAP priority decoding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 TAP_CFG2 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 TAP_CFG2 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 TAP_THS_6D register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 TAP_THS_6D register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 Threshold for D4D/D6D function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 INT_DUR2 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 INT_DUR2 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 WAKE_UP_THS register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 WAKE_UP_THS register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 WAKE_UP_DUR register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 WAKE_UP_DUR register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 FREE_FALL register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 FREE_FALL register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 Threshold for free-fall function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 MD1_CFG register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 MD1_CFG register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 MD2_CFG register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 MD2_CFG register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 S4S_ST_CMD_CODE register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 S4S_ST_CMD_CODE register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 S4S_DT_REG register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 S4S_DT_REG register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 I3C_BUS_AVB register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 I3C_BUS_AVB register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 INTERNAL_FREQ_FINE register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 DocID030186 Rev 1 LSM6DSR List of tables Table 153. Table 154. Table 155. Table 156. Table 157. Table 158. Table 159. Table 160. Table 161. Table 162. Table 163. Table 164. Table 165. Table 166. Table 167. Table 168. Table 169. Table 170. Table 171. Table 172. Table 173. Table 174. Table 175. Table 176. Table 177. Table 178. Table 179. Table 180. Table 181. Table 182. Table 183. Table 184. Table 185. Table 186. Table 187. Table 188. Table 189. Table 190. Table 191. Table 192. Table 193. Table 194. Table 195. Table 196. Table 197. Table 198. Table 199. Table 200. Table 201. Table 202. Table 203. Table 204. INTERNAL_FREQ_FINE register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 INT_OIS register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 INT_OIS register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 CTRL1_OIS register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 CTRL1_OIS register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 DEN mode selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 CTRL2_OIS register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 CTRL2_OIS register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 Gyroscope OIS chain digital LPF1 filter bandwidth selection . . . . . . . . . . . . . . . . . . . . . . 105 CTRL3_OIS register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 CTRL3_OIS register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 Accelerometer OIS channel bandwidth and phase. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 Self-test nominal output variation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 X_OFS_USR register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 X_OFS_USR register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 Y_OFS_USR register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 Y_OFS_USR register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 Z_OFS_USR register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 Z_OFS_USR register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 FIFO_DATA_OUT_TAG register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 FIFO_DATA_OUT_TAG register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 FIFO tag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 FIFO_DATA_OUT_X_H and FIFO_DATA_OUT_X_L registers . . . . . . . . . . . . . . . . . . . . 109 FIFO_DATA_OUT_X_H and FIFO_DATA_OUT_X_L register description . . . . . . . . . . . 109 FIFO_DATA_OUT_Y_H and FIFO_DATA_OUT_Y_L registers . . . . . . . . . . . . . . . . . . . . 109 FIFO_DATA_OUT_Y_H and FIFO_DATA_OUT_Y_L register description . . . . . . . . . . . 109 FIFO_DATA_OUT_Z_H and FIFO_DATA_OUT_Z_L registers . . . . . . . . . . . . . . . . . . . . 109 FIFO_DATA_OUT_Z_H and FIFO_DATA_OUT_Z_L register description. . . . . . . . . . . . 109 SPI_INT_OIS register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 Register address map - embedded functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 PAGE_SEL register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 PAGE_SEL register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 ADV_PEDO register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 ADV_PEDO description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 EMB_FUNC_EN_A register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 EMB_FUNC_EN_A register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 EMB_FUNC_EN_B register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 EMB_FUNC_EN_B register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 PAGE_ADDRESS register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 PAGE_ADDRESS register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 PAGE_VALUE register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 PAGE_VALUE register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 EMB_FUNC_INT1 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 EMB_FUNC_INT1 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 FSM_INT1_A register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 FSM_INT1_A register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 FSM_INT1_B register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 FSM_INT1_B register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 EMB_FUNC_INT2 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 EMB_FUNC_INT2 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 FSM_INT2_A register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 FSM_INT2_A register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 DocID030186 Rev 1 13/166 166 List of tables Table 205. Table 206. Table 207. Table 208. Table 209. Table 210. Table 211. Table 212. Table 213. Table 214. Table 215. Table 216. Table 217. Table 218. Table 219. Table 220. Table 221. Table 222. Table 223. Table 224. Table 225. Table 226. Table 227. Table 228. Table 229. Table 230. Table 231. Table 232. Table 233. Table 234. Table 235. Table 236. Table 237. Table 238. Table 239. Table 240. Table 241. Table 242. Table 243. Table 244. Table 245. Table 246. Table 247. Table 248. Table 249. Table 250. Table 251. Table 252. Table 253. Table 254. Table 255. Table 256. 14/166 LSM6DSR FSM_INT2_B register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 FSM_INT2_B register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 EMB_FUNC_STATUS register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 EMB_FUNC_STATUS register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 FSM_STATUS_A register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 FSM_STATUS_A register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 FSM_STATUS_B register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 FSM_STATUS_B register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 PAGE_RW register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 PAGE_RW register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 EMB_FUNC_FIFO_CFG register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 EMB_FUNC_FIFO_CFG register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 FSM_ENABLE_A register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 FSM_ENABLE_A register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 FSM_ENABLE_B register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 FSM_ENABLE_B register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 FSM_LONG_COUNTER_L register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 FSM_LONG_COUNTER_L register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 FSM_LONG_COUNTER_H register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 FSM_LONG_COUNTER_H register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 FSM_LONG_COUNTER_CLEAR register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 FSM_LONG_COUNTER_CLEAR register description . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 FSM_OUTS1 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 FSM_OUTS1 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 FSM_OUTS2 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 FSM_OUTS2 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 FSM_OUTS3 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 FSM_OUTS3 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 FSM_OUTS4 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 FSM_OUTS4 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 FSM_OUTS5 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 FSM_OUTS5 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 FSM_OUTS6 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 FSM_OUTS6 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 FSM_OUTS7 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 FSM_OUTS7 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 FSM_OUTS8 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 FSM_OUTS8 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 FSM_OUTS9 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 FSM_OUTS9 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 FSM_OUTS10 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 FSM_OUTS10 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 FSM_OUTS11 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 FSM_OUTS11 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 FSM_OUTS12 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 FSM_OUTS12 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 FSM_OUTS13 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 FSM_OUTS13 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 FSM_OUTS14 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 FSM_OUTS14 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 FSM_OUTS15 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 FSM_OUTS15 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 DocID030186 Rev 1 LSM6DSR List of tables Table 257. Table 258. Table 259. Table 260. Table 261. Table 262. Table 263. Table 264. Table 265. Table 266. Table 267. Table 268. Table 269. Table 270. Table 271. Table 272. Table 273. Table 274. Table 275. Table 276. Table 277. Table 278. Table 279. Table 280. Table 281. Table 282. Table 283. Table 284. Table 285. Table 286. Table 287. Table 288. Table 289. Table 290. Table 291. Table 292. Table 293. Table 294. Table 295. Table 296. Table 297. Table 298. Table 299. Table 300. Table 301. Table 302. Table 303. Table 304. Table 305. Table 306. Table 307. Table 308. FSM_OUTS16 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132 FSM_OUTS16 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132 EMB_FUNC_ODR_CFG_B register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132 EMB_FUNC_ODR_CFG_B register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132 STEP_COUNTER_L register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 STEP_COUNTER_L register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 STEP_COUNTER_H register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 STEP_COUNTER_H register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 EMB_FUNC_SRC register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 EMB_FUNC_SRC register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 EMB_FUNC_INIT_A register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 EMB_FUNC_INIT_A register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 EMB_FUNC_INIT_B register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 EMB_FUNC_INIT_B register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 Register address map - embedded advanced features page 0 . . . . . . . . . . . . . . . . . . . . 135 Register address map - embedded advanced features page 1 . . . . . . . . . . . . . . . . . . . . 136 MAG_SENSITIVITY_L register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 MAG_SENSITIVITY_L register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 MAG_SENSITIVITY_H register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 MAG_SENSITIVITY_H register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 MAG_OFFX_L register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 MAG_OFFX_L register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 MAG_OFFX_H register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 MAG_OFFX_H register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 MAG_OFFY_L register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 MAG_OFFY_L register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 MAG_OFFY_H register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 MAG_OFFY_H register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 MAG_OFFZ_L register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 MAG_OFFZ_L register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 MAG_OFFZ_H register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 MAG_OFFZ_H register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 MAG_SI_XX_L register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 MAG_SI_XX_L register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 MAG_SI_XX_H register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 MAG_SI_XX_H register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 MAG_SI_XY_L register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 MAG_SI_XY_L register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 MAG_SI_XY_H register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 MAG_SI_XY_H register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 MAG_SI_XZ_L register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 MAG_SI_XZ_L register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 MAG_SI_XZ_H register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 MAG_SI_XZ_H register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 MAG_SI_YY_L register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 MAG_SI_YY_L register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 MAG_SI_YY_H register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 MAG_SI_YY_H register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 MAG_SI_YZ_L register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 MAG_SI_YZ_L register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 MAG_SI_YZ_H register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 MAG_SI_YZ_H register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 DocID030186 Rev 1 15/166 166 List of tables Table 309. Table 310. Table 311. Table 312. Table 313. Table 314. Table 315. Table 316. Table 317. Table 318. Table 319. Table 320. Table 321. Table 322. Table 323. Table 324. Table 325. Table 326. Table 327. Table 328. Table 329. Table 330. Table 331. Table 332. Table 333. Table 334. Table 335. Table 336. Table 337. Table 338. Table 339. Table 340. Table 341. Table 342. Table 343. Table 344. Table 345. Table 346. Table 347. Table 348. Table 349. Table 350. Table 351. Table 352. Table 353. Table 354. Table 355. Table 356. Table 357. Table 358. Table 359. Table 360. 16/166 LSM6DSR MAG_SI_ZZ_L register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 MAG_SI_ZZ_L register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 MAG_SI_ZZ_H register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 MAG_SI_ZZ_H register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 MAG_CFG_A register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 MAG_CFG_A description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 MAG_CFG_B register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 MAG_CFG_B description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 FSM_LC_TIMEOUT_L register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 FSM_LC_TIMEOUT_L register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 FSM_LC_TIMEOUT_H register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 FSM_LC_TIMEOUT_H register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 FSM_PROGRAMS register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 FSM_PROGRAMS register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 FSM_START_ADD_L register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 FSM_START_ADD_L register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 FSM_START_ADD_H register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 FSM_START_ADD_H register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 PEDO_CMD_REG register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 PEDO_CMD_REG register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 PEDO_DEB_STEPS_CONF register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 PEDO_DEB_STEPS_CONF register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 PEDO_SC_DELTAT_L register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 PEDO_SC_DELTAT_H register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 PEDO_SC_DELTAT_H/L register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 Register address map - sensor hub registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147 SENSOR_HUB_1 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 SENSOR_HUB_1 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 SENSOR_HUB_2 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 SENSOR_HUB_2 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 SENSOR_HUB_3 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 SENSOR_HUB_3 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 SENSOR_HUB_4 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 SENSOR_HUB_4 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 SENSOR_HUB_5 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 SENSOR_HUB_5 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 SENSOR_HUB_6 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 SENSOR_HUB_6 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 SENSOR_HUB_7 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 SENSOR_HUB_7 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 SENSOR_HUB_8 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 SENSOR_HUB_8 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 SENSOR_HUB_9 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 SENSOR_HUB_9 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 SENSOR_HUB_10 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 SENSOR_HUB_10 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 SENSOR_HUB_11 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 SENSOR_HUB_11 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 SENSOR_HUB_12 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 SENSOR_HUB_12 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 SENSOR_HUB_13 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 SENSOR_HUB_13 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 DocID030186 Rev 1 LSM6DSR List of tables Table 361. Table 362. Table 363. Table 364. Table 365. Table 366. Table 367. Table 368. Table 369. Table 370. Table 371. Table 372. Table 373. Table 374. Table 375. Table 376. Table 377. Table 378. Table 379. Table 380. Table 381. Table 382. Table 383. Table 384. Table 385. Table 386. Table 387. Table 388. Table 389. Table 390. Table 391. Table 392. Table 393. Table 394. Table 395. Table 396. Table 397. Table 398. Table 399. Table 400. Table 401. Table 402. SENSOR_HUB_14 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 SENSOR_HUB_14 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 SENSOR_HUB_15 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 SENSOR_HUB_15 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 SENSOR_HUB_16 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 SENSOR_HUB_16 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 SENSOR_HUB_17 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 SENSOR_HUB_17 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 SENSOR_HUB_17 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 SENSOR_HUB_17 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 MASTER_CONFIG register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 MASTER_CONFIG register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 SLV0_ADD register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 SLV_ADD register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 SLV0_SUBADD register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 SLV0_SUBADD register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 SLAVE0_CONFIG register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 SLAVE0_CONFIG register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 SLV1_ADD register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 SLV1_ADD register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 SLV1_SUBADD register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 SLV1_SUBADD register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 SLAVE1_CONFIG register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 SLAVE1_CONFIG register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 SLV2_ADD register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 SLV2_ADD register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 SLV2_SUBADD register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 SLV2_SUBADD register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 SLAVE2_CONFIG register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 SLAVE2_CONFIG register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 SLV3_ADD register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 SLV3_ADD register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 SLV3_SUBADD register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 SLV3_SUBADD register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 SLAVE3_CONFIG register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 SLAVE3_CONFIG register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 DATAWRITE_SLV0 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 DATAWRITE_SLV0 register description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 STATUS_MASTER register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 STATUS_MASTER register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 Reel dimensions for carrier tape of LGA-14 package . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 Document revision history. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165 DocID030186 Rev 1 17/166 166 List of figures LSM6DSR List of figures Figure 1. Figure 2. Figure 3. Figure 4. Figure 5. Figure 6. Figure 7. Figure 8. Figure 9. Figure 10. Figure 11. Figure 12. Figure 13. Figure 14. Figure 15. Figure 16. Figure 17. Figure 18. Figure 19. Figure 20. Figure 21. Figure 22. Figure 23. Figure 24. Figure 25. Figure 26. Figure 27. Figure 28. Figure 29. 18/166 Generic state machine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 State machine in the LSM6DSR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Pin connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 LSM6DSR connection modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 SPI slave timing diagram (in mode 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 I²C slave timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Read and write protocol (in mode 3). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 SPI read protocol (in mode 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Multiple byte SPI read protocol (2-byte example) (in mode 3) . . . . . . . . . . . . . . . . . . . . . . 39 SPI write protocol (in mode 3). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Multiple byte SPI write protocol (2-byte example) (in mode 3) . . . . . . . . . . . . . . . . . . . . . . 40 SPI read protocol in 3-wire mode (in mode 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 I²C and I3C both active (INT1 pin not connected). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 Only I3C active (INT1 pin connected to VDD_IO). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 Block diagram of filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 Accelerometer UI chain. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 Accelerometer composite filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 Accelerometer chain with Mode 4 enabled . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Gyroscope digital chain - Mode 1 (UI/EIS) and Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Gyroscope digital chain - Mode 3 / Mode 4 (OIS/EIS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Auxiliary SPI full control (a) and enabling primary interface (b) . . . . . . . . . . . . . . . . . . . . . 52 LSM6DSR electrical connections in Mode 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 LSM6DSR electrical connections in Mode 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 LSM6DSR electrical connections in Mode 3 and Mode 4 (auxiliary 3/4-wire SPI) . . . . . . . 59 Accelerometer block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 LGA-14L 2.5x3x0.86 mm package outline and mechanical data . . . . . . . . . . . . . . . . . . . 162 Carrier tape information for LGA-14 package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 LGA-14 package orientation in carrier tape . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 Reel information for carrier tape of LGA-14 package . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 DocID030186 Rev 1 LSM6DSR 1 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. DocID030186 Rev 1 19/166 166 Embedded low-power features 2 LSM6DSR Embedded low-power features The LSM6DSR has been designed to be fully compliant with Android, featuring the following on-chip functions:  9 bytes 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 20/166 DocID030186 Rev 1 LSM6DSR 2.1 Embedded low-power features 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: a) Triggers when phone is in a front pants pocket and the user goes from sitting to standing or standing to sitting; b) Doesn’t trigger when phone is in a front pants pocket and the user is walking, running or going upstairs. 2.2 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. 2.3 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. Figure 1: Generic state machine shows a generic state machine. DocID030186 Rev 1 21/166 166 Embedded low-power features LSM6DSR Figure 1. Generic state machine 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 22/166 DocID030186 Rev 1 LSM6DSR 3 Pin description Pin description Figure 3. Pin connections Z Y X ΩY ΩR ΩP DocID030186 Rev 1 23/166 166 Pin description 3.1 LSM6DSR Pin connections The LSM6DSR offers flexibility to connect the pins in order to have four different mode connections and functionalities. In detail:  Mode 1: I2C / MIPI I3CSM slave interface or SPI (3- and 4-wire) serial interface is available;  Mode 2: I2C / MIPI I3CSM slave interface or SPI (3- and 4-wire) serial interface and I2C interface master for external sensor connections are available;  Mode 3: I2C / MIPI I3CSM 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: I2C / MIPI I3CSM 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 0RGH 0RGH 0RGH 0RGH +267 +267 +267 +267 , &  0,3,,&60 63, Z , &  , &  0,3,,&60 63, Z /60'65 60 0,3,,&  63, Z /60'65 0DVWHU,& /60'65 $X[63, Z )RUJ\UR GDWDRQO\ /60'60 ([WHUQDO /60'60 VHQVRUV &DPHUD PRGXOH , &  0,3,,&60 63, Z /60'65 $X[63, Z )RU;/DQG J\URGDWD &DPHUD PRGXOH In the following table each mode is described for the pin connections and function. 24/166 DocID030186 Rev 1 LSM6DSR Pin description Table 2. Pin description Pin# 1 Name Mode 1 function Mode 2 function SDO/SA0 SPI 4-wire interface serial data output (SDO) I2C least significant bit of the device address (SA0) Mode 3 / Mode 4 function SPI 4-wire interface serial data output (SDO) I2C least significant bit of the device address (SA0) SPI 4-wire interface serial data output (SDO) I2C least significant bit of the device address (SA0) 2 SDx Connect to VDDIO or GND I2C serial data master (MSDA) Auxiliary SPI 3/4-wire interface serial data input (SDI) and SPI 3-wire serial data output (SDO) 3 SCx Connect to VDDIO or GND I2C serial clock master (MSCL) Auxiliary SPI 3/4-wire interface serial port clock (SPC_Aux) 4 INT1 Programmable interrupt in I2C and SPI 5 VDDIO(1) Power supply for I/O pins 6 GND 0 V supply 7 GND 0 V supply 8 9 VDD (1) INT2 Power supply Programmable interrupt 2 (INT2)/ Data enable (DEN)/ Programmable interrupt 2 (INT2)/ Data enable (DEN) I2C master external synchronization signal (MDRDY) Programmable interrupt 2 (INT2) / Data enable (DEN) 10 OCS_Aux Leave unconnected(2) 11 Connect to VDD_IO or leave Connect to VDD_IO or leave SDO_Aux unconnected(2) unconnected(2) 12 13 14 Leave unconnected(2) Auxiliary SPI 3/4-wire interface enable Auxiliary SPI 3-wire interface: leave unconnected(2) Auxiliary SPI 4-wire interface: serial data output (SDO_Aux) CS I2C/MIPI I3CSM/SPI mode selection (1: SPI idle mode / I2C/MIPI I3CSM communication enabled; 0: SPI communication mode / I2C/MIPI I3CSM disabled) I2C/MIPI I3CSM/SPI mode selection (1: SPI idle mode / I2C/MIPI I3CSM communication enabled; 0: SPI communication mode / I2C/MIPI I3CSM disabled) I2C/MIPI I3CSM/SPI mode selection (1: SPI idle mode / I2C/MIPI I3CSM communication enabled; 0: SPI communication mode / I2C/MIPI I3CSM disabled) SCL I2C/MIPI I3CSM serial clock (SCL) SPI serial port clock (SPC) I2C/MIPI I3CSM serial clock (SCL) SPI serial port clock (SPC) I2C/MIPI I3CSM serial clock (SCL) SPI serial port clock (SPC) SDA I2C/MIPI I3CSM serial data (SDA) SPI serial data input (SDI) 3-wire interface serial data output (SDO) I2C/MIPI I3CSM serial data (SDA) SPI serial data input (SDI) 3-wire interface serial data output (SDO) I2C/MIPI I3CSM 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. DocID030186 Rev 1 25/166 166 Module specifications LSM6DSR 4 Module specifications 4.1 Mechanical characteristics @ Vdd = 1.8 V, T = 25 °C, unless otherwise noted. Table 3. Mechanical characteristics Symbol Parameter Test conditions Min. Typ.(1) Max. Unit ±2 LA_FS ±4 Linear acceleration measurement range ±8 g ±16 ±125 ±250 G_FS ±500 Angular rate measurement range ±1000 dps ±2000 ±4000 FS = ±2 0.061 FS = ±4 0.122 FS = ±8 0.244 FS = ±16 0.488 FS = ±125 4.375 FS = ±250 8.75 FS = ±500 17.50 FS = ±1000 35 FS = ±2000 70 FS = ±4000 140 Sensitivity tolerance(3) at component level ±1 % LA_SoDr Linear acceleration sensitivity change vs. temperature(4) from -40° to +85° ±0.01 %/°C G_SoDr Angular rate sensitivity change vs. temperature(4) from -40° to +85° ±0.007 %/°C LA_TyOff Linear acceleration zero-g level offset accuracy(5) ±10 mg ±1 dps ±0.1 mg/ °C ±0.005 dps/°C LA_So G_So G_So% Linear acceleration sensitivity(2) Angular rate sensitivity(2) G_TyOff Angular rate zero-rate level(5) LA_OffDr Linear acceleration zero-g level change vs. temperature(4) G_OffDr Angular rate typical zero-rate level change vs. temperature(4) 26/166 DocID030186 Rev 1 mg/LSB mdps/LSB LSM6DSR Module specifications Table 3. Mechanical characteristics (continued) Symbol Parameter Test conditions Min. Typ.(1) Max. Unit Rate noise density in high-performance mode(6) 5 mdps/Hz Gyroscope RMS noise in low-power mode(7) 90 mdps Acceleration noise density in high-performance mode(8) 60 μg/√Hz Acceleration RMS noise in low-power mode(9)(10) 1.8 mg(RMS) LA_ODR Linear acceleration output data rate 1.6(11) 12.5 26 52 104 208 416 833 1666 3332 6667 Hz G_ODR 12.5 26 52 104 208 416 833 1666 3332 6667 Rn RnRMS An RMS Vst Top Angular rate output data rate Linear acceleration self-test output change(12)(13)(14) Angular rate self-test output change(15)(16) 90 1700 mg FS = 250 dps 20 80 dps FS = 2000 dps 150 700 dps -40 +85 °C 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. DocID030186 Rev 1 27/166 166 Module specifications LSM6DSR 10. Noise RMS related to BW = ODR/2. 11. This ODR is available when 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. 28/166 DocID030186 Rev 1 LSM6DSR 4.2 Module specifications Electrical characteristics @ Vdd = 1.8 V, T = 25 °C, unless otherwise noted. Table 4. Electrical characteristics Symbol Vdd Vdd_IO Min. Typ.(1) Max. Unit Supply voltage 1.71 1.8 3.6 V Power supply for I/O 1.62 3.6 V Parameter IddHP Gyroscope and accelerometer current consumption in high-performance mode IddNM Gyroscope and accelerometer current consumption in normal mode Test conditions 1.2 mA 0.7 mA 360 μA 32 11 5.5 μA Gyroscope and accelerometer current consumption during power-down 3 μA Ton Turn-on time 35 ms VIH Digital high-level input voltage VIL Digital low-level input voltage VOH High-level output voltage IOH = 4 mA (2) VOL Low-level output voltage IOL = 4 mA (2) Top Operating temperature range ODR = 208 Hz Accelerometer current LA_IddHP consumption in high-performance mode LA_IddLM IddPD Accelerometer current consumption in low-power mode ODR = 52 Hz ODR = 12.5 Hz ODR = 1.6 Hz 0.7 * VDD_IO V 0.3 * VDD_IO VDD_IO 0.2 -40 V V 0.2 V +85 °C 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 VOH and VOL. DocID030186 Rev 1 29/166 166 Module specifications 4.3 LSM6DSR Temperature sensor characteristics @ Vdd = 1.8 V, T = 25 °C unless otherwise noted. Table 5. Temperature sensor characteristics Symbol TODR(2) Toff Parameter Test condition Min. Temperature refresh rate Temperature offset (3) TSen Temperature sensitivity TST Temperature stabilization time(4) Operating temperature range Max. 52 -15 +15 °C LSB/°C 500 16 -40 Unit Hz 256 T_ADC_res Temperature ADC resolution Top Typ.(1) μs bit +85 °C 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 data based on characterization data. 30/166 DocID030186 Rev 1 LSM6DSR Module specifications 4.4 Communication interface characteristics 4.4.1 SPI - serial peripheral interface Subject to general operating conditions for Vdd and Top. Table 6. SPI slave timing values (in mode 3) Value(1) Symbol Parameter Unit Min tc(SPC) SPI clock cycle fc(SPC) SPI clock frequency tsu(CS) CS setup time 5 th(CS) CS hold time 20 tsu(SI) SDI input setup time 5 th(SI) SDI input hold time 15 tv(SO) SDO valid output time th(SO) SDO output hold time tdis(SO) SDO output disable time Max 100 ns 10 MHz ns 50 5 50 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) Note: Measurement points are done at 0.2·Vdd_IO and 0.8·Vdd_IO, for both input and output ports. DocID030186 Rev 1 31/166 166 Module specifications 4.4.2 LSM6DSR I²C - inter-IC control interface Subject to general operating conditions for Vdd and Top. Table 7. I²C slave timing values Symbol f(SCL) I2C standard mode(1) Parameter SCL clock frequency I2C fast mode (1) Min Max Min Max 0 100 0 400 tw(SCLL) SCL clock low time 4.7 1.3 tw(SCLH) SCL clock high time 4.0 0.6 tsu(SDA) SDA setup time 250 100 th(SDA) SDA data hold time 0 th(ST) START condition hold time 4 0.6 tsu(SR) Repeated START condition setup time 4.7 0.6 tsu(SP) STOP condition setup time 4 0.6 4.7 1.3 tw(SP:SR) Bus free time between STOP and START condition 3.45 ns 0 0.9 5(3($7(' 67$57 67$57 WVX 65 67$57 WZ 6365 6'$ WK 6'$ WVX 63 6723 6&/ Note: 32/166 WZ 6&// WZ 6&/+ Measurement points are done at 0.2·Vdd_IO and 0.8·Vdd_IO, for both ports. DocID030186 Rev 1 μs μs Figure 6. I²C slave timing diagram WK 67 kHz μs 1. Data based on standard I2C protocol requirement, not tested in production. WVX 6'$ Unit LSM6DSR 4.5 Module specifications Absolute maximum ratings Stresses above those listed as “Absolute maximum ratings” may cause permanent damage to the device. This is a stress rating only and functional operation of the device under these conditions is not implied. Exposure to maximum rating conditions for extended periods may affect device reliability. Table 8. Absolute maximum ratings Symbol Maximum value Unit Vdd Supply voltage -0.3 to 4.8 V TSTG Storage temperature range -40 to +125 °C 20,000 g 2 kV -0.3 to Vdd_IO +0.3 V Sg ESD Vin Note: Ratings 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) 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. DocID030186 Rev 1 33/166 166 Module specifications 4.6 Terminology 4.6.1 Sensitivity LSM6DSR 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 Table 2). 4.6.2 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 zero-g 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 zero-g level change vs. temperature” in Table 2. The zero-g level tolerance (TyOff) describes the standard deviation of the range of zero-g 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 Table 2). 34/166 DocID030186 Rev 1 LSM6DSR Digital interfaces 5 Digital interfaces 5.1 I²C/SPI interface The registers embedded inside the LSM6DSR may be accessed through both the I2C and SPI serial interfaces. The latter may be SW configured to operate either in 3-wire or 4-wire interface mode. The device is compatible with SPI modes 0 and 3. The serial interfaces are mapped onto the same pins. To select/exploit the I2C interface, the CS line must be tied high (i.e connected to Vdd_IO). Table 9. Serial interface pin description Pin name CS SCL/SPC SDA/SDI/SDO SDO/SA0 5.1.1 Pin description SPI enable I2C/SPI mode selection (1: SPI idle mode / I2C communication enabled; 0: SPI communication mode / I2C disabled) I2C Serial Clock (SCL) SPI Serial Port Clock (SPC) I2C Serial Data (SDA) SPI Serial Data Input (SDI) 3-wire Interface Serial Data Output (SDO) SPI Serial Data Output (SDO) I2C less significant bit of the device address I²C serial interface The LSM6DSR I2C is a bus slave. The I2C is employed to write the data to the registers, whose content can also be read back. The relevant I2C terminology is provided in the table below. Table 10. I²C terminology Term Transmitter Receiver Description The device which sends data to the bus The device which receives data from the bus Master The device which initiates a transfer, generates clock signals and terminates a transfer Slave The device addressed by the master There are two signals associated with the I2C bus: the serial clock line (SCL) and the Serial DAta line (SDA). The latter is a bidirectional line used for sending and receiving the data to/from the interface. Both the lines must be connected to Vdd_IO through external pull-up resistors. When the bus is free, both the lines are high. The I2C interface is implemented with fast mode (400 kHz) I2C standards as well as with the standard mode. In order to disable the I2C block, (I2C_disable) = 1 must be written in CTRL4_C (13h). DocID030186 Rev 1 35/166 166 Digital interfaces LSM6DSR 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 I2C 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 I2C 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, an 8-bit sub-address (SUB) is transmitted. The increment of the address is configured by the CTRL3_C (12h) (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. Table 11. SAD+Read/Write patterns Command SAD[6:1] SAD[0] = SA0 R/W SAD+R/W Read 110101 0 1 11010101 (D5h) Write 110101 0 0 11010100 (D4h) Read 110101 1 1 11010111 (D7h) Write 110101 1 0 11010110 (D6h) Table 12. Transfer when master is writing one byte to slave Master ST SAD + W Slave SUB DATA SAK SAK SP SAK Table 13. Transfer when master is writing multiple bytes to slave Master Slave 36/166 ST SAD + W SUB SAK DATA SAK DocID030186 Rev 1 DATA SAK SP SAK LSM6DSR Digital interfaces Table 14. Transfer when master is receiving (reading) one byte of data from slave Master ST SAD + W Slave SUB SAK SR SAD + R SAK NMAK SAK SP DATA Table 15. Transfer when master is receiving (reading) multiple bytes of data from slave Master Slave ST SAD+W SUB SAK SR SAD+R SAK MAK SAK DATA MAK DAT A NMAK SP DATA Data are transmitted in byte format (DATA). Each data transfer contains 8 bits. The number of bytes transferred per transfer is unlimited. Data is transferred with the Most Significant bit (MSb) first. If a receiver can’t receive another complete byte of data until it has performed some other function, it can hold the clock line, SCL LOW to force the transmitter into a wait state. Data transfer only continues when the receiver is ready for another byte and releases the data line. If a slave receiver doesn’t acknowledge the slave address (i.e. it is not able to receive because it is performing some real-time function) the data line must be left HIGH by the slave. The master can then abort the transfer. A LOW to HIGH transition on the SDA line while the SCL line is HIGH is defined as a STOP condition. Each data transfer must be terminated by the generation of a STOP (SP) condition. In the presented communication format MAK is Master acknowledge and NMAK is No Master Acknowledge. DocID030186 Rev 1 37/166 166 Digital interfaces 5.1.2 LSM6DSR 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 to the application using 4 wires: CS, SPC, SDI and SDO. Figure 7. Read and write protocol (in mode 3) &6 63& 6', ', ', ', ', ', ', ', ', 5: $' $' $' $' $' $' $' 6'2 '2 '2 '2 '2 '2 '2 '2 '2 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). In multiple read/write commands further blocks of 8 clock periods will be added. When the CTRL3_C (12h) (IF_INC) bit is ‘0’, the address used to read/write data remains the same for every block. When the CTRL3_C (12h) (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. 38/166 DocID030186 Rev 1 LSM6DSR Digital interfaces SPI read Figure 8. SPI read protocol (in mode 3) &6 63& 6', 5: $' $' $' $' $' $' $' 6'2 '2 '2 '2 '2 '2 '2 '2 '2 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) &6 63& 6', 5: $' $' $' $' $' $' $' 6'2 '2 '2 '2 '2 '2 '2 '2 '2 '2'2'2'2'2'2'2 '2 DocID030186 Rev 1 39/166 166 Digital interfaces LSM6DSR SPI write Figure 10. SPI write protocol (in mode 3) &6 63& 6', ', ', ', ', ', ', ', ', 5: $' $' $' $' $' $' $' 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) &6 63& 6', ', ', ', ', ', ', ', ', ',',',',',',', ', 5: $' $' $' $' $' $' $' 40/166 DocID030186 Rev 1 LSM6DSR Digital interfaces 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) &6 63& 6',2 '2 '2 '2 '2 '2 '2 '2 '2 5: $' $' $' $' $' $' $' 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. DocID030186 Rev 1 41/166 166 Digital interfaces LSM6DSR 5.2 MIPI I3CSM interface 5.2.1 MIPI I3CSM slave interface The LSM6DSR interface includes a MIPI I3CSM SDR only slave interface (compliant with release 1.0 of the specification) with MIPI I3CSM 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. 5.2.2 MIPI I3CSM CCC supported commands The list of MIPI I3CSM CCC commands supported by the device is detailed in the following table. Table 16. MIPI I3CSM CCC commands Command Command code Default Description ENTDAA 0x07 DAA procedure SETDASA 0x87 Assign Dynamic Address using Static Address 0x6B/0x6A depending on SDO pin ENEC 0x80 / 0x00 Slave activity control (direct and broadcast) DISEC 0x81/ 0x01 Slave activity control (direct and broadcast) ENTAS0 0x82 / 0x02 Enter activity state (direct and broadcast) ENTAS1 0x83 / 0x03 Enter activity state (direct and broadcast) ENTAS2 0x84 / 0x04 Enter activity state (direct and broadcast) ENTAS3 0x85 / 0x05 Enter activity state (direct and broadcast) SETXTIME 0x98 / 0x28 Timing information exchange GETXTIME 0x99 0x07 0x00 0x05 0x92 Timing information exchange RSTDAA 0x86 / 0x06 Reset the assigned dynamic address (direct and broadcast) SETMWL 0x89 / 0x08 Define maximum write length during private write (direct and broadcast) 42/166 DocID030186 Rev 1 LSM6DSR Digital interfaces Table 16. MIPI I3CSM CCC commands Command SETMRL Command code Default Description Define maximum read length during private read (direct and broadcast) 0x8A / 0x09 SETNEWDA 0x88 GETMWL 0x8B 0x00 0x08 (2 byte) Get maximum write length during private write 0x8C 0x00 0x10 0x09 (3 byte) Get maximum read length during private read GETPID 0x8D 0x02 0x08 0x00 0x6B 0x10 0x0B GETBCR 0x8E 0x07 (1 byte) GETDCR 0x8F 0x00 GETSTATUS 0x90 0x00 0x00 (2 byte) Status register GETMXDS 0x94 0x00 0x38 (2 byte) Return max data speed GETMRL Change dynamic address Device ID register Bus characteristics register MIPI I3CSM Device Characteristic Register DocID030186 Rev 1 43/166 166 Digital interfaces 5.3 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 Figure 13  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) I3C bus case I²C bus case Master sends I²C r/w Slave performs requested r/w Master assigns DA to the slave(1) Master resets DA 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. 44/166 DocID030186 Rev 1 LSM6DSR 5.4 Digital interfaces Master I²C interface If the LSM6DSR is configured in Mode 2, a master I2C line is available. The master serial interface is mapped in the following dedicated pins. Table 17. Master I²C pin details Pin name 5.5 Pin description MSCL I2C serial clock master MSDA I2C serial data master MDRDY I2C master external synchronization signal 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 18. Auxiliary SPI pin details Pin name Pin description OCS_Aux Auxiliary SPI 3/4-wire enable SDx Auxiliary SPI 3/4-wire data input (SDI_Aux) and SPI 3-wire data output (SDO_Aux) SCx 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 INT_OIS (6Fh), CTRL1_OIS (70h), CTRL2_OIS (71h), 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. DocID030186 Rev 1 45/166 166 Functionality 6 Functionality 6.1 Operating modes LSM6DSR 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. 6.2 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'. Lowpower mode is available for lower ODRs (12.5, 26, 52 Hz) while normal mode is available for ODRs equal to 104 and 208 Hz. 6.3 Accelerometer power modes In the LSM6DSR, the accelerometer 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 XL_HM_MODE bit in CTRL6_C (15h). 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'. Lowpower 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. 46/166 DocID030186 Rev 1 LSM6DSR 6.4 Functionality Block diagram of filters Figure 15. Block diagram of filters 0 ( 0 6 6 ( 1 6 2 5 *\UR8,2,6 IURQWHQG 5HJV DUUD\ ),)2 /RZ3DVV 8,;/ ;/8,2,6 IURQWHQG $'& 7HPSHUDWXUH VHQVRU 9ROWDJHDQGFXUUHQW UHIHUHQFHV 6.4.1 $'& /RZ3DVV 8,*\UR /RZ3DVV 2,6*\UR 5HJV DUUD\ /RZ3DVV 2,6;/ 7ULPPLQJFLUFXLW DQG7HVWLQWHUIDFH &ORFNDQGSKDVH JHQHUDWRU ,& 0,3,,&60 63,  LQWHUIDFH ,QWHUUXSW PQJ &6 6&/63& 6'$6',6'2 6'26$ ,17 ,17 ,QWHUUXSW PQJ $X[LOLDU\ 63, 3RZHU PDQDJHPHQW &6 63&B$X[ 6',B$X[ 6'2B$X[ )73 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 'LJLWDO /3)LOWHU /3) $'& &RPSRVLWH )LOWHU 2'5B;/>@ DocID030186 Rev 1 47/166 166 Functionality LSM6DSR Figure 17. Accelerometer composite filter /2:B3$66B21B' )UHHIDOO  $GYDQFHG IXQFWLRQV  /3)B;/B(1 865B2))B21B287 +3B6/23(B;/B(1   'LJLWDO /3)LOWHU  /3) RXWSXW   86(5 2))6(7 /3)  865B2))B: 2)6B865>@ ),)2 +3&)B;/>@ 'LJLWDO +3)LOWHU ''     :DNHXS $FWLYLW\ ,QDFWLYLW\ 63, , &  0,3,,& 60  865B2))B21B:8 6/23(B)'6   «   +3&)B;/>@ 6/23( ),/7(5  +3&)B;/>@ 6'7DS 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: 48/166 Advanced functions include pedometer, step detector and step counter, significant motion detection, and tilt functions. DocID030186 Rev 1 LSM6DSR Functionality The accelerometer filtering chain when Mode 4 is enabled is illustrated in the following figure. Figure 18. Accelerometer chain with Mode 4 enabled 2'5;/ #N+] 'LJLWDO /3)LOWHU /3)B2,6 $'& 63,B$X[ ),/7(5B;/B&21)B2,6>@ 8,FKDLQ Note: Mode 4 is enabled when Mode4_EN = 1 and OIS_EN_SPI2 = 1 in CTRL1_OIS (70h). 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 and ODR at 6.66 kHz. 6.4.2 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 $'& 63, ,& 0,3,,&60   /3) +3) /3)   2'5B*>@ +3B(1B* )7@ ),)2 /3)B6(/B* In this configuration, the gyroscope ODR is selectable from 12.5 Hz up to 6.66 kHz. A lowpass filter (LPF1) is available if the auxiliary SPI is disabled, for more details about the filter characteristics see Table 65: Gyroscope LPF1 bandwidth selection. 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. DocID030186 Rev 1 49/166 166 Functionality LSM6DSR Table 19. Gyroscope LPF2 bandwidth selection Gyroscope ODR [Hz] LPF2 cutoff [Hz] 12.5 4.3 26 8.3 52 16.7 104 33 208 67 417 133 833 267 1667 539 3333 1137 6667 3333 Data can be acquired from the output registers and FIFO over the primary I²C/I³C/SPI interface. 50/166 DocID030186 Rev 1 LSM6DSR Functionality  Mode 3 / Mode 4 (for OIS and EIS functionality) Figure 20. Gyroscope digital chain - Mode 3 / Mode 4 (OIS/EIS) 'LJLWDO /3)LOWHU /3)   +3B(1B* $'&  'LJLWDO +3)LOWHU ),)2  2'5B*>@ 63, ,&  0,3,,&60 +3B(1B2,6    'LJLWDO     /3)LOWHU /3) 63,B$X[  2'5*\UR #N+] )7@B2,6 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 CTRL1_OIS (70h). 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  the chain for OIS/EIS where the ODR is at 6.66 kHz and the LPF1 is available. The LPF1 configuration depends on the setting of the FTYPE_[1;0] _OIS bit in register CTRL2_OIS (71h); for more details about the filter characteristics see Table 160: 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 CTRL1_OIS (70h)). DocID030186 Rev 1 51/166 166 Functionality 6.5 LSM6DSR OIS 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), CTRL1_OIS (70h), CTRL2_OIS (71h), CTRL3_OIS (72h). Reading from the Auxiliary SPI is enabled only when the OIS_EN_SPI2 bit in the CTRL1_OIS (70h) 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), CTRL1_OIS (70h), CTRL2_OIS (71h), CTRL3_OIS (72h)) in read mode. Figure 21. Auxiliary SPI full control (a) and enabling primary interface (b) &DPHUD0RGXOH &DPHUD0RGXOH ,PDJH 6HQVRU $FWXDWRU ,PDJH 6HQVRU $FWXDWRU 2,6'ULYHU 2,6'ULYHU $3 $3 ,&63,,& ,&63,,& 63,B$X[ [ 63,B$X[ D 52/166 E DocID030186 Rev 1 [ 8,2,6 8,2,6 LSM6DSR 6.6 Functionality 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 FIFO-dedicated configurations: accelerometer, gyroscope and temperature sensor batching 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 (Batching 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 WTM[8:0] bits. To monitor the FIFO status, dedicated registers (FIFO_STATUS1 (3Ah), FIFO_STATUS2 (3Bh)) 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 INT1_CTRL (0Dh) and INT2_CTRL (0Eh). DocID030186 Rev 1 53/166 166 Functionality LSM6DSR 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 FIFO_CTRL4 (0Ah) register. 6.6.1 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. 6.6.2 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_CTRL4 (0Ah)(FIFO_MODE_[2:0]) to '000'. After this reset command, it is possible to restart FIFO mode by writing FIFO_CTRL4 (0Ah)(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 FIFO_CTRL1 (07h) and FIFO_CTRL2 (08h). If the STOP_ON_WTM bit in FIFO_CTRL2 (08h) is set to '1', FIFO depth is limited up to the WTM [8:0] bits in FIFO_CTRL1 (07h) and FIFO_CTRL2 (08h). 6.6.3 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 FIFO_CTRL2 (08h) 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_CTRL (0Dh)(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 inFIFO_STATUS1 (3Ah) and FIFO_STATUS2 (3Bh)(DIFF_FIFO_[9:0]). 54/166 DocID030186 Rev 1 LSM6DSR 6.6.4 Functionality 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. 6.6.5 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 6.6.6 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 DocID030186 Rev 1 55/166 166 Functionality 6.6.7 LSM6DSR FIFO reading procedure The data stored in FIFO are accessible from dedicated registers and each FIFO word is composed of 7 bytes: one tag byte (FIFO_DATA_OUT_TAG (78h), in order to identify the sensor, and 6 bytes of fixed data (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 INT1_CTRL (0Dh) and INT2_CNT_BDR of INT2_CTRL (0Eh)). 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 EMB_FUNC_EN_B (05h) (embedded 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). 56/166 DocID030186 Rev 1 LSM6DSR Application hints 7 Application hints 7.1 LSM6DSR electrical connections in Mode 1 Figure 22. LSM6DSR electrical connections in Mode 1 &6 6&/ 6'$ 0RGH +267  , &   60 6'26$ 723 9,(: 6'[ 6&[  ,17  &  *1' 9'',2  1& 1& *1' *1'RU9'',2   0,3,,&  63, Z   /60'65 9GG ,17 9'' & Q) ,&FRQILJXUDWLRQ *1' 9GGB,2 5SX 9GGB,2 Q) 5SX 6&/ *1' 6'$ 3XOOXSWREHDGGHG 5SX N2KP 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 I3CSM 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 I3CSM interface. DocID030186 Rev 1 57/166 166 Application hints 7.2 LSM6DSR LSM6DSR electrical connections in Mode 2 Figure 23. LSM6DSR electrical connections in Mode 2 +267 &6 6&/ 6'$ 0RGH , &  60 0,3,,&  63, Z  6'26$    723 9,(: 06'$ 06&/ 1&   &  0DVWHU,& 0'5'@ ),)2 +3&)B;/>@ 'LJLWDO +3)LOWHU ''     :DNHXS $FWLYLW\ ,QDFWLYLW\ 63, , &  0,3,,& 60  865B2))B21B:8 6/23(B)'6   «   +3&)B;/>@ 6/23( ),/7(5  +3&)B;/>@ 6'7DS 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. 82/166 DocID030186 Rev 1 LSM6DSR 9.23 Register description CTRL9_XL (18h) Control register 9 (r/w) Table 72. CTRL9_XL register DEN_X DEN_Y DEN_Z DEN_XL_G DEN_XL_EN DEN_LH I3C_disable 0(1) 1. This bit must be set to '0' for the correct operation of the device. Table 73. CTRL9_XL register description DEN_X 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_Y 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_Z 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_XL_G 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]) DEN_XL_EN Extends DEN functionality to accelerometer sensor. Default value: 0 (0: disabled; 1: enabled) DEN_LH DEN active level configuration. Default value: 0 (0: active low; 1: active high) I3C_disable Disables MIPI I3CSM communication protocol(1) (0: SPI, I2C, MIPI I3CSM interfaces enabled (default); 1: MIPI I3CSM 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. 9.24 CTRL10_C (19h) Control register 10 (r/w) Table 74. CTRL10_C register 0 0 TIMESTAMP _EN 0 0 0 0 0 Table 75. CTRL10_C register description Enables timestamp counter. default value: 0 (0: disabled; 1: enabled) TIMESTAMP_EN The counter is readable in TIMESTAMP0 (40h), TIMESTAMP1 (41h), TIMESTAMP2 (42h), and TIMESTAMP3 (43h). DocID030186 Rev 1 83/166 166 Register description 9.25 LSM6DSR ALL_INT_SRC (1Ah) Source register for all interrupts (r) Table 76. ALL_INT_SRC register TIMESTAMP_ ENDCOUNT SLEEP_ CHANGE_ IA 0 D6D_IA DOUBLE_ TAP SINGLE_ TAP WU_IA FF_IA Table 77. ALL_INT_SRC register description 9.26 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 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 Double-tap event status. Default value: 0 (0:event not detected, 1: event detected) SINGLE_TAP Single-tap event status. Default value:0 (0: event not detected, 1: event detected) WU_IA Wake-up event status. Default value: 0 (0: event not detected, 1: event detected) FF_IA Free-fall event status. Default value: 0 (0: event not detected, 1: event detected) WAKE_UP_SRC (1Bh) Wake-up interrupt source register (r) Table 78. WAKE_UP_SRC register 0 SLEEP_ CHANGE_ IA FF_IA SLEEP_ STATE WU_IA X_WU Y_WU Z_WU Table 79. WAKE_UP_SRC register description 84/166 SLEEP_ CHANGE_IA Detects change event in activity/inactivity status. Default value: 0 (0: change status not detected; 1: change status detected) FF_IA Free-fall event detection status. Default: 0 (0: free-fall event not detected; 1: free-fall event detected) SLEEP_ STATE Sleep event status. Default value: 0 (0: sleep event not detected; 1: sleep event detected) WU_IA Wakeup event detection status. Default value: 0 (0: wakeup event not detected; 1: wakeup event detected.) X_WU 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) Y_WU 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) Z_WU 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) DocID030186 Rev 1 LSM6DSR 9.27 Register description TAP_SRC (1Ch) Tap source register (r). Table 80. TAP_SRC register 0 TAP_IA SINGLE_ TAP DOUBLE_ TAP_SIGN TAP X_TAP Y_TAP Z_TAP Table 81. TAP_SRC register description Tap event detection status. Default: 0 TAP_IA (0: tap event not detected; 1: tap event detected) Single-tap event status. Default value: 0 SINGLE_TAP (0: single tap event not detected; 1: single tap event detected) Double-tap event detection status. Default value: 0 DOUBLE_TAP (0: double-tap event not detected; 1: double-tap event detected.) Sign of acceleration detected by tap event. Default: 0 TAP_SIGN (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 X_TAP (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 Y_TAP (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 Z_TAP (0: tap event on Z-axis not detected; 1: tap event on Z-axis detected) 9.28 D6D_SRC (1Dh) Portrait, landscape, face-up and face-down source register (r) Table 82. D6D_SRC register DEN_DRDY D6D_IA ZH ZL YH YL XH XL Table 83. D6D_SRC register description DEN_ DRDY D6D_ IA ZH ZL YH YL XH XL DEN data-ready signal. It is set high when data output is related to the data coming from a DEN active condition.(1) 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) 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 COUNTER_BDR_REG1 (0Bh) register. DocID030186 Rev 1 85/166 166 Register description 9.29 LSM6DSR STATUS_REG (1Eh) / STATUS_SPIAux (1Eh) The STATUS_REG register is read by the primary interface SPI/I2C & MIPI I3CSM (r). Table 84. STATUS_REG register 0 0 0 0 0 TDA GDA XLDA GDA XLDA Table 85. STATUS_REG register description TDA 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) GDA 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) XLDA 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. Table 86. STATUS_SPIAux register 0 0 0 0 0 GYRO_ SETTLING Table 87. STATUS_SPIAux description GYRO_ High when the gyroscope output is in the settling phase SETTLING 9.30 GDA Gyroscope data available (reset when one of the high parts of the output data is read) XLDA Accelerometer data available (reset when one of the high parts of the output data is read) 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. Table 88. OUT_TEMP_L register Temp7 Temp6 Temp5 Temp4 Temp3 Temp2 Temp1 Temp0 Temp9 Temp8 Table 89. OUT_TEMP_H register Temp15 Temp14 Temp13 Temp12 Temp11 Temp10 Table 90. OUT_TEMP register description Temp[15:0] 86/166 Temperature sensor output data The value is expressed as two’s complement sign extended on the MSB. DocID030186 Rev 1 LSM6DSR 9.31 Register description 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 (CTRL2_G (11h)) 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. Table 91. OUTX_L_G register D7 D6 D5 D4 D3 D2 D1 D0 D10 D9 D8 Table 92. OUTX_H_G register D15 D14 D13 D12 D11 Table 93. OUTX_H_G register description D[15:0] 9.32 Pitch axis (X) angular rate value D[15:0] expressed in two’s complement and its value depends on the interface used: SPI1/I2C/MIPI I3CSM: Gyro UI chain pitch axis output SPI2: Gyro OIS chain pitch axis output 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 (CTRL2_G (11h)) 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. Table 94. OUTY_L_G register D7 D6 D5 D4 D15 D14 D13 D3 D2 D1 D0 D10 D9 D8 Table 95. OUTY_H_G register D12 D11 Table 96. OUTY_H_G register description D[15:0] Roll axis (Y) angular rate value D[15:0] expressed in two’s complement and its value depends on the interface used: SPI1/I2C/MIPI I3CSM: Gyro UI chain roll axis output SPI2: Gyro OIS chain roll axis output DocID030186 Rev 1 87/166 166 Register description 9.33 LSM6DSR 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 (CTRL2_G (11h)) 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. Table 97. OUTZ_L_G register D7 D6 D5 D4 D3 D2 D1 D0 D10 D9 D8 Table 98. OUTZ_H_G register D15 D14 D13 D12 D11 Table 99. OUTZ_H_G register description D[15:0] 9.34 Yaw axis (Z) angular rate value D[15:0] expressed in two’s complement and its value depends on the interface used: SPI1/I2C/MIPI I3CSM: Gyro UI chain yaw axis output SPI2: Gyro OIS chain yaw axis output 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. If this register is read by the primary interface, data are according to the full-scale and ODR settings (CTRL1_XL (10h)) 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 (CTRL3_OIS (72h)). Table 100. OUTX_L_A register D7 D6 D5 D4 D15 D14 D13 D3 D2 D1 D0 D9 D8 Table 101. OUTX_H_A register D12 D11 D10 Table 102. OUTX_H_A register description D[15:0] 88/166 X-axis linear acceleration value. D[15:0] expressed in two’s complement and its value depends on the interface used: SPI1/I2C/MIPI I3CSM: Accelerometer UI chain X-axis output SPI2: Accelerometer OIS chain X-axis output DocID030186 Rev 1 LSM6DSR 9.35 Register description 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. If this register is read by the primary interface, data are according to the full-scale and ODR settings (CTRL1_XL (10h)) 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 (CTRL3_OIS (72h)). Table 103. OUTY_L_A register D7 D6 D5 D4 D15 D14 D13 D3 D2 D1 D0 D9 D8 Table 104. OUTY_H_A register D12 D11 D10 Table 105. OUTY_H_A register description D[15:0] 9.36 Y-axis linear acceleration value D[15:0] expressed in two’s complement and its value depends on the interface used: SPI1/I2C/MIPI I3CSM: Accelerometer UI chain Y-axis output SPI2: Accelerometer OIS chain Y-axis output 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. If this register is read by the primary interface, data are according to the full-scale and ODR settings (CTRL1_XL (10h)) 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 (CTRL3_OIS (72h)). Table 106. OUTZ_L_A register D7 D6 D5 D4 D15 D14 D13 D3 D2 D1 D0 D9 D8 Table 107. OUTZ_H_A register D12 D11 D10 Table 108. OUTZ_H_A register description D[15:0] Z-axis linear acceleration value D[15:0] expressed in two’s complement and its value depends on the interface used: SPI1/I2C/MIPI I3CSM: Accelerometer UI chain Z-axis output SPI2: Accelerometer OIS chain Z-axis output DocID030186 Rev 1 89/166 166 Register description 9.37 LSM6DSR EMB_FUNC_STATUS_MAINPAGE (35h) Embedded function status register (r). Table 109. EMB_FUNC_STATUS_MAINPAGE register IS_FSM_LC IS_ SIGMOT 0 IS_ TILT IS_STEP_ DET 0 0 0 Table 110. EMB_FUNC_STATUS_MAINPAGE register description 9.38 IS_FSM_LC Interrupt status bit for FSM long counter timeout interrupt event. (1: interrupt detected; 0: no interrupt) IS_SIGMOT Interrupt status bit for significant motion detection (1: interrupt detected; 0: no interrupt) IS_TILT Interrupt status bit for tilt detection (1: interrupt detected; 0: no interrupt) IS_STEP_DET Interrupt status bit for step detection (1: interrupt detected; 0: no interrupt) FSM_STATUS_A_MAINPAGE (36h) Finite State Machine status register (r). Table 111. FSM_STATUS_A_MAINPAGE register IS_FSM8 IS_FSM7 IS_FSM6 IS_FSM5 IS_FSM4 IS_FSM3 IS_FSM2 Table 112. FSM_STATUS_A_MAINPAGE register description 90/166 IS_FSM8 Interrupt status bit for FSM8 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM7 Interrupt status bit for FSM7 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM6 Interrupt status bit for FSM6 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM5 Interrupt status bit for FSM5 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM4 Interrupt status bit for FSM4 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM3 Interrupt status bit for FSM3 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM2 Interrupt status bit for FSM2 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM1 Interrupt status bit for FSM1 interrupt event. (1: interrupt detected; 0: no interrupt) DocID030186 Rev 1 IS_FSM1 LSM6DSR 9.39 Register description FSM_STATUS_B_MAINPAGE (37h) Finite State Machine status register (r). Table 113. FSM_STATUS_B_MAINPAGE register IS_FSM16 IS_FSM15 IS_FSM14 IS_FSM13 IS_FSM12 IS_FSM11 IS_FSM10 IS_FSM9 Table 114. FSM_STATUS_B_MAINPAGE register description 9.40 IS_FSM16 Interrupt status bit for FSM16 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM15 Interrupt status bit for FSM15 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM14 Interrupt status bit for FSM14 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM13 Interrupt status bit for FSM13 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM12 Interrupt status bit for FSM12 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM11 Interrupt status bit for FSM11 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM10 Interrupt status bit for FSM10 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM9 Interrupt status bit for FSM9 interrupt event. (1: interrupt detected; 0: no interrupt) STATUS_MASTER_MAINPAGE (39h) Sensor hub source register (r). Table 115. STATUS_MASTER_MAINPAGE register WR_ ONCE_ DONE SLAVE3_ NACK SLAVE2_ NACK SLAVE1_ NACK SLAVE0_ NACK 0 0 SENS_HUB_ ENDOP Table 116. STATUS_MASTER_MAINPAGE register description WR_ONCE_DONE When the bit WRITE_ONCE in MASTER_CONFIG (14h) 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 SLAVE3_NACK This bit is set to 1 if Not acknowledge occurs on slave 3 communication. Default value: 0 SLAVE2_NACK This bit is set to 1 if Not acknowledge occurs on slave 2 communication. Default value: 0 SLAVE1_NACK 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 Sensor hub communication status. Default value: 0 SENS_HUB_ENDOP (0: sensor hub communication not concluded; 1: sensor hub communication concluded) DocID030186 Rev 1 91/166 166 Register description 9.41 LSM6DSR FIFO_STATUS1 (3Ah) FIFO status register 1 (r) Table 117. 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 Table 118. FIFO_STATUS1 register description DIFF_ FIFO_[7:0] 9.42 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) Table 119. FIFO_STATUS2 register FIFO_ WTM_IA FIFO_ OVR_IA FIFO_ FULL_IA COUNTER FIFO_OVR_ _BDR_IA LATCHED 0(1) DIFF_ FIFO_9 DIFF_ FIFO_8 1. This bit must be set to '0' for the correct operation of the device. Table 120. FIFO_STATUS2 register description 92/166 FIFO_ WTM_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 FIFO_CTRL2 (08h) and FIFO_CTRL1 (07h). FIFO_ OVR_IA FIFO overrun status. Default value: 0 (0: FIFO is not completely filled; 1: FIFO is completely filled) FIFO_ FULL_IA 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_REG1 (0Bh) and 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 FIFO_STATUS1 (3Ah) DocID030186 Rev 1 LSM6DSR 9.43 Register description 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. Table 121. TIMESTAMP output registers D31 D30 D29 D28 D27 D26 D25 D24 D23 D22 D21 D20 D19 D18 D17 D16 D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Table 122. TIMESTAMP output register description 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). DocID030186 Rev 1 93/166 166 Register description 9.44 LSM6DSR TAP_CFG0 (56h) Activity/inactivity functions, configuration of filtering, and tap recognition functions (r/w). Table 123. TAP_CFG0 register 0 INT_CLR_ ON_READ SLEEP_ STATUS_ ON_INT SLOPE_ FDS TAP_X_EN TAP_Y_EN TAP_Z_EN LIR Table 124. TAP_CFG0 register description 94/166 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 Enable X direction in tap recognition. Default value: 0 (0: X direction disabled; 1: X direction enabled) TAP_Y_EN Enable Y direction in tap recognition. Default value: 0 (0: Y direction disabled; 1: Y direction enabled) TAP_Z_EN Enable Z direction in tap recognition. Default value: 0 (0: Z direction disabled; 1: Z direction enabled) LIR Latched Interrupt. Default value: 0 (0: interrupt request not latched; 1: interrupt request latched) DocID030186 Rev 1 LSM6DSR 9.45 Register description TAP_CFG1 (57h) Tap configuration register (r/w) Table 125. TAP_CFG1 register TAP_PRI ORITY_2 TAP_PRI TAP_PRIO TAP_THS ORITY_1 RITY_0 _X_4 TAP_THS_ TAP_THS_ TAP_THS_ TAP_THS X_3 X_2 X_1 _X_0 Table 126. TAP_CFG1 register description TAP_PRIORITY_[2:0] Selection of axis priority for TAP detection (see Table 126) TAP_THS_X_[4:0] X-axis tap recognition threshold. Default value: 0 1 LSB = FS_XL / (25) Table 127. TAP priority decoding 9.46 TAP_PRIORITY_[2:0] Max. priority Mid. priority Min. priority 000 X Y Z 001 Y X Z 010 X Z Y 011 Z Y X 100 X Y Z 101 Y Z X 110 Z X Y 111 Z Y X TAP_CFG2 (58h) Enables interrupt and inactivity functions, and tap recognition functions (r/w). Table 128. TAP_CFG2 register INTERRUPTS_ ENABLE INACT_ EN1 INACT_ EN0 TAP_THS TAP_THS TAP_THS TAP_THS TAP_THS _Y_4 _Y_3 _Y_2 _Y_1 _Y_0 Table 129. TAP_CFG2 register description INTERRUPTS_ Enable basic interrupts (6D/4D, free-fall, wake-up, tap, inactivity). Default value: 0 ENABLE (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; INACT_EN[1:0] 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) TAP_THS_ Y_[4:0] Y-axis tap recognition threshold. Default value: 0 1 LSB = FS_XL / (25) DocID030186 Rev 1 95/166 166 Register description 9.47 LSM6DSR TAP_THS_6D (59h) Portrait/landscape position and tap function threshold register (r/w). Table 130. TAP_THS_6D register D4D_ SIXD_THS1 SIXD_THS0 EN TAP_ THS_Z_4 TAP_ THS_Z_3 TAP_ THS_Z_2 TAP_ THS_Z_1 TAP_ THS_Z_0 Table 131. TAP_THS_6D register description D4D_EN 4D orientation detection enable. Z-axis position detection is disabled. Default value: 0 (0: enabled; 1: disabled) SIXD_THS[1:0] Threshold for 4D/6D function. Default value: 00 For details, refer to Table 131. TAP_THS_Z_[4:0] Z-axis recognition threshold. Default value: 0 1 LSB = FS_XL / (25) Table 132. Threshold for D4D/D6D function SIXD_THS[1:0] 9.48 Threshold value 00 80 degrees 01 70 degrees 10 60 degrees 11 50 degrees INT_DUR2 (5Ah) Tap recognition function setting register (r/w). Table 133. INT_DUR2 register DUR3 DUR2 DUR1 DUR0 QUIET1 QUIET0 SHOCK1 SHOCK0 Table 134. INT_DUR2 register description 96/166 DUR[3: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. QUIET[1:0] 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. DocID030186 Rev 1 LSM6DSR 9.49 Register description WAKE_UP_THS (5Bh) Single/double-tap selection and wake-up configuration (r/w) Table 135. WAKE_UP_THS register SINGLE_ USR_OFF DOUBLE_ WK_THS5 WK_THS4 WK_THS3 WK_THS2 WK_THS1 WK_THS0 _ON_WU TAP Table 136. WAKE_UP_THS register description Single/double-tap event enable. Default: 0 SINGLE_ (0: only single-tap event enabled; DOUBLE_TAP 1: both single and double-tap events enabled) 9.50 USR_OFF_ ON_WU Drives 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 WAKE_UP_DUR (5Ch). Default value: 000000 WAKE_UP_DUR (5Ch) Free-fall, wakeup and sleep mode functions duration setting register (r/w) Table 137. WAKE_UP_DUR register FF_DUR5 WAKE_ DUR1 WAKE_ DUR0 WAKE_ THS_W SLEEP_ DUR3 SLEEP_ DUR2 SLEEP_ DUR1 SLEEP_ DUR0 Table 138. WAKE_UP_DUR register description FF_DUR5 Free fall duration event. Default: 0 For the complete configuration of the free-fall duration, refer to FF_DUR[4:0] in FREE_FALL (5Dh) configuration. 1 LSB = 1 ODR_time WAKE_DUR[1:0] Wake up duration event. Default: 00 1LSB = 1 ODR_time WAKE_THS_W Weight of 1 LSB of wakeup threshold. Default: 0 (0: 1 LSB = FS_XL / (26); 1: 1 LSB = FS_XL / (28) ) SLEEP_DUR[3:0] Duration to go in sleep mode. Default value: 0000 (this corresponds to 16 ODR) 1 LSB = 512 ODR DocID030186 Rev 1 97/166 166 Register description 9.51 LSM6DSR FREE_FALL (5Dh) Free-fall function duration setting register (r/w). Table 139. FREE_FALL register FF_DUR4 FF_DUR3 FF_DUR2 FF_DUR1 FF_DUR0 FF_THS2 FF_THS1 FF_THS0 Table 140. 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. Default: 000 For details refer to Table 140. Table 141. Threshold for free-fall function FF_THS[2:0] 98/166 Threshold value 000 156 mg 001 219 mg 010 250 mg 011 312 mg 100 344 mg 101 406 mg 110 469 mg 111 500 mg DocID030186 Rev 1 LSM6DSR 9.52 Register description MD1_CFG (5Eh) Functions routing on INT1 register (r/w) Table 142. MD1_CFG register INT1_ SLEEP_ CHANGE INT1_ SINGLE_ TAP INT1_WU INT1_FF INT1_ DOUBLE_ TAP INT1_6D INT1_EMB _FUNC INT1_ SHUB Table 143. MD1_CFG register description INT1_SLEEP_ CHANGE(1) 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) INT1_SINGLE_TAP 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) INT1_WU 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) INT1_FF 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 INT1_DOUBLE_TAP (0: routing of double-tap event on INT1 disabled; 1: routing of double-tap event on INT1 enabled) INT1_6D 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) INT1_EMB_FUNC 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) INT1_SHUB 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 TAP_CFG0 (56h) register. DocID030186 Rev 1 99/166 166 Register description 9.53 LSM6DSR MD2_CFG (5Fh) Functions routing on INT2 register (r/w) Table 144. MD2_CFG register INT2_ SLEEP_ CHANGE INT2_ SINGLE_ TAP INT2_WU INT2_FF INT2_ DOUBLE_ TAP INT2_6D INT2_ EMB_ FUNC INT2_ TIMESTAMP Table 145. MD2_CFG register description INT2_SLEEP_CHANGE(1) 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) INT2_SINGLE_TAP 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) INT2_WU 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) INT2_FF 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) INT2_DOUBLE_TAP 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) INT2_6D 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) INT2_EMB_FUNC 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) INT2_TIMESTAMP Enables routing on INT2 pin of the alert for timestamp overflow within 6.4 ms 1. Activity/Inactivity interrupt mode (sleep change or sleep status) depends on the SLEEP_STATUS_ON_INT bit in TAP_CFG0 (56h) register. 9.54 S4S_ST_CMD_CODE (60h) S4S Master command register (r/w) Table 146. S4S_ST_CMD_CODE register ST_CMD_ ST_CMD_ ST_CMD_ ST_CMD_ ST_CMD_ ST_CMD_ ST_CMD_ ST_CMD_ CODE7 CODE6 CODE5 CODE4 CODE3 CODE2 CODE1 CODE0 Table 147. S4S_ST_CMD_CODE register description ST_CMD_ CODE7[7:0] 100/166 Master command code used for S4S. Default value: 0 DocID030186 Rev 1 LSM6DSR 9.55 Register description S4S_DT_REG (61h) S4S DT register (r/w) Table 148. S4S_DT_REG register DT7 DT6 DT5 DT4 DT3 DT2 DT1 DT0 0(1) 0(1) Table 149. S4S_DT_REG register description DT[7:0] 9.56 DT used for S4S. Default value: 0 I3C_BUS_AVB (62h) I3C_BUS_AVB register (r/w) Table 150. I3C_BUS_AVB register 0(1) 0(1) 0(1) I3C_Bus_ Avb_Sel1 I3C_Bus_ Avb_Sel0 0(1) 1. This bit must be set to '0' for the correct operation of the device. Table 151. 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 (00: bus available time equal to 50 μsec (default); 01: bus available time equal to 2 μsec; _Sel[1:0] 10: bus available time equal to 1 msec; 11: bus available time equal to 25 msec) DocID030186 Rev 1 101/166 166 Register description 9.57 LSM6DSR INTERNAL_FREQ_FINE (63h) Internal frequency register (r) Table 152. INTERNAL_FREQ_FINE register FREQ_ FINE7 FREQ_ FINE6 FREQ_ FINE5 FREQ_ FINE4 FREQ_ FINE3 FREQ_ FINE2 FREQ_ FINE1 FREQ_ FINE0 Table 153. 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 ODR_Coeff 12.5 512 26 256 52 128 104 64 208 32 416 16 833 8 1667 4 3333 2 6667 1 The Selected_ODR parameter has to be derived from the ODR_XL selection (Table 50: Accelerometer ODR register setting) in order to estimate the accelerometer ODR and from the ODR_G selection (Table 53: Gyroscope ODR configuration setting) in order to estimate the gyroscope ODR. 102/166 DocID030186 Rev 1 LSM6DSR 9.58 Register description 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 154. INT_OIS register INT2_ DRDY_ OIS LVL2_OIS DEN_LH_ OIS - - 0 ST1_XL_ OIS ST0_XL_ OIS Table 155. INT_OIS register description INT2_DRDY_ Enables OIS chain DRDY on INT2 pin. This setting has priority over all other INT2 OIS settings. LVL2_OIS Enables level-sensitive latched mode on the OIS chain. Default value: 0 DEN_LH_ OIS Indicates polarity of DEN signal on OIS chain (0: DEN pin is active-low; 1: DEN pin is active-high) ST[1:0]_XL_ OIS 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) DocID030186 Rev 1 103/166 166 Register description 9.59 LSM6DSR CTRL1_OIS (70h) OIS configuration register. Primary interface for read-only (r); only Aux SPI can write to this register (r/w). Table 156. CTRL1_OIS register 0 LVL1_OIS SIM_OIS Mode4_ EN FS1_G_ OIS FS0_G_ OIS FS_125_ OIS OIS_EN_ SPI2 Table 157. CTRL1_OIS register description LVL1_OIS Enables OIS data level-sensitive trigger SIM_OIS SPI2 3- or 4-wire interface. Default value: 0 (0: 4-wire SPI2; 1: 3-wire SPI2) Mode4_EN Enables accelerometer OIS chain. OIS outputs are available through SPI2 in registers 28h-2Dh. Note: OIS_EN_SPI2 must be enabled (i.e. set to ‘1’) to enable also XL OIS chain. FS[1:0]_G_ OIS Selects gyroscope OIS chain full-scale (00: 250 dps; 01: 500 dps; 10: 1000 dps; 11: 2000 dps) FS_125_OIS 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 and Mode 4 (mode4_en = 1). OIS_EN_SPI2 When the OIS chain is enabled, the OIS outputs are available through the SPI2 in registers OUTX_L_G (22h) and OUTX_H_G (23h) through and STATUS_REG (1Eh) / 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 INT_OIS (6Fh). DEN mode on the OIS path is active in the gyroscope only. Table 158. DEN mode selection 104/166 LVL1_OIS, LVL2_OIS DEN mode 10 Level-sensitive trigger mode is selected 11 Level-sensitive latched mode is selected DocID030186 Rev 1 LSM6DSR 9.60 Register description CTRL2_OIS (71h) OIS configuration register. Primary interface for read-only (r); only Aux SPI can write to this register (r/w). Table 159. CTRL2_OIS register - - HPM1_ OIS HPM0_ OIS 0 FTYPE_1_ FTYPE_0_ OIS OIS HP_EN_ OIS Table 160. 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 160 shows cutoff and phase values obtained with all configurations. HP_EN_OIS Enables gyroscope OIS chain digital high-pass filter Table 161. Gyroscope OIS chain digital LPF1 filter bandwidth selection ODR [Hz] 6.66 kHz LPF1 FTYPE_[1:0]_OIS Total BW [Hz] (phase delay @20 Hz) 00 297 Hz (7°) 01 222 Hz (9°) 10 154 Hz (12°) 11 470 Hz (5°) DocID030186 Rev 1 105/166 166 Register description 9.61 LSM6DSR CTRL3_OIS (72h) OIS configuration register. Primary interface for read-only (r); only Aux SPI can write to this register (r/w). Table 162. CTRL3_OIS register FS1_XL_ OIS FS0_XL_ OIS FILTER_ FILTER_ FILTER_ XL_CONF XL_CONF XL_CONF _OIS_2 _OIS_1 _OIS_0 ST1_OIS ST0_OIS ST_OIS_ CLAMPDIS Table 163. 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 Table 163. ST[1:0]_OIS Selects gyroscope OIS chain self-test. Default value: 00 Table 164 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) ST_OIS_ CLAMPDIS Disables OIS chain clamp (0: All OIS chain outputs = 8000h during self-test; 1: OIS chain self-test outputs as shown in Table 164. Table 164. Accelerometer OIS channel bandwidth and phase FILTER_XL_CONF_OIS[2:0] Typ. overall bandwidth [Hz] Typ. overall phase [°] 000 631 -4.20 @ 20 Hz 001 295 -6.35 @ 20 Hz 010 140 -10.6 @ 20 Hz 011 68.2 -18.9 @ 20 Hz 100 33.6 -17.8 @ 10 Hz 101 16.7 -32.2 @ 10 Hz 110 8.3 -26.2 @ 4 Hz 111 4.14 -26.0 @ 2 Hz Table 165. Self-test nominal output variation 106/166 Full scale Ouput variation [dps] 2000 400 1000 200 500 100 250 50 125 25 DocID030186 Rev 1 LSM6DSR 9.62 Register description 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. Table 166. X_OFS_USR register X_OFS_ USR_7 X_OFS_ USR_6 X_OFS_ USR_5 X_OFS_ USR_4 X_OFS_ USR_3 X_OFS_ USR_2 X_OFS_ USR_1 X_OFS_ USR_0 Table 167. X_OFS_USR register description X_OFS_USR_ [7:0] Accelerometer X-axis user offset correction expressed in two’s complement, weight depends on USR_OFF_W in CTRL6_C (15h). The value must be in the range [-127 127]. 9.63 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. Table 168. Y_OFS_USR register Y_OFS_ USR_7 Y_OFS_ USR_6 Y_OFS_ USR_5 Y_OFS_ USR_4 Y_OFS_ USR_3 Y_OFS_ USR_2 Y_OFS_ USR_1 Y_OFS_ USR_0 Table 169. Y_OFS_USR register description Y_OFS_ USR_[7:0] 9.64 Accelerometer Y-axis user offset calibration expressed in 2’s complement, weight depends on USR_OFF_W in CTRL6_C (15h). 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. Table 170. Z_OFS_USR register Z_OFS_ USR_7 Z_OFS_ USR_6 Z_OFS_ USR_5 Z_OFS_ USR_4 Z_OFS_ USR_3 Z_OFS_ USR_2 Z_OFS_ USR_1 Z_OFS_ USR_0 Table 171. 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 CTRL6_C (15h). The value must be in the range [-127, +127]. DocID030186 Rev 1 107/166 166 Register description 9.65 LSM6DSR FIFO_DATA_OUT_TAG (78h) FIFO tag register (r) Table 172. FIFO_DATA_OUT_TAG register TAG_ TAG_ TAG_ TAG_ TAG_ TAG_CNT SENSOR_ SENSOR_ SENSOR_ SENSOR_ SENSOR_ _1 4 3 2 1 0 TAG_CNT _0 TAG_ PARITY Table 173. FIFO_DATA_OUT_TAG register description TAG_SENSOR_[4:0] FIFO tag: identifies the sensor in: FIFO_DATA_OUT_X_L (79h) and FIFO_DATA_OUT_X_H (7Ah), FIFO_DATA_OUT_Y_L (7Bh) and 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 173: FIFO tag TAG_CNT_[1:0] 2-bit counter which identifies sensor time slot TAG_PARITY Parity check of TAG content Table 174. FIFO tag 108/166 TAG_SENSOR_[4:0] Sensor name 0x01 Gyroscope NC 0x02 Accelerometer NC 0x03 Temperature 0x04 Timestamp 0x05 CFG_Change 0x06 Accelerometer NC_T_2 0x07 Accelerometer NC_T_1 0x08 Accelerometer 2xC 0x09 Accelerometer 3xC 0x0A Gyroscope NC_T_2 0x0B Gyroscope NC_T_1 0x0C Gyroscope 2xC 0x0D Gyroscope 3xC 0x0E Sensor Hub Slave 0 0x0F Sensor Hub Slave 1 0x10 Sensor Hub Slave 2 0x11 Sensor Hub Slave 3 0x12 Step Counter 0x19 Sensor Hub Nack DocID030186 Rev 1 LSM6DSR 9.66 Register description FIFO_DATA_OUT_X_L (79h) and FIFO_DATA_OUT_X_H (7Ah) FIFO data output X (r) Table 175. FIFO_DATA_OUT_X_H and FIFO_DATA_OUT_X_L registers D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Table 176. FIFO_DATA_OUT_X_H and FIFO_DATA_OUT_X_L register description D[15:0] 9.67 FIFO X-axis output FIFO_DATA_OUT_Y_L (7Bh) and FIFO_DATA_OUT_Y_H (7Ch) FIFO data output Y (r) Table 177. FIFO_DATA_OUT_Y_H and FIFO_DATA_OUT_Y_L registers D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Table 178. FIFO_DATA_OUT_Y_H and FIFO_DATA_OUT_Y_L register description D[15:0] 9.68 FIFO Y-axis output FIFO_DATA_OUT_Z_L (7Dh) and FIFO_DATA_OUT_Z_H (7Eh) FIFO data output Z (r) Table 179. FIFO_DATA_OUT_Z_H and FIFO_DATA_OUT_Z_L registers D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Table 180. FIFO_DATA_OUT_Z_H and FIFO_DATA_OUT_Z_L register description D[15:0] FIFO Z-axis output Table 181. SPI_INT_OIS register INT2_ DRDY_ OIS LVL2_OIS DEN_LH_ OIS - DocID030186 Rev 1 - 0 ST1_XL_ OIS ST0_XL_ OIS 109/166 166 Embedded functions register mapping 10 LSM6DSR 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 FUNC_CFG_ACCESS (01h). Table 182. Register address map - embedded functions Register address Name Type Default Hex Binary PAGE_SEL r/w 02 00000010 00000001 ADV_PEDO r/w 03 00000011 00000010 EMB_FUNC_EN_A r/w 04 00000100 00000000 EMB_FUNC_EN_B r/w 05 00000101 00000000 PAGE_ADDRESS r/w 08 00001000 00000000 PAGE_VALUE r/w 09 00001001 00000000 EMB_FUNC_INT1 r/w 0A 00001010 00000000 FSM_INT1_A r/w 0B 00001011 00000000 FSM_INT1_B r/w 0C 00001100 00000000 EMB_FUNC_INT2 r/w 0E 00001110 00000000 FSM_INT2_A r/w 0F 00001111 00000000 FSM_INT2_B r/w 10 00010000 00000000 EMB_FUNC_STATUS r 12 00010010 output FSM_STATUS_A r 13 00010011 output FSM_STATUS_B r 14 00010100 output r/w 17 00010111 00000000 18-43 00011000 PAGE_RW RESERVED EMB_FUNC_FIFO_CFG r/w 44 01000100 00000000 FSM_ENABLE_A r/w 46 01000110 00000000 FSM_ENABLE_B r/w 47 01000111 00000000 FSM_LONG_COUNTER_L r/w 48 01001000 00000000 FSM_LONG_COUNTER_H r/w 49 01001001 00000000 FSM_LONG_COUNTER_CLEAR r/w 4A 01001010 00000000 FSM_OUTS1 r 4C 01001100 output FSM_OUTS2 r 4D 01001101 output FSM_OUTS3 r 4E 01001110 output FSM_OUTS4 r 4F 01001111 output FSM_OUTS5 r 50 01010000 output 110/166 DocID030186 Rev 1 Comment LSM6DSR Embedded functions register mapping Table 182. Register address map - embedded functions (continued) Register address Name Type Default Hex Binary FSM_OUTS6 r 51 01010001 output FSM_OUTS7 r 52 01010010 output FSM_OUTS8 r 53 01010011 output FSM_OUTS9 r 54 01010100 output FSM_OUTS10 r 55 01010101 output FSM_OUTS11 r 56 01010110 output FSM_OUTS12 r 57 01010111 output FSM_OUTS13 r 58 01011000 output FSM_OUTS14 r 59 01011001 output FSM_OUTS15 r 5A 01011010 output FSM_OUTS16 r 5B 01011011 output 5E 01011110 r/w 5F 01011111 01001011 STEP_COUNTER_L r 62 01100010 output STEP_COUNTER_H r 63 01100011 output EMB_FUNC_SRC r/w 64 01100100 output EMB_FUNC_INIT_A r/w 66 01100110 00000000 EMB_FUNC_INIT_B r/w 67 01100111 00000000 RESERVED EMB_FUNC_ODR_CFG_B 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. DocID030186 Rev 1 111/166 166 Embedded functions register description LSM6DSR 11 Embedded functions register description 11.1 PAGE_SEL (02h) Enable advanced features dedicated page (r/w) Table 183. PAGE_SEL register PAGE_SEL3 PAGE_SEL2 PAGE_SEL1 PAGE_SEL0 0(1) 0(1) 0(1) 1(2) 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. Table 184. PAGE_SEL register description Select the advanced features dedicated page PAGE_SEL[3:0] Default value: 0000 11.2 ADV_PEDO (03h) Enable/disable pedometer advanced features register (r/w) Table 185. ADV_PEDO register 0(1) 0(1) 0(1) 0(1) 0(1) 0(1) PEDO_ FPR_ADF _DIS 0(1) 1. This bit must be set to '0' for the correct operation of the device. Table 186. ADV_PEDO description PEDO_FPR_ADF_DIS 112/166 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) DocID030186 Rev 1 LSM6DSR 11.3 Embedded functions register description EMB_FUNC_EN_A (04h) Embedded functions enable register (r/w) Table 187. EMB_FUNC_EN_A register 0(1) SIGN_ MOTION_ EN 0(1) TILT_EN PEDO_EN 0(1) 0(1) 0(1) 1. This bit must be set to '0' for the correct operation of the device. Table 188. EMB_FUNC_EN_A register description 11.4 SIGN_MOTION_EN Enable significant motion detection function. Default value: 0 (0: significant motion detection function disabled; 1: significant motion detection function enabled) TILT_EN Enable tilt calculation. Default value: 0 (0: tilt algorithm disabled; 1: tilt algorithm enabled) PEDO_EN 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 189. EMB_FUNC_EN_B register 0(1) 0(1) 0(1) PEDO_ ADV_EN FIFO_CO MPR_EN 0(1) 0(1) FSM_EN 1. This bit must be set to '0' for the correct operation of the device. Table 190. EMB_FUNC_EN_B register description PEDO_ADV_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(1) Enable FIFO compression feature. Default value: 0 (0: FIFO compression feature disabled; 1: FIFO compression feature enabled) FSM_EN 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 FIFO_CTRL2 (08h) is set to 1. DocID030186 Rev 1 113/166 166 Embedded functions register description 11.5 LSM6DSR PAGE_ADDRESS (08h) Page address register (r/w) Table 191. PAGE_ADDRESS register PAGE_ ADDR7 PAGE_ ADDR6 PAGE_ ADDR5 PAGE_ ADDR4 PAGE_ ADDR3 PAGE_ ADDR2 PAGE_ ADDR1 PAGE_ ADDR0 Table 192. PAGE_ADDRESS register description After setting the bit PAGE_WRITE / PAGE_READ in register PAGE_RW (17h), this register is used to set the address of the register to be written/read in the PAGE_ADDR[7:0] advanced features page selected through the bits PAGE_SEL[3:0] in register PAGE_SEL (02h). 11.6 PAGE_VALUE (09h) Page value register (r/w) Table 193. PAGE_VALUE register PAGE_ VALUE7 PAGE_ VALUE6 PAGE_ VALUE5 PAGE_ VALUE4 PAGE_ VALUE3 PAGE_ VALUE2 PAGE_ VALUE1 PAGE_ VALUE0 Table 194. PAGE_VALUE register description These bits are used to write (if the bit PAGE_WRITE = 1 in register PAGE_RW PAGE_VALUE[7:0] (17h)) or read (if the bit PAGE_READ = 1 in register PAGE_RW (17h)) the data at the address PAGE_ADDR[7:0] of the selected advanced features page. 11.7 EMB_FUNC_INT1 (0Ah) INT1 pin control register (r/w) Each bit in this register enables a signal to be carried through INT1. The pin's output will supply the OR combination of the selected signals. Table 195. EMB_FUNC_INT1 register INT1_ FSM_ LC 0(1) INT1_SIG _MOT INT1_TILT INT1_ STEP_ DETECTOR 0(1) 0(1) 0(1) 1. This bit must be set to '0' for the correct operation of the device. Table 196. EMB_FUNC_INT1 register description INT1_FSM_LC(1) Routing of FSM long counter timeout interrupt event on INT1. Default value: 0 (0: routing on INT1 disabled; 1: routing on INT1 enabled) INT1_SIG_MOT(1) Routing of significant motion event on INT1. Default value: 0 (0: routing on INT1 disabled; 1: routing on INT1 enabled) INT1_TILT(1) Routing of tilt event on INT1. Default value: 0 (0: routing on INT1 disabled; 1: routing on INT1 enabled) INT1_STEP_ DETECTOR(1) 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 MD1_CFG (5Eh) is set to 1. 114/166 DocID030186 Rev 1 LSM6DSR 11.8 Embedded functions register description FSM_INT1_A (0Bh) INT1 pin control register (r/w). Each bit in this register enables a signal to be carried through INT1. The pin's output will supply the OR combination of the selected signals. Table 197. FSM_INT1_A register INT1_ FSM8 INT1_ FSM7 INT1_ FSM6 INT1_ FSM5 INT1_ FSM4 INT1_ FSM3 INT1_ FSM2 INT1_ FSM1 Table 198. FSM_INT1_A register description INT1_FSM8(1) Routing of FSM8 interrupt event on INT1. Default value: 0 (0: routing on INT1 disabled; 1: routing on INT1 enabled) INT1_FSM7(1) Routing of FSM7 interrupt event on INT1. Default value: 0 (0: routing on INT1 disabled; 1: routing on INT1 enabled) INT1_FSM6(1) Routing of FSM6 interrupt event on INT1. Default value: 0 (0: routing on INT1 disabled; 1: routing on INT1 enabled) INT1_FSM5(1) Routing of FSM5 interrupt event on INT1. Default value: 0 (0: routing on INT1 disabled; 1: routing on INT1 enabled) INT1_FSM4(1) Routing of FSM4 interrupt event on INT1. Default value: 0 (0: routing on INT1 disabled; 1: routing on INT1 enabled) INT1_FSM3(1) Routing of FSM3 interrupt event on INT1. Default value: 0 (0: routing on INT1 disabled; 1: routing on INT1 enabled) INT1_FSM2(1) Routing of FSM2 interrupt event on INT1. Default value: 0 (0: routing on INT1 disabled; 1: routing on INT1 enabled) INT1_FSM1(1) 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 MD1_CFG (5Eh) is set to 1. DocID030186 Rev 1 115/166 166 Embedded functions register description 11.9 LSM6DSR FSM_INT1_B (0Ch) INT1 pin control register (r/w). Each bit in this register enables a signal to be carried through INT1. The pin's output will supply the OR combination of the selected signals. Table 199. FSM_INT1_B register INT1_ FSM16 INT1_ FSM15 INT1_ FSM14 INT1_ FSM13 INT1_ FSM12 INT1_ FSM11 INT1_ FSM10 Table 200. FSM_INT1_B register description INT1_FSM16(1) Routing of FSM16 interrupt event on INT1. Default value: 0 (0: routing on INT1 disabled; 1: routing on INT1 enabled) INT1_FSM15(1) Routing of FSM15 interrupt event on INT1. Default value: 0 (0: routing on INT1 disabled; 1: routing on INT1 enabled) INT1_FSM14(1) Routing of FSM14 interrupt event on INT1. Default value: 0 (0: routing on INT1 disabled; 1: routing on INT1 enabled) INT1_FSM13(1) Routing of FSM13 interrupt event on INT1. Default value: 0 (0: routing on INT1 disabled; 1: routing on INT1 enabled) INT1_FSM12(1) Routing of FSM12 interrupt event on INT1. Default value: 0 (0: routing on INT1 disabled; 1: routing on INT1 enabled) INT1_FSM11(1) Routing of FSM11 interrupt event on INT1. Default value: 0 (0: routing on INT1 disabled; 1: routing on INT1 enabled) INT1_FSM10(1) Routing of FSM10 interrupt event on INT1. Default value: 0 (0: routing on INT1 disabled; 1: routing on INT1 enabled) INT1_FSM9(1) 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 MD1_CFG (5Eh) is set to 1. 116/166 DocID030186 Rev 1 INT1_ FSM9 LSM6DSR 11.10 Embedded functions register description EMB_FUNC_INT2 (0Eh) INT2 pin control register (r/w). Each bit in this register enables a signal to be carried through INT2. The pin's output will supply the OR combination of the selected signals. Table 201. EMB_FUNC_INT2 register INT2_ FSM_LC 0(1) INT2_SIG _MOT INT2_TILT INT2_ STEP_ DETECTOR 0(1) 0(1) 0(1) 1. This bit must be set to '0' for the correct operation of the device. Table 202. EMB_FUNC_INT2 register description INT2_FSM_LC(1) Routing of FSM long counter timeout interrupt event on INT2. Default value: 0 (0: routing on INT2 disabled; 1: routing on INT2 enabled) INT2_SIG_MOT(1) Routing of significant motion event on INT2. Default value: 0 (0: routing on INT2 disabled; 1: routing on INT2 enabled) INT2_TILT(1) Routing of tilt event on INT2. Default value: 0 (0: routing on INT2 disabled; 1: routing on INT2 enabled) INT2_STEP_ DETECTOR(1) 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 MD2_CFG (5Fh) is set to 1. DocID030186 Rev 1 117/166 166 Embedded functions register description 11.11 LSM6DSR FSM_INT2_A (0Fh) INT2 pin control register (r/w). Each bit in this register enables a signal to be carried through INT2. The pin's output will supply the OR combination of the selected signals. Table 203. FSM_INT2_A register INT2_ FSM8 INT2_ FSM7 INT2_ FSM6 INT2_ FSM5 INT2_ FSM4 INT2_ FSM3 INT2_ FSM2 Table 204. FSM_INT2_A register description INT2_FSM8(1) Routing of FSM8 interrupt event on INT2. Default value: 0 (0: routing on INT2 disabled; 1: routing on INT2 enabled) INT2_FSM7(1) Routing of FSM7 interrupt event on INT2. Default value: 0 (0: routing on INT2 disabled; 1: routing on INT2 enabled) INT2_FSM6(1) Routing of FSM6 interrupt event on INT2. Default value: 0 (0: routing on INT2 disabled; 1: routing on INT2 enabled) INT2_FSM5(1) Routing of FSM5 interrupt event on INT2. Default value: 0 (0: routing on INT2 disabled; 1: routing on INT2 enabled) INT2_FSM4(1) Routing of FSM4 interrupt event on INT2. Default value: 0 (0: routing on INT2 disabled; 1: routing on INT2 enabled) INT2_FSM3(1) Routing of FSM3 interrupt event on INT2. Default value: 0 (0: routing on INT2 disabled; 1: routing on INT2 enabled) INT2_FSM2(1) Routing of FSM2 interrupt event on INT2. Default value: 0 (0: routing on INT2 disabled; 1: routing on INT2 enabled) INT2_FSM1(1) 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 MD2_CFG (5Fh) is set to 1. 118/166 DocID030186 Rev 1 INT2_ FSM1 LSM6DSR 11.12 Embedded functions register description FSM_INT2_B (10h) INT2 pin control register (r/w). Each bit in this register enables a signal to be carried through INT2. The pin's output will supply the OR combination of the selected signals. Table 205. FSM_INT2_B register INT2_ FSM16 INT2_ FSM15 INT2_ FSM14 INT2_ FSM13 INT2_ FSM12 INT2_ FSM11 INT2_ FSM10 INT2_ FSM9 Table 206. FSM_INT2_B register description INT2_FSM16(1) Routing of FSM16 interrupt event on INT2. Default value: 0 (0: routing on INT2 disabled; 1: routing on INT2 enabled) INT2_FSM15(1) Routing of FSM15 interrupt event on INT2. Default value: 0 (0: routing on INT2 disabled; 1: routing on INT2 enabled) INT2_FSM14(1) Routing of FSM14 interrupt event on INT2. Default value: 0 (0: routing on INT2 disabled; 1: routing on INT2 enabled) INT2_FSM13(1) Routing of FSM13 interrupt event on INT2. Default value: 0 (0: routing on INT2 disabled; 1: routing on INT2 enabled) INT2_FSM12(1) Routing of FSM12 interrupt event on INT2. Default value: 0 (0: routing on INT2 disabled; 1: routing on INT2 enabled) INT2_FSM11(1) Routing of FSM11 interrupt event on INT2. Default value: 0 (0: routing on INT2 disabled; 1: routing on INT2 enabled) INT2_FSM10(1) Routing of FSM10 interrupt event on INT2. Default value: 0 (0: routing on INT2 disabled; 1: routing on INT2 enabled) INT2_FSM9(1) 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 MD2_CFG (5Fh) is set to 1. DocID030186 Rev 1 119/166 166 Embedded functions register description 11.13 LSM6DSR EMB_FUNC_STATUS (12h) Embedded function status register (r). Table 207. EMB_FUNC_STATUS register IS_FSM_LC IS_ SIGMOT 0 IS_ TILT IS_STEP_ DET 0 0 0 Table 208. EMB_FUNC_STATUS register description 11.14 IS_FSM_LC Interrupt status bit for FSM long counter timeout interrupt event. (1: interrupt detected; 0: no interrupt) IS_SIGMOT Interrupt status bit for significant motion detection (1: interrupt detected; 0: no interrupt) IS_TILT Interrupt status bit for tilt detection (1: interrupt detected; 0: no interrupt) IS_STEP_DET Interrupt status bit for step detection (1: interrupt detected; 0: no interrupt) FSM_STATUS_A (13h) Finite State Machine status register (r). Table 209. FSM_STATUS_A register IS_FSM8 IS_FSM7 IS_FSM6 IS_FSM5 IS_FSM4 IS_FSM3 IS_FSM2 Table 210. FSM_STATUS_A register description 120/166 IS_FSM8 Interrupt status bit for FSM8 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM7 Interrupt status bit for FSM7 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM6 Interrupt status bit for FSM6 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM5 Interrupt status bit for FSM5 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM4 Interrupt status bit for FSM4 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM3 Interrupt status bit for FSM3 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM2 Interrupt status bit for FSM2 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM1 Interrupt status bit for FSM1 interrupt event. (1: interrupt detected; 0: no interrupt) DocID030186 Rev 1 IS_FSM1 LSM6DSR 11.15 Embedded functions register description FSM_STATUS_B (14h) Finite State Machine status register (r). Table 211. FSM_STATUS_B register IS_FSM16 IS_FSM15 IS_FSM14 IS_FSM13 IS_FSM12 IS_FSM11 IS_FSM10 IS_FSM9 Table 212. FSM_STATUS_B register description 11.16 IS_FSM16 Interrupt status bit for FSM16 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM15 Interrupt status bit for FSM15 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM14 Interrupt status bit for FSM14 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM13 Interrupt status bit for FSM13 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM12 Interrupt status bit for FSM12 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM11 Interrupt status bit for FSM11 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM10 Interrupt status bit for FSM10 interrupt event. (1: interrupt detected; 0: no interrupt) IS_FSM9 Interrupt status bit for FSM9 interrupt event. (1: interrupt detected; 0: no interrupt) PAGE_RW (17h) Enable read and write mode of advanced features dedicated page (r/w) Table 213. PAGE_RW register EMB_ FUNC_LIR PAGE_ WRITE PAGE_ READ 0(1) 0(1) 0(1) 0(1) 0(1) 1. This bit must be set to '0' for the correct operation of the device. Table 214. PAGE_RW register description Latched Interrupt mode for Embedded Functions. Default value: 0 EMB_FUNC_LIR (0: Embedded Functions interrupt request not latched; 1: Embedded Functions interrupt request latched) PAGE_WRITE Enable writes to the selected advanced features dedicated page(1). Default value: 0 (1: enable; 0: disable) PAGE_READ Enable reads from the selected advanced features dedicated page(1). Default value: 0 (1: enable; 0: disable) 1. Page selected by PAGE_SEL[3:0] in PAGE_SEL (02h) register. DocID030186 Rev 1 121/166 166 Embedded functions register description 11.17 LSM6DSR EMB_FUNC_FIFO_CFG (44h) Embedded functions batching configuration register (r/w). Table 215. EMB_FUNC_FIFO_CFG register 0(1) PEDO_ FIFO_EN 0(1) 0(1) 0(1) 0(1) 0(1) 0(1) 1. This bit must be set to '0' for the correct operation of the device. Table 216. EMB_FUNC_FIFO_CFG register description PEDO_FIFO_EN 11.18 Enable FIFO batching of step counter values. Default value: 0 FSM_ENABLE_A (46h) FSM enable register (r/w). Table 217. FSM_ENABLE_A register FSM8_EN FSM7_EN FSM6_EN FSM5_EN FSM4_EN FSM3_EN FSM2_EN FSM1_EN Table 218. FSM_ENABLE_A register description 122/166 FSM8_EN FSM8 enable. Default value: 0 (0: FSM8 disabled; 1: FSM8 enabled) FSM7_EN FSM7 enable. Default value: 0 (0: FSM7 disabled; 1: FSM7 enabled) FSM6_EN FSM6 enable. Default value: 0 (0: FSM6 disabled; 1: FSM6 enabled) FSM5_EN FSM5 enable. Default value: 0 (0: FSM5 disabled; 1: FSM5 enabled) FSM4_EN FSM4 enable. Default value: 0 (0: FSM4 disabled; 1: FSM4 enabled) FSM3_EN FSM3 enable. Default value: 0 (0: FSM3 disabled; 1: FSM3 enabled) FSM2_EN FSM2 enable. Default value: 0 (0: FSM2 disabled; 1: FSM2 enabled) FSM1_EN FSM1 enable. Default value: 0 (0: FSM1 disabled; 1: FSM1 enabled) DocID030186 Rev 1 LSM6DSR 11.19 Embedded functions register description FSM_ENABLE_B (47h) FSM enable register (r/w). Table 219. FSM_ENABLE_B register FSM16_EN FSM15_EN FSM14_EN FSM13_EN FSM12_EN FSM11_EN FSM10_EN FSM9_EN Table 220. FSM_ENABLE_B register description 11.20 FSM16_EN FSM16 enable. Default value: 0 (0: FSM16 disabled; 1: FSM16 enabled) FSM15_EN FSM15 enable. Default value: 0 (0: FSM15 disabled; 1: FSM15 enabled) FSM14_EN FSM14 enable. Default value: 0 (0: FSM14 disabled; 1: FSM14 enabled) FSM13_EN FSM13 enable. Default value: 0 (0: FSM13 disabled; 1: FSM13 enabled) FSM12_EN FSM12 enable. Default value: 0 (0: FSM12 disabled; 1: FSM12 enabled) FSM11_EN FSM11 enable. Default value: 0 (0: FSM11 disabled; 1: FSM11 enabled) FSM10_EN FSM10 enable. Default value: 0 (0: FSM10 disabled; 1: FSM10 enabled) FSM9_EN FSM9 enable. Default value: 0 (0: FSM9 disabled; 1: FSM9 enabled) 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. Table 221. FSM_LONG_COUNTER_L register FSM_LC_ 7 FSM_LC_ 6 FSM_LC_ 5 FSM_LC_ 4 FSM_LC_ 3 FSM_LC_ 2 FSM_LC_ 1 FSM_LC_ 0 Table 222. FSM_LONG_COUNTER_L register description FSM_LC_[7:0] Long counter current value (LSbyte). Default value: 00000000 Table 223. 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 Table 224. FSM_LONG_COUNTER_H register description FSM_LC_[15:8] Long counter current value (MSbyte). Default value: 00000000 DocID030186 Rev 1 123/166 166 Embedded functions register description 11.21 LSM6DSR FSM_LONG_COUNTER_CLEAR (4Ah) FSM long counter reset register (r/w). Table 225. FSM_LONG_COUNTER_CLEAR register 0(1) 0(1) 0(1) 0(1) 0(1) 0(1) FSM_LC_ FSM_LC_ CLEARED CLEAR 1. This bit must be set to '0' for the correct operation of the device. Table 226. 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 11.22 FSM_OUTS1 (4Ch) FSM1 output register (r). Table 227. FSM_OUTS1 register P_X N_X P_Y N_Y P_Z N_Z Table 228. FSM_OUTS1 register description 124/166 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) DocID030186 Rev 1 P_V N_V LSM6DSR 11.23 Embedded functions register description FSM_OUTS2 (4Dh) FSM2 output register (r). Table 229. FSM_OUTS2 register P_X N_X P_Y N_Y P_Z N_Z P_V N_V P_V N_V Table 230. FSM_OUTS2 register description 11.24 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) FSM_OUTS3 (4Eh) FSM3 output register (r). Table 231. FSM_OUTS3 register P_X N_X P_Y N_Y P_Z N_Z Table 232. 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) DocID030186 Rev 1 125/166 166 Embedded functions register description 11.25 LSM6DSR FSM_OUTS4 (4Fh) FSM4 output register (r). Table 233. FSM_OUTS4 register P_X N_X P_Y N_Y P_Z N_Z P_V N_V P_V N_V Table 234. FSM_OUTS4 register description 11.26 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) FSM_OUTS5 (50h) FSM5 output register (r). Table 235. FSM_OUTS5 register P_X N_X P_Y N_Y P_Z N_Z Table 236. FSM_OUTS5 register description 126/166 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) DocID030186 Rev 1 LSM6DSR 11.27 Embedded functions register description FSM_OUTS6 (51h) FSM6 output register (r). Table 237. FSM_OUTS6 register P_X N_X P_Y N_Y P_Z N_Z P_V N_V P_V N_V Table 238. FSM_OUTS6 register description 11.28 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) FSM_OUTS7 (52h) FSM7 output register (r). Table 239. FSM_OUTS7 register P_X N_X P_Y N_Y P_Z N_Z Table 240. 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) DocID030186 Rev 1 127/166 166 Embedded functions register description 11.29 LSM6DSR FSM_OUTS8 (53h) FSM8 output register (r). Table 241. FSM_OUTS8 register P_X N_X P_Y N_Y P_Z N_Z P_V N_V P_V N_V Table 242. FSM_OUTS8 register description 11.30 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) FSM_OUTS9 (54h) FSM9 output register (r). Table 243. FSM_OUTS9 register P_X N_X P_Y N_Y P_Z N_Z Table 244. FSM_OUTS9 register description 128/166 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) DocID030186 Rev 1 LSM6DSR 11.31 Embedded functions register description FSM_OUTS10 (55h) FSM10 output register (r). Table 245. FSM_OUTS10 register P_X N_X P_Y N_Y P_Z N_Z P_V N_V P_V N_V Table 246. FSM_OUTS10 register description 11.32 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) FSM_OUTS11 (56h) FSM11 output register (r). Table 247. FSM_OUTS11 register P_X N_X P_Y N_Y P_Z N_Z Table 248. 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) DocID030186 Rev 1 129/166 166 Embedded functions register description 11.33 LSM6DSR FSM_OUTS12 (57h) FSM12 output register (r). Table 249. FSM_OUTS12 register P_X N_X P_Y N_Y P_Z N_Z P_V N_V P_V N_V Table 250. FSM_OUTS12 register description 11.34 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) FSM_OUTS13 (58h) FSM13 output register (r). Table 251. FSM_OUTS13 register P_X N_X P_Y N_Y P_Z N_Z Table 252. FSM_OUTS13 register description 130/166 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) DocID030186 Rev 1 LSM6DSR 11.35 Embedded functions register description FSM_OUTS14 (59h) FSM14 output register (r). Table 253. FSM_OUTS14 register P_X N_X P_Y N_Y P_Z N_Z P_V N_V P_V N_V Table 254. FSM_OUTS14 register description 11.36 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) FSM_OUTS15 (5Ah) FSM15 output register (r). Table 255. FSM_OUTS15 register P_X N_X P_Y N_Y P_Z N_Z Table 256. 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) DocID030186 Rev 1 131/166 166 Embedded functions register description 11.37 LSM6DSR FSM_OUTS16 (5Bh) FSM16 output register (r). Table 257. FSM_OUTS16 register P_X N_X P_Y N_Y P_Z N_Z P_V N_V 1(2) 1(2) Table 258. FSM_OUTS16 register description 11.38 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) EMB_FUNC_ODR_CFG_B (5Fh) Finite State Machine output data rate configuration register (r/w). Table 259. EMB_FUNC_ODR_CFG_B register 0(1) 1(2) 0(1) FSM_ ODR1 FSM_ ODR0 0(1) 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. Table 260. EMB_FUNC_ODR_CFG_B register description FSM_ODR[1:0] 132/166 Finite State Machine ODR configuration: (00: 12.5 Hz; 01: 26 Hz (default); 10: 52 Hz; 11: 104 Hz) DocID030186 Rev 1 LSM6DSR 11.39 Embedded functions register description STEP_COUNTER_L (62h) and STEP_COUNTER_H (63h) Step counter output register (r). Table 261. STEP_COUNTER_L register STEP_7 STEP_6 STEP_5 STEP_4 STEP_3 STEP_2 STEP_1 STEP_0 Table 262. STEP_COUNTER_L register description STEP_[7:0] Step counter output (LSbyte) Table 263. STEP_COUNTER_H register STEP_15 STEP_14 STEP_13 STEP_12 STEP_11 STEP_10 STEP_9 STEP_8 Table 264. STEP_COUNTER_H register description STEP_[15:8] 11.40 Step counter output (MSbyte) EMB_FUNC_SRC (64h) Embedded function source register (r/w) Table 265. EMB_FUNC_SRC register PEDO_ RST_ STEP 0 STEP_ DETECTED STEP_ COUNT_ DELTA_IA STEPCOU STEP_ NTER_BIT OVERFLOW _SET 0 0 Table 266. EMB_FUNC_SRC register description PEDO_RST_ STEP Reset pedometer step counter. Read/write bit. (0: disabled; 1: enabled) STEP_ DETECTED Step detector event detection status. Read-only bit. (0: step detection event not detected; 1: step detection event detected) STEP_COUNT_ DELTA_IA 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_ OVERFLOW Step counter overflow status. Read-only bit. (0: step counter value < 216; 1: step counter value reached 216) STEPCOUNTER_ This bit is equal to 1 when the step count is increased. Read-only bit. BIT_SET DocID030186 Rev 1 133/166 166 Embedded functions register description 11.41 LSM6DSR EMB_FUNC_INIT_A (66h) Embedded functions initialization register (r/w) Table 267. EMB_FUNC_INIT_A register 0(1) SIG_MOT _INIT 0(1) TILT _INIT STEP_DET _INIT 0(1) 0(1) 0(1) 1. This bit must be set to '0' for the correct operation of the device. Table 268. EMB_FUNC_INIT_A register description 11.42 SIG_MOT_INIT Significant Motion Detection algorithm initialization request. Default value: 0 TILT_INIT Tilt algorithm initialization request. Default value: 0 STEP_DET_INIT Pedometer Step Counter/Detector algorithm initialization request. Default value: 0 EMB_FUNC_INIT_B (67h) Embedded functions initialization register (r/w) Table 269. EMB_FUNC_INIT_B register 0(1) 0(1) 0(1) 0(1) FIFO_ COMPR_ INIT 0(1) 0(1) 1. This bit must be set to '0' for the correct operation of the device. Table 270. EMB_FUNC_INIT_B register description 134/166 FIFO_COMPR_INIT FIFO compression feature initialization request. Default value: 0 FSM_INIT FSM initialization request. Default value: 0 DocID030186 Rev 1 FSM_INIT LSM6DSR 12 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 271. Register address map - embedded advanced features page 0 Register address Name Type Default Hex Binary MAG_SENSITIVITY_L r/w BA 10111010 00100100 MAG_SENSITIVITY_H r/w BB 10111011 00010110 MAG_OFFX_L r/w C0 11000000 00000000 MAG_OFFX_H r/w C1 11000001 00000000 MAG_OFFY_L r/w C2 11000010 00000000 MAG_OFFY_H r/w C3 11000011 00000000 MAG_OFFZ_L r/w C4 11000100 00000000 MAG_OFFZ_H r/w C5 11000101 00000000 MAG_SI_XX_L r/w C6 11000110 00000000 MAG_SI_XX_H r/w C7 11000111 00111100 MAG_SI_XY_L r/w C8 11001000 00000000 MAG_SI_XY_H r/w C9 11001001 00000000 MAG_SI_XZ_L r/w CA 11001010 00000000 MAG_SI_XZ_H r/w CB 11001011 00000000 MAG_SI_YY_L r/w CC 11001100 00000000 MAG_SI_YY_H r/w CD 11001101 00111100 MAG_SI_YZ_L r/w CE 11001110 00000000 MAG_SI_YZ_H r/w CF 11001111 00000000 MAG_SI_ZZ_L r/w D0 11010000 00000000 MAG_SI_ZZ_H r/w D1 11010001 00111100 MAG_CFG_A r/w D4 11010100 00000101 MAG_CFG_B r/w D5 11010101 00000010 DocID030186 Rev 1 Comment 135/166 166 Embedded advanced features pages LSM6DSR The table given below 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 PAGE_SEL (02h). Table 272. Register address map - embedded advanced features page 1 Register address Name Type Default Hex Binary FSM_LC_TIMEOUT_L r/w 7A 01111010 00000000 FSM_LC_TIMEOUT_H r/w 7B 01111011 00000000 FSM_PROGRAMS r/w 7C 01111100 00000000 FSM_START_ADD_L r/w 7E 01111110 00000000 FSM_START_ADD_H r/w 7F 01111111 00000000 PEDO_CMD_REG r/w 83 10000011 00000000 PEDO_DEB_STEPS_CONF r/w 84 10000100 00001010 PEDO_SC_DELTAT_L r/w D0 11010000 00000000 PEDO_SC_DELTAT_H r/w D1 11010001 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 136/166 1. Write bit FUNC_CFG_EN = 1 in FUNC_CFG_ACCESS (01h) // Enable access to embedded functions registers 2. Write bit PAGE_WRITE = 1 in PAGE_RW (17h) register // Select write operation mode 3. Write 0001 in PAGE_SEL[3:0] field of register PAGE_SEL (02h) // Select page 1 4. Write 84h in PAGE_ADDR register (08h) // Set address 5. Write 06h in PAGE_DATA register (09h) // Set value to be written 6. Write bit PAGE_WRITE = 0 in PAGE_RW (17h) register // Write operation disabled 7. Write bit FUNC_CFG_EN = 0 in FUNC_CFG_ACCESS (01h) // Disable access to embedded functions registers DocID030186 Rev 1 LSM6DSR Embedded advanced features pages Read procedure example: Example: read value of register at address 84h (PEDO_DEB_STEPS_CONF) in Page 1 Note: 1. Write bit FUNC_CFG_EN = 1 in FUNC_CFG_ACCESS (01h) // Enable access to embedded functions registers 2. Write bit PAGE_READ = 1 in PAGE_RW (17h) register // Select read operation mode 3. Write 0001 in PAGE_SEL[3:0] field of register PAGE_SEL (02h) // Select page 1 4. Write 84h in PAGE_ADDR register (08h) // Set address 5. Read value of PAGE_DATA register (09h) // Get register value 6. Write bit PAGE_READ = 0 in PAGE_RW (17h) register // Read operation disabled 7. Write bit FUNC_CFG_EN = 0 in FUNC_CFG_ACCESS (01h) // Disable access to embedded functions registers 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, the multiple operations involve consecutive registers, only step 5 can be performed. DocID030186 Rev 1 137/166 166 Embedded advanced features register description LSM6DSR 13 Embedded advanced features register description 13.1 Page 0 - Embedded advanced features registers 13.1.1 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. Table 273. MAG_SENSITIVITY_L register MAG_ SENS_7 MAG_ SENS_6 MAG_ SENS_5 MAG_ SENS_4 MAG_ SENS_3 MAG_ SENS_2 MAG_ SENS_1 MAG_ SENS_0 Table 274. MAG_SENSITIVITY_L register description MAG_SENS_[7:0] External magnetometer sensitivity (LSbyte). Default value: 00100100 Table 275. MAG_SENSITIVITY_H register MAG_ SENS_15 MAG_ SENS_14 MAG_ SENS_13 MAG_ SENS_12 MAG_ SENS_11 MAG_ SENS_10 MAG_ SENS_9 MAG_ SENS_8 Table 276. MAG_SENSITIVITY_H register description MAG_SENS_[15:8] 13.1.2 External magnetometer sensitivity (MSbyte). Default value: 00010110 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). Table 277. MAG_OFFX_L register MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF X_7 X_6 X_5 X_4 X_3 X_2 X_1 X_0 Table 278. MAG_OFFX_L register description MAG_OFFX_[7:0] Offset for X-axis hard-iron compensation (LSbyte). Default value: 00000000 Table 279. MAG_OFFX_H register MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF X_15 X_14 X_13 X_12 X_11 X_10 X_9 X_8 Table 280. MAG_OFFX_H register description MAG_OFFX_[15:8] 138/166 Offset for X-axis hard-iron compensation (MSbyte). Default value: 00000000 DocID030186 Rev 1 LSM6DSR 13.1.3 Embedded advanced features register description 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). Table 281. MAG_OFFY_L register MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF Y_7 Y_6 Y_5 Y_4 Y_3 Y_2 Y_1 Y_0 Table 282. MAG_OFFY_L register description MAG_OFFY_[7:0] Offset for Y-axis hard-iron compensation (LSbyte). Default value: 00000000 Table 283. MAG_OFFY_H register MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF Y_15 Y_14 Y_13 Y_12 Y_11 Y_10 Y_9 Y_8 Table 284. MAG_OFFY_H register description MAG_OFFY_[15:8] 13.1.4 Offset for Y-axis hard-iron compensation (MSbyte). Default value: 00000000 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). Table 285. MAG_OFFZ_L register MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF Z_7 Z_6 Z_5 Z_4 Z_3 Z_2 Z_1 Z_0 Table 286. MAG_OFFZ_L register description MAG_OFFZ_[7:0] Offset for Z-axis hard-iron compensation (LSbyte). Default value: 00000000 Table 287. MAG_OFFZ_H register MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF MAG_OFF Z_15 Z_14 Z_13 Z_12 Z_11 Z_10 Z_9 Z_8 Table 288. MAG_OFFZ_H register description MAG_OFFZ_[15:8] Offset for Z-axis hard-iron compensation (MSbyte). Default value: 00000000 DocID030186 Rev 1 139/166 166 Embedded advanced features register description 13.1.5 LSM6DSR 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). Table 289. MAG_SI_XX_L register MAG_SI_ XX_7 MAG_SI_ XX_6 MAG_SI_ XX_5 MAG_SI_ XX_4 MAG_SI_ XX_3 MAG_SI_ XX_2 MAG_SI_ XX_1 MAG_SI_ XX_0 Table 290. MAG_SI_XX_L register description MAG_SI_XX_[7:0] Soft-iron correction row1 col1 coefficient (LSbyte). Default value: 00000000 Table 291. MAG_SI_XX_H register MAG_SI_ XX_15 MAG_SI_ XX_14 MAG_SI_ XX_13 MAG_SI_ XX_12 MAG_SI_ XX_11 MAG_SI_ XX_10 MAG_SI_ XX_9 MAG_SI_ XX_8 Table 292. MAG_SI_XX_H register description MAG_SI_XX_[15:8] Soft-iron correction row1 col1 coefficient (MSbyte). Default value: 00111100 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). Table 293. MAG_SI_XY_L register MAG_SI_ XY_7 MAG_SI_ XY_6 MAG_SI_ XY_5 MAG_SI_ XY_4 MAG_SI_ XY_3 MAG_SI_ XY_2 MAG_SI_ XY_1 MAG_SI_ XY_0 Table 294. MAG_SI_XY_L register description MAG_SI_XY_[7:0] Soft-iron correction row1 col2 (and row2 col1) coefficient (LSbyte). Default value: 00000000 Table 295. MAG_SI_XY_H register MAG_SI_ XY_15 MAG_SI_ XY_14 MAG_SI_ XY_13 MAG_SI_ XY_12 MAG_SI_ XY_11 MAG_SI_ XY_10 MAG_SI_ XY_9 MAG_SI_ XY_8 Table 296. MAG_SI_XY_H register description MAG_SI_XY_[15:8] 140/166 Soft-iron correction row1 col2 (and row2 col1) coefficient (MSbyte). Default value: 00000000 DocID030186 Rev 1 LSM6DSR 13.1.7 Embedded advanced features register description 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). Table 297. MAG_SI_XZ_L register MAG_SI_ XZ_7 MAG_SI_ XZ_6 MAG_SI_ XZ_5 MAG_SI_ XZ_4 MAG_SI_ XZ_3 MAG_SI_ XZ_2 MAG_SI_ XZ_1 MAG_SI_ XZ_0 Table 298. MAG_SI_XZ_L register description MAG_SI_XZ_[7:0] Soft-iron correction row1 col3 (and row3 col1) coefficient (LSbyte). Default value: 00000000 Table 299. MAG_SI_XZ_H register MAG_SI_ XZ_15 MAG_SI_ XZ_14 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 300. MAG_SI_XZ_H register description MAG_SI_XZ_[15:8] 13.1.8 Soft-iron correction row1 col3 (and row3 col1) coefficient (MSbyte). Default value: 00000000 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). Table 301. MAG_SI_YY_L register MAG_SI_ YY_7 MAG_SI_ YY_6 MAG_SI_ YY_5 MAG_SI_ YY_4 MAG_SI_ YY_3 MAG_SI_ YY_2 MAG_SI_ YY_1 MAG_SI_ YY_0 Table 302. MAG_SI_YY_L register description MAG_SI_YY_[7:0] Soft-iron correction row2 col2 coefficient (LSbyte). Default value: 00000000 Table 303. MAG_SI_YY_H register MAG_SI_ YY_15 MAG_SI_ YY_14 MAG_SI_ YY_13 MAG_SI_ YY_12 MAG_SI_ YY_11 MAG_SI_ YY_10 MAG_SI_ YY_9 MAG_SI_ YY_8 Table 304. MAG_SI_YY_H register description MAG_SI_YY_[15:8] Soft-iron correction row2 col2 coefficient (MSbyte). Default value: 00111100 DocID030186 Rev 1 141/166 166 Embedded advanced features register description 13.1.9 LSM6DSR 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). Table 305. MAG_SI_YZ_L register MAG_SI_ YZ_7 MAG_SI_ YZ_6 MAG_SI_ YZ_5 MAG_SI_ YZ_4 MAG_SI_ YZ_3 MAG_SI_ YZ_2 MAG_SI_ YZ_1 MAG_SI_ YZ_0 Table 306. MAG_SI_YZ_L register description MAG_SI_YZ_[7:0] Soft-iron correction row2 col3 (and row3 col2) coefficient (LSbyte). Default value: 00000000 Table 307. MAG_SI_YZ_H register MAG_SI_ YZ_15 MAG_SI_ YZ_14 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 308. MAG_SI_YZ_H register description MAG_SI_YZ_[15:8] 13.1.10 Soft-iron correction row2 col3 (and row3 col2) coefficient (MSbyte). Default value: 00000000 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). Table 309. MAG_SI_ZZ_L register MAG_SI_ ZZ_7 MAG_SI_ ZZ_6 MAG_SI_ ZZ_5 MAG_SI_ ZZ_4 MAG_SI_ ZZ_3 MAG_SI_ ZZ_2 MAG_SI_ ZZ_1 MAG_SI_ ZZ_0 Table 310. MAG_SI_ZZ_L register description MAG_SI_ZZ_[7:0] Soft-iron correction row3 col3 coefficient (LSbyte). Default value: 00000000 Table 311. MAG_SI_ZZ_H register MAG_SI_ ZZ_15 MAG_SI_ ZZ_14 MAG_SI_ ZZ_13 MAG_SI_ ZZ_12 MAG_SI_ ZZ_11 MAG_SI_ ZZ_10 MAG_SI_ ZZ_9 MAG_SI_ ZZ_8 Table 312. MAG_SI_ZZ_H register description MAG_SI_ZZ_[15:8] Soft-iron correction row3 col3 coefficient (MSbyte). Default value: 00111100 142/166 DocID030186 Rev 1 LSM6DSR 13.1.11 Embedded advanced features register description MAG_CFG_A (D4h) External magnetometer coordinates (Z and Y axes) rotation register (r/w). Table 313. MAG_CFG_A register (1) 0 MAG_Y_ AXIS2 MAG_Y_ AXIS1 MAG_Y_ AXIS0 0(1) MAG_Z_ AXIS2 MAG_Z_ AXIS1 MAG_Z_ AXIS0 1. This bit must be set to ‘0’ for the correct operation of the device. Table 314. MAG_CFG_A description Magnetometer Y-axis coordinates rotation (to be aligned to accelerometer/gyroscope axes orientation) (000: Y = Y; (default) 001: Y = -Y; MAG_Y_AXIS[2:0] 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; MAG_Z_AXIS[2:0] 010: Z = X; 011: Z = -X; 100: Z = -Z; 101: Z = Z; (default) Others: Z = Y) 13.1.12 MAG_CFG_B (D5h) External magnetometer coordinates (X-axis) rotation register (r/w). Table 315. MAG_CFG_B register 0(1) 0(1) 0(1) 0(1) 0(1) MAG_X_ AXIS2 MAG_X_ AXIS1 MAG_X_ AXIS0 1. This bit must be set to ‘0’ for the correct operation of the device. Table 316. MAG_CFG_B 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) DocID030186 Rev 1 143/166 166 Embedded advanced features register description LSM6DSR 13.2 Page 1 - Embedded advanced features registers 13.2.1 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 reached this value, the FSM generates an interrupt. Table 317. FSM_LC_TIMEOUT_L register FSM_LC_ TIMEOUT 7 FSM_LC_ TIMEOUT 6 FSM_LC_ TIMEOUT 5 FSM_LC_ TIMEOUT 4 FSM_LC_ TIMEOUT 3 FSM_LC_ TIMEOUT 2 FSM_LC_ TIMEOUT 1 FSM_LC_ TIMEOUT 0 Table 318. FSM_LC_TIMEOUT_L register description FSM_LC_ TIMEOUT[7:0] FSM long counter timeout value (LSbyte). Default value: 00000000 Table 319. FSM_LC_TIMEOUT_H register FSM_LC_ TIMEOUT 15 FSM_LC_ TIMEOUT 14 FSM_LC_ TIMEOUT 13 FSM_LC_ TIMEOUT 12 FSM_LC_ TIMEOUT 11 FSM_LC_ TIMEOUT 10 FSM_LC_ TIMEOUT 9 FSM_LC_ TIMEOUT 8 Table 320. FSM_LC_TIMEOUT_H register description FSM_LC_ TIMEOUT[15:8] 13.2.2 FSM long counter timeout value (MSbyte). Default value: 00000000 FSM_PROGRAMS (7Ch) FSM number of programs register (r/w). Table 321. FSM_PROGRAMS register FSM_N_ PROG7 FSM_N_ PROG6 FSM_N_ PROG5 FSM_N_ PROG4 FSM_N_ PROG3 FSM_N_ PROG2 FSM_N_ PROG1 Table 322. FSM_PROGRAMS register description FSM_N_PROG[7:0] 144/166 Number of FSM programs; must be less than or equal to 16. Default value: 00000000 DocID030186 Rev 1 FSM_N_ PROG0 LSM6DSR 13.2.3 Embedded advanced features register description FSM_START_ADD_L (7Eh) and FSM_START_ADD_H (7Fh) FSM start address register (r/w). First available address is 0x033C. Table 323. FSM_START_ADD_L register FSM_ START7 FSM_ START6 FSM_ START5 FSM_ START4 FSM_ START3 FSM_ START2 FSM_ START1 FSM_ START0 Table 324. FSM_START_ADD_L register description FSM_START[7:0] FSM start address value (LSbyte). Default value: 00000000 Table 325. FSM_START_ADD_H register FSM_ START15 FSM_ START14 FSM_ START13 FSM_ START12 FSM_ START11 FSM_ START10 FSM_ START9 FSM_ START8 Table 326. FSM_START_ADD_H register description FSM_START[15:8] 13.2.4 FSM start address value (MSbyte). Default value: 00000000 PEDO_CMD_REG (83h) Pedometer configuration register (r/w) Table 327. PEDO_CMD_REG register 0(1) 0(1) 0(1) 0(1) FP_ CARRY_ REJECTION_ COUNT_EN EN 0(1) AD_ DET_EN 1. This bit must be set to '0' for the correct operation of the device. Table 328. PEDO_CMD_REG register description CARRY_COUNT_EN Set when user wants to generate interrupt only on count overflow event. FP_REJECTION_EN(1) Enables the false-positive rejection feature. (2) Enables the advanced detection feature. AD_DET_EN 1. This bit is effective if the PEDO_ADV_EN bit of EMB_FUNC_EN_B (05h) is set to 1 and the PEDO_FPR_ADF_DIS bit of ADV_PEDO (03h) is set to 0. 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 EMB_FUNC_EN_B (05h) is set to 1 and the PEDO_FPR_ADF_DIS bit of ADV_PEDO (03h) is set to 0. 13.2.5 PEDO_DEB_STEPS_CONF (84h) Pedometer debounce configuration register (r/w) Table 329. PEDO_DEB_STEPS_CONF register DEB_ STEP7 DEB_ STEP6 DEB_ STEP5 DEB_ STEP4 DEB_ STEP3 DEB_ STEP2 DEB_ STEP1 DEB_ STEP0 Table 330. PEDO_DEB_STEPS_CONF register description DEB_STEP[7:0] Debounce threshold. Minimum number of steps to increment the step counter (debounce). Default value: 00001010 DocID030186 Rev 1 145/166 166 Embedded advanced features register description 13.2.6 LSM6DSR PEDO_SC_DELTAT_L (D0h) & PEDO_SC_DELTAT_H (D1h) Time period register for step detection on delta time (r/w) Table 331. PEDO_SC_DELTAT_L register PD_SC_7 PD_SC_6 PD_SC_5 PD_SC_4 PD_SC_3 PD_SC_2 PD_SC_1 PD_SC_0 PD_SC_9 PD_SC_8 Table 332. PEDO_SC_DELTAT_H register PD_SC_15 PD_SC_14 PD_SC_13 PD_SC_12 PD_SC_11 PD_SC_10 Table 333. PEDO_SC_DELTAT_H/L register description PD_SC_[15:0] 146/166 Time period value (1LSB = 6.4 ms) DocID030186 Rev 1 LSM6DSR 14 Sensor hub register mapping Sensor hub register mapping 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 FUNC_CFG_ACCESS (01h). Table 334. Register address map - sensor hub registers Register address Name Type Default Hex Binary SENSOR_HUB_1 r 02 00000010 output SENSOR_HUB_2 r 03 00000011 output SENSOR_HUB_3 r 04 00000100 output SENSOR_HUB_4 r 05 00000101 output SENSOR_HUB_5 r 06 00000110 output SENSOR_HUB_6 r 07 00000111 output SENSOR_HUB_7 r 08 00001000 output SENSOR_HUB_8 r 09 00001001 output SENSOR_HUB_9 r 0A 00001010 output SENSOR_HUB_10 r 0B 00001011 output SENSOR_HUB_11 r 0C 00001100 output SENSOR_HUB_12 r 0D 00001101 output SENSOR_HUB_13 r 0E 00001110 output SENSOR_HUB_14 r 0F 00001111 output SENSOR_HUB_15 r 10 00010000 output SENSOR_HUB_16 r 11 00010001 output SENSOR_HUB_17 r 12 00010010 output SENSOR_HUB_18 r 13 00010011 output MASTER_CONFIG rw 14 00010100 00000000 SLV0_ADD rw 15 00010101 00000000 SLV0_SUBADD rw 16 00010110 00000000 SLV0_CONFIG rw 17 0001 0111 00000000 SLV1_ADD rw 18 00011000 00000000 SLV1_SUBADD rw 19 00011001 00000000 SLV1_CONFIG rw 1A 00011010 00000000 SLV2_ADD rw 1B 00011011 00000000 SLV2_SUBADD rw 1C 00011100 00000000 SLV2_CONFIG rw 1D 00011101 00000000 DocID030186 Rev 1 Comment 147/166 166 Sensor hub register mapping LSM6DSR Table 334. Register address map - sensor hub registers Register address Name Type Default Hex Binary SLV3_ADD rw 1E 00011110 00000000 SLV3_SUBADD rw 1F 00011111 00000000 SLV3_CONFIG rw 20 00100000 00000000 DATAWRITE_SLV0 rw 21 00100001 00000000 STATUS_MASTER r 22 00100010 output 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. 148/166 DocID030186 Rev 1 LSM6DSR Sensor hub register description 15 Sensor hub register description 15.1 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). Table 335. SENSOR_HUB_1 register Sensor Hub1_7 Sensor Hub1_6 Sensor Hub1_5 Sensor Hub1_4 Sensor Hub1_3 Sensor Hub1_2 Sensor Hub1_1 Sensor Hub1_0 Table 336. SENSOR_HUB_1 register description SensorHub1[7:0] 15.2 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). Table 337. SENSOR_HUB_2 register Sensor Hub2_7 Sensor Hub2_6 Sensor Hub2_5 Sensor Hub2_4 Sensor Hub2_3 Sensor Hub2_2 Sensor Hub2_1 Sensor Hub2_0 Table 338. SENSOR_HUB_2 register description SensorHub2[7:0] 15.3 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). Table 339. SENSOR_HUB_3 register Sensor Hub3_7 Sensor Hub3_6 Sensor Hub3_5 Sensor Hub3_4 Sensor Hub3_3 Sensor Hub3_2 Sensor Hub3_1 Sensor Hub3_0 Table 340. SENSOR_HUB_3 register description SensorHub3[7:0] Third byte associated to external sensors DocID030186 Rev 1 149/166 166 Sensor hub register description 15.4 LSM6DSR 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). Table 341. SENSOR_HUB_4 register Sensor Hub4_7 Sensor Hub4_6 Sensor Hub4_5 Sensor Hub4_4 Sensor Hub4_3 Sensor Hub4_2 Sensor Hub4_1 Sensor Hub4_0 Table 342. SENSOR_HUB_4 register description SensorHub4[7:0] 15.5 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). Table 343. SENSOR_HUB_5 register Sensor Hub5_7 Sensor Hub5_6 Sensor Hub5_5 Sensor Hub5_4 Sensor Hub5_3 Sensor Hub5_2 Sensor Hub5_1 Sensor Hub5_0 Table 344. SENSOR_HUB_5 register description SensorHub5[7:0] 15.6 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). Table 345. SENSOR_HUB_6 register Sensor Hub6_7 Sensor Hub6_6 Sensor Hub6_5 Sensor Hub6_4 Sensor Hub6_3 Sensor Hub6_2 Sensor Hub6_1 Table 346. SENSOR_HUB_6 register description SensorHub6[7:0] 150/166 Sixth byte associated to external sensors DocID030186 Rev 1 Sensor Hub6_0 LSM6DSR 15.7 Sensor hub register description 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). Table 347. SENSOR_HUB_7 register Sensor Hub7_7 Sensor Hub7_6 Sensor Hub7_5 Sensor Hub7_4 Sensor Hub7_3 Sensor Hub7_2 Sensor Hub7_1 Sensor Hub7_0 Table 348. SENSOR_HUB_7 register description SensorHub7[7:0] 15.8 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). Table 349. SENSOR_HUB_8 register Sensor Hub8_7 Sensor Hub8_6 Sensor Hub8_5 Sensor Hub8_4 Sensor Hub8_3 Sensor Hub8_2 Sensor Hub8_1 Sensor Hub8_0 Table 350. SENSOR_HUB_8 register description SensorHub8[7:0] 15.9 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). Table 351. SENSOR_HUB_9 register Sensor Hub9_7 Sensor Hub9_6 Sensor Hub9_5 Sensor Hub9_4 Sensor Hub9_3 Sensor Hub9_2 Sensor Hub9_1 Sensor Hub9_0 Table 352. SENSOR_HUB_9 register description SensorHub9[7:0] Ninth byte associated to external sensors DocID030186 Rev 1 151/166 166 Sensor hub register description 15.10 LSM6DSR 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). Table 353. SENSOR_HUB_10 register Sensor Hub10_7 Sensor Hub10_6 Sensor Hub10_5 Sensor Hub10_4 Sensor Hub10_3 Sensor Hub10_2 Sensor Hub10_1 Sensor Hub10_0 Table 354. SENSOR_HUB_10 register description SensorHub10[7:0] Tenth byte associated to external sensors 15.11 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). Table 355. SENSOR_HUB_11 register Sensor Hub11_7 Sensor Hub11_6 Sensor Hub11_5 Sensor Hub11_4 Sensor Hub11_3 Sensor Hub11_2 Sensor Hub11_1 Sensor Hub11_0 Table 356. SENSOR_HUB_11 register description SensorHub11[7:0] 15.12 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). Table 357. SENSOR_HUB_12 register Sensor Hub12_7 Sensor Hub12_6 Sensor Hub12_5 Sensor Hub12_4 Sensor Hub12_3 Sensor Hub12_2 Sensor Hub12_1 Table 358. SENSOR_HUB_12 register description SensorHub12[7:0] Twelfth byte associated to external sensors 152/166 DocID030186 Rev 1 Sensor Hub12_0 LSM6DSR 15.13 Sensor hub register description 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). Table 359. SENSOR_HUB_13 register Sensor Hub13_7 Sensor Hub13_6 Sensor Hub13_5 Sensor Hub13_4 Sensor Hub13_3 Sensor Hub13_2 Sensor Hub13_1 Sensor Hub13_0 Table 360. SENSOR_HUB_13 register description SensorHub13[7:0] Thirteenth byte associated to external sensors 15.14 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). Table 361. SENSOR_HUB_14 register Sensor Hub14_7 Sensor Hub14_6 Sensor Hub14_5 Sensor Hub14_4 Sensor Hub14_3 Sensor Hub14_2 Sensor Hub14_1 Sensor Hub14_0 Table 362. SENSOR_HUB_14 register description SensorHub14[7:0] Fourteenth byte associated to external sensors 15.15 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). Table 363. SENSOR_HUB_15 register Sensor Hub15_7 Sensor Hub15_6 Sensor Hub15_5 Sensor Hub15_4 Sensor Hub15_3 Sensor Hub15_2 Sensor Hub15_1 Sensor Hub15_0 Table 364. SENSOR_HUB_15 register description SensorHub15[7:0] Fifteenth byte associated to external sensors DocID030186 Rev 1 153/166 166 Sensor hub register description 15.16 LSM6DSR 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). Table 365. SENSOR_HUB_16 register Sensor Hub16_7 Sensor Hub16_6 Sensor Hub16_5 Sensor Hub16_4 Sensor Hub16_3 Sensor Hub16_2 Sensor Hub16_1 Sensor Hub16_0 Table 366. SENSOR_HUB_16 register description SensorHub16[7:0] Sixteenth byte associated to external sensors 15.17 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). Table 367. SENSOR_HUB_17 register Sensor Hub17_7 Sensor Hub17_6 Sensor Hub17_5 Sensor Hub17_4 Sensor Hub17_3 Sensor Hub17_2 Sensor Hub17_1 Sensor Hub17_0 Table 368. SENSOR_HUB_17 register description SensorHub17[7:0] Seventeenth byte associated to external sensors 15.18 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). Table 369. SENSOR_HUB_17 register Sensor Hub18_7 Sensor Hub18_6 Sensor Hub18_5 Sensor Hub18_4 Sensor Hub18_3 Sensor Hub18_2 Sensor Hub18_1 Table 370. SENSOR_HUB_17 register description SensorHub18[7:0] Eighteenth byte associated to external sensors 154/166 DocID030186 Rev 1 Sensor Hub18_0 LSM6DSR 15.19 Sensor hub register description MASTER_CONFIG (14h) Master configuration register (r/w) Table 371. MASTER_CONFIG register RST_ MASTER_ REGS WRITE_ ONCE START_ CONFIG PASS_ THROUGH _MODE SHUB_ PU_EN MASTER_ ON AUX_ SENS_ ON1 AUX_ SENS_ ON0 Table 372. MASTER_CONFIG register description RST_MASTER_ REGS Reset Master logic and output registers. Must be set to ‘1’ and then set it to ‘0’. Default value: 0 WRITE_ONCE 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) START_CONFIG 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 PASS_THROUGH_ (0: pass-through disabled; MODE 1: pass-through enabled, main I²C line is short-circuited with the auxiliary line) 15.20 SHUB_PU_EN 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) MASTER_ON Sensor hub I2C master enable. Default: 0 (0: master I2C of sensor hub disabled; 1: master I2C of sensor hub enabled) AUX_SENS_ ON[1:0] Number of external sensors to be read by the sensor hub. (00: one sensor (default); 01: two sensors; 10: three sensors; 11: four sensors) SLV0_ADD (15h) I2C slave address of the first external sensor (Sensor 1) register (r/w). Table 373. SLV0_ADD register slave0_ add6 slave0_ add5 slave0_ add4 slave0_ add3 slave0_ add2 slave0_ add1 slave0_ add0 rw_0 Table 374. SLV_ADD register description 2C slave0_add[6:0] I slave address of Sensor1 that can be read by the sensor hub. Default value: 0000000 rw_0 Read/write operation on Sensor 1. Default value: 0 (0: write operation; 1: read operation) DocID030186 Rev 1 155/166 166 Sensor hub register description 15.21 LSM6DSR SLV0_SUBADD (16h) Address of register on the first external sensor (Sensor 1) register (r/w). Table 375. SLV0_SUBADD register slave0_ reg7 slave0_ reg6 slave0_ reg5 slave0_ reg4 slave0_ reg3 slave0_ reg2 slave0_ reg1 slave0_ reg0 Table 376. SLV0_SUBADD register description slave0_reg[7:0] 15.22 Address of register on Sensor1 that has to be read/written according to the rw_0 bit value in SLV0_ADD (15h). Default value: 00000000 SLAVE0_CONFIG (17h) First external sensor (Sensor1) configuration and sensor hub settings register (r/w). Table 377. SLAVE0_CONFIG register SHUB_ ODR_1 SHUB_ ODR_0 0(1) 0(1) BATCH_ EXT_SENS_ 0_EN Slave0_ numop2 Slave0_ numop1 Slave0_ numop0 1. This bit must be set to ‘0’ for the correct operation of the device. Table 378. SLAVE0_CONFIG register description 156/166 SHUB_ODR_[1:0] 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) BATCH_EXT_SENS_0_EN Enable FIFO batching data of first slave. Default value: 0 Slave0_numop[2:0] Number of read operations on Sensor 1. Default value: 000 DocID030186 Rev 1 LSM6DSR 15.23 Sensor hub register description SLV1_ADD (18h) I2C slave address of the second external sensor (Sensor 2) register (r/w). Table 379. SLV1_ADD register Slave1_ add6 Slave1_ add5 Slave1_ add4 Slave1_ add3 Slave1_ add2 Slave1_ add1 Slave1_ add0 r_1 Table 380. SLV1_ADD register description 2 15.24 Slave1_add[6:0] I C slave address of Sensor 2 that can be read by the sensor hub. Default value: 0000000 r_1 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). Table 381. SLV1_SUBADD register Slave1_ reg7 Slave1_ reg6 Slave1_ reg5 Slave1_ reg4 Slave1_ reg3 Slave1_ reg2 Slave1_ reg1 Slave1_ reg0 Table 382. SLV1_SUBADD register description Slave1_reg[7:0] 15.25 Address of register on Sensor 2 that has to be read/written according to the r_1 bit value in SLV1_ADD (18h). SLAVE1_CONFIG (1Ah) Second external sensor (Sensor 2) configuration register (r/w). Table 383. SLAVE1_CONFIG register 0(1) 0(1) 0(1) 0(1) BATCH_EXT _SENS_1 _EN Slave1_ numop2 Slave1_ numop1 Slave1_ numop0 1. This bit must be set to ‘0’ for the correct operation of the device. Table 384. SLAVE1_CONFIG register description BATCH_EXT_SENS_1_EN Enable FIFO batching data of second slave. Default value: 0 Slave1_numop[2:0] Number of read operations on Sensor 2. Default value: 000 DocID030186 Rev 1 157/166 166 Sensor hub register description 15.26 LSM6DSR SLV2_ADD (1Bh) I2C slave address of the third external sensor (Sensor 3) register (r/w). Table 385. SLV2_ADD register Slave2_ add6 Slave2_ add5 Slave2_ add4 Slave2_ add3 Slave2_ add2 Slave2_ add1 Slave2_ add0 r_2 Table 386. SLV2_ADD register description Slave2_add[6:0] I2C 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) r_2 15.27 SLV2_SUBADD (1Ch) Address of register on the third external sensor (Sensor 3) register (r/w). Table 387. SLV2_SUBADD register Slave2_ reg7 Slave2_ reg6 Slave2_ reg5 Slave2_ reg4 Slave2_ reg3 Slave2_ reg2 Slave2_ reg1 Slave2_ reg0 Table 388. SLV2_SUBADD register description Slave2_reg[7:0] 15.28 Address of register on Sensor 3 that has to be read/written according to the r_2 bit value in SLV2_ADD (1Bh). SLAVE2_CONFIG (1Dh) Third external sensor (Sensor 3) configuration register (r/w). Table 389. SLAVE2_CONFIG register 0(1) 0(1) 0(1) 0(1) BATCH_ EXT_SENS_ 2_EN Slave2_ numop2 Slave2_ numop1 Slave2_ numop0 1. This bit must be set to ‘0’ for the correct operation of the device. Table 390. SLAVE2_CONFIG register description 158/166 BATCH_EXT_SENS_2_EN Enable FIFO batching data of third slave. Default value: 0 Slave2_numop[2:0] Number of read operations on Sensor 3. Default value: 000 DocID030186 Rev 1 LSM6DSR 15.29 Sensor hub register description SLV3_ADD (1Eh) I2C slave address of the fourth external sensor (Sensor 4) register (r/w). Table 391. SLV3_ADD register Slave3_ add6 Slave3_ add5 Slave3_ add4 Slave3_ add3 Slave3_ add2 Slave3_ add1 Slave3_ add0 r_3 Table 392. SLV3_ADD register description 15.30 Slave3_add[6:0] I2C slave address of Sensor 4 that can be read by the sensor hub. r_3 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). Table 393. SLV3_SUBADD register Slave3_ reg7 Slave3_ reg6 Slave3_ reg5 Slave3_ reg4 Slave3_ reg3 Slave3_ reg2 Slave3_ reg1 Slave3_ reg0 Table 394. SLV3_SUBADD register description Slave3_reg[7:0] 15.31 Address of register on Sensor 4 that has to be read according to the r_3 bit value in SLV3_ADD (1Eh). SLAVE3_CONFIG (20h) Fourth external sensor (Sensor 4) configuration register (r/w). Table 395. SLAVE3_CONFIG register 0(1) 0(1) 0(1) 0(1) BATCH_ EXT_SENS _3_EN Slave3_ numop2 Slave3_ numop1 Slave3_ numop0 1. This bit must be set to ‘0’ for the correct operation of the device. Table 396. SLAVE3_CONFIG register description BATCH_EXT_SENS_3_EN Enable FIFO batching data of fourth slave. Default value: 0 Slave3_numop[2:0] Number of read operations on Sensor 4. Default value: 000 DocID030186 Rev 1 159/166 166 Sensor hub register description 15.32 LSM6DSR DATAWRITE_SLV0 (21h) Data to be written into the slave device register (r/w). Table 397. DATAWRITE_SLV0 register Slave0_ dataw7 Slave0_ dataw6 Slave0_ dataw5 Slave0_ dataw4 Slave0_ dataw3 Slave0_ dataw2 Slave0_ dataw1 Slave0_ dataw0 Table 398. DATAWRITE_SLV0 register description Data to be written into the slave 0 device according to the rw_0 bit in register Slave0_dataw[7:0] SLV0_ADD (15h). Default value: 00000000 15.33 STATUS_MASTER (22h) Sensor hub source register (r). Table 399. STATUS_MASTER register WR_ ONCE_ DONE SLAVE3_ NACK SLAVE2_ NACK SLAVE1_ NACK SLAVE0_ NACK 0 0 SENS_HUB_ ENDOP Table 400. STATUS_MASTER register description WR_ONCE_DONE When the bit WRITE_ONCE in MASTER_CONFIG (14h) 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 SLAVE3_NACK This bit is set to 1 if Not acknowledge occurs on slave 3 communication. Default value: 0 SLAVE2_NACK This bit is set to 1 if Not acknowledge occurs on slave 2 communication. Default value: 0 SLAVE1_NACK 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 Sensor hub communication status. Default value: 0 SENS_HUB_ENDOP (0: sensor hub communication not concluded; 1: sensor hub communication concluded) 160/166 DocID030186 Rev 1 LSM6DSR 16 Soldering information 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. DocID030186 Rev 1 161/166 166 Package information 17 LSM6DSR 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. 17.1 LGA-14L package information Figure 26. LGA-14L 2.5x3x0.86 mm package outline and mechanical data 3LQLQGLFDWRU 3LQLQGLFDWRU + [   [“  /  :  7239,(: [“ %277209,(: 'LPHQVLRQVDUHLQPLOOLPHWHUXQOHVVRWKHUZLVHVSHFLILHG *HQHUDOWROHUDQFHLVPPXQOHVVRWKHUZLVHVSHFLILHG 287(5',0(16,216 ,7(0 /HQJWK>/@ : LGWK>: @ +HLJKW>+@ ',0(16,21>PP@    72/(5$1&(>PP@ “ “ 0$ ;  '0B 162/166 DocID030186 Rev 1 LSM6DSR 17.2 Package information LGA-14 packing information Figure 27. Carrier tape information for LGA-14 package Figure 28. LGA-14 package orientation in carrier tape DocID030186 Rev 1 163/166 166 Package information LSM6DSR Figure 29. Reel information for carrier tape of LGA-14 package 7 PPPLQ $FFHVVKROHDW VORWORFDWLRQ % & $ 1 ' )XOOUDGLXV *PHDVXUHGDWKXE  7DSHVORW LQFRUHIRU WDSHVWDUW PPPLQZLGWK Table 401. Reel dimensions for carrier tape of LGA-14 package Reel dimensions (mm) 164/166 A (max) 330 B (min) 1.5 C 13 ±0.25 D (min) 20.2 N (min) 60 G 12.4 +2/-0 T (max) 18.4 DocID030186 Rev 1 LSM6DSR 18 Revision history Revision history Table 402. Document revision history Date Revision 25-Mar-2019 1 Changes Initial release DocID030186 Rev 1 165/166 166 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. © 2019 STMicroelectronics – All rights reserved 166/166 DocID030186 Rev 1
LSM6DSRTR 价格&库存

很抱歉,暂时无法提供与“LSM6DSRTR”相匹配的价格&库存,您可以联系我们找货

免费人工找货
LSM6DSRTR
    •  国内价格
    • 1+7.56000

    库存:0

    LSM6DSRTR
      •  国内价格
      • 19+6.38460

      库存:0