LM3814/LM3815 Fast Current Gauge IC with Ultra Low Loss Sense Element and PWM Output General Description The LM3814/LM3815 Current Gauges provide easy to use precision current measurement with virtually zero insertion loss (typically 0.004Ω). The LM3814 is used for high-side sensing and the LM3815 is used for low-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 LM3814 and LM3815 are factory-set in two different current options. The sense range is −1A to +1A or −7A to +7A. The user specifies a particular part number to match the current range for a given application. The sampling interval for these parts is 6ms. If larger sampling interval is desired for better accuracy, please refer to the data sheets for the part numbers LM3812 and LM3813. Key Specifications n Ultra low insertion loss (typically 0.004Ω) n 2V to 5.25V supply range n ± 3.5% accuracy at room temperature (includes accuracy of the internal sense element) (LM3814-1.0, LM3815-1.0) n Low quiescent current in shutdown mode (typically 2.5 µA) n 6 msec sampling interval Features n No external sense element required n PWM output indicates the current magnitude and direction n PWM output can be interfaced with microprocessors n Precision ∆Σ current-sense technique n Low temperature sensitivity n Internal filtering rejects false trips n Internal Power-On-Reset (POR) Applications n n n n Battery charge/discharge gauge Motion control diagnostics Power supply load monitoring and management Resettable smart fuse Connection Diagrams 10101303 10101301 Top View LM3814 for High-Side Sensing © 2005 National Semiconductor Corporation DS101013 Top View LM3815 for Low-Side Sensing www.national.com LM3814/LM3815 Fast Current Gauge IC with Ultra Low Loss Sense Element and PWM Output February 2005 LM3814/LM3815 Ordering Information Order No.# LM3814M-1.0 LM3814MX-1.0 LM3814M-7.0 LM3814MX-7.0 LM3815M-1.0 LM3815MX-1.0 LM3815M-7.0 LM3815MX-7.0 Sense Range Sampling Interval* Sensing Method NS Package Number‡ Package Type Supplied As: ± 1A ± 1A ± 7A ± 7A ± 1A ± 1A ± 7A ± 7A 6 ms High-side M08A SO-8 95 units in Rails 6 ms High-side M08A SO-8 2.5k units on Tape and Reel 6 ms High-side M08A SO-8 95 units in Rails 6 ms High-side M08A SO-8 2.5k units on Tape and Reel 6 ms Low-side M08A SO-8 95 units in Rails 6 ms Low-side M08A SO-8 2.5k units on Tape and Reel 6 ms Low-side M08A SO-8 95 units in Rails 6 ms Low-side M08A SO-8 2.5k units on Tape and Reel ‡ The Package code M08A is internal to National Semiconductor and indicates an 8-lead surface mount package, SO-8. # Suffix M indicates that the part is available in Surface Mount package. Suffix X indicates that the part is available in 2.5k units on Tape and Reel. * 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, LM3814) Pin Description (High-Side, LM3814) Pin Name Function 1 SENSE+, VDD High side of internal current sense, also supply voltage. 2 SENSE− Low side of internal current sense. 3 FLTR+ Filter input — provides anti-aliasing for delta sigma modulator. 4 FLTR− Filter input. 5 SD Shutdown pin. Connected to VDD through a pull up resistor for normal operation. When low, the IC goes into a low current mode (typically 3 µA). 6 PWM PWM output indicates the current magnitude and direction. 7 GND Ground 8 GND Ground Pin Description (Low-Side, LM3815) Pin Description (Low-Side, LM3815) Pin Name Function 1 SENSE+, GND 2 SENSE− Low side of internal current sense. 3 FLTR+ Filter input – provides anti-aliasing for delta sigma modulator. 4 FLTR− Filter input. 5 SD Shutdown pin. Connected to VDD through a pull up resistor for normal operation. When low, the IC goes into a low current mode (typically 3 µA). 6 PWM PWM output indicates the current magnitude and direction. 7 GND Ground 8 VDD VDD (supply) www.national.com High side of internal current sense, also ground. 2 Maximum Junction Temperature If Military/Aerospace specified devices are required, please contact the National Semiconductor Sales Office/ Distributors for availability and specifications. Storage Temperature Absolute Maximum Supply Voltage Input Voltage 1.5 kV Sense Current (peak, for 200 msec) (Note 4) 1 mA Voltage on Pin 5 5.25V 2.0V to 5.25V Sense Current (continuous) (Note 4) 10A Sink Current for PWM pin 260˚C Operating Ratings (Note 1) (Note 2) ESD Susceptibility (Note 3) −65˚C to +150˚C Lead Temperature (Soldering, 10 sec) 5.5V Power Dissipation 150˚C 7A Junction Temperature Range −40˚C to +125˚C Electrical Characteristics LM3814-1.0, LM3815-1.0 VDD = 5.0V 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 at 0.9A current Typ (Note 5) Limit (Note 6) Units 0.868 / 0.850 A (min) 0.932 / 0.950 A (max) 0.9 Effective Output Noise (rms) A 12 mA LM3814-7.0, LM3815-7.0 VDD = 5.0V 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 at 2.5A current (Note 8) Effective Output Noise (rms) Typ (Note 5) Limit (Note 6) Units 2.350 / 2.288 A (min) 2.650 / 2.712 A (max) 2.5 A 120 mA Common Device Parameters Unless otherwise specified, VDD = 5.0V for the following specifications. Supply bypass capacitor is 1µF and filter capacitor is 0.1µF. Symbol IQ1 Parameter Quiescent Current IQ2 Quiescent Current DRES PWM Resolution tS Sampling Time Conditions Normal Mode, SD = high Shutdown Mode, SD = low Typ (Note 5) Limit (Note 6) Units 160 µA (max) 100 µA 2.5 µA 10 fP VTH Frequency of PWM Waveform VTL Threshold Low Level for SD VOH Logic High Level for PWM % 6 ms 4 ms (min) 10 ms (max) 100 Hz (min) 250 Hz (max) 1.8 V (min) 160 Threshold High Level for SD Hz 1.2 V 1.3 Load current = 1mA, 2V ≤ VDD ≤ 5.25V 3 µA (max) 0.8 V 0.7 V (max) VDD − 0.2 V V (min) VDD − 0.05 www.national.com LM3814/LM3815 Absolute Maximum Ratings (Note 1) LM3814/LM3815 Electrical Characteristics (Continued) Common Device Parameters (Continued) Unless otherwise specified, VDD = 5.0V for the following specifications. Supply bypass capacitor is 1µF and filter capacitor is 0.1µF. Symbol Parameter Conditions Typ (Note 5) VOL Logic Low Level for PWM Sink current = 1mA, 2V ≤ VDD ≤ 5.25V 0.04 PI Insertion Loss ISENSE = 1A (Note 9) 0.004 Limit (Note 6) Units V 0.2 V (max) Ω 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= 150˚C/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 150˚C/W for the S08 package. Note 5: Typical numbers are at 25˚C and represent the most likely parametric norm. Specifications in standard type face are for TJ= 25˚C and those with boldface type apply over full operating temperature ranges. Note 6: Limits are 100% production tested at 25˚C. Limits over the operating temperature range are guaranteed through correlation using Statistical Quality Control (SQC) methods. The limits are used to calculate National’s Averaging 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: The PWM accuracy for LM3814-7.0 and LM3815-7.0 depends on the amount of copper area under pins 1 and 2, and the layout. Please refer to the "PWM Output and Current Accuracy" section for more information. Note 9: The tolerance of the internal lead frame resistor is corrected internally. The temperature coefficient of this resistor is 2600 ppm/˚C. Typical Performance Characteristics Supply bypass capacitor is 0.1µF and filter capacitor is 0.1µF. Measured Current vs Actual Current (LM3814-1.0 and LM3815-1.0) Measured Current vs Actual Current (LM3814-7.0 and LM3815-7.0) 10101315 www.national.com 10101324 4 PWM Frequency vs Supply Voltage PWM Frequency vs Temperature 10101317 10101314 Operating Current vs Supply Voltage Shutdown Current vs Supply Voltage 10101318 10101319 Operating Current vs Temperature Shutdown Current vs Temperature 10101320 10101321 5 www.national.com LM3814/LM3815 Typical Performance Characteristics Supply bypass capacitor is 0.1µF and filter capacitor is 0.1µF. (Continued) LM3814/LM3815 Typical Performance Characteristics Supply bypass capacitor is 0.1µF and filter capacitor is 0.1µF. (Continued) Current vs Duty Cycle Accuracy vs Supply Voltage 10101322 10101328 Accuracy vs Temperature (LM3814-1.0 and LM3815-1.0) Accuracy vs Temperature (LM3814-7.0 and LM3815-7.0) 10101329 10101330 Error vs Current (LM3814-1.0 and LM3815-1.0) (Note 10) Error vs Current (LM3814-7.0 and LM3815-7.0) (Note 10) 10101327 10101331 Note 10: These curves represent a statistical average such that the noise is insignificant. www.national.com 6 LM3814/LM3815 Typical Application Circuits In the application circuits, the 0.1µF ceramic capacitor between pins 1 and 8 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 10kΩ resistor. 10101305 FIGURE 1. High Side Sense 10101306 FIGURE 2. Low Side Sense 7 www.national.com LM3814/LM3815 Typical Application Circuits In the application circuits, the 0.1µF ceramic capacitor between pins 1 and 8 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 10kΩ resistor. (Continued) 10101307 FIGURE 3. Paralleling LM3814 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. www.national.com 8 10101308 FIGURE 4. High Voltage Operation — VIN Greater Than 5.25V (High Side Sense) (PWM output is referred to Pin 7) 10101309 FIGURE 5. High Voltage Operation — VIN Greater Than 5.25V (Low Side Sense) 9 www.national.com LM3814/LM3815 Typical Application Circuits In the application circuits, the 0.1µF ceramic capacitor between pins 1 and 8 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 10kΩ resistor. (Continued) LM3814/LM3815 The user should note that, while the LM3814-7.0/ LM3815-7.0 will read 10A full scale, it is rated for 10A operation for a duration of no more than 200 msec, and 7A operation continuously. Product Operation The current is sampled by the delta-sigma modulator, as illustrated in Figure 6. 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 1A or 10A. 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 (1A or 10A). Similarly, the duty cycle is given by: D = [ISENSE/(2.2 IMAX)] + 0.5 In this IC, the current is averaged over 6 msec time slots. Hence, momentary current surges of less than 6 msec are tolerated. 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. When ordering, the user has to specify whether the part is being used for low-side or high-side sense. The user also needs to specify the full scale value. See the Ordering Information table for details. For quick reference, see the Conversion Tables in Table 1 and Table 2. 10101310 FIGURE 6. Functional block diagram of LM3814 and LM3815 www.national.com 10 OFFSET tually the temperature difference reaches steady state, which accounts for the under-damped exponential response. 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+1⁄2)/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 1⁄2 bit if it is not corrected for. An offset of 1⁄2 bit is 8 times larger than for precision mode parts, and results in approximately 8.8 mA for a 1 Amp part is 88 mA for a 7 Amp part. 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 LM3814/15-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. 10101323 FIGURE 7. Transient Response to 7 Amp Step Current ACCURACY VERSUS NOISE The graph shown in Figure 8 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). 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 497.5 mA (Figure 8). 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 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 OF 7A VERSIONS The graph of Figure 7 shows two possible responses to a 7A current step. The flat response shows basically a 7A level with some noise. This is what is possible with a good thick trace and a good thermal connection to the IC on the sense pins. The second trace that asymptotically approaches a higher value shows what can happen under extremely poor thermal conditions. Here a very small wire connects the IC to the current source. The very small wire does not allow heat in the sense resistor to dissipate. Hence, as the sense resistor heats up, a temperature difference between the sense element and the die gets larger, and an error develops. Even- 10101325 FIGURE 8. Typical Response of LM3814-1.0/LM3815-1.0 11 www.national.com LM3814/LM3815 PWM Output and Current Accuracy LM3814/LM3815 quantization error of 1⁄2 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 (Amps)* Duty Cycle (%) Sense Current (Amps)* Duty Cycle (%) 1.00 95.5 -1.00 4.5 0.95 93.2 -0.95 6.8 0.90 90.9 -0.90 9.1 0.85 88.6 -0.85 11.4 0.80 86.4 -0.80 13.6 0.75 84.1 -0.75 15.9 0.70 81.8 -0.70 18.2 0.65 79.5 -0.65 20.5 0.60 77.3 -0.60 22.7 0.55 75.0 -0.55 25.0 0.50 72.7 -0.50 27.3 0.45 70.5 -0.45 29.5 0.40 68.2 -0.40 31.8 0.35 65.9 -0.35 34.1 0.30 63.6 -0.30 36.4 0.25 61.4 -0.25 38.6 0.20 59.1 -0.20 40.9 0.15 56.8 -0.15 43.2 0.10 54.5 -0.10 45.5 0.05 52.3 -0.05 47.7 0.00 50.0 -0.00 50.0 *Maximum Sense Current = 1.0 Amps for LM3814-1.0 and LM3815-1.0 The sense current should be multiplied by 10 for LM3814-7.0 and LM3815-7.0. www.national.com 12 LM3814/LM3815 TABLE 2. DUTY CYCLE TO CURRENT CONVERSION TABLE Duty Cycle (%) Sense Current (Amps) Duty Cycle (%) Sense Current (Amps) 95.5 0.990 50.0 -0.000 92.5 0.935 47.5 -0.055 90.0 0.880 45.0 -0.110 87.5 0.825 42.5 -0.165 85.0 0.770 40.0 -0.220 82.5 0.715 37.5 -0.275 80.0 0.660 35.0 -0.330 77.5 0.605 32.5 -0.385 75.0 0.550 30.0 -0.440 72.5 0.495 27.5 -0.495 70.0 0.440 25.0 -0.550 67.5 0.385 22.5 -0.605 65.0 0.330 20.0 -0.660 62.5 0.275 17.5 -0.715 60.0 0.220 15.0 -0.770 57.5 0.165 12.5 -0.825 55.0 0.110 10.0 -0.880 52.5 0.055 7.5 -0.935 50.0 0.000 5.0 -0.990 *Maximum Sense Current = 1.0 Amps for LM3814-1.0 and LM3815-1.0. The sense current should be multiplied by 10 for LM3814-7.0 and LM3815-7.0. Timing Diagram 10101311 Duty cycle of the PWM waveform during any sampling interval indicates the current magnitude (average) and direction during the previous sampling interval. FIGURE 9. Typical Timing Diagram for Mostly Positive Current 13 www.national.com LM3814/LM3815 Fast Current Gauge IC with Ultra Low Loss Sense Element and PWM Output Physical Dimensions inches (millimeters) unless otherwise noted 8-lead (0.150" Wide) Molded Small Outline Package See Ordering Information table for Order Numbers NS Package Number M08A 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 manufactures products and uses packing materials that 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: [email protected] Tel: 1-800-272-9959 www.national.com National Semiconductor Europe Customer Support Center Fax: +49 (0) 180-530 85 86 Email: [email protected] Deutsch Tel: +49 (0) 69 9508 6208 English Tel: +44 (0) 870 24 0 2171 Français Tel: +33 (0) 1 41 91 8790 National Semiconductor Asia Pacific Customer Support Center Email: [email protected] National Semiconductor Japan Customer Support Center Fax: 81-3-5639-7507 Email: [email protected] Tel: 81-3-5639-7560