Datasheet

HMC5883L
14 www.honeywell.com
Mode Register
The mode register is an 8-bit register from which data can be read or to which data can be written. This register is used to
select the operating mode of the device. MR0 through MR7 indicate bit locations, with MR denoting the bits that are in the
mode register. MR7 denotes the first bit of the data stream. The number in parenthesis indicates the default value of that
bit. Mode register default is 0x01.
MR7
MR6
MR5
MR4
MR3
MR2
MR1
MR0
HS(0)
(0)
(0)
(0)
(0)
(0)
MD1 (0)
MD0 (1)
Table 10: Mode Register
Location
Name
Description
MR7 to
MR2
HS
Set this pin to enable High Speed I2C, 3400kHz.
MR1 to
MR0
MD1 to
MD0
Mode Select Bits. These bits select the operation mode of
this device.
Table 11: Mode Register Bit Designations
MD1
MD0
Operating Mode
0
0
Continuous-Measurement Mode. In continuous-measurement mode,
the device continuously performs measurements and places the
result in the data register. RDY goes high when new data is placed
in all three registers. After a power-on or a write to the mode or
configuration register, the first measurement set is available from all
three data output registers after a period of 2/f
DO
and subsequent
measurements are available at a frequency of f
DO
, where f
DO
is the
frequency of data output.
0
1
Single-Measurement Mode (Default). When single-measurement
mode is selected, device performs a single measurement, sets RDY
high and returned to idle mode. Mode register returns to idle mode
bit values. The measurement remains in the data output register and
RDY remains high until the data output register is read or another
measurement is performed.
1
0
Idle Mode. Device is placed in idle mode.
1
1
Idle Mode. Device is placed in idle mode.
Table 12: Operating Modes