Freescale Semiconductor Xtrinsic MAG3110 Magnetometer RD4247MAG3110 RD4247MAG3110 Data Sheet

Product codes
RD4247MAG3110
Page of 30
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 
.
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 
.
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.