{"datasheetId":"ds_915543e5f3dc2e42e5c9","chunkCount":146,"revision":"2026-11-09T20:07:19.757Z","source":"index","nextCursor":"49","chunks":[{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0001","chunkIndex":0,"heading":"Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer"],"preview":"Ultra compact high performance eCompass module: 3D accelerometer and 3D magnetometer Datasheet production data LGA 12 (2.0x2.0x1.0 mm) Features \\ 3 magnetic field channels and 3 acceleration channels • ±16 gauss magnetic full scale \\ $\\pm 2","images":[{"path":"images/bb0aaab5c07894162d14c313febad408993e6466b0cc6ff268300088946d2bd3.jpg","name":"bb0aaab5c07894162d14c313febad408993e6466b0cc6ff268300088946d2bd3.jpg","mimeType":"image/jpeg","semanticKind":null,"semanticCaption":null,"viewUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/asset?path=images%2Fbb0aaab5c07894162d14c313febad408993e6466b0cc6ff268300088946d2bd3.jpg"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0001"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0002","chunkIndex":1,"heading":"Applications","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","Applications"],"preview":"Applications \\ Tilt compensated compasses \\ Map rotation \\ Position detection • Motion activated functions \\ Free fall detection \\ Click/double click recognition \\ Pedometer • Intelligent power saving for handheld devices \\ Display orientat","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0002"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0003","chunkIndex":2,"heading":"Description","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","Description"],"preview":"Table 1. Device summary","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0003"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0004","chunkIndex":3,"heading":"Contents","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","Contents"],"preview":"4.4 Factory calibration 21 5 Application hints 22 5.1 Soldering information 22 5.2 High current wiring effects 23 6 Digital interfaces 24 6.1 I²C serial interface 24 6.1.1 I²C operation 25 6.2 SPI bus interface 26 6.2.1 Accelerometer SPI wr","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0004"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0005","chunkIndex":4,"heading":"Contents","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","Contents"],"preview":"8.25 XL\\ REFERENCE (3Ah), XH\\ REFERENCE (3Bh) 43 8.26 YL\\ REFERENCE (3Ch), YH\\ REFERENCE (3Dh) 43 8.27 ZL\\ REFERENCE (3Eh), ZH\\ REFERENCE (3Fh) 43 8.28 WHO\\ AM\\ I\\ M (0Fh) 43 8.29 CTRL\\ REG1\\ M (20h) 43 8.30 CTRL\\ REG2\\ M (21h) 44 8.31 CTRL","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0005"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0006","chunkIndex":5,"heading":"List of tables","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","List of tables"],"preview":"List of tables Table 1. Device summary ..... 1 Table 2. Pin description ..... 10 Table 3. Sensor characteristics ..... 11 Table 4. Temperature sensor characteristics ..... 12 Table 5. Electrical characteristics ..... 12 Table 6. SPI slave t","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0006"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0007","chunkIndex":6,"heading":"List of tables","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","List of tables"],"preview":"Table 23. CTRL\\ REG1\\ A register ..... 33 Table 24. CTRL\\ REG1\\ A register description ..... 33 Table 25. ODR register setting ..... 34 Table 26. Low pass cutoff frequency in high resolution mode (HR = 1). ..... 34 Table 27. CTRL\\ REG2\\ A r","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0007"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0008","chunkIndex":7,"heading":"List of tables","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","List of tables"],"preview":"Table 46. OUT\\ Z\\ L\\ A register default values ..... 38 Table 47. OUT\\ Z\\ H\\ A register default values ..... 38 Table 48. FIFO\\ CTRL register ..... 39 Table 49. FIFO\\ CTRL register description....39 Table 50. FIFO mode selection....39 Table","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0008"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0009","chunkIndex":8,"heading":"List of tables","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","List of tables"],"preview":"Table 73. Output data rate configuration....44 Table 74. CTRL\\ REG2\\ M register....44 Table 75. CTRL\\ REG2\\ M register description....44 Table 76. Full scale selection....44 Table 77. CTRL\\ REG3\\ M register....44 Table 79. System operating","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0009"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0010","chunkIndex":9,"heading":"List of figures","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","List of figures"],"preview":"List of figures Figure 1. Block diagram....8 Figure 2. Pin connections....9 Figure 3. Recommended power up sequence....13 Figure 4. SPI slave timing diagram....14 Figure 5. I²C slave timing diagram....15 Figure 6. Stream mode....19 Figure 7","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0010"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0011","chunkIndex":10,"heading":"1 Block diagram and pin description","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","1 Block diagram and pin description"],"preview":"1 Block diagram and pin description 1.1 Block diagram Figure 1. Block diagram","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0011"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0012","chunkIndex":11,"heading":"1.2 Pin description","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","1.2 Pin description"],"preview":"","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0012"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0013","chunkIndex":12,"heading":"1.2 Pin description","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","1.2 Pin description"],"preview":"2 Module specifications 2.1 Sensor characteristics @ Vdd = 2.5 V, T = 25 °C unless otherwise noted (a). Table 3. Sensor characteristics","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0013"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0014","chunkIndex":13,"heading":"2.1 Sensor characteristics","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","2.1 Sensor characteristics"],"preview":"1. Typical specifications are not guaranteed. 2. Verified by wafer level test and measurement of initial offset and sensitivity. 3. Typical zero g level offset value after MSL3 preconditioning. 4. Offset can be eliminated by enabling the bu","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0014"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0015","chunkIndex":14,"heading":"2.2 Temperature sensor characteristics","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","2.2 Temperature sensor characteristics"],"preview":"2.2 Temperature sensor characteristics @ Vdd = 2.5 V, T = 25 °C unless otherwise noted $^{(b)}$ . Table 4. Temperature sensor characteristics","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0015"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0016","chunkIndex":15,"heading":"2.3 Electrical characteristics","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","2.3 Electrical characteristics"],"preview":"2.3 Electrical characteristics @ Vdd = 2.5 V, T = 25 °C unless otherwise noted. $^{(b)}$ Table 5. Electrical characteristics","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0016"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0017","chunkIndex":16,"heading":"2.3 Electrical characteristics","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","2.3 Electrical characteristics"],"preview":"1. Typical specifications are not guaranteed. 2. Please refer to Section 2.3.1: Recommended power up sequence for more details. 2.3.1 Recommended power up sequence For the power up sequence please refer to the following figure, where: \\ Tri","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0017"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0018","chunkIndex":17,"heading":"2.4 Communication interface characteristics","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","2.4 Communication interface characteristics"],"preview":"2.4 Communication interface characteristics 2.4.1 SPI serial peripheral interface Subject to general operating conditions for Vdd and Top. Table 6. SPI slave timing values","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0018"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0019","chunkIndex":18,"heading":"2.4.1 SPI - serial peripheral interface","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","2.4.1 SPI - serial peripheral interface"],"preview":"Note: Values are guaranteed at 10 MHz clock frequency for SPI with 3 wires, based on characterization results, not tested in production. Measurement points are done at 0.2·Vdd\\ IO and 0.8·Vdd\\ IO, for both input and output ports. 2.4.2 I²C","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0019"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0020","chunkIndex":19,"heading":"2.4.2 I²C - inter-IC control interface","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","2.4.2 I²C - inter-IC control interface"],"preview":"","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0020"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0021","chunkIndex":20,"heading":"2.4.2 I²C - inter-IC control interface","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","2.4.2 I²C - inter-IC control interface"],"preview":"1. Data based on standard I²C protocol requirement, not tested in production Figure 5. I²C slave timing diagram Note: Measurement points are done at 0.2·Vdd\\ IO and 0.8·Vdd\\ IO, for both ports. 2.5 Absolute maximum ratings Stresses above th","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0021"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0022","chunkIndex":21,"heading":"2.5 Absolute maximum ratings","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","2.5 Absolute maximum ratings"],"preview":"","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0022"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0023","chunkIndex":22,"heading":"2.5 Absolute maximum ratings","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","2.5 Absolute maximum ratings"],"preview":"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 Terminology 3.1 Sensi","images":[{"path":"images/f206bffa7cda9f7c84e1f85297c32c10b6ea46d06cfa328cca6aec3ebec11c00.jpg","name":"f206bffa7cda9f7c84e1f85297c32c10b6ea46d06cfa328cca6aec3ebec11c00.jpg","mimeType":"image/jpeg","semanticKind":null,"semanticCaption":null,"viewUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/asset?path=images%2Ff206bffa7cda9f7c84e1f85297c32c10b6ea46d06cfa328cca6aec3ebec11c00.jpg"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0023"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0024","chunkIndex":23,"heading":"3.1.2 Magnetic sensor sensitivity","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","3.1.2 Magnetic sensor sensitivity"],"preview":"3.1.2 Magnetic sensor sensitivity Sensitivity describes the gain of the sensor and can be determined, for example, by applying a magnetic field of 1 gauss to it. 3.2 Zero g level The zero g level offset (LA\\ TyOff) describes the deviation o","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0024"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0025","chunkIndex":24,"heading":"3.3 Zero-gauss level","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","3.3 Zero-gauss level"],"preview":"3.3 Zero gauss level Zero gauss level offset (M\\ TyOff) describes the deviation of an actual output signal from the ideal output if no magnetic field is present. 4 Functionality 4.1 Self test The self test allows checking the linear acceler","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0025"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0026","chunkIndex":25,"heading":"4.1 Self-test","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","4.1 Self-test"],"preview":"The self test function is also available for the magnetic sensor. When the magnetic self test is enabled, a current is forced into a coil near the sensor. This current will generate a magnetic field that will produce a variation of the magn","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0026"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0027","chunkIndex":26,"heading":"4.2 FIFO","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","4.2 FIFO"],"preview":"4.2 FIFO The LSM303C embeds an acceleration data FIFO for each of the three output channels, X, Y and Z. This allows consistent power saving for the system, since the host processor does not need to continuously poll data from the sensor, b","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0027"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0028","chunkIndex":27,"heading":"4.2 FIFO","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","4.2 FIFO"],"preview":"The FIFO feature is enabled by writing a '1' to the FIFO\\ EN bit in CTRL\\ REG3\\ A. To guarantee the correct acquisition of data during the switching into and out of FIFO, the first sample acquired must be discarded. 4.2.1 Bypass mode In Byp","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0028"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0029","chunkIndex":28,"heading":"4.2.2 FIFO mode","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","4.2.2 FIFO mode"],"preview":"The FIFO buffer can memorize 32 levels of X, Y and Z data, but the depth of the FIFO can be reduced by means of the CTRL\\ REG3\\ A (STOP\\ FTH) bit. Setting the STOP\\ FTH bit to '1', the FIFO depth is limited to FIFO\\ CTRL (FTH [4:0]) 1. 4.2.","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0029"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0030","chunkIndex":29,"heading":"4.2.3 Stream mode","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","4.2.3 Stream mode"],"preview":"In the latter case, reading all FIFO content before an overrun interrupt has occurred, the first data read is equal to the last data already read in the previous burst, so the number of new data available in FIFO depends on the previous rea","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0030"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0031","chunkIndex":30,"heading":"4.2.4 Stream-to-FIFO mode","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","4.2.4 Stream-to-FIFO mode"],"preview":"4.2.4 Stream to FIFO mode In Stream to FIFO mode (FIFO\\ CTRL(FMODE2:0) = 011), FIFO behavior changes according to the IG\\ SRC1\\ A (IA) bit. When the IG\\ SRC1\\ A(IA) bit is equal to '1', FIFO operates in FIFO mode, when the IG\\ SRC1\\ A (IA)","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0031"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0032","chunkIndex":31,"heading":"4.2.5 Bypass-to-Stream mode","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","4.2.5 Bypass-to-Stream mode"],"preview":"4.2.5 Bypass to Stream mode In Bypass to Stream mode (FIFO\\ CTRL (FMODE [2:0]) = '100'), X, Y and Z measurement storage inside FIFO operates in Stream mode when the IG\\ SRC1\\ A (IA) is equal to '1', otherwise FIFO content is reset (Bypass m","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0032"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0033","chunkIndex":32,"heading":"4.2.6 Bypass-to-FIFO mode","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","4.2.6 Bypass-to-FIFO mode"],"preview":"4.2.6 Bypass to FIFO mode In Bypass to FIFO mode (FIFO\\ CTRL (FMODE [2:0]) = '111', FIFO behavior changes according to the IG\\ SRC1\\ A(IA) bit. When the IG\\ SRC1\\ A(IA) bit is equal to '1,' FIFO operates in FIFO mode. When the IG\\ SRC1\\ A(I","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0033"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0034","chunkIndex":33,"heading":"4.2.7 Retrieving data from FIFO","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","4.2.7 Retrieving data from FIFO"],"preview":"4.2.7 Retrieving data from FIFO FIFO data is read from the OUT\\ X\\ A, OUT\\ Y\\ A and OUT\\ Z\\ A registers. A read operation using a serial interface of the OUT\\ X\\ A, OUT\\ Y\\ A or OUT\\ Z\\ A output registers provides the data stored in the FIF","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0034"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0035","chunkIndex":34,"heading":"4.3 Activity/Inactivity function","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","4.3 Activity/Inactivity function"],"preview":"4.3 Activity/Inactivity function The Activity/Inactivity recognition function allows reducing the power consumption of the accelerometer block in order to supply other smart applications. When the Activity/Inactivity recognition function is","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0035"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0036","chunkIndex":35,"heading":"4.3 Activity/Inactivity function","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","4.3 Activity/Inactivity function"],"preview":"When the acceleration becomes smaller than the threshold for at least (8 ACT\\ DUR +1)/ODR time, the CTRL\\ REG1\\ A (ODR [2:0]) bits of CTRL\\ REG1\\ A are bypassed (Inactivity) and internally set to 10 Hz (ODR [2:0] = 001), but the content of","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0036"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0037","chunkIndex":36,"heading":"4.4 Factory calibration","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","4.4 Factory calibration"],"preview":"4.4 Factory calibration The IC interface is factory calibrated for sensitivity (LA\\ So, M\\ GN), Zero g level (LA\\ TyOff) and Zero gauss level (M\\ TyOff). The trim values are stored inside the device in non volatile memory. Anytime the devic","images":[{"path":"images/d6394db7c5325d3fa2b2dc325b8637a148b9530720fe7529e5b474c38faaa8fc.jpg","name":"d6394db7c5325d3fa2b2dc325b8637a148b9530720fe7529e5b474c38faaa8fc.jpg","mimeType":"image/jpeg","semanticKind":null,"semanticCaption":null,"viewUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/asset?path=images%2Fd6394db7c5325d3fa2b2dc325b8637a148b9530720fe7529e5b474c38faaa8fc.jpg"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0037"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0038","chunkIndex":37,"heading":"Application hints","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","Application hints"],"preview":"The functionality of the device and the measured acceleration data are selectable and accessible through the $I^{2}C$ or SPI interfaces. When using the $I^{2}C$ , CS must be tied high (i.e. connected to Vdd\\ IO). The functions, the threshol","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0038"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0039","chunkIndex":38,"heading":"5.2 High current wiring effects","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","5.2 High current wiring effects"],"preview":"5.2 High current wiring effects High current in wiring and printed circuit traces can be culprits in causing errors in magnetic field measurements for compassing. Conductor generated magnetic fields will add to the Earth's magnetic field, l","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0039"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0040","chunkIndex":39,"heading":"Digital interfaces","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","Digital interfaces"],"preview":"","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0040"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0041","chunkIndex":40,"heading":"6.1 I²C serial interface","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","6.1 I²C serial interface"],"preview":"6.1 I²C serial interface The LSM303C I $^{2}$ C is a bus slave. The I $^{2}$ C is employed to write data into registers whose content can also be read back. The relevant I $^{2}$ C terminology is given in the table below. Table 11. Serial i","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0041"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0042","chunkIndex":41,"heading":"6.1 I²C serial interface","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","6.1 I²C serial interface"],"preview":"In order to disable the I $^{2}$ C block for the accelerometer, CTRL\\ REG4\\ A (I2C\\ DISABLE) must be written to '1', while for magnetometer CTRL\\ REG3\\ M (I2C\\ DISABLE) must be written to '1'. 6.1.1 I²C operation The transaction on the bus","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0042"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0043","chunkIndex":42,"heading":"6.1.1 I²C operation","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","6.1.1 I²C operation"],"preview":"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","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0043"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0044","chunkIndex":43,"heading":"6.1.1 I²C operation","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","6.1.1 I²C operation"],"preview":"Table 12. Transfer when master is writing one byte to slave","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0044"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0045","chunkIndex":44,"heading":"6.1.1 I²C operation","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","6.1.1 I²C operation"],"preview":"","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0045"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0046","chunkIndex":45,"heading":"6.1.1 I²C operation","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","6.1.1 I²C operation"],"preview":"In the presented communication format MAK is Master acknowledge and NMAK is No Master Acknowledge. Default Address: The accelerometer sensor slave address is 0011101b while magnetic sensor slave address is 0011110b. The slave addresses are","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0046"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0047","chunkIndex":46,"heading":"Default Address:","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","Default Address:"],"preview":"","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0047"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0048","chunkIndex":47,"heading":"6.2.1 Accelerometer SPI write","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","6.2.1 Accelerometer SPI write"],"preview":"6.2.1 Accelerometer SPI write Figure 9. Accelerometer SPI write protocol The SPI Write command is performed with 16 clock pulses. The multiple byte write command is performed by adding blocks of 8 clock pulses to the previous one. bit 0: WR","images":[{"path":"images/2a7670f393339f3489ad550e43ba7b895a826aae9e7404c670eb8cd2d464de79.jpg","name":"2a7670f393339f3489ad550e43ba7b895a826aae9e7404c670eb8cd2d464de79.jpg","mimeType":"image/jpeg","semanticKind":null,"semanticCaption":null,"viewUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/asset?path=images%2F2a7670f393339f3489ad550e43ba7b895a826aae9e7404c670eb8cd2d464de79.jpg"},{"path":"images/a24e1c468c690e38136fbfb9bf5c37800d1717b065c9fe340c0283804fa0151f.jpg","name":"a24e1c468c690e38136fbfb9bf5c37800d1717b065c9fe340c0283804fa0151f.jpg","mimeType":"image/jpeg","semanticKind":null,"semanticCaption":null,"viewUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/asset?path=images%2Fa24e1c468c690e38136fbfb9bf5c37800d1717b065c9fe340c0283804fa0151f.jpg"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0048"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0049","chunkIndex":48,"heading":"6.2.2 Accelerometer SPI read in 3-wire mode","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","6.2.2 Accelerometer SPI read in 3-wire mode"],"preview":"6.2.2 Accelerometer SPI read in 3 wire mode Figure 11. Accelerometer SPI read protocol in 3 wire mode The SPI read command is performed with 16 clock pulses: bit 0: READ bit. The value is 1. bit 1 7: address AD(6:0). This is the address fie","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0049"},{"chunkId":"ds_915543e5f3dc2e42e5c9-chunk-0050","chunkIndex":49,"heading":"6.2.3 Magnetometer SPI write","headingPath":["Ultra-compact high-performance eCompass module: 3D accelerometer and 3D magnetometer","6.2.3 Magnetometer SPI write"],"preview":"6.2.3 Magnetometer SPI write Figure 12. Magnetometer SPI write protocol The SPI Write command is performed with 16 clock pulses. The multiple byte write command is performed by adding blocks of 8 clock pulses to the previous one. bit 0: WRI","images":[{"path":"images/2c71974c077cf9196b4abbe2b8d114a8e713af8f61cfd24f770731c16999a7b5.jpg","name":"2c71974c077cf9196b4abbe2b8d114a8e713af8f61cfd24f770731c16999a7b5.jpg","mimeType":"image/jpeg","semanticKind":null,"semanticCaption":null,"viewUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/asset?path=images%2F2c71974c077cf9196b4abbe2b8d114a8e713af8f61cfd24f770731c16999a7b5.jpg"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_915543e5f3dc2e42e5c9/chunks/ds_915543e5f3dc2e42e5c9-chunk-0050"}]}