3.8.9
Arming Function
MMA68xx 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.9.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 falling edge of CS for an accel-
eration data SPI response, the moving average for the associated axis is updated with a new sample. Reference Figure 25 . The
SPI acceleration data sample rate must meet the minimum time between requests (t ACC_REQ_x ) specified in Section 2.5 .
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.9 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.9.4.
The ARM_X or ARM_Y output is de-asserted only when the pulse stretch counter expires. Figure 25 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 23. Arming Function Block Diagram - Moving Average Mode
MMA68xx
Sensors
Freescale Semiconductor, Inc.
37
相关PDF资料
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
MMBF170-7 MOSFET N-CH 60V 500MA SOT23-3
MMBF170LT1 MOSFET N-CH 60V 500MA SOT-23
相关代理商/技术参数
MMA6826AKWR2 功能描述:加速计 - 板上安装 XY-AXIS 60/ 60G RoHS:否 制造商:Murata 传感轴:Double 加速:12 g 灵敏度: 封装 / 箱体: 输出类型:Analog 数字输出 - 位数:11 bit 电源电压-最大:5.25 V 电源电压-最小:4.75 V 电源电流:4 mA 最大工作温度:+ 125 C 最小工作温度:- 40 C
MMA6826BKW 制造商:FREESCALE 制造商全称:Freescale Semiconductor, Inc 功能描述:Dual-Axis SPI Inertial Sensor
MMA6826BKWR2 制造商:FREESCALE 制造商全称:Freescale Semiconductor, Inc 功能描述:Dual-Axis SPI Inertial Sensor
MMA6826KW 功能描述:加速计 - 板上安装 XY-AXIS 60/ 60G QFN RoHS:否 制造商:Murata 传感轴:Double 加速:12 g 灵敏度: 封装 / 箱体: 输出类型:Analog 数字输出 - 位数:11 bit 电源电压-最大:5.25 V 电源电压-最小:4.75 V 电源电流:4 mA 最大工作温度:+ 125 C 最小工作温度:- 40 C
MMA6826KWR2 功能描述:加速计 - 板上安装 XY-AXIS 60/ 60G QFN RoHS:否 制造商:Murata 传感轴:Double 加速:12 g 灵敏度: 封装 / 箱体: 输出类型:Analog 数字输出 - 位数:11 bit 电源电压-最大:5.25 V 电源电压-最小:4.75 V 电源电流:4 mA 最大工作温度:+ 125 C 最小工作温度:- 40 C
MMA6827BKW 功能描述:加速计 - 板上安装 XY-AXIS 120/120G QFN RoHS:否 制造商:Murata 传感轴:Double 加速:12 g 灵敏度: 封装 / 箱体: 输出类型:Analog 数字输出 - 位数:11 bit 电源电压-最大:5.25 V 电源电压-最小:4.75 V 电源电流:4 mA 最大工作温度:+ 125 C 最小工作温度:- 40 C
MMA6827BKWR2 功能描述:加速计 - 板上安装 XY-AXIS 120/120G QFN RoHS:否 制造商:Murata 传感轴:Double 加速:12 g 灵敏度: 封装 / 箱体: 输出类型:Analog 数字输出 - 位数:11 bit 电源电压-最大:5.25 V 电源电压-最小:4.75 V 电源电流:4 mA 最大工作温度:+ 125 C 最小工作温度:- 40 C
MMA6827KW 功能描述:加速计 - 板上安装 XY-AXIS 120/120G QFN RoHS:否 制造商:Murata 传感轴:Double 加速:12 g 灵敏度: 封装 / 箱体: 输出类型:Analog 数字输出 - 位数:11 bit 电源电压-最大:5.25 V 电源电压-最小:4.75 V 电源电流:4 mA 最大工作温度:+ 125 C 最小工作温度:- 40 C