MAG3110_12 FREESCALE | Alldatasheet

Document overview

  • Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
  • PDF pages: 28

Technical content

Features

  • 1.95V to 3.6V supply voltage (VDD)
  • 1.62V to VDD IO Voltage (VDDIO)
  • Ultra small 2 mm by 2 mm by 0. 85 mm, 0.4 mm pitch, 10-pin package
  • Full-scale range ±1000 μT
  • Sensitivity of 0.10 μT
  • Noise down to 0.25 μT rms
  • Output Data Rates (ODR) up to 80 Hz 2C digital output interface (operates up to 400 kHz Fast Mode)
  • 7 - b i t I2C address = 0x0E
  • One-shot triggered measurem ent mode to conserve power
  • RoHS compliant

Applications

  • Electronic Compass (eCompass)
  • Location-Based Services Target Market
  • Smart phones, tablets, personal navigation devices, robotics, UAVs, speed sensing, current sensing and wrist watches with embedded electronic compasses (eCompass) function.

ORDERING INFORMATION

Part Number Temperature Range Package Description Shipping MAG3110FCR1 -40°C to +85°C DFN-10 Tape and Reel (1000) MAG3110FCR2 -40°C to +85°C DFN-10 Tape and Reel (4000) 10-PIN DFN 2 mm by 2 mm by 0.85 mm CASE 2154-01 MAG3110 Top and Bottom View Top View Pin Connections Cap-A VDD NC Cap-R GND GND INT1 SDA VDDIO SCL MAG3110

2 Freescale Semiconductor, Inc. Related Documentation The MAG3110 device features and operations are described in a variety of reference manuals, user guides, and application notes. To find the most-current versions of these documents: 1. Go to the Freescale homepage at: http://www.freescale.com/ 2. In the Keyword search box at the top of the page, enter the device number MAG3110. 3. In the Refine Your Result pane on the left, click on the Documentation link.

Contents

1 Block Diagram and Pin Description

Figure 1. Block Diagram Figure 2. Pin Connections and Measurement Coordinate System Figure 3. Device Marking Diagram

4 Freescale Semiconductor, Inc.

1.1 Application Circuit

supply rail as shown in Figure 4. VDDIO supplies power for the digital I/O pins SCL, SDA, and INT1. signals SCL and SDA will clamp any logic signals through their internal ESD protection diodes. Figure 4. Electrical Connection Table 1. Pin Descriptions

1 Cap-A Bypass Cap for Internal Regulator

4 Cap-R Magnetic Reset Pulse Circuit Capacitor connection

5 GND GND

6 SDA I2C Serial Data (8-bit I2C write address - 0x1C, read = 0x1D)

7 SCL I2C Serial Clock

9 INT1 Interrupt - Active High Output

10 GND GND

2 Operating and Electrical Specifications

2.1 Operating Characteristics

2.2 Absolute Maximum Ratings

extended periods may affect device reliability. Table 2. Operating Characteristics @ VDD = 1.8 V, T = 25°C unless otherwise noted.

  1. Output data range is the sum of ±10000 LSBs full-scale range, ±10000 LSBs user defined offset (provided that CTRL_REG2[RAW] = 0) and
  2. Hysteresis is measured by sweeping the applied magnetic field from 0 μT to 1000 μT to 0 μT and from 0 μT to -1000 μT to 0 μT.
  3. Best Fit Straight Line 0 to ±1000 μT.
  4. OS = Over Sampling Ratio.

Table 3. Maximum Ratings Table 4. ESD and Latchup Protection Characteristics cause the part to otherwise fail. This device is sensitive to ESD, improper handling can cause permanent damage to the part.

6 Freescale Semiconductor, Inc.

2.3 Electrical Characteristics

Table 5. Electrical Characteristics @ VDD = 2.0V, VDDIO = 1.8V, T = 25°C unless otherwise noted

  1. ODR = Output Data Rate; OS = Over Sampling Ratio.
  2. Please see Table 30 for all ODR and OSR setting combinations, along with the corresponding current consumption and noise levels.
  3. Time to obtain valid data from STANDBY mode to ACTIVE Mode.

2.4 I 2C Interface Characteristics

Table 6. I2C Slave Timing Values(1)

  1. All values referred to VIH (min) and VIL (max) levels.
  2. tHD;DAT is the data hold time that is measured from the falling edge of SCL, applies to data in transmission and the acknowledge.
  3. A device must internally provide a hold time of at least 300 ns for the SDA signal (with respect to the VIH (min) of the SCL signal) to bridge the

undefined region of the falling edge of SCL.

  1. The maximum tHD;DAT could be must be less than the maximum of tVD;DAT or tVD;ACK by a transition time. This device does not stretch the

LOW period (tLOW) of the SCL signal.

  1. tVD;DAT = time for Data signal from SCL LOW to SDA output (HIGH or LOW, depending on which one is worse).
  2. tVD;ACK = time for Acknowledgement signal from SCL LOW to SDA output (HIGH or LOW, depending on which one is worse).
  3. A Fast mode I2C device can be used in a Standard mode I2C system, but the requirement tSU;DAT 250 ns must then be met. This will
  4. Cb = total capacitance of one bus line in pF.
  5. The maximum tf for the SDA and SCL bus lines is specified at 300 ns. The maximum fall time for the SDA output stage tf is specified at 250 ns.

this when considering bus timing.

8 Freescale Semiconductor, Inc. Figure 5. I2C Slave Timing Diagram

2.5 I 2C Pullup Resistor Selection

state. The value of the pullup resistors depends on the system I2C clock rate and the capacitance load on the I2C bus. between the bus capacitance and the pullup resistor) and will limit the I2C clock frequency. Lower resistance value pullup resistors consume more power, but enable higher I2C clock operating frequencies. pullup resistor is required in higher bus capacitance systems. addition to selecting a lower value resistance pullup resistor. Pullup resistors for high speed buses typically are about 1 KΩ. capacitance can be kept under 20 pF. With a 1K pullup resistor, the I2C clock rates can be well in excess of a few megahertz.

3 Modes of Operation

4 Functionality

magnetic transducer for sensing and an ASIC for control and digital I2C communications.

4.1 I 2C Serial Interface

magnetic data readings are available. Interrupt driven sampling allows operation without the overhead of software polling.

4.2 Factory Calibration

automatically by the MAG3110 ASIC before the magnetic field readings are written to registers 0x01 to 0x06 (see section 5). iron offset which can be automatically subtracted from the magnetic field readings (see section 4.3.4).

4.3 Digital Interface

compliant with Fast mode (400 kHz), and Normal mode (100 kHz) I2C standards.

4.3.1 General I 2C Operation

are expected for both SDA and SCL. When the bus is free, both lines are high. line low so that it remains stable low during the high period of the acknowledge clock period. Table 7. Modes of Operation Description STANDBY I 2C communication is possible. Only POR and digital blocks are enabled. Analog subsystem is disabled. ACTIVE I 2C communication is possible. All blocks are enabled (POR, Digital, Analog). Table 8. Serial Interface Pin Description

10 Freescale Semiconductor, Inc. devices support clock stretching. Not all masters recognize clock stretching. This part uses clock stretching. The host I2C controller must support clock stretching for proper operation. a byte at the appropriate time in the protocol. A Master may issue a repeated START during a transfer. bit is set in the lowest bit position. The I2C 8-bit write address is therefore 0x1C and the read address 0x1D. See Figure 6 for details on how to perform read/write operations with MAG3110. Figure 6. MAG3110 I2C Generic Read/Write Operations

4.3.2 Pullup

state. The value of the pullup resistors depends on the system I2C clock rate and the capacitance load on the I2C bus. the bus capacitance and the pullup resistor) and will limit the I2C clock frequency. Lower resistance value pullup resistors consume more power, but enable higher I2C clock operating frequencies. I2C bus capacitance is the sum of the parasitic trace capacitance and input capacitance of the other devices present on the bus. be kept low, in addition to selecting a lower value pullup resistor. Pullup resistors for high speed buses typically are about 1 KΩ. capacitance can be kept under 20 pF. With a 1K pullup resistor, the I2C clock rates can be well in excess of a few megahertz.

4.3.3 Fast Read Mode

(OUT_X_MSB, OUT_X_LSB, OUT_Y_MSB, OUT_Y_LSB, OUT_Z_MSB, OUT_Z_LSB).

4.3.4 User Offset Corrections

board mount. These values may be used to compensate for hard-iron interference and zero-flux offset of the sensor. (CTRL_REG2[RAW] = 0), or can be read out uncorrected for user offset values (CTRL_REG2[RAW] = 1).

Freescale Semiconductor, Inc. 11

4.3.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_MRS T_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 in terrupt 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 and this register must therefore always be read in the interrupt service routine. 5. Return to idle in step 3.

4.3.6 Triggered Measurements

Set the TM bit in CTRL_REG1 when you want the part to acquire only 1 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. AC TM Description 0 0 ASIC is in low power standby mode. 0 1 The ASIC will exit standby mode, perform one measurement cycle based on the programmed ODR and OSR setting, update the I2C data registers and re- enter standby mode. 1 0 The ASIC will perform continuous measurements based on the current OSR and ODR settings. 1 1 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.

12 Freescale Semiconductor, Inc.

4.3.7 MAG3110 Setup Examples

Continuous measurements with ODR = 80 Hz, OSR = 1 1. Enable automatic magnetic sensor re sets 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 utilizi ng INT1 pin or using polling of the DR_STATUS register as explained in section 4.3.5. Continuous measurements with ODR = 0.63 Hz, OSR = 2 1. Enable automatic magnetic sensor re sets 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 utiliz ing INT1 pin or using polling of the DR_STATUS register as explained in section 4.3.5. Triggered measurements with ODR = 10 Hz, OSR = 8 1. Enable automatic magnetic sensor re sets by setting bit AUTO_MRST_EN in CTRL_REG2. (CTRL_REG2 = 0x80) 2. Initiate a triggered measurem ent with OSR = 128 by writing 0b00011010 to CTRL_REG1 (CTRL_REG1 = 0b00011010). 3. MAG3110 will acquire the triggered meas urement 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.

5 Register Descriptions

Table 9. Register Address Map

  1. Fast Read mode for quickly reading the Most Significant Bytes (MSB) of the sampled data.
  2. Register contents are preserved when transitioning from “ACTIVE” to “STANDBY” mode.
  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

14 Freescale Semiconductor, Inc.

5.1 Sensor Status

5.1.1 DR_STATUS (0x00)

to the OUT_X, OUT_Y, and OUT_Z registers. bytes of the data (OUT_X_MSB, OUT_Y_MSB, OUT_Z_MSB) of all active channels are read. previous data is overwritten. ZOW is cleared any time OUT_Z_MSB register is read. previous data is overwritten. YOW is cleared any time OUT_Y_MSB register is read. previous data is overwritten. XOW is cleared any time OUT_X_MSB register is read. data (OUT_X_MSB, OUT_Y_MSB, OUT_Z_MSB) of all the enabled channels are read. ZDR is set to 1 whenever new Z-axis data acquisition is completed. ZDR is cleared any time OUT_Z_MSB register is read. YDR is set to 1 whenever new Y-axis data acquisition is completed. YDR is cleared any time OUT_Y_MSB register is read. XDR is set to 1 whenever new X-axis data acquisition is completed. XDR is cleared any time OUT_X_MSB register is read. Table 10. DR_STATUS Register Table 11. DR_STATUS Descriptions X, Y, Z-axis Data Overwrite. Default value: 0. 0: No data overwrite has occurred. 1: Previous X or Y or Z data was overwritten by new X or Y or Z data before it was completely read. Z-axis Data Overwrite. Default value: 0. 0: No data overwrite has occurred. 1: Previous Z-axis data was overwritten by new Z-axis data before it was read. Y-axis Data Overwrite. Default value: 0. 0: No data overwrite has occurred. 1: Previous Y-axis data was overwritten by new Y-axis data before it was read. 0: No data overwrite has occurred. 1: Previous X-axis data was overwritten by new X-axis data before it was read. X or Y or Z-axis new Data Ready. Default value: 0. 0: No new set of data ready. 1: New set of data is ready. Z-axis new Data Available. Default value: 0. 0: No new Z-axis data is ready. 1: New Z-axis data is ready. Z-axis new Data Available. Default value: 0. 0: No new Y-axis data is ready. 1: New Y-axis data is ready. Z-axis new Data Available. Default value: 0. 0: No new X-axis data is ready. 1: New X-axis data is ready.

5.1.2 OUT_X_MSB (0x01), OUT_X_LSB (0x02), OUT_Y_MSB (0x03), OUT_Y_LSB (0x04),

X-axis, Y-axis, and Z-axis 16-bit output sample data of the magnetic field strength expressed as signed 2's complement numbers. 1000 μT full scale range and the zero-flux offset ranging up to 1000 μT). in the auto-incrementing address range of 0x00 to 0x06. Data acquisition is a sequential read of 6 bytes. read regardless of FR bit setting. ensure that the latest acquisition data is being read. Table 12. OUT_X_MSB Register Table 13. OUT_X_LSB Register Table 14. OUT_Y_MSB Register Table 15. OUT_Y_LSB Register Table 16. OUT_Z_MSB Register Table 17. OUT_Z_LSB Register

16 Freescale Semiconductor, Inc.

5.2 Device ID

5.2.1 WHO_AM_I (0x07)

programmed. Consult factory for custom alternate values.

5.2.2 SYSMOD (0x08)

The read-only system mode register indicates the current device operating mode.

5.3 User Offset Correction

5.3.1 OFF_X_MSB (0x09), OFF_X_LSB (0x0A), OFF_Y_MSB (0x0B), OFF_Y_LSB (0x0C),

to be zero irrespective of the value written by the user. likely scenario) then the user offset registers can be ignored and the CTRL_REG2[RAW] bit should be set to 1. always applied to the measured magnetic data irrespective o the setting of CTRL_REG2[RAW]. Table 18. WHO_AM_I Register Table 19. SYSMOD Register

000000 SYSMOD1 SYSMOD0

Table 20. SYSMOD Description System Mode. Default value: 00. 10: ACTIVE mode, non-RAW user-corrected data. Table 21. OFF_X_MSB Register Table 22. OFF_X_LSB Register Table 23. OFF_Y_MSB Register

5.4 Temperature

5.4.1 DIE_TEMP (0x0F)

5.5 Control Registers

5.5.1 CTRL_REG1 (0x10)

Table 24. OFF_Y_LSB Register Table 25. OFF_Z_MSB Register Table 26. OFF_Z_LSB Register Table 27. TEMP Register Table 28. CTRL_REG1 Register Table 29. CTRL_REG1 Description DR[2:0] Data rate selection. Default value: 000. See Table 30 for more information. This register configures the over sampling ratio or measurement integration time. See Table 30 for more information. Fast Read selection. Default value: 0. 0: The full 16-bit values are read. 1: Fast Read, 8-bit values read from the MSB registers (Auto-increment skips over the LSB register in burst-read mode). 0: Normal operation based on AC condition. If part is in ACTIVE mode, any measurement in progress will continue with the highest ODR possible for the selected OSR.

18 Freescale Semiconductor, Inc. Table 30. Over-Sampling Ratio and Data Rate Description

5.5.2 CTRL_REG2 (0x11)

Table 31. CTRL_REG2 Register Table 32. CTRL_REG2 Description Automatic Magnetic Sensor Reset. Default value: 0. 0: Automatic magnetic sensor resets disabled. 1: Automatic magnetic sensor resets enabled. Similar to Mag_RST, however, the resets occur automatically before each data acquisition. This bit is recommended to be always explicitly enabled by the host application. See examples in section 4.3.7. a WRITE ONLY bit and always reads back as 0. Data output correction. Default value: 0. 0: Normal mode: data values are corrected by the user offset register values. 1: Raw mode: data values are not corrected by the user offset register values. Magnetic Sensor Reset (One-Shot). Default value: 0. 1: Reset cycle initiate or Reset cycle busy/active. When the cycle is finished, value returns to 0.

20 Freescale Semiconductor, Inc.

6 Geomagnetic Field Maps

The magnitude of the geomagnetic field varies from 25 μT in South America to about 60 μT over Northern China. The horizontal component of the field varies from zero at the magnetic poles to 40 μT. These web sites have further information: http://wdc.kugi.kyoto-u.ac.jp/igrf/ http://geomag.usgs.gov/

Freescale Semiconductor, Inc. 21 Geomagnetic Field Sensitivity Full-Scale Range(0.1 μT) (1000 μT) MAG3110MAG3110

22 Freescale Semiconductor, Inc.

7 PCB Guidelines

Surface mount Printed Circuit Board (PCB) layout is a critical portion of the total design. The footprint for the surface mount packages must be the correct size to ensure proper solder connection interface between the PCB and the package. With the correct footprint, the packages will self-align when subjected to a solder reflow process. These guidelines are for soldering and mounting the Dual Flat No-Lead (DFN) package inertial sensors to PCBs. The purpose is to minimize the stress on the package after board mounting. The MAG3110 digital output magnetometers use the DFN package platform. This section describes suggested methods of soldering these devices to the PCB for consumer applications. Please see Freescale application note AN4247,”Layout Recommendation for PCBs Using a magnetometer Sensor” for a technical discussion on hard and soft-iron magnetic interference and general guidelines on layout and component selection applicable to any PCB using a magnetometer sensor. Freescale application note AN1902, “Quad Flat Pack No-Lead (QFN) Micro Dual Flat Pack No-Lead (μDFN)” discusses the DFN package used by the MAG3110, PCB design guidelines for using DFN packages and temperature profiles for reflow soldering.

7.1 Overview of Sold ering Considerations

Information provided here is based on experiments executed on DFN devices. They do not represent exact conditions present at a customer site. Hence, information herein should be used as guidance only and process and design optimizations are recommended to develop an application specific solution. It should be noted that with the proper PCB footprint and solder stencil designs, the package will self-align during the solder reflow process.

7.2 Halogen Content

This package is designed to be Halogen Free, exceeding most industry and customer standards. Halogen Free means that no homogeneous material within the assembly package shall contain chlorine (Cl) in excess of 700 ppm or 0.07% weight/weight or bromine (Br) in excess of 900 ppm or 0.09% weight/weight.

7.3 PCB Mounting Recommendations

  1. The PCB land should be designed as Non Solder Mask Defined (NSMD) as shown in Figure 7. 2. No additional via pattern underneath package. 3. PCB land pad is 0.6 mm by 0.225 mm as shown in Figure 7. 4. Solder mask opening = PCB land pad edge + 0.125 mm larger all around = 0.725 mm by 1.950 mm 6. Stencil thickness is 100 or 125 mm. 7. Do not place any components or vias at a distance le ss than 2 mm from the package land area. This may cause additional package stress if it is too close to the package land area. 8. Signal traces connected to pads are as symmetric as possi ble. Put dummy traces on NC pads in order to have same length of exposed trace for all pads. 9. Use a standard pick and place process and equipment. Do not use a hand soldering process. 10. Assemble PCB when in an enclosure. Using caution, determi ne the position of screw down holes and any press fit. It is important that the assembled PCB remain flat after assembly to keep electronic operation of the device optimal. 11. The PCB should be rated for the multiple lead- free reflow condition with max 260°C temperature. 12. No copper traces on top layer of PC B under the package. This will cause planarity issues with board mount. Freescale DFN sensors are compliant with Restrictions on Hazardous Substances (RoHS), having halide free molding compound (green) and lead-free terminations. These terminations are compatible with tin-lead (Sn-Pb) as well as tin-silver-copper (Sn-Ag-Cu) solder paste soldering processes. Reflow profiles applicable to those processes can be used successfully for soldering the devices.

Figure 7. Footprints and Soldering Masks (dimensions in mm)

24 Freescale Semiconductor, Inc. PACKAGE DIMENSIONS CASE 2154-01 ISSUE O 10-PIN DFN

Freescale Semiconductor, Inc. 25 PACKAGE DIMENSIONS CASE 2154-01 ISSUE O 10-PIN DFN

26 Freescale Semiconductor, Inc. PACKAGE DIMENSIONS CASE 2154-01 ISSUE O 10-PIN DFN

Table 33. Revision History

  • Updated content on page 1.
  • Updated pin descriptions in Table 1.
  • Updated pin connection drawing and Figure 2 to reflect horizontal bar for pin 1.
  • Added Figure 3, Device Marking Diagram
  • Updated Output Data Range row in Table 2.
  • Updated Figure 4 to include pin names.
  • Updated Bit 7 in Table 31 and 32 for emphasis. Changed description as highlighted in Red and bold text.

Rev. 8 Information in this document is provided solely to enable system and software implementers to use Freescale products. There are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits based on the information in this document. Freescale reserves the right to make changes without further notice to any products herein. Freescale makes no warranty, representation, or guarantee regarding the suitability of its products for any particular purpose, nor does Freescale assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. “Typical” parameters that may be provided in Freescale data sheets and/or specifications can and do vary in different applications, and actual performance may vary over time. All operating parameters, including “typicals,” must be validated for each customer application by customer’s technical experts. Freescale does not convey any license under its patent rights nor the rights of others. Freescale sells products pursuant to standard terms and conditions of sale, which can be found at the following address: http://www.reg.net/v2/webservices/Freescale/Docs/TermsandConditions.htm. Freescale, the Freescale logo, and the Energy Efficient Solutions logo are trademarks All other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc. All rights reserved. How to Reach Us: Home Page: www.freescale.com Web Support: http://www.freescale.com/support RoHS-compliant and/or Pb-free versions of Freescale products have the functionality and electrical characteristics of their non-RoHS-compliant and/or non-Pb-free counterparts. For further information, see http:/www.freescale.com or contact your Freescale sales representative. For information on Freescale’s Environmental Products program, go to http://www.freescale.com/epp.