datasheetbank_Logo
数据手册搜索引擎和 Datasheet免费下载 PDF

AN4506 查看數據表(PDF) - STMicroelectronics

零件编号
产品描述 (功能)
比赛名单
AN4506 Datasheet PDF : 47 Pages
First Prev 21 22 23 24 25 26 27 28 29 30 Next Last
Interrupt generation
AN4506
13 Read REFERENCE
14 Write 6Ah into IG_CFG
15 Poll INT1 pad; if INT1=0 then go to 8
16 Read IG_SRC
17
(Wake-up event has occurred; insert
your code here)
18 Go to 15
// Dummy read to force the HP filter to
// current angular rate value
// (i.e. set reference angular rate)
// Enable XH, YH and ZH interrupt generation.
// Interrupt latched
// Poll INT1 pin waiting for the
// wake-up event
// Return the event that has triggered the
// interrupt
// Event handling
At step 13, a dummy read of the REFERENCE register is performed to set the
current/reference angular rate/tilt state against which the device performed the threshold
comparison.
This read may be performed any time it is required to set current rate as a reference state
without waiting for the filter to settle.
5.6
Selective axis movement detection
Selective axis movement detection refers to a specific configuration of IG_CFG and IG_THS
registers that allows the user to recognize when the device is rotating only around the
selected axis.
Referring to Figure 17, a “no rotation zone” is defined around the zero-dps level where the
angular rates are small enough to be considered as zero. It is possible to create a
configuration of the IG_CFG register so that an interrupt is generated only if, i.e., angular
rate for rotation around X and Y axes are around zero, while it is different from zero for the
Z-axis. This means the device is doing a pure yaw rotation.
Figure 17. No-move interrupt
=
<
GSV
;
6HOHFWLYH$[LV
,QWHUUXSW
12527$7,21
=21(
$0Y
30/47
DocID026442 Rev 2

Share Link: 

datasheetbank.com [ Privacy Policy ] [ Request Datasheet ] [ Contact Us ]