LM3824 Precision Current Gauge IC with Internal Zero Ohm Sense Element and PWM Output General Description Key Specifications The LM3824 Current Gauge provides easy to use precision current measurement with virtually zero insertion loss (typically 0.003). The LM3824 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 6 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 LM3824 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 6ms. If a more precise measurement is required, please refer to LM3822 datasheet. n Ultra low insertion loss (0.003) n 2V to 5.5V supply range n 3% accuracy at room temperature for the 1A device (includes accuracy of the internal sense element) n Low quiescent current in shutdown mode (typically 1.8 A) n 6 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 8 mA for 1A part Applications n n n n Battery charge/discharge gauge Motion control diagnostics Power supply load monitoring and management Resettable smart fuse Connection Diagram DS200007-1 Top View LM3824 for High-Side Sensing (c) 2000 National Semiconductor Corporation DS200007 www.national.com LM3824 Precision Current Gauge IC with Internal Zero Ohm Sense Element and PWM Output July 2000 LM3824 Ordering Information Order No.* Sense Range Sampling Interval* Sensing Method NS Package Number Package Type LM3824MM-1.0 1.0A 6 ms High-side MUA08A MSOP-8 Tape and Reel (1000 units/reel) LM3824MMX-1.0 1.0A 6 ms High-side MUA08A MSOP-8 Tape and Reel (3500 units/reel) LM3824MM-2.0 2.0A 6 ms High-side MUA08A MSOP-8 Tape and Reel (1000 units/reel) LM3824MMX-2.0 2.0A 6 ms High-side MUA08A MSOP-8 Tape and Reel (3500 units/reel) 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, LM3824) 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 LM3824 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) 10A Sink Current for PWM pin 1mA Maximum Junction Temperature 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 5A Junction Temperature Range -40C to +85C 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. LM3824-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.97 / 0.95 A (min) 1.03 / 1.05 A (max) 12 mA LM3824-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) Units 1.88 / 1.84 A (min) 2.12 / 2.16 A (max) 2.0 A 36 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 DRES PWM Resolution tS Sampling Time fP VTH 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 0.8 % 6 Frequency of PWM Waveform ms 4 ms (min) 10 ms (max) 160 Threshold High Level for SD Hz 100 Hz (min) 250 Hz (max) 1.3 V 1.8 3 V (min) www.national.com LM3824 Absolute Maximum Ratings (Note 1) LM3824 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 Typ (Note 5) Conditions 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 type apply 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 0.1 F. Measured Current vs Actual Current (LM3824-1.0) Measured Current vs Actual Current (LM3824-2.0) DS200007-24 PWM Frequency vs Supply Voltage DS200007-25 PWM Frequency vs Temperature DS200007-23 DS200007-33 Operating Current vs Supply Voltage Shutdown Current vs Supply Voltage DS200007-20 DS200007-18 5 www.national.com LM3824 Typical Performance Characteristics LM3824 Typical Performance Characteristics Supply bypass capacitor is 0.1 F and filter capacitor is 0.1 F. (Continued) Shutdown Current vs Temperature Operating Current vs Temperature DS200007-19 Current vs PWM Duty Cycle DS200007-21 Accuracy vs Supply Voltage DS200007-22 DS200007-28 Note 10: These curves represent a statistical average such that the noise is insignificant. 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. DS200007-5 FIGURE 1. High Side Sense www.national.com 6 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) DS200007-7 FIGURE 2. Paralleling LM3824 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. DS200007-8 FIGURE 3. High Voltage Operation -- VIN Greater Than 5.5V (High Side Sense) (PWM output is referred to Pin 6) 7 www.national.com LM3824 Typical Application Circuits LM3824 Product Operation The current is sampled by the delta-sigma modulator, as illustrated in Figure 4. The pulse density output of the delta-sigma 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) 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. This is a sampled data system which requires an anti-aliasing 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. where D is the duty cycle of the PWM waveform, and IMAX is the full scale current (1.0A or 2.0A). Similarly, the duty cycle is given by: DS200007-10 FIGURE 4. Functional block diagram of LM3824 www.national.com 8 Offset The PWM output is quantized to 128 levels. Therefore, the duty cycle can change only in increments of 1/128. 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/128, the duty cycle actually is (N+12)/128. The quantization error can be corrected for if a more precise result is desired. To correct for this error, simply subtract 1/256 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 8.0 mA for 1.0 Amp parts, and 80 mA for 2.0 Amp parts. 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 LM3824-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. DS200007-26 FIGURE 5. Typical Response of LM3824 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). Noise will also be reduced by averaging multiple readings, and follows the statistical laws of a random variable. 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 1.0A. 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). The accuracy of the measurement depends on the noise in the current waveform. The accuracy can be improved by av- 9 www.national.com LM3824 eraging 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 0.9989A (Figure 5). This value is very close to the actual value of 1.0A. Moreover, the accuracy depends on the number of readings that are averaged. PWM Output and Current Accuracy LM3824 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 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) www.national.com 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 10 LM3824 Timing Diagram DS200007-11 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 11 www.national.com LM3824 Precision Current Gauge IC with Internal Zero Ohm Sense Element and PWM Output Physical Dimensions inches (millimeters) unless otherwise noted 8-Lead MSOP See Ordering Information table for Order Numbers NS Package Number MUA08A 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. National Semiconductor Corporation Americas Tel: 1-800-272-9959 Fax: 1-800-737-7018 Email: support@nsc.com www.national.com National Semiconductor Europe 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 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. National Semiconductor Asia Pacific Customer Response Group Tel: 65-2544466 Fax: 65-2504466 Email: ap.support@nsc.com National Semiconductor Japan Ltd. Tel: 81-3-5639-7560 Fax: 81-3-5639-7507 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.