MEMSIC MMC3316xMT Rev.B Page 11 of 15 10/8/2012
Seventh cycle: The Master device cycles the SCL line.
This causes the Status Register data to appear on
SDA line. Continuously read the Status Register until
the Meas Done bit is set to „1‟.
Eighth cycle: The Master device sends a START
command followed by the MEMSIC device‟s seven bit
address, and finally the eighth bit set low to indicate a
WRITE. An Acknowledge should be send by the
MEMSIC device in response.
Ninth cycle: The Master device sends a [00000000]
(Xout LSB register address) as the register address to
read.
Tenth cycle: The Master device calls the MEMSIC
device‟s address with a READ (8th SCL cycle SDA line
high). An Acknowledge should be send by the
MEMSIC device in response.
Eleventh cycle: Master device continues to cycle the
SCL line, and each consecutive byte of data from the
X, Y and Z registers should appear on the SDA line.
The internal memory address pointer automatically
moves to the next byte. The Master device
acknowledges each. Thus:
Eleventh cycle: LSB of X channel.
Twelfth cycle: MSB of X channel.
Thirteenth cycle: LSB of Y channel.
Fourteenth cycle: MSB of Y channel.
Fifteenth cycle: LSB of Z channel.
Sixteenth cycle: MSB of Z channel.
Master ends communications by NOT sending an
„Acknowledge‟ and also follows with a „STOP‟
command.
EXAMPLE OF SET/RESET
First cycle: A START condition is established by the
Master Device followed by a call to the slave address
[0110xxx] with the eighth bit held low to indicate a
WRITE request. Note: [xxx] is determined by factory
programming and a total of 8 different addresses are
available.
Second cycle: After an acknowledge signal is received
by the master device (The MEMSIC device pulls the
SDA line low during the 9th SCL pulse), the master
device sends [00000111] as the target address
(Internal Control Register 0). The MEMSIC device
should acknowledge at the end (9th SCL pulse).
Third cycle: The Master device writes to the MEMSIC
device‟s Internal Control Register the code [00000001]
to prepare for SET action.*
A minimum of 50ms wait should be provided to allow
the MEMSIC device to finish its preparation for the
SET action.*
Forth cycle: The Master device writes to the MEMSIC
device‟s Internal Control 0 register the code [00100000]
as a wake-up call to initiate a SET action. MEMSIC
device should send an Acknowledge.
Fifth cycle: The Master device writes to the MEMSIC
device‟s Internal Control 0 register the code [00000000]
to stop the SET action. MEMSIC device should send
an Acknowledge.
A minimum of 50ms wait should be provided to allow
the MEMSIC device to finish its preparation for RESET
action.**
Sixth cycle: Master device writes to the MEMSIC
device‟s Internal Control 0 register the code [01000000]
as a wake-up call to initiate a RESET action. The
MEMSIC device should send an Acknowledge.**
Seventh cycle: The Master device writes to the
MEMSIC device‟s Internal Control 0 register the code
[00000000] to stop the RESET action. MEMSIC device
should send an Acknowledge.
A minimum of 50uS wait should be given to MEMSIC
device to finish RESET action before taking a
measurement.
Eighth cycle: Master device writes to internal MEMSIC
device memory the code “[00000001]” to start a take
measurement.
Note *: The SET preparation action is only required
when the part is inactive for a long time
(typically >5secends).
Note **: The RESET action can be skipped for most of
the applications
USING SET/RESET TO CALIBRATE NULL FIELD
OUTPUT
The integrated SET and RESET functions of the
MMC3316xMT enables the user to remove error
associated with Offset change as a function of
temperature, thereby enabling more precise heading
measurements over a wider temperature than
competitive technologies. The SET and RESET
functions effectively flip the magnetic sensing polarity
of the sensing elements of the device.
The following procedure and description show how
these functions can be used to obtain the most
accurate magnetic field information.
H is the applied magnetic field and Offset is the Null
Field output
1) Perform a SET. This sets the internal
magnetization of the sensing resistors in the
direction of the SET field.
2) Perform a MEASUREMENT. This measurement
will contain not only the sensors response to the
external magnetic field, H, but also the Offset; in
other words,