AIS2DW12: ultra-low-power 3-axis accelerometer for automotive applications
Introduction
This document is intended to provide usage information and application hints related to ST’s AIS2DW12 motion sensor.
The AIS2DW12 is an ultra-low-power three-axis linear accelerometer designed to address nonsafety automotive applications
which leverages on the robust and mature manufacturing processes already used for the production of micromachined
accelerometers.
The device has four different ultra-low-power modes, two user-selectable full scales (±2g/±4g) and is capable of measuring
accelerations with output data rates from 1.6 Hz to 100 Hz.
The AIS2DW12 has an integrated 32-level first-in, first-out (FIFO) buffer allowing the user to store data in order to limit
intervention by the host processor. The device includes a dedicated internal engine to process motion and acceleration
detection including free-fall, motion and no-motion, wakeup, activity/inactivity and 6D/4D orientation.
The embedded self-test capability allows the user to check the functioning of the sensor in the final application.
The AIS2DW12 is available in a small thin plastic land grid array package (LGA) and it is guaranteed to operate over an
extended temperature range from -40 °C to +85 °C.
AN5326 - Rev 3 - January 2021
For further information contact your local STMicroelectronics sales office.
www.st.com
1Pin description
1
9
8
7
2
3
465
1112
10
GND
RES
SCL/SPC
CS
SDO/SA0
SDA/SDI/SDO
NC
INT2
INT1
(TOPVIEW)
DIRECTION OF THE
DETECTABLE
ACCELERATIONS
Y
1
X
Z
VDD
(BOTTOM VIEW)
GND
VDDIO
AN5326
Pin description
Figure 1. Pin connections
Table 1. Pin description
Pin#NameFunctionPin status
SCL
1
2CS
3
4
5NCInternally not connected. Can be tied to VDD, VDDIO, or GND.
6GND0 V supply
7RESConnect to GND
8GND0 V supply
9VDDPower supply
10VDD_IO Power supply for I/O pins
11INT2Interrupt pin 2. Clock input when selected in single data conversion on demand.Default: push-pull output forced to ground
12INT1Interrupt pin 1Default: push-pull output forced to ground
1. In order to disable the internal pull-up on the CS pin, write '1' to the CS_PU_DISC bit in CTRL2 (21h).
2. Internal pull-up on SDO/SA0 pin cannot be disabled. Do not connect this pin to GND in low-power
applications.
I²C serial clock (SCL)
SPC
SPI serial port clock (SPC)
SPI enable
I²C/SPI mode selection
(1: SPI idle mode / I²C communication enabled;
0: SPI communication mode / I²C disabled)
SDO
SPI serial data output (SDO)
SA0
I²C less significant bit of the device address (SA0)
2. If Low-Power Mode 1 is enabled, this bit is set to 0.
LPASS_ON6D
page 4/42
AN5326
Registers
3Operating modes
3.1Power mode
Four sets of operating modes have been designed to offer the customer a broad choice of noise/powerconsumption combinations.
Power Mode 4Power Mode 3Power Mode 2Power Mode 1
14-bit14-bit14-bit12-bit
These operating modes are selected by writing the OP_ MODE[1:0] and PW_MODE[1:0] bits in CTRL1 (20h)
given in the tables below. Additional details concerning power consumption and noise in different operating
modes are available in the device datasheet.
AN5326
Operating modes
Table 3. Accelerometer resolution
Table 4. CTRL1 register
b7b6b5b4b3b2b1b0
ODR3ODR2ODR1ODR0OP_MODE1OP_MODE0PW_MODE1PW_MODE0
Table 5. Operating mode selection
OP_MODE[1:0]Operating mode and resolution
00Continuous mode (12/14-bit resolution)
01Not allowed
10Single data conversion on-demand mode (12/14-bit resolution)
11Not allowed
Table 6. Power mode selection
PW_MODE[1:0]
00Power Mode 1 (12-bit resolution)
01Power Mode 2 (14-bit resolution)
10Power Mode 3 (14-bit resolution)
11Power Mode 4 (14-bit resolution)
Power mode and resolution
AN5326 - Rev 3
page 5/42
3.2Continuous conversion
When bits OP_MODE[1:0] in CTRL1 (20h) are set to Continuous Mode (00b), the device is in continuous
conversion and the output data rate can be selected through the ODR[3:0] bits in CTRL1 (20h).
ODR[3:0]Output data rate
0000Power-down
00011.6 Hz (independent of power mode)
001012.5 Hz (independent of power mode)
001125 Hz (independent of power mode)
010050 Hz (independent of power mode)
0101100 Hz (independent of power mode)
AN5326
Continuous conversion
Table 7. Output data rate selection
AN5326 - Rev 3
page 6/42
3.3Single data conversion (on-demand mode)
This mode is enabled by writing the OP_MODE[1:0] bits to ‘10' in CTRL1 (20h).
In this configuration the device waits for a trigger signal in order to generate new data according to the selected
power mode PW_MODE[1:0] bits in CTRL1 (20h), after that the device immediately enters power-down.
The trigger can be:
•A rising edge on the INT2 pin (if SLP_MODE_SEL = ‘0' in register CTRL3 (22h)). In this case the user
can detect the end of the conversion using the DRDY bit of the STATUS register (27h) that can also be
routed to the INT1 pin by setting the INT1_DRDY bit to 1 in register CTRL4_INT1 (23h). Minimum duration
of trigger signal high level is 20 ns.
•A write of SLP_MODE_1 to ‘1' in register CTRL3 (22h) (if SLP_MODE_SEL ='1' in register CTRL3(22h)). In this case, the user can detect the end of the conversion using the DRDY bit/signal as in the
previous case, or by checking when the SLP_MODE_1 bit in register CTRL3 (22h) is automatically cleared.
Figure 2. Single data conversion using INT2 as external trigger (SLP_MODE_SEL = 0)
AN5326
Single data conversion (on-demand mode)
The maximum data rate using single data conversion mode is 100 Hz and the time of conversion depends on the
low-power mode selected (refer to the following table).
Table 8. Single data conversion: typical time of conversion
Power mode
Mode 11.20 ms
Mode 21.70 ms
Mode 32.30 ms
Mode 43.55 ms
Typical time of conversion
(T_on)
Note: If the ODR[3:0] bits of the CTRL1 register are set to 0000b, the accelerometer is permanently configured in
Power-down mode and no conversion can be triggered. When the single data conversion mode has to be used,
the ODR[3:0] bits of the CTRL1 register must be different than 0000b.
Interrupts, embedded features and FIFO are still supported when using single data conversion mode. Also the
embedded filters LPF1, LPF2 and HP are available in single data conversion (on-demand mode) with the same
bandwidth and settling time of the selected low-power mode (see Section 3.4 Accelerometer bandwidth for
details).
AN5326 - Rev 3
page 7/42
3.4Accelerometer bandwidth
The accelerometer sampling chain (Figure 3. Accelerometer filtering chain diagram) is represented by a cascade
of a few blocks:
•ADC: Analog-to-digital converter
•LPF1(2): low-pass filter 1(2)
•HP: high-pass filter
•User offset: configurable values that are subtracted from the sampled data (one for each axis)
Figure 3. Accelerometer filtering chain diagram
AN5326
Accelerometer bandwidth
As shown in the figure above, data can be generated using three different filter paths:
•only LPF1 (green path) : in order to select this path set BW_FILT[1:0] = 00 and FDS = 0. Additional details in
Table 9. Low-pass filter 1 bandwidth.
•LPF1 + LPF2 (purple path) : in order to select this path set BW_FILT[1:0] to a value different from 00 and
FDS = 0. Additional details in Table 10. Bandwidth: low-pass path.
•LPF1 + HP (blue path): these outputs are available by setting FDS = 1. Additional details in
Table 11. Bandwidth: high-pass path.
Table 9. Low-pass filter 1 bandwidth
BW_FILT[1:0] = 00
Mode
Power Mode 4@ each ODR
Power Mode 3@ each ODR0360
Power Mode 2@ each ODR0720
Power Mode 1@ each ODR03200
1. The starting condition of ODR[3:0],OP_ MODE[1:0], PW_MODE[1:0] and BW_FILT[1:0] do not impact these values. The
turn-on time (first sample available starting from power-down condition) is 1 / ODR.
1. The starting condition of ODR[3:0], OP_MODE[1:0], PW_MODE[1:0] and BW_FILT[1:0] do not impact these
values.
Setting USR_OFF_ON_OUT = 1 in CTRL7 does not change the bandwidth of the system. In this configuration,
the values written in registers X_OFS_USR, Y_OFS_USR, Z_OFS_USR are subtracted from the respective axis.
The offset values are signed values (two's complement).
The weight of the bits in registers X_OFS_USR, Y_OFS_USR, Z_OFS_USR is defined through the USR_OFF_W
bit in CTRL7.
AN5326 - Rev 3
page 9/42
3.5High-pass filter configuration
The AIS2DW12 provides an embedded high-pass filtering capability to easily delete the DC component of the
measured acceleration. As shown in Figure 3. Accelerometer filtering chain diagram, through the FDS bit in
register CTRL6 the user can route the filter outputs to the output registers.
It is also possible to independently apply the filter to the embedded function data (Figure 6. Embedded functions
in Section 5 Interrupt generation and embedded functions). This means that it is possible to get filtered data
while the interrupt generation works on unfiltered data.
The high-pass filter can be configured in reference mode by setting the HP_REF_MODE bit in the CTRL7 register
to 1. In this configuration the output data is calculated as the difference between the measured acceleration and
the output values captured when reference mode was enabled. In this way only the difference is applied without
any filtering.
As an example, this feature can be combined with the wake-up functionality described in Section 5.4 in order
to detect when the device is displaced with respect to a specific orientation, i.e. the orientation of the device
when the HP_REF_MODE bit was set to 1. When the output acceleration exceeds the wake-up threshold defined
by the WK_THS[5:0] bits in the WAKE_UP_THS register for a duration longer than the one defined by the
WAKE_DUR[1:0] bits in the WAKE_UP_DUR register, an interrupt is generated. If the device is moved back to the
original reference orientation, the interrupt is deactivated.
Figure 4. High-pass filter in normal and reference mode
AN5326
High-pass filter configuration
AN5326 - Rev 3
page 10/42
4Reading output data
4.1Startup sequence
Once the device is powered up, it automatically downloads the calibration coefficients from the embedded
non-volatile memory to the internal registers. When the boot procedure is completed, i.e. after approximately
20 milliseconds, the accelerometer automatically enters power-down. The default status of the pins with both VDD
and VDDIO "on" is indicated in Table 1. Pin description.
Note: VDD cannot be lower than VDDIO. VDD = 0 V and VDDIO "on" is allowed: when this power supply
configuration is applied, an internal pull-up is applied also to the SDA and SCL pins (the other pins maintain the
default status indicated in Table 1).
To turn on the accelerometer and gather acceleration data, it is necessary to select one of the operating modes
through the CTRL1 register.
Refer to Section 3 Operating modes for a detailed description of data generation.
4.2Using the status register
The device is provided with a STATUS register which can be polled to check when a new set of data is available.
The DRDY bit is set to 1 when a new set of data is available from the accelerometer output.
The read operations should be performed as follows:
1.Read STATUS
2.If DRDY = 0, then go to 1
3.Read OUT_X_L
4.Read OUT_X_H
5.Read OUT_Y_L
6.Read OUT_Y_H
7.Read OUT_Z_L
8.Read OUT_Z_H
9.Data processing
10. Go to 1
AN5326
Reading output data
4.3Using the data-ready signal
The device can be configured to have one hardware signal to determine when a new set of measurement data is
available to be read.
The data-ready signal is derived from the DRDY bit of the STATUS register. The signal can be driven to the INT1
pin by setting the INT1_DRDY bit of the CTRL4_INT1 register to 1 and to the INT2 pin by setting the INT2_DRDY
bit of the CTRL5_INT2 register to 1.
The data-ready signal rises to 1 when a new set of data has been measured and is available to be read. In
DRDY latched mode (DRDY_PULSED bit = 0 in CTRL7 register), which is the default condition, the signal gets
reset when the higher part of one of the channels has been read (29h, 2Bh, 2Dh). In DRDY pulsed mode
(DRDY_PULSED = 1) the pulse duration can vary between 105 μs and 175 μs. Pulsed mode is not applied to the
DRDY bit which is always latched.
AN5326 - Rev 3
page 11/42
Figure 5. Data-ready signal
4.4Using the block data update (BDU) feature
If reading the accelerometer data is particularly slow and cannot be synchronized (or it is not required) with either
the DRDY event bit in the STATUS register or with the DRDY signal driven to the INT1/INT2 pins, it is strongly
recommended to set the BDU (block data update) bit to 1 in the CTRL2 (21h) register.
This feature avoids reading values (most significant and least significant parts of output data) related to different
samples. In particular, when the BDU is activated, the data registers related to each channel always contain
the most recent output data produced by the device, but, in case the read of a given pair (i.e. OUT_X_H and
OUT_X_L, OUT_Y_H and OUT_Y_L, OUT_Z_H and OUT_Z_L) is initiated, the refresh for that pair is blocked
until both MSB and LSB parts of the data are read.
Note: BDU only guarantees that the LSB part and MSB part of one data channel have been sampled at the same
moment. For example, if the reading speed is too slow, X and Y can be read at T1 and Z sampled at T2.
AN5326
Using the block data update (BDU) feature
4.5Understanding output data
The measured acceleration data are sent to the OUT_X_H, OUT_X_L, OUT_Y_H, OUT_Y_L, OUT_Z_H, and
OUT_Z_L registers. These registers contain, respectively, the most significant part and the least significant part of
the acceleration signals acting on the X, Y, and Z axes.
The complete output data for the X, Y, Z channels is given by the concatenation OUT_X_H & OUT_X_L,
OUT_Y_H & OUT_Y_L , OUT_Z_H & OUT_Z_L.
Acceleration data is represented as 16-bit numbers, left-aligned and encoded in two’s complement. These values
(LSB) have different resolution according to the selected operating mode.
After calculating the LSB, it must be multiplied by the proper sensitivity parameter to obtain the corresponding
value in mg.
Full Scale
±2 g
±4 g1.9520.488
Table 12. Sensitivity
Sensitivity [mg/LSB]
12-bit format14-bit format
0.9760.244
AN5326 - Rev 3
page 12/42
4.5.1Example of output data
Below is a simple example of how to use the LSB data and transform it into mg.
The values are given under the hypothesis of ideal device calibration (i.e., no offset, no gain error, etc.).
Get raw data from the sensor in 14-bit power mode at ±2 g:
OUT_X_L: 60h
OUT_X_H: FDh
OUT_Y_L: 78h
OUT_Y_H: 00h
OUT_Z_L: FCh
OUT_Z_H: 42h
Do register concatenation:
AN5326
Understanding output data
OUT_X_H & OUT_X_L: FD60h
OUT_Y_H & OUT_Y_L: 0078h
OUT_Z_H & OUT_Z_L: 42FCh
Apply sensitivity (e.g., 14-bit resolution, 0.244 at full scale ±2 g):
X: -672 / 4 * 0.244 = -41 mg
Y: +120 / 4 * 0.244 = +7 mg
Z: +17148 / 4 * 0.244 = +1046 mg
AN5326 - Rev 3
page 13/42
Loading...
+ 29 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.