LM3822 Precision Current Gauge IC with Internal Zero Ohm Sense Element and PWM Output General Description The LM3822 Current Gauge provides easy to use precision current measurement with virtually zero insertion loss (typically 0.003). The LM3822 is used for high-side sensing. A Delta Sigma analog to digital converter is incorporated to precisely measure the current and to provide a current averaging function. Current is averaged over 50 msec time periods in order to provide immunity to current spikes. The ICs have a pulse-width modulated (PWM) output which indicates the current magnitude and direction. The shutdown pin can be used to inhibit false triggering during start-up, or to enter a low quiescent current mode. The LM3822 is factory-set in two different current options. The sense range is -1.0A to +1.0A or -2.0A to +2.0A. The sampling interval for this part is 50ms. If faster sampling is desired, please refer to the data sheet for the part number LM3824. n Low quiescent current in shutdown mode (typically 1.8 A) n 50 msec sampling interval n In MSOP-8 Package Features n No external sense element required n PWM output indicates the current magnitude and direction n PWM output is easily interfaced with microprocessors and controllers n Precision current-sense technique n Low temperature sensitivity n Internal filtering rejects false trips n Internal Power-On-Reset (POR) n DC Offset is less than 1 mA for 1A part Applications Key Specifications n Ultra low insertion loss (typically 0.003) n 2V to 5.5V supply range n 2% accuracy at room temperature for the 1A device (includes accuracy of the internal sense element) n n n n Battery charge/discharge gauge Motion control diagnostics Power supply load monitoring and management Resettable smart fuse Connection Diagram 10124901 Top View LM3822 for High-Side Sensing (c) 2004 National Semiconductor Corporation DS101249 www.national.com LM3822 Precision Current Gauge IC with Internal Zero Ohm Sense Element and PWM Output November 2000 LM3822 Ordering Information Sense Range Sampling Interval* Sensing Method NS Package Number Package Type LM3822MM-1.0 1.0A 50 ms High-side MUA08A MSOP-8 Tape and Reel (1000 units/reel) LM3822MMX-1.0 1.0A 50 ms High-side MUA08A MSOP-8 Tape and Reel (3500 units/reel) LM3822MM-2.0 2.0A 50 ms High-side MUA08A MSOP-8 Tape and Reel (1000 units/reel) LM3822MMX-2.0 2.0A 50 ms High-side MUA08A MSOP-8 Tape and Reel (3500 units/reel) Order No.* Supplied As: * Current is sampled over a fixed interval. The average current during this interval is indicated by the duty cycle of the PWM output during next interval. Pin Description (High-Side, LM3822) Pin Name Function 1 SENSE+, VDD High side of internal current sense, also supply voltage. 2 GND Supply Ground. 3 FLTR+ Filter input -- provides anti-aliasing for delta sigma modulator. 4 FLTR- Filter input. 5 SD Shutdown input. Connected to VDD through a pull-up resistor for normal operation. When low, the LM3822 is put into a low current mode. 6 TEST Connect to GND for normal operation. 7 PWM Digital output indicates the current magnitude and direction. 8 SENSE- Low side of internal current sense. www.national.com 2 Storage Temperature If Military/Aerospace specified devices are required, please contact the National Semiconductor Sales Office/ Distributors for availability and specifications. Lead Temperature (Soldering, 10 sec) Absolute Maximum Supply Voltage Input Voltage (Note 2) ESD Susceptibility (Note 3) Sink Current for PWM pin 2.0V to 5.25V Sense Current (continuous) (Note 4) 1.5 kV Sense Current (peak, for 200 msec) (Note 4) 260C Operating Ratings (Note 1) 5.5V Power Dissipation -65C to +150C Junction Temperature Range 10A 5A -40C to +85C 1mA Maximum Junction Temperature 150C Electrical Characteristics Typical numbers are at 25C and represent the most likely parametric norm. Specifications in standard type face are for TJ = 25C and those with boldface type apply over full operating temperature ranges. LM3822-1.0 SENSE+VDD = 3.6V for the following specifications. Supply bypass capacitor is 1 F and filter capacitor is 0.1 F. Symbol IACC en Parameter Average Current Accuracy (Note 7) Conditions 1.0A current Typ (Note 5) Limit (Note 6) 1.0 Effective Output Noise (rms) Units A 0.98 / 0.96 A (min) 1.02 / 1.04 A (max) 2 mA LM3822-2.0 SENSE+VDD = 3.6V for the following specifications. Supply bypass capacitor is 1 F and filter capacitor is 0.1 F. Symbol IACC en Parameter Average Current Accuracy (Note 7) Conditions 2.0A current (Note 8) Effective Output Noise (rms) Typ (Note 5) Limit (Note 6) 2.0 Units A 1.94 / 1.90 A (min) 2.06 / 2.10 A (max) 6 mA Common Device Parameters Unless otherwise specified, VDD = 3.6V for the following specifications. Supply bypass capacitor is 1 F and filter capacitor is 0.1 F. Symbol IQ1 IQ2 Parameter Quiescent Current Quiescent Current Conditions Normal Mode, SD = high Shutdown Mode, SD = low Typ (Note 5) Limit (Note 6) Units 150 A (max) 10 A (max) 95 A 1.8 A DRES PWM Resolution 0.1 % tS Sampling Time 50 ms fP VTH Frequency of PWM Waveform 40 ms (min) 80 ms (max) 20 Threshold High Level for SD Hz 12.5 Hz (min) 25 Hz (max) 1.8 V (min) 1.3 3 V www.national.com LM3822 Absolute Maximum Ratings (Note 1) LM3822 Electrical Characteristics Typical numbers are at 25C and represent the most likely parametric norm. Specifications in standard type face are for TJ = 25C and those with boldface type apply over full operating temperature ranges. (Continued) Common Device Parameters (Continued) Unless otherwise specified, VDD = 3.6V for the following specifications. Supply bypass capacitor is 1 F and filter capacitor is 0.1 F. Symbol VTL VOH VOL PI Parameter Conditions Typ (Note 5) Threshold Low Level for SD Logic High Level for PWM Logic Low Level for PWM Insertion Loss Limit (Note 6) Units 0.7 V (max) VDD - 0.2 V V (min) 0.2 V (max) 1.2 Load current = 1 mA, 2V VDD 5.25V VDD - 0.05 Sink current = 1 mA, 2V VDD 5.25V 0.04 ISENSE = 1A (Note 9) 0.003 V V Note 1: Absolute Maximum Ratings indicate limits beyond which damage to the device may occur. Operating Ratings indicate conditions for which the device is intended to be functional, but do not guarantee specific performance limits. For guaranteed specifications and test conditions, see Electrical Characteristics. The guaranteed specifications apply only for the test conditions listed. Some performance characteristics may degrade when the device is not operated under the listed test conditions. Note 2: At elevated temperatures, devices must be derated based on package thermal resistance. The device in the surface-mount package must be derated at JA = 220C/W (typically), junction-to-ambient. Note 3: The human body model is a 100 pF capacitor discharged through a 1.5 k resistor into each pin. Note 4: The absolute maximum peak and continuous currents specified are not tested. These specifications are dependent on the JA, which is 220C/W for the MSOP-8 package. Note 5: Typical numbers are at 25C and represent the most likely parametric norm. Specifications in standard type face are for TJ = 25C and those with boldface typeapply over full operating temperature ranges. Note 6: Limits are 100% production tested at 25C. Limits over the operating temperature range are guaranteed through correlation using Statistical Quality Control (SQC) methods. The limits are used to calculate National's Average Outgoing Quality Level (AOQL). Note 7: There is a variation in accuracy over time due to thermal effects. Please refer to the "PWM Output and Current Accuracy" section for more information. Note 8: This parameter is production tested at 1A and guaranteed by design at 2A. Note 9: The tolerance of the internal lead frame resistor is corrected internally. The temperature coefficient of this resistor is 2600 ppm/C. www.national.com 4 Supply bypass capacitor is 0.1 F and filter capacitor is Measured Current vs Actual Current (LM3822-1.0) Measured Current vs Actual Current (LM3822-2.0) 10124924 10124925 PWM Frequency vs Supply Voltage PWM Frequency vs Temperature 10124933 10124923 Operating Current vs Supply Voltage Shutdown Current vs Supply Voltage 10124918 10124920 5 www.national.com LM3822 Typical Performance Characteristics 0.1 F. LM3822 Typical Performance Characteristics Supply bypass capacitor is 0.1 F and filter capacitor is 0.1 F. (Continued) Operating Current vs Temperature Shutdown Current vs Temperature 10124919 10124921 Current vs PWM Duty Cycle Accuracy vs Supply Voltage 10124922 10124928 Accuracy vs Temperature (LM3822-1.0) Accuracy vs Temperature (LM3822-2.0) 10124935 10124936 Note 10: These curves represent a statistical average such that the noise is insignificant. www.national.com 6 10124905 FIGURE 1. High Side Sense 10124907 FIGURE 2. Paralleling LM3822 for Higher Load Current ITOTAL = 2.2(D1-0.5)IMAX + 2.2(D2-0.5)IMAX where D1 is the duty cycle of PWM1 and D2 is the duty cycle of PWM2. Please refer to the Product Operation section for more information. 7 www.national.com LM3822 Typical Application Circuits In the application circuits, the 0.1 F ceramic capacitor between pins 1 and 2 is used for bypassing, and the 0.1 F ceramic capacitor between pins 3 and 4 is used for filtering. Shutdown (SD) is tied to VDD through a 10 k resistor. LM3822 Typical Application Circuits In the application circuits, the 0.1 F ceramic capacitor between pins 1 and 2 is used for bypassing, and the 0.1 F ceramic capacitor between pins 3 and 4 is used for filtering. Shutdown (SD) is tied to VDD through a 10 k resistor. (Continued) 10124908 FIGURE 3. High Voltage Operation -- VIN Greater Than 5.5V (High Side Sense) (PWM output is referred to Pin 6) www.national.com 8 The current is sampled by the delta-sigma modulator, as illustrated in Figure 4. The pulse density output of the deltasigma modulator is digitally filtered. The digital output is then compared to the output of a digital ramp generator. This produces a PWM output. The duty cycle of the PWM output is proportional to the amount of current flowing. A duty cycle of 50% indicates zero current flow. If the current is flowing in positive direction, the duty cycle will be greater than 50%. Conversely, the duty cycle will be less than 50% for currents flowing in the negative direction. A duty cycle of 95.5% (4.5%) indicates the current is at IMAX (-IMAX). The IC can sense currents from -IMAX to +IMAX. Options for IMAX are 1.0A or 2.0A. The sense current is given by: ISENSE = 2.2 (D-0.5)(IMAX) where D is the duty cycle of the PWM waveform, and IMAX is the full scale current (1.00A or 2.00A). Similarly, the duty cycle is given by: This is a sampled data system which requires an antialiasing filter, provided by the filter capacitor. The delta-sigma modulator converts the sensed current to the digital domain. This allows digital filtering, and provides immunity to current and noise spikes. This type of filtering would be difficult or impossible to accomplish on an IC with analog components. The user also needs to specify the full scale value. See the Ordering Information table for details. 10124910 FIGURE 4. Functional block diagram of LM3822 9 www.national.com LM3822 D = [ISENSE/(2.2 IMAX)] + 0.5 For quick reference, see the Conversion Table in Table 1. In this IC, the current is averaged over 50 msec time slots. Hence, momentary current surges of less than 50 msec are tolerated. Product Operation LM3822 Noise will also be reduced by averaging multiple readings, and follows the statistical laws of a random variable. PWM Output and Current Accuracy ACCURACY VERSUS NOISE The graph shown in Figure 5 illustrates the typical response of 1 Ampere current gauges. In this graph, the horizontal axis indicates time, and the vertical axis indicates measured current (the PWM duty cycle has been converted to current). The graph was generated for an actual current of 500 mA. The difference between successive readings manifests itself as jitter in the PWM output or noise in the current measurement (when duty cycle of the PWM output is converted to current). OFFSET The PWM output is quantized to 1024 levels. Therefore, the duty cycle can change only in increments of 1/1024. There is a one-half (0.5) quantization cycle delay in the output of the PWM circuitry. That is to say that instead of a duty cycle of N/1024, the duty cycle actually is (N+12)/1024. The quantization error can be corrected for if a more precise result is desired. To correct for this error, simply subtract 1/2048 from the measured duty cycle. The extra half cycle delay will show up as a DC offset of 12 bit if it is not corrected for. This is approximately 1.0 mA for 1.0 Amp parts, and 10 mA for 2.0 Amp parts. The accuracy of the measurement depends on the noise in the current waveform. The accuracy can be improved by averaging several outputs. Although there is variation in successive readings, a very accurate measurement can be obtained by averaging the readings. For example, on averaging the readings shown in this example, the average current measurement is 502.3 mA (Figure 5). This value is very close to the actual value of 500 mA. Moreover, the accuracy depends on the number of readings that are averaged. JITTER In addition to quantization, the duty cycle will contain some jitter. The jitter is quite small (for example, the standard deviation of jitter is only 0.1% for the LM3822-1.0). Statistically the jitter can cause an error in a current sample. Because the jitter is a random variable, the mean and standard deviation are used. The mean, or average value, of the jitter is zero. The standard deviation (0.1%) can be used to define the peak error caused from jitter. The "crest factor" has often been used to define the maximum error caused by jitter. The crest factor defines a limit within which 99.7% of the samples fall. The crest factor is defined as 0.3% error in the duty cycle. Since the jitter is a random variable, averaging multiple outputs will reduce the effective jitter. Obeying statistical laws, the jitter is reduced by the square root of the number of readings that are averaged. For example, if four readings of the duty cycle are averaged, the resulting jitter (and crest factor) are reduced by a factor of two. JITTER AND NOISE Jitter in the PWM output appears as noise in the current measurement. The Electrical Characteristics show noise measured in current RMS (root mean square). Arbitrarily one could specify PWM jitter, as opposed to noise. In either case the effect results in a random error in an individual current measurement. Noise, just like jitter, can be reduced by averaging many readings. The RMS value of the noise corresponds to one standard deviation. The "crest factor" can be calculated in terms of current, and is equal to 3 sigma (RMS value of the noise). www.national.com 10124926 FIGURE 5. Typical Response of LM3822 LOW CURRENT MEASUREMENTS The DC offset of the LM3822-1.0 is typically under 1 mA. This low offset allows accurate low current measurements. Even currents in the 10 mA range can be measured with accuracies typically better than 5%. 10 The following tables show how to convert the duty cycle of the PWM output to a current value, and vice versa. The TABLE 1. Current to Duty Cycle Conversion Table Sense Current (Imax = 1.0A) Sense Current (Imax = 2.0A) Duty Cycle (%) 1 2 95.5 0.95 1.90 93.2 0.90 1.80 90.9 0.85 1.70 88.6 0.80 1.60 86.4 0.75 1.50 84.1 0.70 1.40 81.8 0.65 1.30 79.5 0.60 1.20 77.3 0.55 1.10 75.0 0.50 1 72.7 0.45 0.90 70.5 0.40 0.80 68.2 0.35 0.70 65.9 0.30 0.60 63.6 0.25 0.50 61.4 0.20 0.40 59.1 0.15 0.30 56.8 0.10 0.20 54.5 0.05 0.10 52.3 0.00 0.00 50 -0.05 -0.10 47.7 -0.10 -0.20 45.5 -0.15 -0.30 43.2 -0.20 -0.40 40.9 -0.25 -0.50 38.6 -0.30 -0.60 36.4 -0.35 -0.70 34.1 -0.40 -0.80 31.8 -0.45 -0.90 29.5 -0.50 -1 27.3 -0.55 -1.10 25 -0.60 -1.20 22.7 -0.65 -1.30 20.5 -0.70 -1.40 18.2 -0.75 -1.50 15.9 -0.80 -1.60 13.6 -0.85 -1.70 11.4 -0.90 -1.80 9.1 -0.95 -1.90 6.8 -1 -2 4.5 11 www.national.com LM3822 quantization error of 12 bit is not shown in these tables. Please see the "PWM Output and Current Accuracy" section for more details. Look-Up Tables LM3822 Timing Diagram 10124911 Duty cycle of the PWM waveform during any sampling interval indicates the current magnitude (average) and direction during the previous sampling interval. FIGURE 6. Typical Timing Diagram for Mostly Positive Current www.national.com 12 inches (millimeters) unless otherwise noted 8-Lead MSOP See Ordering Information table for Order Numbers NS Package Number MUA08A National does not assume any responsibility for use of any circuitry described, no circuit patent licenses are implied and National reserves the right at any time without notice to change said circuitry and specifications. For the most current product information visit us at www.national.com. LIFE SUPPORT POLICY NATIONAL'S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS WRITTEN APPROVAL OF THE PRESIDENT AND GENERAL COUNSEL OF NATIONAL SEMICONDUCTOR CORPORATION. As used herein: 1. Life support devices or systems are devices or systems which, (a) are intended for surgical implant into the body, or (b) support or sustain life, and whose failure to perform when properly used in accordance with instructions for use provided in the labeling, can be reasonably expected to result in a significant injury to the user. 2. A critical component is any component of a life support device or system whose failure to perform can be reasonably expected to cause the failure of the life support device or system, or to affect its safety or effectiveness. BANNED SUBSTANCE COMPLIANCE National Semiconductor certifies that the products and packing materials meet the provisions of the Customer Products Stewardship Specification (CSP-9-111C2) and the Banned Substances and Materials of Interest Specification (CSP-9-111S2) and contain no ``Banned Substances'' as defined in CSP-9-111S2. National Semiconductor Americas Customer Support Center Email: new.feedback@nsc.com Tel: 1-800-272-9959 www.national.com National Semiconductor Europe Customer Support Center Fax: +49 (0) 180-530 85 86 Email: europe.support@nsc.com Deutsch Tel: +49 (0) 69 9508 6208 English Tel: +44 (0) 870 24 0 2171 Francais Tel: +33 (0) 1 41 91 8790 National Semiconductor Asia Pacific Customer Support Center Email: ap.support@nsc.com National Semiconductor Japan Customer Support Center Fax: 81-3-5639-7507 Email: jpn.feedback@nsc.com Tel: 81-3-5639-7560 LM3822 Precision Current Gauge IC with Internal Zero Ohm Sense Element and PWM Output Physical Dimensions