SMB380精简翻译版文档格式.docx

上传人:b****7 文档编号:22760381 上传时间:2023-02-05 格式:DOCX 页数:43 大小:478.33KB
下载 相关 举报
SMB380精简翻译版文档格式.docx_第1页
第1页 / 共43页
SMB380精简翻译版文档格式.docx_第2页
第2页 / 共43页
SMB380精简翻译版文档格式.docx_第3页
第3页 / 共43页
SMB380精简翻译版文档格式.docx_第4页
第4页 / 共43页
SMB380精简翻译版文档格式.docx_第5页
第5页 / 共43页
点击查看更多>>
下载资源
资源描述

SMB380精简翻译版文档格式.docx

《SMB380精简翻译版文档格式.docx》由会员分享,可在线阅读,更多相关《SMB380精简翻译版文档格式.docx(43页珍藏版)》请在冰豆网上搜索。

SMB380精简翻译版文档格式.docx

中断准则使用的数字代码来自数字滤波器输出。

因此所有阈值的设置都由量程选择开关来界定(section3.1.3.2)。

用于高加速度和低加速度之间的去抖的timiming(定时)是绝对值(HG_dur和LG_dur寄存器的一个最小可分辨信号相当于1毫秒,timiming的准确性于振荡器精度成正比=+/-10%),因此,它并不依赖于选定的带宽。

用于anymotion中断位和alert规则的timiming正比于带宽设置(section3.1.3)。

3.2.1Enable_LG使能位_LG:

Thisbit(address0Bh,bit0)enablestheLG_threscriteriatogenerateaninterrupt.

这个位(address0Bh,bit0)使LG_thres(lowg阈值)准则产生一个中断。

3.2.2Enable_HG:

Thisbit(address0Bh,bit1)enablestheHG_threscriteriatogenerateaninterrupt.

这位(address0Bh,bit1)使HG_thres(highg阈值)准则产生一个中断。

3.2.3Enable_adv_INT:

Thisbit(address15h,bit6)isusedtodisableadvancedinterruptcontrolbits(any_motion,alert).Ifenable_adv_INT=0,writingtothesebitshasnoeffectonsensorICfunction.

这个位(address15h,bit6)是用来屏蔽高级中断控制位(any_motion,alert)。

如果enable_adv_INT=0,写这些位(any_motion,alert)不会改变传感器IC的功能。

3.2.4Any_motion:

Thisbit((address0Bh,bit6)enablestheanymotioncriteriatogeneratedirectlyaninterrupt.Itcannotbeturnedonsimultaneouslywithalert.Thisbitcanbemaskedbyenable_adv_INT,thevalueofthisbitisignoredwhenenable_adv_INT=0(section3.2.3)

这个位(address0Bh,bit6)使any_motion准则产生直接中断。

它不能和alert位同时打开。

这一位的值可以被enable_adv_INT位屏蔽。

当enable_adv_INT=0时,这一位的值被忽视。

(section3.2.3)

3.2.5Alert:

Ifthisbit(address0Bh,bit7)isat1,theany_motioncriterionwillsetSMB380intoalertmode(section3.2.9).Thisbitcanbemaskedbyenable_adv_INT,thevalueofthisbitisignoredwhenenable_adv_INT=0(section3.2.3)

如果此位(address0Bh,bit7)是1,any_motion准则将使SMB380进入警戒模式(注意此模式有什么功能?

)。

(section3.2.9)这一位的值可以被enable_adv_INT位屏蔽。

当enable_adv_INT=0时这一位的值被忽视。

3.2.6Latch_INT:

Ifthisbit(address15h,bit4)isat1,interruptsarelatched.TheINTpadstayshighuntilmicroprocessordetectsitandwritesreset_INTcontrolbitto1(section3.3.1).Whenthisbitisat0,interruptsaresetandresetdirectlybySMB380accordingtoprogrammablecriteria(sections3.2.7and3.2.8).

如果此位(address15h,bit4)为1,中断锁存。

INT位中断缓冲器保持高电平,直到微处理器检测到它并写reset_INT控制位为1(section3.3.1).当此位是0,中断可以由事先编好程序的SMB380直接设置或者复位。

(sections3.2.7and3.2.8,LG_中断和HG_中断一般都不是锁存的中断,而new_data_INT默认为锁存的中断!

).

3.2.7LG_thres,LG_hyst,LG_dur,counter_LG

LG_thres(address0C,bits7-0/low-gthreshold)andLG_hyst(address11h,bits2-0/low-gthresholdhysteresis)areusedtodetectafreefall.Thethresholdanddurationcodesdefineonecriterionforinterruptgenerationwhenabsolutevalueofaccelerationislowforlongenoughduration.

LG_thres(地址0C,位7-0/低-g阈值)和LG_hyst(address11h,bits2-0/low-g阈值迟滞)是用来探测自由落体运动。

阈值(LG_thres)和时间码(LG_dur)定义了一个中断是否产生的准则,这个准则就是当(被采样的)加速度(所发生的时间)低于足够长的持续时间时,中断是否产生。

我认为是:

(在足够长的时间内,加速度绝对值低于一定阈值并保持足够长时间时)。

Dataformatisunsignedinteger.

数据格式是无符号整数。

LG_threscriterion_xistrueif|acc_x|≤LG_thres/255*range

LG_thresinterruptissetif(LG_threscriterion_xANDLG_threscriterion_yANDLG_threscriterion_z)ANDinterruptcounter=(LG_dur+1)

LG_threscriterion_xisfalseif|acc_x|>

(LG_thres+32*LG_hyst)/255*range

LG_thresinterruptisresetifNOT(LG_threscriterion_xANDLG_threscriterion_yANDLG_threscriterion_z)

LG_threscriterion_x是真的,如果|acc_x|≤LG_thres/255*range。

LG_thres中断(位)被设置,if(LG_threscriterion_xANDLG_threscriterion_yANDLG_threscriterion_z)AND中断计数器=(LG_dur+1)

LG_threscriterion_x是falseif|acc_x|>

(LG_thres+32*LG_hyst)/255*rangeLG_thres中断被重置ifNOT(LG_threscriterion_xANDLG_threscriterion_yANDLG_threscriterion_z)

LG_thresandLG_hystcodesmustbechosentohave(LG_thres+32*LG_hyst)<

511.

LG_thres和LG_hyst的码必须被挑选以使(LG_thres+32*LG_hyst)<

511。

WhenLG_threscriterionbecomesactive,aninterruptcounterisincrementedby1LSB/ms.Whenthelow-ginterruptcountervalueequals(LG_dur+1),aninterruptisgenerated.Dependingoncounter_LG(address0Bh,bit3and2)register,thecountercouldalsoberesetorcountdownwhenLG_threscriterionisfalse.

当LG_thres准则在起作用时(处于激活状态时),中断计数器以1个LSB/ms递增。

当low-g中断计数器的值等于(LG_dur+1),产生一个中断。

依靠counter_LG(address0Bh,bit3and2)寄存器,当LG_thres是false时。

计数器也可以重置或倒计时。

Rev.1.0Page12

Table6:

Descriptionofdebouncingcountercounter_LG

表6:

去抖计数器counter_LG的说明

counter_LG<

1:

0>

lowaccelerationinterruptcounterstatuswhen

LG_threscriteriaisfalse

当LG_thres是false时,低加速中断计数器的情况

00

Reset(重置)

01

Countdown倒计时by1LSB/ms

10

Countdown倒计时by2LSB/ms

11

Countdown倒计时by3LSB/ms

Iflatch_INT=0,theinterruptisnotalatchedinterruptandthenitisresetassoonasLG_threscriteriabecomesfalse.Wheninterruptoccurs,theinterruptcounterisreset.

如果latch_INT=0,这个中断不是一个锁存的中断,然后这个(中断)会在LG_thres变成false后马上重新设置。

当中断发生时,中断计数器复位。

TheLG_threscriteriaissetwithanANDconditiononallthreeaxestobeusedforfreefalldetection

在所有三个轴用于自由落体的检测中,LG_thres是用AND(条件)来设置的。

3.2.8HG_thres,HG_hyst,HG_dur,counter_HG

HG_thres(address0Eh,bits7-0/high-gthreshold)andHG_hyst(address11h,bits5-3/high-gthresholdhysteresis)definethehigh-Glevelanditsassociatedhysteresis.HG_dur(high-gthresholdqualificationduration)andcounter_HG(address0Bh,bits5and4/high-gcounterdownregister)areusedfordebouncingthehigh-gcriteria.

HG_thres(address0Eh,bits7-0/high-g阈值)和HG_hyst(address11h,bits5-3/high-gthresholdhysteresis阈值滞后)规定了high-G强度及其相关的滞后范围。

HG_dur(high-G阈值限定持续时间)和counter_HG(address0Bh,bits5and4/high-g计数器)用来为high-g准则去抖.{注意:

HG_thres和HG_hyst都是设定的数值,HG_thres最大为255(例如:

HG_thres设为10110100时对应数值为180,则由HG_thres/255*range公式,当range=2时,可得HG_thres=1.4g),HG_hyst最大值为7,HG_dur是设定的时间码,最大为255ms。

}

Thresholdanddurationcodesdefineacriterionforinterruptgenerationwhenabsolutevalueofaccelerationishighforlongenoughduration.

阈值和持续时间码定义了一个中断是否产生的准则,这个准则就是当(被采样的)加速度绝对值(所发生的时间)高于足够长的持续时间时,中断是否产生。

Thedataformatisunsignedinteger.

HG_thresholdcriterion_xistrueif|acc_x|≥HG_thres/255*range

HG_thresholdinterruptissetif(HG_threscriterion_xORHG_threscriterion_yOR

HG_threscriterion_z)ANDinterruptcounter=(HG_dur+1)

HG_thresholdcriterion_xisfalseif|acc_x|<

(HG_thres-32*HG_hyst)/255*range

HG_thresholdinterruptisresetifNOT(HG_threscriterion_xORHG_threscriterion_yORHG_threscriterion_z)

HG_thresandHG_hystcodesmustbechosentohave(HG_thres-32*HG_hyst)>

0.

HG_thres和HG_hyst的码必须被挑选以使(HG_thres-32*HG_hyst)>

0.。

WhenHG_threscriterionbecomesactive,acounterisincrementedby1LSB/ms.Whenthehigh-gaccelerationinterruptcountervalueequals(HG_dur+1),aninterruptisgenerated.Dependingoncounter_HGregistervalue,thecountercouldalsoberesetorcountdownwhenHG_threscriterionisfalse.

当HG_thres准则在起作用时(处于激活状态时),中断计数器以1个LSB/ms递增。

当high-g加速度中断计数器的值等于(HG_dur+1),产生一个中断。

依靠counter_HG寄存器,计数器也可以重置或倒计时,当HG_thres是false时。

Rev.1.0Page13

Table7:

Descriptionofdebouncingcounter_HG

表7:

去抖计数器counter_LG的说明

counter_HG<

HighaccelerationinterruptcounterstatuswhenHG_threscriterionisfalse

当HG_thres是false时,高加速度中断计数器的状况

reset

Iflatch_INT=0,theinterruptisnotalatchedinterruptandthenitisresetassoonasHG_threscriterionbecomesfalse.Wheninterruptoccurs,theinterruptcounterisreset.

如果latch_INT=0,这个中断不是一个锁存的中断,然后这个(中断)会在HG_thres变成false后马上重新设置。

以下是一个计步有效地判断:

3.2.9Any_motion_thres,any_motion_dur

Fortheevaluationusing“anymotion”criterionsuccessiveaccelerationdatafromdigitalfilteroutputarestoredandmovingdifferencesforallaxesarebuilt.Tocalculatethedifferencetheaccelerationvaluesofallaxesattimet0arecomparedtovaluesatt0+3/(2*bandwidth).Thedifferenceofbothvaluesisequaltothedifferenceoftwosuccessivemovingaverages(fromthreedatapoints).

为了评价使用“anymotion”规则,来自数字滤波器的连续的加速度数据被存储,而且所有轴方向的运动差异被建立(怎样建立的?

这种差异是三轴的矢量和么?

为了计算这个差异,t0时刻所有轴方向上的加速度和t0+3/(2*bandwidth)时刻的加速度相比较。

两个值之间的差异等于两个连续移动的平均值(从三个数据点)之间的差异。

Thedifferentialvalueiscomparedtoaglobalcriticalthresholdany_motion_thres(address10h,bits7-0).Interruptcanbegeneratedwhentheabsolutevalueofmeasureddifferenceishigherthantheprogrammedthresholdforlongenoughdurationdefinedbyany_motion_dur(

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高中教育 > 小学教育

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1