3.8.10
ARMING FUNCTION
The device provides the option for an arming function with 3 modes of operation. The operation of the arming function is se-
lected by the state of the A_CFG bits in the DEVCFG register.
Reference Section 4.5 for the operation of the Arming function with exception conditions. Error conditions do not impact prior
arming function responses. If an error occurs after an arming activation, the corresponding pulse stretch for the existing arming
condition will continue. However, new acceleration reads will not update the arming function regardless of the acceleration value.
3.8.10.1 Arming Function: Moving Average Mode
In moving average mode, the arming function runs a moving average on the offset cancelled output of each acceleration axis.
The number of samples used for the moving average (k) is programmable via the AWS_Xx[1:0] and ARM_Yx[1:0] bits in the
ARMCFGX and ARMCFGY registers. Reference Section 3.1.8 for register details.
ARM_MA n = (OC n + OC n-1 + ... + OC n+1-k )/k
Where n is the current sample.
The sample rate for each axis is determined by the SPI acceleration data sample rate. At the rising edge of CS for an accel-
eration data SPI request, the moving average for the associated axis is updated with a new sample. Reference Figure 28 . The
SPI acceleration data sample rate must meet the minimum time between requests (t ACC_REQ_x ) specified in Section 2.6 .
The moving average output is compared against positive and negative 8-bit thresholds that are individually programmed for
each axis via the ARMT_Xx and ARMT_Yx registers. Reference Section 3.1.10 for register details. If the moving average equals
or exceeds either threshold, an arming condition is indicated, the ARM_X or ARM_Y output is asserted for the associated axis,
and the pulse stretch counter is set as described in Section 3.8.10.4 .
The ARM_X or ARM_Y output is de-asserted only when the pulse stretch counter expires. Figure 28 shows the arming output
operation for different SPI conditions.
ARMT_xP[7:0]
AWS_xP[1:0]
Positive
Moving Average
Offset Cancellation
OffCanc_ARM_x[10:0]
Pulse Stretch
Gating
I/O
ARM_x
Negative
AWS_xN[1:0]
Moving Average
ARMT_xN[7:0]
APS_x[1:0]
Figure 26. Arming Function Block Diagram - Moving Average Mode
The moving average window size must be set prior to setting the arming function to moving average mode, or prior to request-
ing acceleration data via the SPI. If the moving average window size is changed after enabling moving average mode, the arming
function must first be disabled by setting the A_CFG bits to “000”. Once the desired moving average window size is set, the mov-
ing average mode can be re-enabled.
MMA65xx
Sensor
Freescale Semiconductor, Inc.
37
相关PDF资料
MMA6556KW IC ACCELEROMETER X AXIS 16QFN
MMA6826AKW IC ACCELEROMETER XY AXIS 16QFN
MMA6854KW IC ACCELEROMETER X AXIS 16QFN
MMA7331LR2 ACCELEROMETER 4G XYZ ENH 14-LGA
MMA8451QT IC ACCELEROMETER 3AXIS 16QFN
MMA8452QR1 IC ACCELER 2G/4G/8G 3AXIS 16QFN
MMA8453QR1 IC ACCELER 2G/4G/8G 3AXIS 16QFN
MMBF0201NLT1 MOSFET N-CH 20V 300MA SOT-23
相关代理商/技术参数
MMA6527KWR2 功能描述:加速计 - 板上安装 XY-AXIS 120/ 120G RoHS:否 制造商:Murata 传感轴:Double 加速:12 g 灵敏度: 封装 / 箱体: 输出类型:Analog 数字输出 - 位数:11 bit 电源电压-最大:5.25 V 电源电压-最小:4.75 V 电源电流:4 mA 最大工作温度:+ 125 C 最小工作温度:- 40 C
MMA6555KW 功能描述:加速计 - 板上安装 X-AXIS 100G RoHS:否 制造商:Murata 传感轴:Double 加速:12 g 灵敏度: 封装 / 箱体: 输出类型:Analog 数字输出 - 位数:11 bit 电源电压-最大:5.25 V 电源电压-最小:4.75 V 电源电流:4 mA 最大工作温度:+ 125 C 最小工作温度:- 40 C
MMA6555KWR2 功能描述:加速计 - 板上安装 X-AXIS 100G RoHS:否 制造商:Murata 传感轴:Double 加速:12 g 灵敏度: 封装 / 箱体: 输出类型:Analog 数字输出 - 位数:11 bit 电源电压-最大:5.25 V 电源电压-最小:4.75 V 电源电流:4 mA 最大工作温度:+ 125 C 最小工作温度:- 40 C
MMA6556KW 功能描述:加速计 - 板上安装 X-AXIS 120G RoHS:否 制造商:Murata 传感轴:Double 加速:12 g 灵敏度: 封装 / 箱体: 输出类型:Analog 数字输出 - 位数:11 bit 电源电压-最大:5.25 V 电源电压-最小:4.75 V 电源电流:4 mA 最大工作温度:+ 125 C 最小工作温度:- 40 C
MMA6556KWR2 功能描述:加速计 - 板上安装 X-AXIS 120G RoHS:否 制造商:Murata 传感轴:Double 加速:12 g 灵敏度: 封装 / 箱体: 输出类型:Analog 数字输出 - 位数:11 bit 电源电压-最大:5.25 V 电源电压-最小:4.75 V 电源电流:4 mA 最大工作温度:+ 125 C 最小工作温度:- 40 C
MMA65XX 制造商:FREESCALE 制造商全称:Freescale Semiconductor, Inc 功能描述:Dual-Axis SPI Inertial Sensor
MMA6700AEGR2 制造商:FREESCALE 制造商全称:Freescale Semiconductor, Inc 功能描述:High Accuracy Low g Inertial Sensor MEMS Sensing, State Machine ASIC
MMA6700EG 制造商:FREESCALE 制造商全称:Freescale Semiconductor, Inc 功能描述:High Accuracy Low g Inertial Sensor MEMS Sensing, State Machine ASIC