LIS2DH12
Generated with MrT Device Utility
Bus: I2C,SPI
RegMap: Register Map
Datasheet: http://www.st.com/conten…
DigiKey: 497-14851-1-ND
I2C Address: 0x32
Description
MEMS Digital Output Motion Sensor Ultra Low-Power High Performance 3-Axis “Femto” Accelerometer
Register Map
Name |
Address |
Type |
Access |
Default |
Description |
---|---|---|---|---|---|
0x07 |
uint8 |
R |
0x00 |
n/a |
|
0x0C |
uint16 |
R |
0x0000 |
Temperature sensor data |
|
0x0F |
uint8 |
R |
0x33 |
Device identification register |
|
0x1E |
uint8 |
RW |
0x10 |
Control Register 0 |
|
0x1F |
uint8 |
RW |
0x07 |
n/a |
|
0x20 |
uint8 |
RW |
0x07 |
Control Register 1 |
|
0x21 |
uint8 |
RW |
0x00 |
Control Register 2 |
|
0x22 |
uint8 |
RW |
0x00 |
Control Register 3 |
|
0x23 |
uint8 |
RW |
0x00 |
Control Register 4 |
|
0x24 |
uint8 |
RW |
0x00 |
Control Register 5 |
|
0x25 |
uint8 |
RW |
0x00 |
Control Register 6 |
|
0x26 |
uint8 |
RW |
0x00 |
Reference value for interrupt generation |
|
0x27 |
uint8 |
R |
0x00 |
n/a |
|
0x28 |
uint16 |
R |
0x0000 |
X-axis acceleration data |
|
0x2A |
uint16 |
R |
0x0000 |
Y-axis acceleration data |
|
0x2C |
uint16 |
R |
0x0000 |
Z-axis acceleration data |
|
0x2E |
uint8 |
RW |
0x00 |
Fifo Control register |
|
0x2F |
uint8 |
R |
0x00 |
Fifo status register |
|
0x30 |
uint8 |
RW |
0x00 |
Interrupt 1 config register |
|
0x31 |
uint8 |
R |
0x00 |
Interrupt 1 source register |
|
0x32 |
uint8 |
RW |
0x00 |
Interrupt 1 threshold register |
|
0x33 |
uint8 |
RW |
0x00 |
Interrupt 1 duration register |
|
0x34 |
uint8 |
RW |
0x00 |
Interrupt 2 config register |
|
0x35 |
uint8 |
R |
0x00 |
Interrupt 2 source register |
|
0x36 |
uint8 |
RW |
0x00 |
Interrupt 2 threshold register |
|
0x37 |
uint8 |
RW |
0x00 |
Interrupt 2 duration register |
|
0x38 |
uint8 |
RW |
0x00 |
Click config |
|
0x39 |
uint8 |
R |
0x00 |
Click source |
|
0x3A |
uint8 |
RW |
0x00 |
Click Threshold |
|
0x3B |
uint8 |
RW |
0x00 |
Click time limit |
|
0x3C |
uint8 |
RW |
0x00 |
Click time latency |
|
0x3D |
uint8 |
RW |
0x00 |
Click time window |
|
0x3E |
uint8 |
RW |
0x00 |
Activity threshold |
|
0x3F |
uint8 |
RW |
0x00 |
Activity duration |
Registers
STATUS_AUX
- Address:
[0x07]
n/a
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
STATUS_AUX |
OUT_TEMP
- Address:
[0x0C]
Temperature sensor data
Bit |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Field |
OUT_TEMP |
WHO_AM_I
- Address:
[0x0F]
- Default:
[0x33]
Device identification register
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- WHO_AM_I:
Device identification register
CTRL0
- Address:
[0x1E]
- Default:
[0x10]
Control Register 0
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- CTRL0:
Control Register 0
TEMP_CFG
- Address:
[0x1F]
- Default:
[0x07]
n/a
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- TEMP_CFG:
n/a
CTRL1
- Address:
[0x20]
- Default:
[0x07]
Control Register 1
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
LOW_PWR |
Z_EN |
Y_EN |
X_EN |
Flags
- X_EN:
X-axis enable
- Y_EN:
Y-axis enable
- Z_EN:
Z-axis enable
- LOW_PWR:
Low-power mode enable
Fields
- ODR:
Data rate selection
Name |
Value |
Descriptions |
---|---|---|
PWR_DWN |
b0000 |
Power-down mode |
1Hz |
b0001 |
HR/ Normal / Low-power mode (1 Hz) |
10Hz |
b1000 |
HR/ Normal / Low-power mode (10 Hz) |
25Hz |
b1001 |
HR/ Normal / Low-power mode (25 Hz) |
50Hz |
b1000000 |
HR/ Normal / Low-power mode (50 Hz) |
100Hz |
b1000001 |
HR/ Normal / Low-power mode (100 Hz) |
200Hz |
b1001000 |
HR/ Normal / Low-power mode (200 Hz) |
400Hz |
b1001001 |
HR/ Normal / Low-power mode (400 Hz) |
1620Hz |
b0111 |
Low-power mode (1.620 kHz) |
5376Hz |
b0111 |
HR/ Normal (1.344 kHz) / Low-power mode (5.376 kHz) |
CTRL2
- Address:
[0x21]
- Default:
[0x00]
Control Register 2
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
FDS |
HPCLICK |
HP_IA2 |
HP_IA1 |
Flags
- HP_IA1:
High-pass filter enabled for AOI function on Interrupt 1
- HP_IA2:
High-pass filter enabled for AOI function on Interrupt 2
- HPCLICK:
High-pass filter enabled for Click function
- FDS:
Filtered data selection
CTRL3
- Address:
[0x22]
- Default:
[0x00]
Control Register 3
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- CTRL3:
Control Register 3
CTRL4
- Address:
[0x23]
- Default:
[0x00]
Control Register 4
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- CTRL4:
Control Register 4
CTRL5
- Address:
[0x24]
- Default:
[0x00]
Control Register 5
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- CTRL5:
Control Register 5
CTRL6
- Address:
[0x25]
- Default:
[0x00]
Control Register 6
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- CTRL6:
Control Register 6
REFERENCE
- Address:
[0x26]
- Default:
[0x00]
Reference value for interrupt generation
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- REFERENCE:
Reference value for interrupt generation
STATUS
- Address:
[0x27]
n/a
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
STATUS |
OUT_X
- Address:
[0x28]
X-axis acceleration data
Bit |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Field |
OUT_X |
OUT_Y
- Address:
[0x2A]
Y-axis acceleration data
Bit |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Field |
OUT_Y |
OUT_Z
- Address:
[0x2C]
Z-axis acceleration data
Bit |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Field |
OUT_Z |
FIFO_CTRL
- Address:
[0x2E]
- Default:
[0x00]
Fifo Control register
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- FIFO_CTRL:
Fifo Control register
FIFO_SRC
- Address:
[0x2F]
Fifo status register
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
FIFO_SRC |
INT1_CFG
- Address:
[0x30]
- Default:
[0x00]
Interrupt 1 config register
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- INT1_CFG:
Interrupt 1 config register
INT1_SRC
- Address:
[0x31]
Interrupt 1 source register
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
INT1_SRC |
INT1_THS
- Address:
[0x32]
- Default:
[0x00]
Interrupt 1 threshold register
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- INT1_THS:
Interrupt 1 threshold register
INT1_DURATION
- Address:
[0x33]
- Default:
[0x00]
Interrupt 1 duration register
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- INT1_DURATION:
Interrupt 1 duration register
INT2_CFG
- Address:
[0x34]
- Default:
[0x00]
Interrupt 2 config register
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- INT2_CFG:
Interrupt 2 config register
INT2_SRC
- Address:
[0x35]
Interrupt 2 source register
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
INT2_SRC |
INT2_THS
- Address:
[0x36]
- Default:
[0x00]
Interrupt 2 threshold register
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- INT2_THS:
Interrupt 2 threshold register
INT2_DURATION
- Address:
[0x37]
- Default:
[0x00]
Interrupt 2 duration register
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- INT2_DURATION:
Interrupt 2 duration register
CLICK_CFG
- Address:
[0x38]
- Default:
[0x00]
Click config
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- CLICK_CFG:
Click config
CLICK_SRC
- Address:
[0x39]
Click source
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
CLICK_SRC |
CLICK_THS
- Address:
[0x3A]
- Default:
[0x00]
Click Threshold
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- CLICK_THS:
Click Threshold
TIME_LIMIT
- Address:
[0x3B]
- Default:
[0x00]
Click time limit
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- TIME_LIMIT:
Click time limit
TIME_LATENCY
- Address:
[0x3C]
- Default:
[0x00]
Click time latency
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- TIME_LATENCY:
Click time latency
TIME_WINDOW
- Address:
[0x3D]
- Default:
[0x00]
Click time window
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- TIME_WINDOW:
Click time window
ACT_THS
- Address:
[0x3E]
- Default:
[0x00]
Activity threshold
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- ACT_THS:
Activity threshold
ACT_DUR
- Address:
[0x3F]
- Default:
[0x00]
Activity duration
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- ACT_DUR:
Activity duration