MAG3110
Sensors
Freescale Semiconductor, Inc. 13
4.2.5 INT1
The DR_STATUS register (see section 5.1.1) 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.
01
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.
10
The ASIC will perform continuous measurements based on the current OSR and
ODR settings.
11
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.
MAG3110
Sensors
14 Freescale Semiconductor, Inc.
4.2.7 MAG3110 Setup Examples
Continuous measurements with ODR = 80 Hz, OSR = 1
1. Enable automatic magnetic sensor resets by setting bit AUTO_MRST_EN in CTRL_REG2. (CTRL_REG2 = 0x80)
2. Put MAG3110 in active mode 80 Hz ODR with OSR = 1 by writing 0x01 to CTRL_REG1 (CTRL_REG1 = 0x01)
3. At this point it is possible to sync with MAG3110 utilizing INT1 pin or using polling of the DR_STATUS register as
explained in section 4.2.5.
Continuous measurements with ODR = 0.63 Hz, OSR = 2
1. Enable automatic magnetic sensor resets by setting bit AUTO_MRST_EN in CTRL_REG2. (CTRL_REG2 = 0x80)
2. Put MAG3110 in active mode 0.63 Hz ODR with OSR = 2 by writing 0xC9 to CTRL_REG1 (CTRL_REG1 = 0xC9)
3. At this point, it is possible to sync with MAG3110 utilizing INT1 pin or using polling of the DR_STATUS register as
explained in section 4.2.5.
Triggered measurements with ODR = 10 Hz, OSR = 8
1. Enable automatic magnetic sensor resets by setting bit AUTO_MRST_EN in CTRL_REG2. (CTRL_REG2 = 0x80)
2. Initiate a triggered measurement with OSR = 128 by writing 0b00011010 to CTRL_REG1 (CTRL_REG1 =
0b00011010).
3. MAG3110 will acquire the triggered measurement and go back into STANDBY mode. It is possible at this point to sync
on INT1 or resort to polling of DR_STATUS register to read the acquired data out of MAG3110.
4. Go back to step 2 based on application needs.
MAG3110
Sensors
Freescale Semiconductor, Inc. 15
5 Register Descriptions
Table 11. Register Address Map
Name Type
Register
Address
Auto-Increment
Address (Fast Read)
(1)
1. Fast Read mode for quickly reading the Most Significant Bytes (MSB) of the sampled data.
Default Value Comment
DR_STATUS
(2)
2. Register contents are preserved when transitioning from “ACTIVE” to “STANDBY” mode.
R 0x00 0x01 0000 0000 Data ready status per axis
OUT_X_MSB
(2)
R 0x01 0x02 (0x03) data Bits [15:8] of X measurement
OUT_X_LSB
(2)
R 0x02 0x03 data Bits [7:0] of X measurement
OUT_Y_MSB
(2)
R 0x03 0x04 (0x05) data Bits [15:8] of Y measurement
OUT_Y_LSB
(2)
R 0x04 0x05 data Bits [7:0] of Y measurement
OUT_Z_MSB
(2)
R 0x05 0x06 (0x07) data Bits [15:8] of Z measurement
OUT_Z_LSB
(2)
R 0x06 0x07 data Bits [7:0] of Z measurement
WHO_AM_I
(2)
R 0x07 0x08 0xC4 Device ID Number
SYSMOD
(2)
R 0x08 0x09 data Current System Mode
OFF_X_MSB R/W 0x09 0x0A 0000 0000 Bits [14:7] of user X offset
OFF_X_LSB R/W 0x0A 0x0B 0000 0000 Bits [6:0] of user X offset
OFF_Y_MSB R/W 0x0B 0x0C 0000 0000 Bits [14:7] of user Y offset
OFF_Y_LSB R/W 0x0C 0x0D 0000 0000 Bits [6:0] of user Y offset
OFF_Z_MSB R/W 0x0D 0x0E 0000 0000 Bits [14:7] of user Z offset
OFF_Z_LSB R/W 0x0E 0x0F 0000 0000 Bits [6:0] of user Z offset
DIE_TEMP
(2)
R 0x0F 0x10 data Temperature, signed 8 bits in C
CTRL_REG1
(3)
3. Modification of this register’s contents can only occur when device is “STANDBY” mode, except the TM and AC bit fields in CTRL_REG1
register
.
R/W 0x10 0x11 0000 0000 Operation modes
CTRL_REG2
(3)
R/W 0x11 0x12 0000 0000 Operation modes

MAG3110FCR1

Mfr. #:
Manufacturer:
NXP / Freescale
Description:
Board Mount Hall Effect / Magnetic Sensors XYZ DIGITAL MAGNETOMETER
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet