## FEATURES

 Fully integrated 3-axis magnetic sensor and electronic circuits requiring fewer external components

 Superior dynamic range and accuracy:

<sup></sup> ±8G FSR

<sup></sup> 18bits operation

<sup></sup> 0.4mG total RMS noise

√Enables heading accuracy of ±0.5º

 Max output data rate of 1000Hz

 Industrial standard low profile package 3.0mm x 3.0mm x 1.0mm

Degaussing with built-in SET/RESET function √ Eliminates thermal variation induced offset error (Null field output)  Clears the residual magnetization resulting from strong external fields

 On-chip sensitivity compensation

 On-chip temperature sensor

 Data\_Ready Interrupt

 Low power consumption

 1µA power down current

 I<sup>2</sup>C Slave, FAST(≤400KHz) mode

 3.0V single low power supply

 SPI interface available

 RoHS compliant

## APPLICATIONS

 Electronic Compass & Navigation

 Position Sensing

 General Purpose Magnetic Field Measurements

## DESCRIPTION

The MMC5983MA is an AEC-Q100 qualified complete 3-axis magnetic sensor with on-chip signal processing and integrated I<sup>2</sup>C/SPI bus suitable for use in automotive applications. The device can be connected directly to a microprocessor, eliminating the need for A/D converters or timing resources.

## MMC5983MA

![](https://www.embedr.app/api/datasheets/ds_43ef14e4832d5554b583/asset?path=images%2F27b5bbdaf7b4f3ca0357e6449bc659fb88961db935b0eac70b2069075abf3c1d.jpg)

## FUNCTIONAL BLOCK DIAGRAM

It can measure magnetic fields within the full scale range of 8 Gauss (G), with 0.25mG/0.0625mG per LSB resolution at 16bits/18bits operation mode and 0.4 mG total RMS noise level, enabling heading accuracy of 0.5ºin electronic compass applications.

An integrated SET/RESET function provides for the elimination of error due to Null Field output change with temperature. Temperature information from the integrated temperature sensor is available over the I<sup>2</sup>C Interface. The SET/RESET function can be performed for each measurement, periodically, or when the temperature changes by a predetermined amount as the specific application requires.

In addition, the SET/RESET function clears the sensors of any residual magnetic polarization resulting from exposure to strong external magnets.

The MMC5983MA is packaged in a low profile LGA package and an operating temperature range from - 40℃ to +105°℃.

The MMC5983MA provides an I<sup>2</sup>C digital output with 400 KHz, fast mode operation, and a 10MHz SPI digital output.

SPECIFICATIONS (Measurements @ 25C, unless otherwise noted; V<sub>DD</sub>=3.0V unless otherwise specified)

<table><tr><td>Parameter</td><td>Conditions</td><td>Min</td><td>Typ</td><td>Max</td><td>Units</td></tr><tr><td>Field Range (Each Axis)</td><td>Total applied field</td><td></td><td>±8</td><td></td><td>G</td></tr><tr><td rowspan="2">Supply Voltage</td><td>VDD</td><td>2.8</td><td>3.0</td><td>3.6</td><td>V</td></tr><tr><td>VDDIO(I2Cinterface and INT)</td><td>2.8</td><td>3.0</td><td>3.6</td><td>V</td></tr><tr><td>Supply Voltage Rise Time</td><td></td><td></td><td></td><td>5.0</td><td>ms</td></tr><tr><td rowspan="4"> $Supply\ Current^{1,2}$ (7 measurements/second)</td><td>BW=00</td><td></td><td>450</td><td></td><td>μA</td></tr><tr><td>BW=01</td><td></td><td>225</td><td></td><td>μA</td></tr><tr><td>BW=10</td><td></td><td>112.5</td><td></td><td>μA</td></tr><tr><td>BW=11</td><td></td><td>32</td><td></td><td>μA</td></tr><tr><td>Power Down  $Current^2$ </td><td></td><td></td><td>1.0</td><td></td><td>μA</td></tr><tr><td>Operating Temperature</td><td></td><td>-40</td><td></td><td>105</td><td>°C</td></tr><tr><td>Storage Temperature</td><td></td><td>-55</td><td></td><td>125</td><td>°C</td></tr><tr><td>Linearity  $Error^2$ (Best fit straight line)</td><td>FS=±8GHapplied=±4G</td><td></td><td>0.1</td><td></td><td>%FS</td></tr><tr><td>Hysteresis2</td><td>3 sweeps across ±8G</td><td></td><td>0.01</td><td></td><td>%FS</td></tr><tr><td>Repeatability  $Error^2$ </td><td>3 sweeps across ±8G</td><td></td><td>0.1</td><td></td><td>%FS</td></tr><tr><td>Alignment Error</td><td></td><td></td><td>±1.0</td><td>±3.0</td><td>Degrees</td></tr><tr><td>Transverse Sensitivity</td><td></td><td></td><td>±0.8</td><td></td><td>%</td></tr><tr><td rowspan="4">Total RMS  $Noise^2$ </td><td>BW=00</td><td></td><td>0.4</td><td></td><td>mG</td></tr><tr><td>BW=01</td><td></td><td>0.6</td><td></td><td>mG</td></tr><tr><td>BW=10</td><td></td><td>0.8</td><td></td><td>mG</td></tr><tr><td>BW=11</td><td></td><td>1.2</td><td></td><td>mG</td></tr><tr><td>Output Resolution</td><td></td><td></td><td>18</td><td></td><td>Bits</td></tr><tr><td rowspan="5">Max Output data  $rate^2$ </td><td>BW=00</td><td></td><td>50</td><td></td><td>Hz</td></tr><tr><td>BW=01</td><td></td><td>100</td><td></td><td>Hz</td></tr><tr><td>BW=10</td><td></td><td>225</td><td></td><td>Hz</td></tr><tr><td>BW=11</td><td></td><td>580</td><td></td><td>Hz</td></tr><tr><td>BW=11(CM_Freq=111)</td><td></td><td>1000</td><td></td><td>Hz</td></tr><tr><td>Heading  $Accuracy^3$ </td><td></td><td></td><td>±1.0</td><td></td><td>Degrees</td></tr><tr><td rowspan="3"> $Sensitivity\ Accuracy^{4,5}$ </td><td>±8 G</td><td></td><td>±5</td><td></td><td>%</td></tr><tr><td>With16bits operation</td><td></td><td>4096</td><td></td><td>Counts/G</td></tr><tr><td>With18bits operation</td><td></td><td>16384</td><td></td><td>Counts/G</td></tr><tr><td>Sensitivity Change Over Temperature</td><td>-40~105 °CDelta from 25 °C, ±8 G</td><td></td><td>±5</td><td></td><td>%</td></tr><tr><td rowspan="3">Null Field  $Output^5$ </td><td></td><td></td><td>±0.5</td><td></td><td>G</td></tr><tr><td>With16bits operation</td><td></td><td>32768</td><td></td><td>Counts</td></tr><tr><td>With18bits operation</td><td></td><td>131072</td><td></td><td>Counts</td></tr><tr><td>Null Field Output Change Over Temperature using SET/RESET</td><td>-40~105 °CDelta from 25 °C</td><td></td><td>±3</td><td></td><td>mG</td></tr><tr><td>Temperature Sensor Output</td><td></td><td></td><td>0.8</td><td></td><td>°C/Count</td></tr><tr><td>Disturbing  $Field^6$ </td><td></td><td></td><td>10</td><td></td><td>G</td></tr><tr><td>Maximum Exposed Field</td><td></td><td></td><td></td><td>10,000</td><td>G</td></tr><tr><td>SET/RESET Repeatability</td><td></td><td></td><td>±1</td><td></td><td>mG</td></tr></table>

1. Supply current is proportional to how many measurements performed per second.  
2. Based on 3lots characterization result.  
3. MEMSIC product enables users to utilize heading accuracy to be 1.0 degree typical when using MEMSIC’s proprietary software or algorithm.  
4. Sensitivity of the orthogonal axes is analytically derived from raw data and is subsequently processed by MEMSIC software drivers.  
5. Based on shipment test result.  
6. This is the magnitude of external field that can be tolerated without changing the sensor characteristics. If the disturbing field is exceeded, a SET/RESET operation is required to restore proper sensor operation.

DIGITAL INTERFACE (VIO=3.0V)

<table><tr><td>Symbol</td><td>Parameter (Units)</td><td>Minimum</td><td>Typical</td><td>Maximum</td></tr><tr><td> $V_{IH}$ </td><td>High Level Input Voltage (Volts)</td><td>0.7*VIO</td><td></td><td></td></tr><tr><td> $V_{IL}$ </td><td>Low Level Input Voltage (Volts)</td><td></td><td></td><td>0.3*VIO</td></tr><tr><td> $V_{HYS}$ </td><td>Hysteresis of Schmitt Trigger Input (Volts)</td><td>0.2</td><td></td><td></td></tr><tr><td> $I_{IL}$ </td><td>Input Leakage, All Inputs (uA)</td><td>-10</td><td></td><td>10</td></tr><tr><td> $V_{OH}$ </td><td>High Level Output Voltage (Volts)</td><td>0.8*VIO</td><td></td><td></td></tr><tr><td> $V_{OL}$ </td><td>Low Level Output Voltage (Volts)</td><td></td><td></td><td>0.2*VIO</td></tr></table>

I<sup>2</sup>C INTERFACE I/O CHARACTERISTICS (VIO=3.0V)

<table><tr><td>Parameter</td><td>Symbol</td><td>Test Condition</td><td>Min.</td><td>Typ.</td><td>Max.</td><td>Unit</td></tr><tr><td>Logic Input Low Level</td><td> $V_{IL}$ </td><td></td><td>-0.5</td><td></td><td>0.3*  $V_{IO}$ </td><td>V</td></tr><tr><td>Logic Input High Level</td><td> $V_{IH}$ </td><td></td><td>0.7*  $V_{IO}$ </td><td></td><td> $V_{IO}$ </td><td>V</td></tr><tr><td>Hysteresis of Schmitt Input</td><td> $V_{hys}$ </td><td></td><td>0.2</td><td></td><td></td><td>V</td></tr><tr><td>Logic Output Low Level</td><td> $V_{OL}$ </td><td></td><td></td><td></td><td>0.6</td><td>V</td></tr><tr><td>Input Leakage Current</td><td> $I_i$ </td><td>0.1 $V_{IO} < V_{in} < 0.9V_{IO}$ </td><td>-10</td><td></td><td>10</td><td>μA</td></tr><tr><td>SCL Clock Frequency</td><td> $f_{SCL}$ </td><td></td><td>0</td><td></td><td>400</td><td>kHz</td></tr><tr><td>START Hold Time</td><td> $t_{HD;STA}$ </td><td></td><td>0.6</td><td></td><td></td><td>μS</td></tr><tr><td>START Setup Time</td><td> $t_{SU;STA}$ </td><td></td><td>0.6</td><td></td><td></td><td>μS</td></tr><tr><td>LOW period of SCL</td><td> $t_{LOW}$ </td><td></td><td>1.3</td><td></td><td></td><td>μS</td></tr><tr><td>HIGH period of SCL</td><td> $t_{HIGH}$ </td><td></td><td>0.6</td><td></td><td></td><td>μS</td></tr><tr><td>Data Hold Time</td><td> $t_{HD;DAT}$ </td><td></td><td>0</td><td></td><td>0.9</td><td>μS</td></tr><tr><td>Data Setup Time</td><td> $t_{SU;DAT}$ </td><td></td><td>0.1</td><td></td><td></td><td>μS</td></tr><tr><td>Rise Time</td><td> $t_r$ </td><td>From  $V_{IL}$  to  $V_{IH}$ </td><td></td><td></td><td>0.3</td><td>μS</td></tr><tr><td>Fall Time</td><td> $t_f$ </td><td>From  $V_{IH}$  to  $V_{IL}$ </td><td></td><td></td><td>0.3</td><td>μS</td></tr><tr><td>Bus Free Time Between STOP and START</td><td> $t_{BUF}$ </td><td></td><td>1.3</td><td></td><td></td><td>μS</td></tr><tr><td>STOP Setup Time</td><td> $t_{SU;STO}$ </td><td></td><td>0.6</td><td></td><td></td><td>μS</td></tr></table>

![](https://www.embedr.app/api/datasheets/ds_43ef14e4832d5554b583/asset?path=images%2F10e33b1346252ef06b6a4a8915b9df139f675abd298d12e07ebcf451f3cb8991.jpg)  
Timing Definition

SPI INTERFACE I/O CHARACTERISTICS (VIO=3.0V)

<table><tr><td rowspan="2">Parameter</td><td rowspan="2">Symbol</td><td colspan="3">Value1</td><td>Unit</td></tr><tr><td>Min.</td><td>Typ.</td><td>Max.</td><td></td></tr><tr><td>SPI clock cycle</td><td> $t_{c(SCK)}$ </td><td>100</td><td></td><td></td><td>ns</td></tr><tr><td>SPI clock frequency</td><td> $f_{c(SCK)}$ </td><td></td><td></td><td>10</td><td>MHz</td></tr><tr><td>CS setup time</td><td> $t_{su(CS)}$ </td><td>6</td><td></td><td></td><td rowspan="7">ns</td></tr><tr><td>CS hold time</td><td> $t_{h(CS)}$ </td><td>8</td><td></td><td></td></tr><tr><td>SDI input setup time</td><td> $t_{su(SI)}$ </td><td>5</td><td></td><td></td></tr><tr><td>SDI input hold time</td><td> $t_{h(SI)}$ </td><td>15</td><td></td><td></td></tr><tr><td>SDO valid output time</td><td> $t_{v(SO)}$ </td><td></td><td></td><td>50</td></tr><tr><td>SDO output hold time</td><td> $t_{h(SO)}$ </td><td>9</td><td></td><td></td></tr><tr><td>SDO output disable time</td><td> $t_{dis(SO)}$ </td><td></td><td></td><td>50</td></tr></table>

1. Values are guaranteed at 10 MHz clock frequency for SPI, based on characterization results, not tested in production.

![](https://www.embedr.app/api/datasheets/ds_43ef14e4832d5554b583/asset?path=images%2F6cb019bea8b22cfb36e9a0e45fc6442f6d63b9515436eb7342246681625ceec6.jpg)  
Timing Definition

![](https://www.embedr.app/api/datasheets/ds_43ef14e4832d5554b583/asset?path=images%2Fda0d2a9b0318497cca24a4373437f06b08a93bb87664d020ec12e0ed89a7c4d6.jpg)  
Read & Write Protocol

CS (SPI\_CS) is the serial port enable and it is controlled by the SPI master. It goes low at the start of the transmission and goes back high at the end.

SCK (SPI\_SCK) is the serial port clock and it is controlled by the SPI master. It is stopped high when CS is high (no transmission).

SDI (SPI\_SDI) and SDO (SPI\_SDO) are respectively the serial port data input and output. Those lines are driven at the falling edge of SCK and should be captured at the rising edge of SCK.

Both the Read Register and Write Register commands are completed in 16 clocks pulses or in multiple of 8 in case of multiple byte read/write. Bit duration is the time between two falling edges of SCK. The first bit (bit 0) starts at the first falling edge of SCK after the falling edge of CS while the last bit (bit 15, bit 23, ...) starts at the last falling edge of SCK (SPI\_CS) just before the rising edge of CS.

bit 0: RW bit. When 0, the data DI(7:0) is written into the device. When 1, the data DO(7:0) from the device is read. In latter case, the chip will drive SDO at the start of bit 8.

bit 1: Don’t care.

bit 2-7: Address AD(5:0). This is the address field of the indexed register.

bit 8-15: Data DI(7:0) (write mode). This is the data that will be written into the device (MSB first) (MSB first). bit 8- 15: data DO(7:0) (read mode). This is the data that will be read from the device (MSB first).

In multiple read/write commands further blocks of 8 clock periods will be added.

SPI Read  
![](https://www.embedr.app/api/datasheets/ds_43ef14e4832d5554b583/asset?path=images%2Fd1157f51b55943e9efd9ae6cf401daa311ea3439e10da24dc11d913ebad8dd3f.jpg)  
SPI Read Protocol

The SPI Read command is performed with 16 clocks pulses. Multiple byte read command is performed adding blocks of 8 clocks pulses at the previous one.

bit 0: READ bit. The value is 1.

bit 1: don’t care.

bit 2-7: address AD(5:0). This is the address field of the indexed register.

bit 8-15: data DO(7:0) (read mode). This is the data that will be read from the device (MSB first).

bit 16-... : data DO(...-8). Further data in multiple byte reading.

![](https://www.embedr.app/api/datasheets/ds_43ef14e4832d5554b583/asset?path=images%2F1d6fc9b99cfa461c12e8a87f0c5cf0f0431cea0bc2d435c17a35be9a0f6dd555.jpg)  
Multiple Bytes SPI Read Protocol (2 bytes example)

![](https://www.embedr.app/api/datasheets/ds_43ef14e4832d5554b583/asset?path=images%2F55b1087e9b6e6e94f18d8d3f041f0d7ffa93cdeff4e60e04dc5dce9a5ccb7d3b.jpg)

The SPI Write command is performed with 16 clocks pulses. Multiple byte write command is performed adding blocks of 8 clocks pulses at the previous one

bit 0: WRITE bit. The value is 0.

bit 1: don’t care

bit 2 -7: address AD(5:0). This is the address field of the indexed register.

bit 8-15: data DI(7:0) (write mode). This is the data that will be written inside the device (MSB first).

bit 16-... : data DI(...-8). Further data in multiple byte writing.

![](https://www.embedr.app/api/datasheets/ds_43ef14e4832d5554b583/asset?path=images%2Fc5b5b9e76ea49009ca6f4d7ef0e3a1694d0d597cc449f894adb52d7f12039338.jpg)  
Multiple Bytes SPI Write Protocol (2 bytes example)

![](https://www.embedr.app/api/datasheets/ds_43ef14e4832d5554b583/asset?path=images%2Fdbf300af6ac846fd20f9e3de73fc8525e0db0152a251bc9f3cb17b14c46ef5db.jpg)  
SPI Read Protocol in 3-wires Mode

The part can be configured as 3-wires SPI read mode, by write “1” to Internal Control Register 3 (0CH), bit 6 before reading command.

The SPI Read command is performed with 16 clocks pulses:

bit 0: READ bit. The value is 1.

bit 1: don’t care.

bit 2-7: address AD(5:0). This is the address field of the indexed register.

bit 8-15: data DO(7:0) (read mode). This is the data that will be read from the device (MSB first). Multiple write command is also available in 3-wires mode.

Performance Grade:

Supply Voltage -0.5 to +3.6V Storage Temperature -55°C to +125°C Maximum Exposed Field 10000 G

\*Note: Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a stress rating only; the functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect the device’s reliability.

## Pin Description: LGA Package

All parts are shipped in tape and reel packaging with 5000pcs per 13” reel.

## Caution:

<table><tr><td>Pin</td><td>Name</td><td>Description</td><td>I/O</td></tr><tr><td>1</td><td>SCL/SPI_SCK</td><td>Serial Clock Line for  $I^{2}C/SPI$  bus</td><td>I</td></tr><tr><td>2</td><td>VDD</td><td>Power Supply</td><td>P</td></tr><tr><td>3</td><td>NC</td><td>Not Connected</td><td>NC</td></tr><tr><td>4</td><td>SPI_CS</td><td>Chip Select line for SPI (active low). Tie to VDDIO for  $I^{2}C$  Interface</td><td>I</td></tr><tr><td>5</td><td>SPI_SDO</td><td>SPI Serial Data Out</td><td>O</td></tr><tr><td>6</td><td>NC</td><td>Not Connected</td><td>NC</td></tr><tr><td>7</td><td>NC</td><td>Not Connected</td><td>NC</td></tr><tr><td>8</td><td>NC</td><td>Not Connected</td><td>NC</td></tr><tr><td>9</td><td>GND</td><td>Connect to Ground</td><td>P</td></tr><tr><td>10</td><td>CAP</td><td>Connect a 10uF capacitor for SET/RESET</td><td>P</td></tr><tr><td>11</td><td>GND</td><td>Connect to Ground</td><td>P</td></tr><tr><td>12</td><td>NC</td><td>Not Connected</td><td>NC</td></tr><tr><td>13</td><td>VDDIO</td><td>Power supply for  $I^{2}C$  and INT</td><td>P</td></tr><tr><td>14</td><td>NC</td><td>Not Connected</td><td>NC</td></tr><tr><td>15</td><td>INT</td><td>Interrupt Output</td><td>O</td></tr><tr><td>16</td><td>SDA/SPI_SDI</td><td>Serial Data Line for  $I^{2}C/SPI$  bus</td><td>I/O</td></tr></table>

This is an Electro-Static Discharge (ESD) sensitive device.

Package type:  
MMC5983MA

<table><tr><td>Code</td><td>Type</td></tr><tr><td>A</td><td>LGA16RoHS compliant</td></tr></table>

<table><tr><td>Code</td><td>Performance Grade</td></tr><tr><td>M</td><td>Industrial Grade</td></tr></table>

I<sup>2</sup>C address

<table><tr><td>Code</td><td>7bits address</td></tr><tr><td>3</td><td>0110000</td></tr></table>

Marking illustration:

![](https://www.embedr.app/api/datasheets/ds_43ef14e4832d5554b583/asset?path=images%2F53c2143e557950f579628f0e1e926e61a9235ef4e742bc440c88799059705487.jpg)

Note: Coordinates shown above indicate polarity after a SET operation.

The black dot on top-right marks the location of pin one (1). The 1<sup>st</sup> line represents the device’s Name. The 2<sup>nd</sup> line represents the device’s Lot Number.

## THEORY OF OPERATION

The Anisotropic Magneto-Resistive (AMR) sensors are special resistors made of permalloy thin film deposited on a silicon wafer. During manufacturing, a strong magnetic field is applied to the film to orient its magnetic domains in the same direction, establishing a magnetization vector. Subsequently, an external magnetic field applied perpendicularly to the sides of the film causes the magnetization to rotate and change angle. This effect causes the film’s resistance to vary with the intensity of the applied magnetic field. The MEMSIC AMR sensor is incorporated into a Wheatstone bridge configuration to maximize Signal to Noise ratio. A change in magnetic field produces a proportional change in differential voltage across the Wheatstone bridge.

However, the influence of a strong magnetic field (more than 10 G) in any direction could upset, or flip, the polarity of the film, thus changing the sensor characteristics. A strong restoring magnetic field must be applied momentarily to restore, or set, the sensor characteristics. The MEMSIC magnetic sensor has an on-chip magnetically coupled strap: a SET/RESET strap pulsed with a high current, to provide the restoring magnetic field

## EXTERNAL CIRCUITRY CONNECTION

The MMC5983MA was designed for flexible power connections to support existing and new designs. It can operate from a single 2.8V to 3.6V supply or from dual supplies using a 2.8V to 3.6V VDD supply and a 2.8V to 3.6V VDDIO supply. The circuit connection diagrams below illustrate power supply connection options.

![](https://www.embedr.app/api/datasheets/ds_43ef14e4832d5554b583/asset?path=images%2F6c05222da1a7b2860a290658efa8376ac409b019fae50a4904eccdbff913afee.jpg)

![](https://www.embedr.app/api/datasheets/ds_43ef14e4832d5554b583/asset?path=images%2Fe7f469a34ede4d3d74b5a9a4cd9c13f257d6b860cc8818757c0438eae7dc0910.jpg)  
<Top View> I<sup>2</sup>C Single Supply Connection

![](https://www.embedr.app/api/datasheets/ds_43ef14e4832d5554b583/asset?path=images%2F732f74ba388dc21435bb21e290a5906b99940db09055527ed44108bcebcdbb9a.jpg)

![](https://www.embedr.app/api/datasheets/ds_43ef14e4832d5554b583/asset?path=images%2F244dd069ad947eee6bad76f1628f36388e65383a8a7be125fbe464d9f69f6288.jpg)  
<Top View> SPI Single Supply Connection

## PIN DESCRIPTIONS

CAP– This is the supply input for SET/RESET coil. MEMSIC recommends a minimum 10 uF low ESR capacitor placed in close proximity to the CAP pin.

GND– This is the ground pin for the magnetic sensor.

SDA/SPI\_SDI – This pin is the I<sup>2</sup>C/SPI serial data line, and operates in I<sup>2</sup>C FAST (400 KHz)/SPI mode.

SCL/SPI\_SCK– This pin is the I<sup>2</sup>C/SPI serial clock line, and operates in FAST (400 KHz)/SPI mode.

SPI\_CS – This pin is chip select line for SPI (active low). Tie to VDDIO for I²C Interface.

SPI\_SDO – This pin the SPI serial data out line.

VDD–This pin is the power supply of the ASIC.

VDDIO–This pin is the power supply of the digital interface of the ASIC.

INT– This pin is Interrupt output. Active High. It is held as hi-Z until an interrupt function is enabled.

Note: VDD and CAP pins are shorted together inside the device.

## HARDWARE DESIGN CONSIDERATIONS

 Provide adequate separation distance to devices that contain permanent magnets or generate magnetic fields (e.g. speakers, coils, inductors) The combined magnetic field to be measured and interference magnetic field should be less than the full scale range of the MMC5983MA.

<sup></sup> Provide adequate separation distance to current carrying traces. Do not route current carrying traces under the sensor or on the other side of the PCB opposite to the device.

 Do not cover the sensor with magnetized material or materials that may become magnetized, (e.g., shield box, LCD, battery, iron bearing materials).

 Do not place the device opposite to magnetized materials or materials that may become magnetized located on the other side of the PCB.

Please refer to MEMSIC magnetic sensor layout guideline.

## POWER CONSUMPTION

The power consumed by the device is proportional to the number of measurements taken per second. For example, when BW<1:0> = 00, which is 16-bit mode with 10ms per measurement, MMC5983MA consumes 450 µA (typical) at 3.0 V with 7 measurements per second. If only 2 measurements are performed per second, the current will be 450 \* 2 / 7 = 128 µA.

## I<sup>2</sup>C INTERFACE DESCRIPTION

A slave mode I<sup>2</sup>C circuit has been implemented into the MEMSIC magnetic sensor as a standard interface for customer applications. The A/D converter functionality has been added to the MEMSIC sensor, thereby increasing ease-of-use, and lowering power consumption, footprint and total solution cost.

The I<sup>2</sup>C (or Inter IC bus) is an industry standard bidirectional two-wire interface bus. A master I<sup>2</sup>C device can operate READ/WRITE and control up to 128 devices by device addressing. The MEMSIC magnetic sensor operates only in a slave mode, i.e. only responding to calls by a Master device to its address.

## I<sup>2</sup>C BUS CHARACTERISTICS

![](https://www.embedr.app/api/datasheets/ds_43ef14e4832d5554b583/asset?path=images%2Fe831dde53a80147adb3a4d8346053b108e412bf05829ea800fd5cf11cdb7bc3d.jpg)  
The two wires in the I<sup>2</sup>C bus are called SDA (serial data line) and SCL (serial clock line). In order for a data transfer to start, the bus has to be free, which is defined by both wires in a HIGH output state. Due to the opendrain / pull-up resistor structure and wired Boolean “AND” operation, any device on the bus can pull lines low and overwrite a HIGH signal. The data on the SDA line has to be stable during the HIGH period of the SCL line. In other words, valid data can only change when the SCL line is LOW.

Note: Rp selection guide: 2.7K ohm for an I<sup>2</sup>C bus less than 10 cm length, and 10K ohm for a bus length less than 5 cm.

REGISTER MAP

<table><tr><td>Register Name</td><td>Address</td><td>Description</td></tr><tr><td>Xout0</td><td>00H</td><td>Xout [17:10]</td></tr><tr><td>Xout1</td><td>01H</td><td>Xout [9:2]</td></tr><tr><td>Yout0</td><td>02H</td><td>Yout [17:10]</td></tr><tr><td>Yout1</td><td>03H</td><td>Yout [9:2]</td></tr><tr><td>Zout0</td><td>04H</td><td>Zout [17:10]</td></tr><tr><td>Zout1</td><td>05H</td><td>Zout [9:2]</td></tr><tr><td>XYZout2</td><td>06H</td><td>Xout[1:0], Yout[1:0], Zout[1:0]</td></tr><tr><td>Tout</td><td>07H</td><td>Temperature output</td></tr><tr><td>Status</td><td>08H</td><td>Device status</td></tr><tr><td>Internal control 0</td><td>09H</td><td>Control register 0</td></tr><tr><td>Internal control 1</td><td>0AH</td><td>Control register 1</td></tr><tr><td>Internal control 2</td><td>0BH</td><td>Control register 2</td></tr><tr><td>Internal control 3</td><td>0CH</td><td>Control register 3</td></tr><tr><td>Product ID 1</td><td>2FH</td><td>Product ID</td></tr></table>

## Register Details

Xout0, Xout1, XYZout2

<table><tr><td>Xout0</td><td>7</td><td>6</td><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td><td>0</td></tr><tr><td>Addr: 00H</td><td colspan="8">Xout[17:10]</td></tr><tr><td>Mode</td><td colspan="8">R</td></tr></table>

<table><tr><td>Xout1</td><td>7</td><td>6</td><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td><td>0</td></tr><tr><td>Addr: 01H</td><td colspan="8">Xout[9:2]</td></tr><tr><td>Mode</td><td colspan="8">R</td></tr></table>

<table><tr><td>XYZout2</td><td>7</td><td>6</td><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td><td>0</td></tr><tr><td>Addr: 06H</td><td colspan="2">Xout[1:0]</td><td colspan="2">Yout[1:0]</td><td colspan="2">Zout[1:0]</td><td>0</td><td>0</td></tr><tr><td>Mode</td><td colspan="8">R</td></tr></table>

X-axis output, unsigned format.

<table><tr><td>X-axis output</td><td>Data</td></tr><tr><td>16bits operation mode</td><td>Xout[17:2]</td></tr><tr><td>18bits operation mode</td><td>Xout[17:0]</td></tr></table>

Yout0, Yout1, XYZout2

<table><tr><td>Yout0</td><td>7</td><td>6</td><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td><td>0</td></tr><tr><td>Addr: 02H</td><td colspan="8">Yout[17:10]</td></tr><tr><td>Mode</td><td colspan="8">R</td></tr></table>

<table><tr><td>Yout1</td><td>7</td><td>6</td><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td><td>0</td></tr><tr><td>Addr: 03H</td><td colspan="8">Yout[9:2]</td></tr><tr><td>Mode</td><td colspan="8">R</td></tr></table>

<table><tr><td>XYZout2</td><td>7</td><td>6</td><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td><td>0</td></tr><tr><td>Addr: 06H</td><td colspan="2">Xout[1:0]</td><td colspan="2">Yout[1:0]</td><td colspan="2">Zout[1:0]</td><td>0</td><td>0</td></tr><tr><td>Mode</td><td colspan="8">R</td></tr></table>

Y-axis output, unsigned format.

<table><tr><td>Y-axis output</td><td>Data</td></tr><tr><td>16bits operation mode</td><td>Yout[17:2]</td></tr><tr><td>18bits operation mode</td><td>Yout[17:0]</td></tr></table>

Zout0, Zout1, XYZout2

<table><tr><td>Zout0</td><td>7</td><td>6</td><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td><td>0</td></tr><tr><td>Addr: 04H</td><td colspan="8">Zout[17:10]</td></tr><tr><td>Mode</td><td colspan="8">R</td></tr></table>

<table><tr><td>Zout1</td><td>7</td><td>6</td><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td><td>0</td></tr><tr><td>Addr: 05H</td><td colspan="8">Zout[9:2]</td></tr><tr><td>Mode</td><td colspan="8">R</td></tr></table>

<table><tr><td>XYZout2</td><td>7</td><td>6</td><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td><td>0</td></tr><tr><td>Addr: 06H</td><td colspan="2">Xout[1:0]</td><td colspan="2">Yout[1:0]</td><td colspan="2">Zout[1:0]</td><td>0</td><td>0</td></tr><tr><td>Mode</td><td colspan="8">R</td></tr></table>

Z-axis output, unsigned format.

<table><tr><td>Z-axis output</td><td>Data</td></tr><tr><td>16bits operation mode</td><td>Zout[17:2]</td></tr><tr><td>18bits operation mode</td><td>Zout[17:0]</td></tr></table>

Tout

<table><tr><td>Tout</td><td>7</td><td>6</td><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td><td>0</td></tr><tr><td>Addr: 07H</td><td colspan="8">Tout[7:0]</td></tr><tr><td>Mode</td><td colspan="8">R</td></tr></table>

Temperature output, unsigned format. The range is -75\~125°C, about 0.8°C/LSB, 00000000 stands for -75°C

Status

<table><tr><td>Device Status</td><td>7</td><td>6</td><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td><td>0</td></tr><tr><td>Addr: 08H</td><td colspan="3">Reserved</td><td>OTP_Read_Done</td><td colspan="2">Reserved</td><td>Meas_T_Done</td><td>Meas_M_Done</td></tr><tr><td>Reset Value</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>Mode</td><td colspan="8">R/W</td></tr></table>

<table><tr><td>Bit Name</td><td>Description</td></tr><tr><td>Meas_M_Done</td><td>Indicates a measurement event of magnetic field is completed. This bit should be checked before reading the output. When the new measurement command is occurred, this bit turns to “0”. When the measurement is finished, this bit will remain “1” till next measurement. Writing 1 into this bit will clear the corresponding interrupt.</td></tr><tr><td>Meas_T_Done</td><td>Indicates a measurement event of temperature is completed. When the new measurement command is occurred, this bit turns to “0”. When the measurement is finished, this bit will remain “1” till next measurement. Writing 1 into this bit will clear the corresponding interrupt.</td></tr><tr><td>OTP_Rd_Done</td><td>Indicates the chip was able to successfully read its memory.</td></tr></table>

Internal Control 0

<table><tr><td>Control Register 0</td><td>7</td><td>6</td><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td><td>0</td></tr><tr><td>Addr: 09H</td><td>Reserved</td><td>OTP Read</td><td>Auto_SR_en</td><td>Reset</td><td>Set</td><td>INT_meas_done_en</td><td>TM_T</td><td>TM_M</td></tr><tr><td>Reset Value</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>Mode</td><td>W</td><td>W</td><td>W</td><td>W</td><td>W</td><td>W</td><td>W</td><td>W</td></tr></table>

<table><tr><td>Bit Name</td><td>Description</td></tr><tr><td>TM_M</td><td>Take magnetic field measurement, set ‘1’ will initiate measurement. This bit will be automatically reset to 0 at the end of each measurement.</td></tr><tr><td>TM_T</td><td>Take Temperature measurement, set ‘1’ will initiate measurement. This bit will be automatically reset to 0 at the end of each measurement. This bit and TM_M cannot be high at the same time.</td></tr><tr><td>INT_meas_done_en</td><td>Writing “1” will enable the interrupt for completed measurements. Once a measurement is finished, either magnetic field or temperature, an interrupt will be sent to the host.</td></tr><tr><td>Set</td><td>Writing “1”will cause the chip to do the Set operation, which will allow large set current to flow through the sensor coils for 500ns. This bit is self-cleared at the end of Set operation.</td></tr><tr><td>Reset</td><td>Writing “1” will cause the chip to do the Reset operation, which will allow large reset current to flow through the sensor coils for 500ns. This bit is self-cleared at the end of Reset operation.</td></tr><tr><td>Auto_SR_en</td><td>Writing “1” will enable the feature of automatic set/reset.</td></tr><tr><td>OTP Read</td><td>Writing “1” will let the device to read the OTP data again. This bit will be automatically reset to 0 after the shadow registers for OTP are refreshed.</td></tr></table>

## Internal Control 1

<table><tr><td>Control Register 1</td><td>7</td><td>6</td><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td><td>0</td></tr><tr><td>Addr: 0AH</td><td>SW_RST</td><td colspan="2">Reserved</td><td colspan="2">YZ-inhibit</td><td>X-inhibit</td><td>BW1</td><td>BW0</td></tr><tr><td>Reset Value</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>Mode</td><td>W</td><td>W</td><td>W</td><td>W</td><td>W</td><td>W</td><td>W</td><td>W</td></tr></table>

<table><tr><td>Bit Name</td><td colspan="4">Description</td></tr><tr><td rowspan="7">BW0&amp; BW1</td><td colspan="4">Output resolution</td></tr><tr><td>BW1</td><td>BW0</td><td>Measurement Time</td><td>Bandwidth</td></tr><tr><td>0</td><td>0</td><td>8ms</td><td>100Hz</td></tr><tr><td>0</td><td>1</td><td>4ms</td><td>200Hz</td></tr><tr><td>1</td><td>0</td><td>2ms</td><td>400Hz</td></tr><tr><td>1</td><td>1</td><td>0.5ms</td><td>800Hz</td></tr><tr><td colspan="4">Note: X/Y/Z channel measurements are taken in parallel.These bandwidth selection bits adjust the length of the decimation filter. They control the duration of each measurement.</td></tr><tr><td>X-inhibit</td><td colspan="4">Writing “1” will disable X channel.</td></tr><tr><td>Y/Z-inhibit</td><td colspan="4">Writing “1” to the two bits will disable Y and Z channel.</td></tr><tr><td>SW_RST</td><td colspan="4">Writing “1”will cause the part to reset, similar to power-up. It will clear all registers and also re-read OTP as part of its startup routine. The power on time is 10mS.</td></tr></table>

## Internal Control 2

<table><tr><td>Control Register 2</td><td>7</td><td>6</td><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td><td>0</td></tr><tr><td>Addr: 0BH</td><td>En_prd_set</td><td colspan="3">Prd_set[2:0]</td><td>Cmm_en</td><td colspan="3">Cm_freq[2:0]</td></tr><tr><td>Reset Value</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>Mode</td><td>W</td><td>W</td><td>W</td><td>W</td><td>W</td><td>W</td><td>W</td><td>W</td></tr></table>

<table><tr><td>Bit Name</td><td colspan="2">Description</td></tr><tr><td rowspan="10">CM_Freq[2:0]</td><td colspan="2">These bits determine how often the chip will take measurements in Continuous Measurement Mode. The frequency is based on the assumption that BW[1:0] = 00.</td></tr><tr><td>CM_Freq [2:0]</td><td>Frequency (Typical)</td></tr><tr><td>000</td><td>Continuous Measurement Mode is off.</td></tr><tr><td>001</td><td>1Hz</td></tr><tr><td>010</td><td>10 Hz</td></tr><tr><td>011</td><td>20Hz</td></tr><tr><td>100</td><td>50 Hz</td></tr><tr><td>101</td><td>100 Hz</td></tr><tr><td>110 (BW=01)</td><td>200Hz</td></tr><tr><td>111 (BW=11)</td><td>1000 Hz</td></tr><tr><td>Cmm_en</td><td colspan="2">Writing “1” will enable the continuous mode. In order to enter the continuous mode, CM_Freq[2:0] cannot be 000.</td></tr><tr><td rowspan="10">Prd_set[2:0]</td><td colspan="2">These bits determine how often the chip will do a set operation. The device will perform a SET automatically per the setting in below table.</td></tr><tr><td>Prd_set [2:0]</td><td>Times of measurement</td></tr><tr><td>000</td><td>1</td></tr><tr><td>001</td><td>25</td></tr><tr><td>010</td><td>75</td></tr><tr><td>011</td><td>100</td></tr><tr><td>100</td><td>250</td></tr><tr><td>101</td><td>500</td></tr><tr><td>110</td><td>1000</td></tr><tr><td>111</td><td>2000</td></tr><tr><td>En_prd_set</td><td colspan="2">Writing “1” will enable the feature of periodic set. This feature needs to work with both Auto_SR_en and Cmm_en bits set to 1.</td></tr></table>

Internal Control 3

<table><tr><td>Control Register 3</td><td>7</td><td>6</td><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td><td>0</td></tr><tr><td>Addr: 0CH</td><td>reserved</td><td>Spi_3w</td><td colspan="3">reserved</td><td>St_enm</td><td>St_enp</td><td>reserved</td></tr><tr><td>Reset Value</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>Mode</td><td>W</td><td>W</td><td>W</td><td>W</td><td>W</td><td>W</td><td>W</td><td>W</td></tr></table>

<table><tr><td>Bit Name</td><td>Description</td></tr><tr><td>St_enp</td><td>Writing “1” will apply an extra current flowing from the positive end to the negative end of an internal coil and result in an extra magnetic field. This feature can be used to check whether the sensor has been saturated.</td></tr><tr><td>St_enm</td><td>Writing “1” will apply an extra current flowing from the negative end to the positive end of an internal coil and result in an extra magnetic field. This feature can be used to check whether the sensor has been saturated.</td></tr><tr><td>Spi_3w</td><td>Writing a 1 into this location will put the device into 3-wire SPI mode.</td></tr></table>

Product ID1

<table><tr><td>Product ID 1</td><td>7</td><td>6</td><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td><td>0</td></tr><tr><td>Addr: 2FH</td><td colspan="8">Product ID1[7:0]</td></tr><tr><td>Reset Value</td><td>0</td><td>0</td><td>1</td><td>1</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>Mode</td><td>R</td><td>R</td><td>R</td><td>R</td><td>R</td><td>R</td><td>R</td><td>R</td></tr></table>

## DATA TRANSFER

A data transfer is started with a “START” condition and ended with a “STOP” condition. A “START” condition is defined by a HIGH to LOW transition on the SDA line while SCL line is HIGH. A “STOP” condition is defined by a LOW to HIGH transition on the SDA line while the SCL line is held HIGH. All data transfer in I<sup>2</sup>C system are 8-bits long. Each byte has to be followed by an acknowledge bit. Each data transfer involves a total of 9 clock cycles. Data is transferred starting with the most significant bit (MSB).

After a START condition, the Master device calls a specific slave device by sending its 7-bit address with the 8<sup>th</sup> bit (LSB) indicating that either a READ or WRITE operation will follow, [1] for READ and [0] for WRITE. The MEMSIC device 7-bit device address is [0110000].

The initial addressing of the slave is always followed by the master writing the number of the slave register to be read or written, so this initial addressing always indicates a WRITE operation by sending [01100000]. After being addressed, the MEMSIC device being called should respond by an “Acknowledge” signal by pulling SDA line LOW. Subsequent communication bytes can either be

a) The data to be written to the device register, or

b) Another START condition followed by the device address indicating a READ operation [01100001], and then the master reads the register data.

Multiple data bytes can be written or read to numerically sequential registers without the need of another START condition. Data transfer is terminated by a STOP condition or another START condition. Two detailed examples of communicating with the MEMSIC device are listed below for the actions of acquiring a magnetic field measurement and magnetizing the sensor.

## EXAMPLE MEASUREMENT

1<sup>st</sup> cycle: A START condition is established by the Master device followed by a call to the slave address [0110000] with the eighth bit held low to indicate a WRITE request.

2<sup>nd</sup> cycle: After an acknowledge signal is received by the Master device (MEMSIC device pulls SDA line low during 9<sup>th</sup> SCL pulse), the Master device sends the address of Control Register 0 or [00001001] as the target register to be written. The MEMSIC device should acknowledge receipt of the address (9<sup>th</sup> SCL pulse, SDA pulled low).

3<sup>rd</sup>cycle: The Master device writes to the Internal Control Register 0 the code [00000001] (TM\_M high) to initiate data acquisition. The MEMSIC device should send an Acknowledge and internally initiate a measurement (collect x, y and z data). A STOP condition indicates the end of the write operation.

4<sup>th</sup>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.

5<sup>th</sup>cycle: The Master device sends the MEMSIC device’s Status Register [00001000] as the address to read.

6<sup>th</sup>cycle: The Master device sends a START command followed by the MEMSIC device’s seven bit address, and finally the eighth bit set high to indicate a READ. An Acknowledge should be send by the MEMSIC device in response.

7<sup>th</sup> 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\_M\_Done bit (bit 0) is set to ‘1’.or check INT pin status. This indicates that data for the x, y, and z sensors is available to be read.

8<sup>th</sup>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.

9<sup>th</sup>cycle: The Master device sends a [00000000] (Xout LSB register address) as the register address to read.

10<sup>th</sup>cycle: The Master device calls the MEMSIC device’s address with a READ (8<sup>th</sup> SCL cycle SDA line high). An Acknowledge should be send by the MEMSIC device in response.

11<sup>th</sup>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:

12<sup>th</sup>cycle: Xout[17:10].

13<sup>th</sup>cycle: Xout[9:2].

14<sup>th</sup>cycle: Yout[17:10].

15<sup>th</sup>cycle: Yout[9:2].

16<sup>th</sup>cycle: Zout[17:10].

17<sup>th</sup>cycle: Zout[9:2].

18<sup>th</sup> cycle: Xout[1:0], Yout[1:0], Zout[1:0] for 18bits mode.

Master ends communications by NOT sending an ‘Acknowledge’ and also follows with a ‘STOP’ command.

## EXAMPLE OF SET

1<sup>st</sup> cycle: A START condition is established by the Master Device followed by a call to the slave address [0110000] with the eighth bit held low to indicate a WRITE request.

2<sup>nd</sup> cycle: After an acknowledge signal is received by the Master device (The MEMSIC device pulls the SDA line low during the 9<sup>th</sup> SCL pulse), the Master device sends [00001001] as the target address (Internal Control Register 0). The MEMSIC device should acknowledge receipt of the address (9<sup>th</sup> SCL pulse).

3<sup>rd</sup> cycle: The Master device writes to the MEMSIC device’s Internal Control 0 register the code [00001000] (SET bit) to initiate a SET action. The MEMSIC device should send an Acknowledge.

## EXAMPLE OF RESET

1<sup>st</sup> cycle: A START condition is established by the Master device followed by a call to the slave address [0110000] with the eighth bit held low to indicate a WRITE request

2<sup>nd</sup> cycle: After an acknowledge signal is received by the Master device (The MEMSIC device pulls the SDA line low during the 9<sup>th</sup> SCL pulse), the Master device sends [00001001] as the target address (Internal Control Register 0). The MEMSIC device should acknowledge receipt of the address (9<sup>th</sup> SCL pulse).

3<sup>rd</sup> cycle: The Master device writes to the MEMSIC device’s Internal Control 0 register the code [00010000] (RESET bit) to initiate a RESET action. The MEMSIC device should send an Acknowledge.

At this point, the MEMSIC AMR sensors have been conditioned for optimum performance and data measurements can commence.

Note: The RESET action can be skipped for most applications

## USING SET AND RESET TO REMOVE BRIDGE OFFSET

The integrated SET and RESET functions of the MMC5893VA enables the user to remove the error associated with bridge 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 alternately flip the magnetic sensing polarity of the sensing elements of the device.

1) The most accurate magnetic field measurements can be obtained by using the protocol described as follows: Perform SET. This sets the internal magnetization of the sensing resistors in the direction of the SET field.

2) Perform MEASUREMENT. This measurement will contain not only the sensors response to the external magnetic field, H, but also the Offset; in other words,

## Output1 = +H + Offset.

3) Perform RESET. This resets the internal magnetization of the sensing resistors in the direction of the RESET field, which is opposite to the SET field (180<sup>o</sup> opposed).

4) Perform MEASUREMENT. This measurement will contain both the sensors response to the external field and also the Offset. In other words, Output2 = -H + Offset.

5) Finally, calculate H by subtracting the two measurements and dividing by 2. This procedure effectively eliminates the Offset from the measurement and therefore any changes in the Offset over temperature.

Note: To calculate and store the offset; add the two measurements and divide by 2. This calculated offset value can be subtracted from subsequent measurements to obtain H directly from each measurement.

MEMSIC magnetic sensor is capable of withstanding an MSL3 / 260ºC solder reflow. Following is the reflow profile: Note:

![](https://www.embedr.app/api/datasheets/ds_43ef14e4832d5554b583/asset?path=images%2F2c1ae2bcb2b64b829d8d57206593ec08dc501bdbcf84202178283f5d122777ac.jpg)  
Time (S)

This is the reflow profile for Pb free process

 The peak temperature on the sensor surface should be limited under $2 6 0 ^ { \circ } \mathsf C$ for no more than 10 seconds.

 Reflow conditions recommended by solder paste should be followed to get the best SMT quality.

 Maximum 3 SMT cycles

 Second and third reflow cycle should be applied after device has cooled down to $\sf { 2 5 ^ { \circ } C }$ (room temperature)

 If the part is mounted manually, please ensure the temperature does not exceed $2 6 0 ^ { \circ } \mathsf C$ for 10 seconds.

PACKAGE DRAWING (LGA package)  
![](https://www.embedr.app/api/datasheets/ds_43ef14e4832d5554b583/asset?path=images%2F9fd89a90f3a0d10719a5c84f36802ec0957ebade80b7e0b5dc25fbdb502f1fcb.jpg)