Freescale Semiconductor Xtrinsic MAG3110 Magnetometer RD4247MAG3110 RD4247MAG3110 数据表

产品代码
RD4247MAG3110
下载
页码 30
MAG3110
Sensors
Freescale Semiconductor, Inc.
13
4.2.5
INT1
The DR_STATUS register (see 
) contains the ZYXDR bit which denotes the presence of new measurement data on 
one or more axes. Software polling can be used to detect the transition of the ZYXDR bit from 0 to 1 but, since the ZYXDR bit is 
also logically connected to the INT1 pin, a more efficient approach is to use INT1 to trigger a software interrupt when new 
measurement data is available as follows:
1.
Enable automatic resets by setting AUTO_MRST_EN bit in CTRL_REG2 (CTRL_REG2 = 0b1XXXXXX).
2.
Put MAG3110 in ACTIVE mode (CTRL_REG1 = 0bXXXXXX01).
3.
Idle until INT1 goes HIGH and activates an interrupt service routine in the user software.
4.
Read magnetometer data as required from registers 0x01 to 0x06. INT1 is cleared when register 0x01 OUT_X_MSB is 
read.
5.
Return to idle in step 3.
4.2.6
Triggered Measurements
Set the TM bit in CTRL_REG1 when you want the part to acquire only one sample on each axis. See table below for details. 
The anti-aliasing filter in the A/D converter has a finite delay before the output “settles”. The output data for the first ODR period 
after getting out of Standby mode is expected to be slightly off. This effect will be more pronounced for the lower over-sampling 
settings since with higher settings the error of the first acquisition will be averaged over the total number of samples. Therefore, 
it is not recommended to use TRIGGER MODE (CTRL_REG1[AC] =0, CTRL_REG1[TM] =1) measurements for applications that 
require high accuracy, especially with low over-sampling settings.
Table 10. 
AC
TM
Description
0
0
ASIC is in low power standby mode.
0
1
The ASIC will exit standby mode, perform one measurement cycle based on the 
programmed ODR and OSR setting, update the I
2
C data registers and re- enter 
standby mode.
1
0
The ASIC will perform continuous measurements based on the current OSR and 
ODR settings.
1
1
The ASIC will continue the current measurement at the fastest applicable ODR 
for the user programmed OSR. The ASIC will return back to the programmed 
ODR after completing the triggered measurement.