WO2010139358A1 - Current measurement in switched mode power supply - Google Patents

Current measurement in switched mode power supply Download PDF

Info

Publication number
WO2010139358A1
WO2010139358A1 PCT/EP2009/056792 EP2009056792W WO2010139358A1 WO 2010139358 A1 WO2010139358 A1 WO 2010139358A1 EP 2009056792 W EP2009056792 W EP 2009056792W WO 2010139358 A1 WO2010139358 A1 WO 2010139358A1
Authority
WO
WIPO (PCT)
Prior art keywords
current
value
values
coefficients
matrix
Prior art date
Application number
PCT/EP2009/056792
Other languages
French (fr)
Inventor
Torbjörn HOLMBERG
Magnus Karlsson
Original Assignee
Telefonaktiebolaget Lm Ericsson (Publ)
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Telefonaktiebolaget Lm Ericsson (Publ) filed Critical Telefonaktiebolaget Lm Ericsson (Publ)
Priority to CN200980159733.7A priority Critical patent/CN102460928B/en
Priority to US13/321,915 priority patent/US8676525B2/en
Priority to PCT/EP2009/056792 priority patent/WO2010139358A1/en
Priority to EP09779617A priority patent/EP2438671B1/en
Publication of WO2010139358A1 publication Critical patent/WO2010139358A1/en

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M3/00Conversion of dc power input into dc power output
    • H02M3/02Conversion of dc power input into dc power output without intermediate conversion into ac
    • H02M3/04Conversion of dc power input into dc power output without intermediate conversion into ac by static converters
    • H02M3/10Conversion of dc power input into dc power output without intermediate conversion into ac by static converters using discharge tubes with control electrode or semiconductor devices with control electrode
    • H02M3/145Conversion of dc power input into dc power output without intermediate conversion into ac by static converters using discharge tubes with control electrode or semiconductor devices with control electrode using devices of a triode or transistor type requiring continuous application of a control signal
    • H02M3/155Conversion of dc power input into dc power output without intermediate conversion into ac by static converters using discharge tubes with control electrode or semiconductor devices with control electrode using devices of a triode or transistor type requiring continuous application of a control signal using semiconductor devices only
    • H02M3/156Conversion of dc power input into dc power output without intermediate conversion into ac by static converters using discharge tubes with control electrode or semiconductor devices with control electrode using devices of a triode or transistor type requiring continuous application of a control signal using semiconductor devices only with automatic control of output voltage or current, e.g. switching regulators
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/25Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M1/00Details of apparatus for conversion
    • H02M1/0003Details of control, feedback or regulation circuits
    • H02M1/0009Devices or circuits for detecting current in a converter

Definitions

  • the present invention generally relates to the field, of switched mode power supplies (sometimes referred to as switch mode supplies or switching mode power supplies ⁇ and more specifically to determination of a current in a switched mode power supply.
  • switched mode power supplies sometimes referred to as switch mode supplies or switching mode power supplies ⁇
  • the switched mode power supply is a well-known type of power converter having a diverse range of applications by virtue of its small size and weight and high efficiency, for example in personal computers and portable electronic devices such as cell phones.
  • An SMPS achieves these advantages by switching a switching element such as a power MOSFET at a high frequency ⁇ usually tens to hundreds of kHz) , with the frequency or duty cycle of the switching being adjusted using a feedback signal to convert an input voltage to a desired output voltage.
  • An SMPS may take the form of a rectifier (AC/DC converter) , a DC/DC converter, a frequency changer (AC/AC) or an inverter (DC/AC) .
  • SMPS can be determined for a number of reasons. For example, the emergence of ever more advanced and computationally intensive signal and communication processing algorithms has fuelled the need for new low-voltage CMOS technology for their implementation. This puts new challenging requirements on the power supply, such as tighter voltage tolerance bands and the ability to provide increased current levels. In order to meet these requirements, it is necessary to improve various aspects of the SMPS' s operation (e.g. current feedback control, detection of continuous and discontinuous conduction modes, current protection and system identification) by increasing the accuracy of the current measurement upon which these rely. Accurate current measurement also enables accurate diode emulation in synchronous rectified power converters, thus improving their low load efficiency.
  • current feedback control detection of continuous and discontinuous conduction modes, current protection and system identification
  • FIG. 1 is a simplified circuit diagram of a switched mode DC/DC power supply 10 which converts an input voltage V in to a desired output voltage V 0ut .
  • the power supply 10 comprises an inductor 20, a capacitor 30, a diode 40, a power transistor 50 and a pulse- width modulating (PWM) controller 60.
  • the PWM controller applies voltage pulses 70 at an appropriate frequency (e.g. 30 kHz) to the gate of the power transistor 50.
  • the PWM controller regulates the output voltage V out by adjusting the duty cycle D of the pulses
  • the current (!) in the inductor 20 varies with time (t) in a generally saw-tooth manner as shown in Fig. 5, increasing from a minimum value I min to a maximum value I max during a period DT 3 when the transistor is switched OW, before decreasing to I min during a period (1-.D) T s when the transistor is switched OFF.
  • the PWM controller 60 repeatedly measures the current a number of times during a switch period T s and calculates a current value using samples obtained during the GN-period DT 3 or OFF- period (1-D)T S .
  • the switching of the transistor can cause transients which introduce errors in the current values measured shortly after a transition from an ON-period to the following OFF-period or from an OFF-period to the next ON-period. For this reason, it is preferable to disregard the samples obtained in a blanking period T 3 immediately following a transition when performing a current calculation.
  • the calculation is based on a number of measured current sample values which are obtained over a time (1-D) T S -T B during the OFF-period.
  • Embodiments of che present invention make use of least squares regression for estimating the current. This statistical method has the advantage of simplicity and the existence of an explicit soiut ion .
  • linear least squares regression for estimating the current in the inductor makes it possible to use a trade-off Detween the oversampling ratio (that is, the ra ⁇ io of the sampling frequency to che switching frequency) and the number of bits in the current ADC, and improves the accuracy of the measurements.
  • the operations are data-independent and are suitable for implementation in hardware, software or a mixture of hardware and software.
  • an efficient algorithm for computing the linear least squares regression is provided. In fact, tests have shown that after only 1 or 2 iterations the calculated result has the same accuracy as the best existing statistical method.
  • outliers will affect the 5 result.
  • embodiments of the present invention employ an algorithm which may be run several times, iteratively. It neutralizes to a great extent the effect of outliers assuming the outliers are few relative the total number of measured data.
  • the algorithm is highly suitable 10 for hardware implementation since it is data-independent and uses only easily implenientable operations. It is also pipelineable and possible to parallelize to a great extent in order to reach the high throughput requirements .
  • the method according to an embodiment described herein below has the advantage of avoiding inverse matrix calculations, which could be an ill-conditioned operation that is complex and computationally intensive.
  • the method has an advantage over fast least absolute deviation algorithms, an example of which is discussed in VV A Maximum Likelihood Approach to Least Absolute Deviation Regression" by L. Yinbo and R. A. Gonzalo (EURASIP Journal on Applied Signal Processing 2004:12, Pp. 1762-1769, Hindawi
  • 30 embodiment of the present invention avoids the sorting of data, which is a data-dependent algorithm that is hard to handle in hardware implementation due to the unpredictable number of operations required.
  • an estimated current is calculated using the equation of the line and the calculated initial values of Lhe coefficients; a difference is determined between the measured current value j 5 and the estimated current value to generate a difference value, and the difference value is compared against a threshold and, if tne difference value is greater than the threshold, updated values of the coefficients are calculated using the stored values
  • a value for tne current m the switched mode power supply is determined using the updated values of the coefficients.
  • the present invention also provides an apparatus for calculating a ./5 current m a switched mode power supply
  • the apparatus comprises a current calculator configured to determine a current in. the switched mode power supply using linear least squares to fit a line defined by an equation having at least two coefficients to measured current values, the coefficients of the line being
  • the current calculator is configured to receive measured current values, each value defining the current flowing in the switched mode power supply at a different ⁇ _ime ; use the stored values representing the matrix A and the received measured current values to calculate a respective initial value for each of the coefficients of the line,- for each measured current value : calculate an estimated current using the equation of the line and the calculated initial values of the coefficients; determine a difference between the measured current value and the estimated current value to generate a difference value; and compare the difference value against a threshold and, if the difference value is greater than the threshold, calculate updated values of the coefficients using the stored values representing the matrix A and the difference value; and determine a value for the current in the switched mode power supply using the updated values
  • the present invention also provides a switched mode power supply having an apparatus to calculate the current therein as set out above .
  • the present invention further provides a computer program product comprising a computer-readable storage medium or a signal carrying computer program instructions which, if executed by a processor, cause the processor to perform a method as set out above.
  • FIG. 1 is a schematic of a conventional switched mode DC/DC power suppIy
  • Fig. 2A is a schematic of a switched power supply according to an embodiment of the present invention.
  • Fig. 2B shows the components of the signal processing unit shown in Fig. 2A;
  • Fig, 3 is a Bode diagram illustrating the effect of errors in the electrical component values of the embodiment
  • Fig. 4 is a schematic showing the voltage across and current in the inductor of Fig. 2A during a switch period;
  • Fig. 5 is an illustration of the current waveform and control signals over a switch period
  • Figs. 6 and 7 are flowcharts showing the processing operations performed m the embodiment to calculate the current m an SMPS
  • Fig. 8 is m a plot of the standard deviation in the calculated current values versus duty cycle for the embodiment
  • Fig. 9 is a plot of the standard deviation in the calculated current values as a function of the ADC resolution and overBampling ratio for the embodiment.
  • Fig. 10 illustrates how the accuracy of the calculated current in the embodiment changes as the number of iterations of the calculation algorithm changes.
  • FIG. 2A is a schematic of a switched mode DC/DC power supply 100 according to a first embodiment of the present invention.
  • the power supply includes transistors SWl and SW2 which are preferably power MOSFETs.
  • the switching of transistors SWl and SW2 is controlled by a PWM controller 110.
  • the PWM controller 110 is conf ⁇ g ⁇ red to apply voltage pulses preferably at a frequency m 5 the range between 20 kHz and 1 MHz to the gates of transistors SWl and SW2 , and to vary the duty cycle of the switching m response to a feedback signal received from a signal processing unit 140
  • a frequency- modulating controller (not shown) can be used, which modulates the
  • the source terminal of transistor SWl is connected to a DC voltage l ⁇ e at V 1n wnile the source of transistor SW2 is connected to a reference point such as earth
  • the dram of each transistor is connected to an output filter, whicn in this example comprises an
  • DCR intrinsic DC resistance
  • This square wave can De removed witn an RC circuit, comprising a resistor 150 of resistance R m series with a capacitor 160 of capacitance C, which is connected m parallel with the inductor as shown m Fig. 2A.
  • V c (s) R L i L (s) ⁇ qn. 2
  • the zero/pole cancellation is sensitive to component variations, which is illustrated by the following design example.
  • the resistance should be large enough in order to avoid large additional power losses.
  • the zero/pole cancellation sensitivity is illustrated using standard tolerances of 20 percent for the inductor and capacitor, and 1 percent tolerance for the resistor.
  • the resulting maximum and. minimum variations in the magnitude of impedance R ⁇ (s) (in dB ⁇ ) and the corresponding maximum and minimum phase variations are shown in the Bode diagram in Fig. 3.
  • the power supply 100 includes a sampler 170 for obtaining samples of a voltage (here, the voltage difference V c ) which is related to a current flowing in the SMPS, for input to the signal processing unit 140.
  • the sampler 170 comprises a differential amplifier 180 for amplifying the voltage difference V c and an analog-to-digital converter (ADCj 190 for digitizing the signal input thereto by the differential amplifier 180. Since the inputs of the differential amplifier have the (potentially high) output voltage V out as reference, it is preferable that the differential amplifier has a high common mode rejection ratio (CMRR) .
  • CMRR common mode rejection ratio
  • the amplifier 180 is preferably designed for the following maximum current :
  • I D c ma x is the ⁇ xi ⁇ u ⁇ current that the inductor/converter should continuously deliver
  • ⁇ head r oom gives a head room for current transients, e.g. 50% of I DCmax .
  • Equation 6 needs to be computed for the used input and output voltage ranges in order to find the maximum ripple current - ⁇ ⁇ pplepk -pic ⁇
  • the ADC 190 is configured to digitize the signal input thereto to generate sample current values each representing the current flowing in the inductor at a different time.
  • the ADC has a resolution of N bits, where N is selected having regard to the competing requirements for N to be small in order to ensure that the digitization time of each sample is sufficiently small for che selected sampling rate on the one hand and, on the other, for N to be large in order to minimise the ADC quantization noise, which will increase che uncertainty of the current measurement. If the ADC has N bits and a symmetric input range ⁇ -V R ,V R ⁇ is assumed, the quantization step becomes:
  • the maximum quantization error is Q/2.
  • the ADC 190 may sample continuously or in bursts whose timing and duration are controlled by the controller 110, thus allowing the sampler 170 to output current sample values obtained during the whole of period r s or only a specific portion thereof. Signals representing the measured current values are fed from the ADC 190 to the signal processing unit 140 connected thereto.
  • the differential amplifier 180 and ADC 190 can readily be implemented m hardware in a form that meets the requirements of a particular SMPS by those skilled in the art, such that a further detailed description of these components and other related design criteria is unnecessary.
  • Figure 2B shows the configuration of the signal processing unit 140.
  • the signal processing unit 140 comprises a processor 141, and an instruction store 142 storing computer- readable instructions which, when executed by the processor 141 cause the processor 141 to perform the processing operations hereinafter described to calculate a current value.
  • the instruction store 142 may comprise a ROM which is pre-loaded with the computer-readable instructions.
  • the instruction store 142 may comprise a RAM or similar type of memory, and the computer readable instructions can be input thereto from a computer program product, such as a computer-readable storage medium 146 such as a CD-ROM, etc. or a computer-readable signal 147 carrying the computer-readable instructions .
  • the signal processing unit 140 further comprises a matrix store 143 for storing one or more pre-computed matrices, as described below, that are used in the current calculation, and a working memory 144 for storing input current samples values and data during computation.
  • the signal processing unit 140 also includes an input/output section 145 for receiving measured current values and ouuputting a value for a current calculated by the processor, for example, an estimated maximum current I max in the inductor, an estimated minimum current I m ⁇ n or an average of I jJj3x and I m ⁇ n .
  • the calculated current can be used by the controller 110, as required, for feedback control, detection of continuous and discontinuous conduction modes, current protection etc.
  • differential amplifier 180, the ADC 190 and the signal processing unit 140 are shown in Fig. 2A as separate components, one or more of these components may be implemented in a single integrated circuit (IC), which may form part of the IC of the controller 110.
  • IC integrated circuit
  • a single IC may provide Che functionality of the controller 110, signal processing unit 140, and optionally the ADC 190. Accordingly, this single IC can be manufactured and sold separately from the remaining components of the switched mode power supply.
  • the processor 141, instruction store 142 and working memory 144 together constitute a current calculator 148 for determining a current value in the SMPS.
  • the processing operations performed by the current calculator 148 xn the present embodiment to calculate a current value for the switched mode power supply will now be described with reference to Figs . 5-7.
  • a typical current waveform i ⁇ t) and control signals are shown schematically m Fig 5.
  • the signal labelled “PWM” illustrates voltage pulses applied by PWM controller 110 to transistor SWl
  • w ⁇ i Ie the sigral labelled "Blank” illustrates a blanking signal
  • wmch may be used by the current calculator 148 to exclude one or more measured current values from among the received measured current values for its calculation of a current estimate m the SMPS.
  • the blanking signal may be generated by the controller 110 or internally by the current calculator.
  • the power circuit may require the use of a blanking period T B That is, samples obtained during this period are preferably not used since they may be rendered statistically insignificant by the switch noise
  • the dead times during transitions from che ON-period to the OPF-pe ⁇ od may introduce errors in the current measurement which cause the currenu co deviate from the ideal triangular waveform.
  • the oversampling ratio is M.
  • M current samples are obtained per switch period T 3 .
  • w n denotes the sample index.
  • the numbering starts with 0 for the first used sample, which in Fig. 5 is the first sample to appear m the time sequence after the ON period and the following blanking period T B , have elapsed.
  • samples obtained during the OPF-period are preferably used m the calculation, which is described below with reference to Figs. 6 and 7.
  • the number of the unused samples in the switch period is then given by.
  • the last sample index is M-n g -l, and the duty cycle in terms of the number of samples (m other words, the number of samples in an
  • samples outside the blanking periods in both the ON-period and the OFF-period may be used for computing current estimates. For a certain duty cycle range, these estimates can be combined by averaging to decrease the uncertainty, as will be explained below.
  • Hn is linear in n in the present embodiment
  • Hn may more generally be expressed as the sum of a constant and one or more terms each being a different function of n (e.g. a second degree polynomial m n) and thus define a line which need not be straight.
  • a "line” as referred to herein is defined by an equation having at least two coefficients, and thus encompasses both a straight: line as defined by Eqn. 11 and lines which are not straight (that is, curved) .
  • i (n) should be linear in the coefficients c.
  • the A matrix is commonly referred to as the Moore- Penrose pseudoinverse of X.
  • the current calculator 148 may be configured to vary the blanking time T n in response to a change m the duty cycle D such that M- n s , and thus che size of the X and A matrices required, does not change.
  • T B is set to a fixed value which is chosen to be substantially equal to the duration of the switch noise, thus ensuring that only the samples which are likely to be erroneous are excluded, in order to maximise the number of samples used in the calculation.
  • the duration of the switch noise is affected by the power train components, the PCB layout, and the input and output voltages.
  • T B has the advantage of allowing better estimates of the fitting parameters C 0 and C 1 to be found.
  • a number less than M/2 of different A matrices have to be pre-calculated and stored in the matrix store 143. It is a significant advantage of the present embodiment that the A matrix is pre-calculated for subsequent use, since these calculations involve the finding of an inverse of a matrix, which could be ill-conditioned numerically.
  • Proper methods with full precision for calculating the different A matrices are preferably used when pre-computing the set of A matrices .
  • the least squares algorithm is highly sensitive to outliers.
  • Q is the quantization step in the ADC.
  • the current is not exactly affine with time as the voltage in the capacitor is not exactly constant. Simulations show that it is advantageous to treat a sample value having a deviation of at least 2Q an outlier, i.e.
  • step Sl values representing a plurality of pre-calculated matrices A are scored in matrix store 143.
  • the values are calculated using an assumed model i (n) for the current shape (e.g. Eqn. 11) .
  • Each of the A matrices has a different size such that it may be multiplied by a current vector I m having the corresponding size (i.e. number of elements for holding measured current values) ,
  • the matrix element values may be calculated by the current calculator or computed externally and input to the signal processing unit.
  • the current calculator 148 receives measured current values from the sampler 170, each received value representing the current flowing m the SMPS at a different time during a switch period of the SMPS.
  • the received values are obtained by the sampler 170 operating in burst mode and thus correspond to current values measured during only a portion of a switch period T 3 . More specifically, since in the present embodiment D is smaller than 50% and it is preferable to disregard the sample values obtained during the blanking period T fl immediately following an ON-OFP transition, the sampler obtains sample values only during the period (l ⁇ D)T ⁇ ⁇ T B immediately preceding the following OFF-ON transition.
  • the current calculator may receive sample values ODtamed by the sampler 170 only during the period DT S -T B immediately preceding an ON-OFF transition.
  • the sarrpler may sample during both the ON-period and OFF -period, or only portions of each period and provide the current calculator with corresponding sets of sample values.
  • the sampler may obtain samples during consecutive switch periods or during intervals which are separated by one or more switch periods.
  • the received sample values are stored m an array I m m working memory 144
  • the sampler 170 may sample in continuous mode to continuously obtain measured current values each representing a current flowing in the SIMPS (that is, the current m the inductor 120 m the embodiment of Fig 2A) at a different time
  • the current calculator 148 may select only a portion of the receive ⁇ values, which were obtained during a switch period For example, if D is smaller than 50% and it is preferable to disregard the sample values obtained during tne blanking period T B following an ON-OFF transition, the current calculator may select values only during the period [1-D)T 8 -T 3 immediately preceding the following OFF-ON transition.
  • the current calculator may select sample values obtained by the sampler only during the period DT 8 -T 5 immediately preceding an ON- OFF transition.
  • the current calculator may select values obtained during both the 0N-period and OFF-pe ⁇ od or only portions of each said period
  • the selected sample values m these alternative embodiments are stored m an array I m in working memory 144
  • an A matrix is selected by the current calculator 148 from among the plurality of A matrices stored m matrix store 143.
  • the selection is performed m dependence on the number of measured current values in the current array I m . More particularly, m order to calculate the coefficient vector c by evaluating the product of matrix A and the current vector I m , the current calculator selects an A matrix which has the correct dimension for the particular current array I m obtained from the received sample values. As can be seen from Eqns . 9, 13 and 14, the relevant dimension of A is, in the present embodiment, a function of M 1 D, T B and T s . Naturally, if only one pre-calculated A matrix is stored, step S3 can be omitted.
  • step S4 the current calculator performs a least squares calculation to find an initial vector of the coefficients c initia ⁇ which has as its elements the initial values for coefficients C 0 and C 1 , which are denoted C 0 x and C 1 2 , respectively.
  • These initial values are calculated using the values which represent the selected matrix A and the measured current values m the current array J m , namely by evaluating the product AI 1n .
  • step SS a counter u y", which serves as an index for the elements of the current array I m is set equal to 1.
  • step S6 an estimated value for the current ( ⁇ es t ⁇ at a ti me corresponding to sample index y is evaluated using the equation of the line i(n) given by Eqn. 11 together with the calculated initial values of the coefficients, C 0 ⁇ 1 and c ltl .
  • I est c C ⁇ l
  • I est c 0/1 + C 1 1
  • I egt c 0#I + (M - n B ) c l ⁇ 2 .
  • step S8 the difference value e is compared against a threshold e ⁇ (where e ⁇ > 0) , which in this embodiment is set to 2Q in accordance with Eqn. 15. If the difference value is greater than the threshold, then, m step S9, the sample I m ⁇ y) is identified as an outlier and updated values of the coefficients are calculated using the stored values representing the selected matrix A and the difference value e.
  • the logic statement: (e > e ⁇ ) OR (e ⁇ ⁇ e ⁇ ) is evaluated and, if the statement is true (that is, if either inequality is satisfied) , updated values for the coefficients are calculated using the stored values representing the selected matrix A and the difference value e.
  • the updated values of coefficients c 0 and C 1 are denoted C 0 2 and C 1 2 , respectively, and may be calculated by first creating a copy of the initial coefficient vector cini t ial calculated in step S4
  • An updated vector c t having as its elements updated values of the coefficients, i.e c o r2 an ⁇ ⁇ c l 2 ⁇ ma y then be calculated by subtracting from the copy of c initial the product of the y th column of matrix A and the difference e.
  • tn is way, the adverse effect of the outlier sample value on the calculated values of the fitting coefficients is quickly and effectively mitigated, notably without recalculating matrix A or repeating the least squares calculation.
  • step S9 it is preferable tnat m addition to updated values of the coefficients being calculated, the said sample value is replaced with tne corresponding estimated current value.
  • Dy replacing the y tfl sample value m I m with the estimated value or, as m the present embodiment, by creating a copy of I m , the copy oemg denoted I mcorr , and replacing the y th sample value in I mcorr w- th the corresponding estimated current value.
  • the current calculator stores m working memory 144 an indication or record that the y t ⁇ r - sample value is an outlier, meaning that it has a difference value which is greater than the threshold.
  • an outlier array of the same length (that is, the same number of elements) as I m may be used, with the y th element of the outlier array being set to a first value (e.g. 1) if the y th value in I n , is identified as an outlier.
  • step S8 if it is determined in step S8 that the difference value for the sample value in the y cl ' element of the I n , array is not greater than the threshold then, in step SlO, a second value, such as zero, is stored so that the sample value is identified as a non-outlier.
  • the indication or record may be set initially to hold default values of 0 which are changed to 1 in step S9 for outliers, with the result that step SlO can then be omitted as the 0 values are already present in the indication or record.
  • step SIi it is determined whether the counter value y is smaller than the number of elements in the array I m . If so, y is incremented by 1 in step S12 and steps S5 to SIl are repeated. However, if y is the same as the length of the current array I m , such that all of the elements in the I m array have been processed, the loop terminates. In this way or by applying another suitable condition at step SIl (e.g. is y equal to the length of the I m array? If not, increment y by 1 at step 12, else terminate the loop) , steps S6 to SIl are performed for each of the sample values in the I m array. Once all the repetitions of steps S6 to SIl have been processed an updated set of coefficient values, which have been corrected for all outlier values in the original I n , array, is obtained .
  • the calculation of improved estimates for the coefficients and the outlier estimate replacement can be performed iteratively.
  • the performance of steps similar to steps S6 to SIl for each of the values of y which yields a better estimate of c than c inltial , can be performed and in the following iteration, the determination of whether a sample value is an outlier (and the subsequent further correction of c to yield a further improved estimate for c and replacement of outlier current values with corresponding estimates) is performed using the estimate for c obtained in the previous iteration.
  • each iteration yields a least squares estimate computed on the data having modified outliers.
  • it is preferable that the process proceeds to step S13 in Fig. 7 after all of the samples values in I m have been processed, so that at least one further iteration is performed.
  • an iteration counter z is set to the value 1.
  • a counter "y" which serves as an index for the elements of the current array I mcorr ⁇ is set equal to i.
  • step S17 it is determined whether the value r mcc , rr (y) is a replacement value and, if not, the second difference value e 2 is compared against a second threshold e T2 (where e T2 > 0) , which in this example is set to 2Q in accordance with Eqn. 15. However, it is noted that e ⁇ and e T2 may or may not be the same.
  • step S18 If the value I mcoX y ⁇ y) is identified as a replacement value (which may be done efficiently simply by checking the corresponding entry in the outlier array) or the second difference value is greater than the second threshold, further-updated values of the coefficients are calculated in step S18 using the stored values representing the selected A matrix and the second difference value e 2 .
  • step S19 the process proceeds to step S19.
  • the further-updated values of coefficients C 0 and C 1 are denoted C 0 3 and C 1 3 , respectively, and may be calculated by first creating a copy of the updated coefficient vector c ⁇ pdt obtained at the end of the process shown in Fig. 6.
  • a further-updated vector c L' p dt2 having as its elements updated values of the coefficients, i.e. c 0 3 and C 1 3 may then be calculated by subtracting from the copy of c updt the product of the y th column of the A matrix and the second difference value e 2 .
  • the adverse effect of any samples values which are identified as outliers to the line defined by the updated values of the coefficients, c updt , but which were not outliers to the line defined by c initial is guickly and effectively mitigated, notably without recalculating matrix A or repeating the least squares calculation.
  • the second difference value is greater than the second threshold or if the value I racorr ⁇ y) is identified, as a replacement value, it is preferable that in addition to further-updated values of the coefficients being calculated, the said sample value I mcorr (y) is replaced with the corresponding second estimated value l est2 . This may be done by replacing the y th sample value in I mcorr with the second estimated value or by creating a copy of I mcorr and replacing the y th sample value in the copy of I jj , ⁇ orr with the corresponding second estimated value.
  • step 819 the current calculator determines whether the current counter value y is smaller than the number of elements in the array I mcorr - If so, y is incremented by 1 in step S20 and steps S15 to S19 are repeated. However, if y is the same as the length of the current array ⁇ mcorr , such that all of the elements in the I m ⁇ or ⁇ . array have been processed, the loop terminates. In this way or by applying another suitable condition at step S19 (e.g. is y equal to the length of the I mcorr array? If not, increment y by I 1 else go to step S21) , steps S15 to S19 are performed for each of the sample values in the J mcorr array. Once the all the repetitions of seeps S15 to S19 have been processed, a further- updated set of coefficient values, c u ⁇ dt2 ' which have been corrected for all outlier values in the I j ⁇ corr array, is obtained.
  • step S21 the current calculator 148 determines if the iteration counter z has reached a pre-determined limit z ma ⁇ l which in the present embodiment is 2 but could more generally be any integer greater than 1. If 2 has not reached the p re -determined value, in step S22 the iteration counter z is incremented by 1 and steps S3.4 to S21 are then repeated. However, if z is equal to the predetermined limit, the process proceeds to step ⁇ 23.
  • a value for the current in the SMPS for example the maximum current, minimum current and/or an average current, is calculated using the most up-to-date values of the coefficients which have been calculated. Since the current attains its maximum and its minimum at times which are outside the measuring periods m the present embodiment, extrapolation has to be used. The extrapolation for the minimum current is only one sample period, thus
  • the DC current is equal to the average of the minimum and maximum currents, I m ⁇ n and I max, due to the triangular current wave form, and hence is expressed as
  • the BC current estimate is a weighted sum of current samples, the error in the estimate becomes approximately normally distributed according to the central limit theorem provided the number of current samples is sufficiently large.
  • the peak current calculations can be used for improvement of the converter's low load efficiency by turning OFF transistor SW2 when the current becomes negative, i.e., diode emulation which enables discontinuous conduction mode.
  • Figure 8 is a plot of the standard deviation m the calculated values of the current as a function of the duty cycle, obtained in a simulation.
  • the input voltage is a constant 12 V and the duty cycle is swept from 20 to 80 percent.
  • Figure 10 is a plot of the standard deviation m current estimates calculated without outlier
  • the current calculator ⁇ 48 comprises a programmable processing apparatus 5 having a processor 141 which performs the current calculation operations in accordance with software instructions stored m instructions store 142.
  • the current calculator may Joe configured otherwise.
  • current calculator 148 may comprise non-programmable hardware 0 (e g an ASIC) dedicated to performing the current calculations
  • steps S6 to SlO are performed iteratively for each sample T n Ay) in the I m array such that the steps are performed for one sample before they are performed for the next sample.
  • step S6 may be performed for all samples, followed by step S7 for all samples, followed by step S8 for all samples, etc.
  • steps S15 to S18 are performed for each sample before they are performed for the next sample.
  • step S15 may be performed for all samples, followed by step ⁇ 16 for all samples, followed by step S17 for all samples, etc .

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Dc-Dc Converters (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

A method of determining a current in a switched mode power supply is described. The method uses linear least squares to fit a line defined by an equation having at least two coefficients to measured current values, the coefficients of the line being obtained using the relationship c = AIm, where c is a vector of the coefficients, lm is a vector of the measured current values and A is a matrix relating c to Im. The method comprises: storing (S1) values representing at least one pre-calculated matrix A; receiving (S2) measured current values; and using the stored values representing the matrix A and the received current values to calculate (S4) a respective initial value for each of the coefficients of the line. The method further comprises, for each measured current value: calculating (S6) an estimated current using the equation of the line and the calculated initial values of the coefficients; determining (S7) a difference between the measured current value and the estimated current value to generate a difference value,- and comparing (S8) the difference value against a threshold and, if the difference value is greater than the threshold, calculating (S9) updated values of the coefficients using the stored values representing the matrix A and the difference value. A value for the current in the switched mode power supply is determined using the updated values of the coefficients.

Description

Current Measurement in Switched Mode Power Supply
[Technical Field]
The present invention generally relates to the field, of switched mode power supplies (sometimes referred to as switch mode supplies or switching mode power supplies} and more specifically to determination of a current in a switched mode power supply.
[Background]
The switched mode power supply (SMPS) is a well-known type of power converter having a diverse range of applications by virtue of its small size and weight and high efficiency, for example in personal computers and portable electronic devices such as cell phones. An SMPS achieves these advantages by switching a switching element such as a power MOSFET at a high frequency {usually tens to hundreds of kHz) , with the frequency or duty cycle of the switching being adjusted using a feedback signal to convert an input voltage to a desired output voltage. An SMPS may take the form of a rectifier (AC/DC converter) , a DC/DC converter, a frequency changer (AC/AC) or an inverter (DC/AC) .
It is desirable to increase the accuracy with which current in a
SMPS can be determined for a number of reasons. For example, the emergence of ever more advanced and computationally intensive signal and communication processing algorithms has fuelled the need for new low-voltage CMOS technology for their implementation. This puts new challenging requirements on the power supply, such as tighter voltage tolerance bands and the ability to provide increased current levels. In order to meet these requirements, it is necessary to improve various aspects of the SMPS' s operation (e.g. current feedback control, detection of continuous and discontinuous conduction modes, current protection and system identification) by increasing the accuracy of the current measurement upon which these rely. Accurate current measurement also enables accurate diode emulation in synchronous rectified power converters, thus improving their low load efficiency.
Known current estimation methods employed in an SMPS in the form of a switched mode DC/DC power supply will now be described with reference to Figs . 1 and 5.
Figure 1 is a simplified circuit diagram of a switched mode DC/DC power supply 10 which converts an input voltage Vin to a desired output voltage V0ut. The power supply 10 comprises an inductor 20, a capacitor 30, a diode 40, a power transistor 50 and a pulse- width modulating (PWM) controller 60. The PWM controller applies voltage pulses 70 at an appropriate frequency (e.g. 30 kHz) to the gate of the power transistor 50. The PWM controller regulates the output voltage Vout by adjusting the duty cycle D of the pulses
(defined by D = T0N/T8, where T0N is the duration of a pulse and T3 is the switch period) on the basis of a feedback signal which is obtained from a measurement of the current in the inductor. In the example of Fig. 1, the current is measured using resistor 80.
In this arrangement, the current (!) in the inductor 20 varies with time (t) in a generally saw-tooth manner as shown in Fig. 5, increasing from a minimum value Imin to a maximum value Imax during a period DT3 when the transistor is switched OW, before decreasing to Imin during a period (1-.D) Ts when the transistor is switched OFF. The PWM controller 60 repeatedly measures the current a number of times during a switch period Ts and calculates a current value using samples obtained during the GN-period DT3 or OFF- period (1-D)TS. However, the switching of the transistor can cause transients which introduce errors in the current values measured shortly after a transition from an ON-period to the following OFF-period or from an OFF-period to the next ON-period. For this reason, it is preferable to disregard the samples obtained in a blanking period T3 immediately following a transition when performing a current calculation. In the present example, the calculation is based on a number of measured current sample values which are obtained over a time (1-D) TS-TB during the OFF-period.
Having obtained the current samples, it is then necessary to process them to calculate an overall current value. A number of known techniques exist for doing this. For example, the use of the statistically robust median value of sampled current values for current protection is described in "ZL2005 Current Protection and Measurement" (Zilkerlabs Application Note ANl5, www.zilkerlabs.com}, where a digital filter is used for increasing the accuracy of current monitoring over the PMBus . However, this method introduces an offset error that varies with the blanking time and the duty cycle. Hence, the accuracy and latency of this method is not very good.
[Summary of the Invention]
Embodiments of che present invention make use of least squares regression for estimating the current. This statistical method has the advantage of simplicity and the existence of an explicit soiut ion .
The use of linear least squares regression for estimating the current in the inductor makes it possible to use a trade-off Detween the oversampling ratio (that is, the raπio of the sampling frequency to che switching frequency) and the number of bits in the current ADC, and improves the accuracy of the measurements. In the embodiments, the operations are data-independent and are suitable for implementation in hardware, software or a mixture of hardware and software. Furthermore an efficient algorithm for computing the linear least squares regression is provided. In fact, tests have shown that after only 1 or 2 iterations the calculated result has the same accuracy as the best existing statistical method.
In the least squares regression algorithm outliers will affect the 5 result. In order to reduce the influence of outliers, embodiments of the present invention employ an algorithm which may be run several times, iteratively. It neutralizes to a great extent the effect of outliers assuming the outliers are few relative the total number of measured data. The algorithm is highly suitable 10 for hardware implementation since it is data-independent and uses only easily implenientable operations. It is also pipelineable and possible to parallelize to a great extent in order to reach the high throughput requirements .
3.5 The method according to an embodiment described herein below has the advantage of avoiding inverse matrix calculations, which could be an ill-conditioned operation that is complex and computationally intensive.
20 In addition, the method has an advantage over fast least absolute deviation algorithms, an example of which is discussed in VVA Maximum Likelihood Approach to Least Absolute Deviation Regression" by L. Yinbo and R. A. Gonzalo (EURASIP Journal on Applied Signal Processing 2004:12, Pp. 1762-1769, Hindawi
25 Publishing Corp.) . These algorithms are iterative and each iteration involves computing the weighted median, which essentially requires the sorting of weighted data. In addition, in these schemes the number of iterations needed for the required accuracy is unknown. In contrast thereto, the method of an
30 embodiment of the present invention avoids the sorting of data, which is a data-dependent algorithm that is hard to handle in hardware implementation due to the unpredictable number of operations required.
35 According to the present invention, a current in a switched mode power supply is determined using linear least squares to fit a line defined by an equation having at least two coefficients to measured current values, the coefficients of the line being obtained using the relationship c = AIn,, where c is a vector of the coefficients, Im is a vector of the measured current values b and A is a matrix relating c to Im Values representing at least one pre-calculated matrix A are stored, and measured current values are received, each value representing the current flowing m the switched mode power supply at a different time The stored values representing the matrix A and the received measured current ^O values are used to calculate a respective initial value for each of the coefficients of the line. For each measured current value: an estimated current is calculated using the equation of the line and the calculated initial values of Lhe coefficients; a difference is determined between the measured current value j 5 and the estimated current value to generate a difference value, and the difference value is compared against a threshold and, if tne difference value is greater than the threshold, updated values of the coefficients are calculated using the stored values
20 representing the matrix A and the difference value. A value for tne current m the switched mode power supply is determined using the updated values of the coefficients.
The present invention also provides an apparatus for calculating a ./5 current m a switched mode power supply The apparatus comprises a current calculator configured to determine a current in. the switched mode power supply using linear least squares to fit a line defined by an equation having at least two coefficients to measured current values, the coefficients of the line being
30 obtained using the relationship c = AIm> where c is a vector of the coefficients, Im is a vector of the measured current values and A is a matrix relating c to J2n. A memory for storing values representing at lease one pre-calculated matrix A is also provided ..n tne apparatus The current calculator is configured to receive measured current values, each value defining the current flowing in the switched mode power supply at a different ι_ime ; use the stored values representing the matrix A and the received measured current values to calculate a respective initial value for each of the coefficients of the line,- for each measured current value : calculate an estimated current using the equation of the line and the calculated initial values of the coefficients; determine a difference between the measured current value and the estimated current value to generate a difference value; and compare the difference value against a threshold and, if the difference value is greater than the threshold, calculate updated values of the coefficients using the stored values representing the matrix A and the difference value; and determine a value for the current in the switched mode power supply using the updated values of the coefficients.
The present invention also provides a switched mode power supply having an apparatus to calculate the current therein as set out above .
The present invention further provides a computer program product comprising a computer-readable storage medium or a signal carrying computer program instructions which, if executed by a processor, cause the processor to perform a method as set out above.
[Brief Description of the Drawings]
Embodiments of the invention will now be explained by way of example only, in detail, with reference to the accompanying figures, in which: Fig. 1 is a schematic of a conventional switched mode DC/DC power suppIy;
Fig. 2A is a schematic of a switched power supply according to an embodiment of the present invention;
Fig. 2B shows the components of the signal processing unit shown in Fig. 2A;
Fig, 3 is a Bode diagram illustrating the effect of errors in the electrical component values of the embodiment;
Fig. 4 is a schematic showing the voltage across and current in the inductor of Fig. 2A during a switch period;
Fig. 5 is an illustration of the current waveform and control signals over a switch period;
Figs. 6 and 7 are flowcharts showing the processing operations performed m the embodiment to calculate the current m an SMPS;
Fig. 8 is m a plot of the standard deviation in the calculated current values versus duty cycle for the embodiment;
Fig. 9 is a plot of the standard deviation in the calculated current values as a function of the ADC resolution and overBampling ratio for the embodiment; and
Fig. 10 illustrates how the accuracy of the calculated current in the embodiment changes as the number of iterations of the calculation algorithm changes.
[Detailed Description of Embodiments]
Figure 2A is a schematic of a switched mode DC/DC power supply 100 according to a first embodiment of the present invention. The power supply includes transistors SWl and SW2 which are preferably power MOSFETs. The switching of transistors SWl and SW2 is controlled by a PWM controller 110. The PWM controller 110 is conf±gαred to apply voltage pulses preferably at a frequency m 5 the range between 20 kHz and 1 MHz to the gates of transistors SWl and SW2 , and to vary the duty cycle of the switching m response to a feedback signal received from a signal processing unit 140 Alternatively, instead of the PWM controller 110 a frequency- modulating controller (not shown) can be used, which modulates the
10 frequency at which pulses of a fixed duration are generated The source terminal of transistor SWl is connected to a DC voltage l±πe at V1n wnile the source of transistor SW2 is connected to a reference point such as earth The dram of each transistor is connected to an output filter, whicn in this example comprises an
J 5 inductor 120 of inductance L and intrinsic DC resistance (DCR) 121 of resistance RL, and a capacitor 130 of capacitance Cf, which are connected as shown m Fig. 2A.
In the circuit of Figure 2A, as in most switched DC/DC converter 20 topologies, it ^s the current m the inductor 120 in the output filter tnat is of interest to measure. The current m the inductor 120 may be measured using a resistive current shunt m series w_th the inductor, as shown m Fig. 1. However, this degrades the power efficiency of the converter. It is therefore
25 preferable to use a "lossless" method which exploits the inevitable parasitic resistance m the inductor, such as that described m "A Simple Current -Sense Technique Eliminating a Sense Resistor" (Lmfimty Application Note AN-7, Rev. 1.1, 07/1998). The voltage over the DCR resistance RL is superimposed with a
30 large square *ave This square wave can De removed witn an RC circuit, comprising a resistor 150 of resistance R m series with a capacitor 160 of capacitance C, which is connected m parallel with the inductor as shown m Fig. 2A.
j 5 The voltage drop Vc across the capacitor 160 can be expressed as a runction of the inductor current iL as follows:
Figure imgf000011_0001
where R?(s) is defined as the equivalent transimpedance and s is frequency. By setting the two time constants to be equal, i.e. L/RL = CR, a pole/zero cancellation is obtained, yielding:
Vc(s) = RLiL(s) Ξqn. 2
Hence, the transirapedance Rτ(s) = RL becomes purely resistive and independent of frequency, allowing iL to be determined simply.
However, the zero/pole cancellation is sensitive to component variations, which is illustrated by the following design example.
Taking a typical inductor with L = 1 μH and RL - 1 mΩ, the simplified result of Eqn. 2 may be achieved by choosing C - 1 μF and R = 1 kΩ . The resistance should be large enough in order to avoid large additional power losses. The zero/pole cancellation sensitivity is illustrated using standard tolerances of 20 percent for the inductor and capacitor, and 1 percent tolerance for the resistor. The resulting maximum and. minimum variations in the magnitude of impedance Rτ(s) (in dBΩ) and the corresponding maximum and minimum phase variations are shown in the Bode diagram in Fig. 3.
Above 1 kHz the impedance varies up to ±3.5 dB but these static variations can be eliminated by calibration. However, the variations over time caused by changing external conditions will introduce errors in the current measurement. These variations to be handled in another way. In "Digital Autotuning System for Inductor Current Sensing in Voltage Regulation Module Applications" by S. Ξaggini et al . (IEEE Trans. on Power Electronics, Vol. 23, Mo. 5, Sept. 2008), a digital autotuning system is presented for compensation of these variations. This algorithm can be used m the present embodiment to improve the current determination accuracy even further.
Referring again to Fig. 2A, the power supply 100 includes a sampler 170 for obtaining samples of a voltage (here, the voltage difference Vc) which is related to a current flowing in the SMPS, for input to the signal processing unit 140. In the present embodiment, the sampler 170 comprises a differential amplifier 180 for amplifying the voltage difference Vc and an analog-to-digital converter (ADCj 190 for digitizing the signal input thereto by the differential amplifier 180. Since the inputs of the differential amplifier have the (potentially high) output voltage Vout as reference, it is preferable that the differential amplifier has a high common mode rejection ratio (CMRR) .
The amplifier 180 is preferably designed for the following maximum current :
1 ~JDCma + ~ + Ihead,oo», -.qil . ->
where IDcmax is the ^xi^u^ current that the inductor/converter should continuously deliver, and ^headroom gives a head room for current transients, e.g. 50% of IDCmax.
Because the voltage drop RLiL is small, the peak-to-peak amplitude of the ripple current can be determined by the differential equation v(t) = L—l(t). Eqn. 4 dt
Solving for the current yields the following integral equation:
Eqn. 5 The time function of the voltage over the inductor is a square wave, as shown in Fig. 4.
Solving Eqn. 5 for the ON- and OFF-periods, respectively, yields the ripple current peak to peak value of
Eqn. 6
Figure imgf000013_0001
During steady state the duty cycle can be approximated with D = Vout/V. Equation 6 needs to be computed for the used input and output voltage ranges in order to find the maximum ripple current -^ πpplepk -pic
For example, if we assume a switch frequency of fs = 300 kHz, a maximum current of ^ocmax = 20 A, a head room of 50 percent, an input voltage range V^n = 5-15 vf and an output voltage range Vou-
= 0-5 V, then the maximum ripple current becomes Iripplepk_pk = 14 A and the maximum current becomes I = 20+14/2+0.5-20 = 37 A. The maximum current corresponds to a maximum voltage according to Eqn. 1. Including component tolerances, the maximum impedance becomes „.,„ = -56.5 dBΩ, as shown in Pig. 3. This yields the maximum voltage across the capacitor Vcmax ~ 55-5 mV, With the maximum input voltage of the ADC taken as ^ADCmax ~ ^ V' the differential amplifier gain for normal operation is:
Figure imgf000013_0002
The ADC 190 is configured to digitize the signal input thereto to generate sample current values each representing the current flowing in the inductor at a different time. The ADC has a resolution of N bits, where N is selected having regard to the competing requirements for N to be small in order to ensure that the digitization time of each sample is sufficiently small for che selected sampling rate on the one hand and, on the other, for N to be large in order to minimise the ADC quantization noise, which will increase che uncertainty of the current measurement. If the ADC has N bits and a symmetric input range {-VR,VR} is assumed, the quantization step becomes:
JV V
Q oN-] Ξqn. 8
The maximum quantization error is Q/2. The ADC 190 may sample continuously or in bursts whose timing and duration are controlled by the controller 110, thus allowing the sampler 170 to output current sample values obtained during the whole of period rs or only a specific portion thereof. Signals representing the measured current values are fed from the ADC 190 to the signal processing unit 140 connected thereto.
The differential amplifier 180 and ADC 190 can readily be implemented m hardware in a form that meets the requirements of a particular SMPS by those skilled in the art, such that a further detailed description of these components and other related design criteria is unnecessary.
Figure 2B shows the configuration of the signal processing unit 140. In this embodiment, the signal processing unit 140 comprises a processor 141, and an instruction store 142 storing computer- readable instructions which, when executed by the processor 141 cause the processor 141 to perform the processing operations hereinafter described to calculate a current value. The instruction store 142 may comprise a ROM which is pre-loaded with the computer-readable instructions. Alternatively, the instruction store 142 may comprise a RAM or similar type of memory, and the computer readable instructions can be input thereto from a computer program product, such as a computer-readable storage medium 146 such as a CD-ROM, etc. or a computer-readable signal 147 carrying the computer-readable instructions .
The signal processing unit 140 further comprises a matrix store 143 for storing one or more pre-computed matrices, as described below, that are used in the current calculation, and a working memory 144 for storing input current samples values and data during computation. The signal processing unit 140 also includes an input/output section 145 for receiving measured current values and ouuputting a value for a current calculated by the processor, for example, an estimated maximum current Imax in the inductor, an estimated minimum current Im±n or an average of IjJj3x and Im±n. The calculated current can be used by the controller 110, as required, for feedback control, detection of continuous and discontinuous conduction modes, current protection etc.
Although the differential amplifier 180, the ADC 190 and the signal processing unit 140 are shown in Fig. 2A as separate components, one or more of these components may be implemented in a single integrated circuit (IC), which may form part of the IC of the controller 110. For example, a single IC may provide Che functionality of the controller 110, signal processing unit 140, and optionally the ADC 190. Accordingly, this single IC can be manufactured and sold separately from the remaining components of the switched mode power supply.
In the present embodiment, the processor 141, instruction store 142 and working memory 144 together constitute a current calculator 148 for determining a current value in the SMPS.
The processing operations performed by the current calculator 148 xn the present embodiment to calculate a current value for the switched mode power supply will now be described with reference to Figs . 5-7. A typical current waveform i{t) and control signals are shown schematically m Fig 5. The signal labelled "PWM" illustrates voltage pulses applied by PWM controller 110 to transistor SWl, wαi Ie the sigral labelled "Blank" illustrates a blanking signal, wmch may be used by the current calculator 148 to exclude one or more measured current values from among the received measured current values for its calculation of a current estimate m the SMPS. The blanking signal may be generated by the controller 110 or internally by the current calculator.
As explained aoove , aberrations due to parasitic inductances and capacitances m the power circuit may require the use of a blanking period TB That is, samples obtained during this period are preferably not used since they may be rendered statistically insignificant by the switch noise The dead times during transitions from che ON-period to the OPF-peπod (and vice versa) may introduce errors in the current measurement which cause the currenu co deviate from the ideal triangular waveform.
In the embodiment the oversampling ratio is M. In other words, M current samples are obtained per switch period T3. In Fig. 5, wn" denotes the sample index. The numbering starts with 0 for the first used sample, which in Fig. 5 is the first sample to appear m the time sequence after the ON period and the following blanking period TB, have elapsed. In the present embodiment, where the duty cycle is less than 50%, samples obtained during the OPF-period are preferably used m the calculation, which is described below with reference to Figs. 6 and 7. The blanking period TB is preferably chosen to De an integer multiple nb of Tso, whicn is the sampling interval defined by T30 = Ts/M The number of the unused samples in the switch period is then given by.
Figure imgf000016_0001
The last sample index is M-ng-l, and the duty cycle in terms of the number of samples (m other words, the number of samples in an
ON-period) is
Figure imgf000017_0001
Here, the usual notation | | is used to denote the ceiling function. If the duty cycle is larger than 50%, the calculation is preferably performed on sample values which are obtained outside the blanking period during the ON-period instead of during the OFF-period. However, if the duty cycle is such that
nb+\<nd < M -nb -1, Eqn. 10
then samples outside the blanking periods in both the ON-period and the OFF-period may be used for computing current estimates. For a certain duty cycle range, these estimates can be combined by averaging to decrease the uncertainty, as will be explained below.
If the voltage across the inductor 120 is assumed to be almost constant, the current according to Eqn. 5 is an affine function of time. Suppressing che sample interval, Tso, this function can be expressed in the present example as
i(n) - c0 +ctn + e(n), Eqn. 11
where C0 and C1 are real numbers and components of a vector c such that cτ = [C0 C1] , and e(n) is a disturbance often called noise.
Although Hn) is linear in n in the present embodiment, Hn) may more generally be expressed as the sum of a constant and one or more terms each being a different function of n (e.g. a second degree polynomial m n) and thus define a line which need not be straight. Thus a "line" as referred to herein is defined by an equation having at least two coefficients, and thus encompasses both a straight: line as defined by Eqn. 11 and lines which are not straight (that is, curved) . However, i (n) should be linear in the coefficients c. Sample values of the measured current are placed in a column vector Im and the following equation system is obtained:
Xc = I Sqn . 12
where the sample index matrix X i s def ined as :
Figure imgf000018_0001
and the errors e(n) are expressed by the vector em. If there are more than two samples, i.e. M - ns > 2, then Eqn. 12 becomes an overdetermined equation system, which is often not possible to solve. By choosing c as the least squares estimate
Figure imgf000018_0002
the I2 norm of e^ becomes minimized. It is important to note that since the matrix A = [X1X) "1X1*1 is determined by the duty cycle D, the blanking time nb and the oversampling ratio M1 it is not data- dependent and can thus be pre-calculated and stored in matrix store 143. The A matrix is commonly referred to as the Moore- Penrose pseudoinverse of X.
The current calculator 148 may be configured to vary the blanking time Tn in response to a change m the duty cycle D such that M- ns, and thus che size of the X and A matrices required, does not change. This has the advantage that a relatively small number of values corresponding to the elements of only a single A matrix need to be stored. However, in the present embodiment , TB is set to a fixed value which is chosen to be substantially equal to the duration of the switch noise, thus ensuring that only the samples which are likely to be erroneous are excluded, in order to maximise the number of samples used in the calculation. The duration of the switch noise is affected by the power train components, the PCB layout, and the input and output voltages. Setting TB to an appropriate fixed value has the advantage of allowing better estimates of the fitting parameters C0 and C1 to be found. In this case, a number less than M/2 of different A matrices have to be pre-calculated and stored in the matrix store 143. It is a significant advantage of the present embodiment that the A matrix is pre-calculated for subsequent use, since these calculations involve the finding of an inverse of a matrix, which could be ill-conditioned numerically. Proper methods with full precision for calculating the different A matrices are preferably used when pre-computing the set of A matrices .
The least squares algorithm is highly sensitive to outliers. In the present embodiment, there is uniformly distributed quantization noise from the ADC 190 with a maximum error of Ql2, where Q is the quantization step in the ADC. In addition, it is noted that the current is not exactly affine with time as the voltage in the capacitor is not exactly constant. Simulations show that it is advantageous to treat a sample value having a deviation of at least 2Q an outlier, i.e.
Im(n)-Xnc\>2Q Eqn. 15
However, this limit has to be adjusted according to the noise situation on the actual measurement system noise signature.
An obvious solution to the problem presented by outliers is to simply exclude outliers when re-computing more accurate least squares values for c. However, in an on-line situation this would require the computing of a unique A matrix for each modified selection of samples. This has the serious draw-back of the inverse matrix computation that would be needed being ill- conditioned, computationally intensive and relatively complex to implement . Avoiding these problems by pre-stormg all possible A matrices would be impractical because of the size of the memory required to store the almost innumerable A matrices. The present inventors have devised a highly effective complement to the least squares algorithm for increasing the statistic robustness which overcomes these problems, as will now be described with reference zo the flow charts in Pigs. 6 and 7.
Referring to Fig. 6, in step Sl, values representing a plurality of pre-calculated matrices A are scored in matrix store 143. The values are calculated using an assumed model i (n) for the current shape (e.g. Eqn. 11) . Each of the A matrices has a different size such that it may be multiplied by a current vector Im having the corresponding size (i.e. number of elements for holding measured current values) , The matrix element values may be calculated by the current calculator or computed externally and input to the signal processing unit.
In step S2, the current calculator 148 receives measured current values from the sampler 170, each received value representing the current flowing m the SMPS at a different time during a switch period of the SMPS. In the present embodiment, the received values are obtained by the sampler 170 operating in burst mode and thus correspond to current values measured during only a portion of a switch period T3. More specifically, since in the present embodiment D is smaller than 50% and it is preferable to disregard the sample values obtained during the blanking period Tfl immediately following an ON-OFP transition, the sampler obtains sample values only during the period (l~D)Tε~TB immediately preceding the following OFF-ON transition. Naturally, if D is greater than 50%, the current calculator may receive sample values ODtamed by the sampler 170 only during the period DTS-TB immediately preceding an ON-OFF transition. Alternatively, the sarrpler may sample during both the ON-period and OFF -period, or only portions of each period and provide the current calculator with corresponding sets of sample values. The sampler may obtain samples during consecutive switch periods or during intervals which are separated by one or more switch periods. The received sample values are stored m an array Im m working memory 144
As an alternative, the sampler 170 may sample in continuous mode to continuously obtain measured current values each representing a current flowing in the SIMPS (that is, the current m the inductor 120 m the embodiment of Fig 2A) at a different time In this case, the current calculator 148 may select only a portion of the receiveα values, which were obtained during a switch period For example, if D is smaller than 50% and it is preferable to disregard the sample values obtained during tne blanking period TB following an ON-OFF transition, the current calculator may select values only during the period [1-D)T8-T3 immediately preceding the following OFF-ON transition. Of course, if D is greater tnan 50%, the current calculator may select sample values obtained by the sampler only during the period DT8-T5 immediately preceding an ON- OFF transition. Alternatively, the current calculator may select values obtained during both the 0N-period and OFF-peπod or only portions of each said period As xn the present embodiment, the selected sample values m these alternative embodiments are stored m an array Im in working memory 144
In seep S3 an A matrix is selected by the current calculator 148 from among the plurality of A matrices stored m matrix store 143.
The selection is performed m dependence on the number of measured current values in the current array Im. More particularly, m order to calculate the coefficient vector c by evaluating the product of matrix A and the current vector Im, the current calculator selects an A matrix which has the correct dimension for the particular current array Im obtained from the received sample values. As can be seen from Eqns . 9, 13 and 14, the relevant dimension of A is, in the present embodiment, a function of M1 D, TB and Ts. Naturally, if only one pre-calculated A matrix is stored, step S3 can be omitted.
In step S4 the current calculator performs a least squares calculation to find an initial vector of the coefficients cinitia± which has as its elements the initial values for coefficients C0 and C1, which are denoted C0 x and C1 2, respectively. These initial values are calculated using the values which represent the selected matrix A and the measured current values m the current array Jm, namely by evaluating the product AI1n.
In step SS a counter uy", which serves as an index for the elements of the current array Im is set equal to 1. In step S6 an estimated value for the current (^est^ at a time corresponding to sample index y is evaluated using the equation of the line i(n) given by Eqn. 11 together with the calculated initial values of the coefficients, C0^1 and cltl. For example, with y = 1, Iest = cCιl while for y = 2, Iest = c0/1 + C1 1, for y = 3 , Ieεt = c0/1 + 2ci,i ... fcr y = M - nB, Iegt = c0#I + (M - nB) clι2.
In step S7 a difference between the actual sample value Im(y) (received at step S2) and the corresponding estimated value of the current: Iost {calculated at step S6) is calculated to give a difference value e = Im(y) - Iest-
In step S8, the difference value e is compared against a threshold eτ (where eτ > 0) , which in this embodiment is set to 2Q in accordance with Eqn. 15. If the difference value is greater than the threshold, then, m step S9, the sample Im{y) is identified as an outlier and updated values of the coefficients are calculated using the stored values representing the selected matrix A and the difference value e. In other words, the logic statement: (e > eτ) OR (e < ~eτ) , is evaluated and, if the statement is true (that is, if either inequality is satisfied) , updated values for the coefficients are calculated using the stored values representing the selected matrix A and the difference value e. The updated values of coefficients c0 and C1 are denoted C0 2 and C1 2, respectively, and may be calculated by first creating a copy of the initial coefficient vector cinitial calculated in step S4 An updated vector c t having as its elements updated values of the coefficients, i.e cor2 an<^ c l 2< may then be calculated by subtracting from the copy of cinitial the product of the yth column of matrix A and the difference e. In other words, in the present embodiment cUpd, is set equal to c+nitial -d then cUpdt = e^pdt ~ A( ,y\*e is evaluated. In tnis way, the adverse effect of the outlier sample value on the calculated values of the fitting coefficients is quickly and effectively mitigated, notably without recalculating matrix A or repeating the least squares calculation.
Furtnermore, if it is determined at step S8 that the difference «jue for cne sample value m the ych element of the Im array is greater than the threshold, then m step S9 it is preferable tnat m addition to updated values of the coefficients being calculated, the said sample value is replaced with tne corresponding estimated current value. This may be done Dy replacing the ytfl sample value m Im with the estimated value or, as m the present embodiment, by creating a copy of Im, the copy oemg denoted Imcorr, and replacing the yth sample value in Imcorr w- th the corresponding estimated current value.
In addition, if it is determined at step S8 that the difference valα.e for che sample value m the yth element of the Im array is greater than the threshold, it is also preferable for the current calculator to store m working memory 144 an indication or record that the ytϊr- sample value is an outlier, meaning that it has a difference value which is greater than the threshold. For this purpose, an outlier array of the same length (that is, the same number of elements) as Im may be used, with the yth element of the outlier array being set to a first value (e.g. 1) if the yth value in In, is identified as an outlier. On the other hand, if it is determined in step S8 that the difference value for the sample value in the ycl' element of the In, array is not greater than the threshold then, in step SlO, a second value, such as zero, is stored so that the sample value is identified as a non-outlier. Alternatively, the indication or record may be set initially to hold default values of 0 which are changed to 1 in step S9 for outliers, with the result that step SlO can then be omitted as the 0 values are already present in the indication or record.
In step SIi, it is determined whether the counter value y is smaller than the number of elements in the array Im. If so, y is incremented by 1 in step S12 and steps S5 to SIl are repeated. However, if y is the same as the length of the current array Im, such that all of the elements in the Im array have been processed, the loop terminates. In this way or by applying another suitable condition at step SIl (e.g. is y equal to the length of the Im array? If not, increment y by 1 at step 12, else terminate the loop) , steps S6 to SIl are performed for each of the sample values in the Im array. Once all the repetitions of steps S6 to SIl have been processed an updated set of coefficient values, which have been corrected for all outlier values in the original In, array, is obtained .
For better results, the calculation of improved estimates for the coefficients and the outlier estimate replacement can be performed iteratively. In other words, the performance of steps similar to steps S6 to SIl for each of the values of y, which yields a better estimate of c than cinltial, can be performed and in the following iteration, the determination of whether a sample value is an outlier (and the subsequent further correction of c to yield a further improved estimate for c and replacement of outlier current values with corresponding estimates) is performed using the estimate for c obtained in the previous iteration. Thus each iteration yields a least squares estimate computed on the data having modified outliers. For these reasons, it is preferable that the process proceeds to step S13 in Fig. 7 after all of the samples values in Im have been processed, so that at least one further iteration is performed.
During the outlier estimate replacement and correction of the least squares coefficients estimate cupάt obtained at the end of the process in Fig. 6, samples not previously identified as outliers (in step S8) may fall outside the outlier limit. This is handled by the next iteration of the process, as described below with reference to Fig. 7.
In step S13 of Fig. 7, an iteration counter z is set to the value 1. In step S14 , a counter "y", which serves as an index for the elements of the current array Imcorrι is set equal to i. In step S15 a second estimated value Iest2 for tiie current at a time corresponding to sample index y is evaluated using the equation of the line together with the calculated updated values of the coefficients, i.e. c0/2 and c1/2. For example, with y = 1, IeBt2 = C0 2 while for y = 2, Iest2 = C012 + c1/2, for y = 3, Iest2 = c0/2 +
2cli2... for y = M - n3, Iest2 = C012 + (M - ns) c1/2.
In step S16 a difference between Jmcorr(y) and the corresponding second estimated value of the current Iest2 is calculated to give a second difference value e2 = Im∞π-'^ ~ J est2-
In step S17, it is determined whether the value rmcc,rr(y) is a replacement value and, if not, the second difference value e2 is compared against a second threshold eT2 (where eT2 > 0) , which in this example is set to 2Q in accordance with Eqn. 15. However, it is noted that eτ and eT2 may or may not be the same. If the value ImcoXy{y) is identified as a replacement value (which may be done efficiently simply by checking the corresponding entry in the outlier array) or the second difference value is greater than the second threshold, further-updated values of the coefficients are calculated in step S18 using the stored values representing the selected A matrix and the second difference value e2. In other words, the logical statement: (the yth element of the outlier array identifies the current value in Imcorr{y) as an outlier) OR
(e2 > sT2) OR ( B2 < -sT2) is evaluated and, if as a result of this evaluation this statement is true (i.e. if any of these three conditions holds true) , further-updated values for the coefficients are calculated using the stored values representing the selected A matrix and the second difference value e2.
However, where the logical statement is false, the process proceeds to step S19.
The further-updated values of coefficients C0 and C1 are denoted C0 3 and C1 3, respectively, and may be calculated by first creating a copy of the updated coefficient vector cϋpdt obtained at the end of the process shown in Fig. 6. A further-updated vector c L'pdt2 having as its elements updated values of the coefficients, i.e. c0 3 and C1 3, may then be calculated by subtracting from the copy of cupdt the product of the yth column of the A matrix and the second difference value e2. In other words, in the present embodiment cupdt2 is set equal to cupdt and then cupdt2 = cupdt2 - A(:,y)*eΞ is evaluated. In this way, the adverse effect of any samples values which are identified as outliers to the line defined by the updated values of the coefficients, cupdt, but which were not outliers to the line defined by cinitial, is guickly and effectively mitigated, notably without recalculating matrix A or repeating the least squares calculation. If the second difference value is greater than the second threshold or if the value Iracorr{y) is identified, as a replacement value, it is preferable that in addition to further-updated values of the coefficients being calculated, the said sample value Imcorr(y) is replaced with the corresponding second estimated value lest2. This may be done by replacing the yth sample value in Imcorr with the second estimated value or by creating a copy of Imcorr and replacing the yth sample value in the copy of Ijj,σorr with the corresponding second estimated value.
In step 819, the current calculator determines whether the current counter value y is smaller than the number of elements in the array Imcorr- If so, y is incremented by 1 in step S20 and steps S15 to S19 are repeated. However, if y is the same as the length of the current array ϊmcorr, such that all of the elements in the Im^orτ. array have been processed, the loop terminates. In this way or by applying another suitable condition at step S19 (e.g. is y equal to the length of the Imcorr array? If not, increment y by I1 else go to step S21) , steps S15 to S19 are performed for each of the sample values in the Jmcorr array. Once the all the repetitions of seeps S15 to S19 have been processed, a further- updated set of coefficient values, c uρdt2' which have been corrected for all outlier values in the Ijπcorr array, is obtained.
On the other hand, if as a result of step Ξ19 it is determined that all αf the entries in the Imcorr array have been processed, the process proceeds to step S21, where the current calculator 148 determines if the iteration counter z has reached a pre-determined limit zmaχl which in the present embodiment is 2 but could more generally be any integer greater than 1. If 2 has not reached the pre -determined value, in step S22 the iteration counter z is incremented by 1 and steps S3.4 to S21 are then repeated. However, if z is equal to the predetermined limit, the process proceeds to step Ξ23. Although the criterion for determining whether to repeat steps S14 to S21 is whether the counter z has reached a predetermined limit in the present embodiment, other criteria may be used. For example, further iterations may be performed until the error (e.g. the standard deviation) in a current value calculated using the calculated coefficients becomes smaller than a pre -determined value or until z = zmx.
In step S23 a value for the current in the SMPS, for example the maximum current, minimum current and/or an average current, is calculated using the most up-to-date values of the coefficients which have been calculated. Since the current attains its maximum and its minimum at times which are outside the measuring periods m the present embodiment, extrapolation has to be used. The extrapolation for the minimum current is only one sample period, thus
The maximum current is extrapolated over the blanking period, which consiscs of nb samples, according to
Cx -=cQ-c,nb Eqn. 17
The DC current is equal to the average of the minimum and maximum currents, Imλn and Imax, due to the triangular current wave form, and hence is expressed as
J + 1 c
'DC ~ ±π≡ 2BiL = C0+-L(M-Ji1 -nb) Eσn. 18
Since the BC current estimate is a weighted sum of current samples, the error in the estimate becomes approximately normally distributed according to the central limit theorem provided the number of current samples is sufficiently large. The peak current calculations can be used for improvement of the converter's low load efficiency by turning OFF transistor SW2 when the current becomes negative, i.e., diode emulation which enables discontinuous conduction mode.
The processing operations described above with reference to the flowcharts of Figs. 6 and 7 can also be described in pseudo-code, for example as follows .
The operations of Fig. 6 can be represented as:
A=Aset (nd, nb) ; % Select the A matrix Im_corr=Im; % Copy original sample % Original least squares calculation c { 1) =c (2 } =0; % Initialize the solution tor k=l: length (Im) c (I)=C(I) +A(I, k)* Im(K) ; c (2) =c (2) +A(2,k) *lm(k) ,-
£3TICi
% Outlier correction algorithm cn=c; % Copy coefficients lim=2*Q; % Outlier limit for i=l : length (Im) % For each sample calculate I estimate if i=l Iest=σ(l) ; % Initialize, first sample else
Iest=Iest+c (2 } ; % Increase current with slope end e= Irr. (i) -lest; % Calculate difference value % Check if outlier and correct, if (e>lim) or (e<-lim) cn=cn-A( : , i) *e,- % Update the coefficients % Replace outliers for next iteration Im_corr (i) =Iest ; outlier_list (i) =1; % Record as outlier else outlier_list ( i ) =0 ; % Record as not an outlier end end
The operations of Fig, 7 can be represented as:
Iter=2; % Number of iterations cnn=cn; % Copy coefficients for 3=1 :Iter; 1.0 for i =l : length (Im_corr)
% For each sample calculate I estimate if i=l
Iest=cn(l); % Initialize, first sample else ] 5 Iest=Iest+cn (2 ) ; % Increase current with slope end e=Im_corr (i) -lest ; % Calculate second difference value if (outlier_list (i) =1) or (e>liτn) or (e-÷im) cnn=cnn-A( : , i) *e; % Update the coefficients ?C Im_corr (i) =Iest ? % Replace with better estimate end end % end of i loop cn=cnn; % Copy coefficients before next iteration end % end of j loop 25
Studies of how the uncertainty of the current estimate depends on the duty cycle, the oversampling ratio, the ADC resolution, and on outliers are presented in the following.
30 Figure 8 is a plot of the standard deviation m the calculated values of the current as a function of the duty cycle, obtained in a simulation. Here, the input voltage is a constant 12 V and the duty cycle is swept from 20 to 80 percent. The ADC has a resolution of N = 6 bits, and an oversampling ratio of M = 64 has
35 been used. Each measurement is contaminated with a uniformly- distributed noise with a maximum deviation of Q/2. The worst case error using single period measurement is when the duty cycle is 50 percent . This is mainly due to the error increasing with the decreasing number of samples used in the current estimate calculations. If the duty cycle is larger than 50 percent the ON- 5 period current measurement is preferable. Combining the measurements from the ON-period and OPF-period by averaging increases the accuracy for a duty cycle within the range from 40% to 60%. Henceforth, only the OFF-period measurements are considered for simplicity. 0
There is a trade-off between number of bits used in the ADC and the sampling rate. Therefore, it is of interest to study the relation between the quantization error and the estimation error of the current.
L 5
Using the worst case duty cycle of 50 percent and V1n = 10 V, and Vout = 5 V, the current measurement uncertainty versus oversampling ratio M and the ADC resolution is shown in Fig. 9. A resolution of 6 bits and an oversampling ratio of 64 is chosen, which yields
20 a ±3 σ accuracy of ±30 mA.
The above -described embodiment has been implemented and its performance simulated. Figure 10 is a plot of the standard deviation m current estimates calculated without outlier
25 correction, with least squares outlier corrections calculated using the method of the embodiment, and by omitting outliers altogether in a least squares calculation. The standard deviation is plotted as a function of the probability per sample of an outlier. Zn the simulations the outliers were assumed to deviate
30 in both directions and to have random amplitude in the range between 3 Q and 8Q. The outliers have a very large impact on the current measurement uncertainty. A small increase in the probability for outliers corresponds to a large increase in zhe error. Omitting πhe outliers in a new least square estimate is an 35 effective method of reducing the error but requires a lot of matrix manipulation, including calculation of the inverse The method of the present embodiment yields only slightly worse uncertainty, already after tne first iteration After two and three iterations the results almost coincide with the result S obtained using the method of omitting outliers m probability for outliers up to 5 and 10 percent, respectively.
[Moαifications and Variations]
.0 Many modifications and variations can be made to the embodiment described aoove .
For example, m the embodiment described above the current calculator ±48 comprises a programmable processing apparatus 5 having a processor 141 which performs the current calculation operations in accordance with software instructions stored m instructions store 142. However, it will be appreciated that the current calculator may Joe configured otherwise. For example, current calculator 148 may comprise non-programmable hardware 0 (e g an ASIC) dedicated to performing the current calculations
Although a plurality of A matrices are calculated and stored m step Sl of Fig 6 m the embodiment above, this is not required by che present invention so that instead a single A matrix may be S stored in step Sl However, the storage of values representing a plurality of pre-calculated A matrices provides the current calculator with the flexibility to perform calculations on current arrays Im of different lengths This provides tne current calculator with the further advantage of being able to calculate 0 estimates of current values {e g an estimated maximum current Imax m part of the SMPS circuit (e g the filter inductor) , an estimated minimum current Imiπ or an average of Imax and Imxn) with a smaller error by using m its calculation as many sampled current values as are available unαer the prevailing conditions J 5 (duty cycle, switcn noise characteristics etc.) In the flowcharts of Figs. 6 and 7 and the pseudo-code above, the processing operations are performed in a particular order. However, the order of many of the operations can be changed. For example, steps S6 to SlO are performed iteratively for each sample TnAy) in the Im array such that the steps are performed for one sample before they are performed for the next sample. However, instead, step S6 may be performed for all samples, followed by step S7 for all samples, followed by step S8 for all samples, etc. Similarly, in Fig. 7, steps S15 to S18 are performed for each sample before they are performed for the next sample. However, instead, step S15 may be performed for all samples, followed by step Ξ16 for all samples, followed by step S17 for all samples, etc .
Although an embodiment in the form of a dc/dc power supply has been described, it will be appreciated that the techniques of the present invention are applicable to other types of switched mode power supplies.

Claims

Claims
1. A method of determining a current in a switched mode power supply using linear least squares to fit a line defined by an equation having at least two coefficients to measured current values, the coefficients of the line being obtained using the relationship c = AIm, where c is a vector of the coefficients, In, is a vector of the measured current values and A is a matrix relating c to Im, the method comprising: storing values representing at least one pre -calculated matrix A; receiving measured current values, each value representing the current flowing in the switched mode power supply at a different time; using the stored values representing the matrix A and the received measured current values to calculate a respective initial value for each of the coefficients of the line,- for each measured current value: calculating an estimated current using the equation of the line and the calculated initial values of the coefficients; determining a difference between the measured current value and the estimated current value to generate a difference value; and comparing the difference value against a threshold and, if the difference value is greater than the threshold, calculating updated values of the coefficients using the stored values representing the matrix A and the difference value; and determining a value for the current in the switched mode power supply using the updated values of the coefficients.
2. A method according to Claim 1, wherein values representing a pluralicy of pre-calculated A matrices are stored such that each stored A matrix has a different size, and
5 the method further comprises selecting from said plurality of pre-calculated A matrices an A matrix for use in processing the received measured current values such that the selection is performed m dependence upon the number of measured current values . 1C
3. A method according to Claim 1 or Claim 2 , wherein the process of determining a value for the current in the switched mode power supply using the updated values of the coefficients comprises: replacing each measured current value having a difference ] 5 value greater than the threshold with the corresponding estimated value to generate a corrected set of current values containing measured current values and replacement current values; for each current value m the corrected set : calculating a second estimated current value using the 20 equation of the line and the updated values of the coefficients ; determining a difference between the current value and the second estimated current value to generate a second difference value; and
25 - if the current value is a replacement current value or if the second difference value is greater than a second threshold, calculating further-updated values of the coefficients using the stored values representing the matrix A and the second difference value,- and
30 determining a value for the current in the switched mode power supply using the further updated values of the coefficients.
4. A method according to Claim 3, further comprising: for each measured current value having a difference value 35 greater than the threshold, storing an indication that the measured current value has a difference value greater than the threshold, and wherein the further-updated values of the coefficients are calculated for a current value being processed if a said indication is stored for the current value or if the second difference value is determined to be greater than the second threshold .
5. A method according to Claim 3 or Claim 4, wherein the threshold is equal to the second threshold.
6. Apparatus for calculating a current in a switched mode power supply, the apparatus comprising: a current calculator configured to determine a current in the switched mode power supply using linear least squares to fit a line defined by an equation having at least two coefficients to measured current values, the coefficients of the line being obtained using the relationship c = Aϊm, where c is a vector of the coefficients, Im is a vector of the measured current values and A is a matrix relating c to Im; and a memory for storing values representing at least one pre- calculated matrix A, wherein the current calculator is configured to: receive measured current values, each value defining the current flowing in the switched mode power supply at a different time; use the stored values representing the matrix A and the received measured current values to calculate a respective initial value for each of the coefficients of the line; for each measured current value: calculate an estimated current using the equation of the line and the calculated initial values of the coefficients ,- determine a difference between the measured current value and the estimated current value to generate a difference value, and compare the difference value against a threshold and, j if the difference value is greater than the threshold, calculate updated values of the coefficients using the stored values representing the matrix A and the difference value, and determine a value for the current m the switched mode power IO sαpp]y jsing the updated values of tne coefficients.
7 Apparatus according to Claim 6, wherein the memory is arranged to store values representing a plurality of pre-calculated A matrices, each stored A matrix 15 having a different size, and the current calculator is further configured to select from said plurality of pre-calculated A matrices stored m the memory an A matrix for use m processing the measured current values sjch that che selection is performed in dependence upon the nurrtier of
20 measured current values
8 Apparatus according to Claim 6 or Claim 7, wherein the current calculator is configured to determine a value for the current m the switched mode power supply using the updated values
^5 of zhe coefficients by- replacing each measured current value having a difference value greater than the threshold with the corresponding estimated value to generate a corrected set of current values containing measured current values and replacement current values; :0 for each current value in the corrected set: calculating a second estimated current value using the equation of the line and the updated values of the coefficients, determining a difference between the current value and
35 the second estimated current value to generate a second difference value, and if the current value is a replacement current value or if the second difference value is greater than a second threshold, calculating further-updated values of the coefficients using the stored values representing the matrix A and the second difference value,- and determining a value for the current in the switched mode power supply using the further updated, values of the coefficients.
9. Apparatus according to Claim 8, wherein the processor is configured to: store m the memory, for each measured current value having a difference value greater than the threshold, an indication that the measured current value has a difference value greater than the threshold, and calculate the further-updated values of the coefficients for a current value being processed if a said indication is stored for the current value or if the second difference value is determined to be greater than the second threshold.
10. Apparatus according to Claim 8 or Claim 9, wherein the threshold is equal to the second threshold.
11. A switched mode power supply having an apparatus according to any one of Claims 6 to 10.
12. A computer-readable storage medium storing computer program instructions which, if executed by a processor, cause the processor to perform a method as set out in at least one of claims 1 to 5.
13. A signal carrying computer program instructions which, if executed by a processor, cause the processor to perform a method as set out in at least one of claims 1 to 5.
PCT/EP2009/056792 2009-06-03 2009-06-03 Current measurement in switched mode power supply WO2010139358A1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN200980159733.7A CN102460928B (en) 2009-06-03 2009-06-03 Current measurement in switched-mode power supply
US13/321,915 US8676525B2 (en) 2009-06-03 2009-06-03 Current measurement in switched mode power supply
PCT/EP2009/056792 WO2010139358A1 (en) 2009-06-03 2009-06-03 Current measurement in switched mode power supply
EP09779617A EP2438671B1 (en) 2009-06-03 2009-06-03 Current measurement in switched mode power supply

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/EP2009/056792 WO2010139358A1 (en) 2009-06-03 2009-06-03 Current measurement in switched mode power supply

Publications (1)

Publication Number Publication Date
WO2010139358A1 true WO2010139358A1 (en) 2010-12-09

Family

ID=42026225

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/EP2009/056792 WO2010139358A1 (en) 2009-06-03 2009-06-03 Current measurement in switched mode power supply

Country Status (4)

Country Link
US (1) US8676525B2 (en)
EP (1) EP2438671B1 (en)
CN (1) CN102460928B (en)
WO (1) WO2010139358A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9035624B1 (en) * 2011-12-27 2015-05-19 International Rectifier Corporation Power supply circuitry and current measurement
US10193442B2 (en) 2016-02-09 2019-01-29 Faraday Semi, LLC Chip embedded power converters
US10504848B1 (en) 2019-02-19 2019-12-10 Faraday Semi, Inc. Chip embedded integrated voltage regulator
US11063516B1 (en) 2020-07-29 2021-07-13 Faraday Semi, Inc. Power converters with bootstrap
US11069624B2 (en) 2019-04-17 2021-07-20 Faraday Semi, Inc. Electrical devices and methods of manufacture
US11990839B2 (en) 2022-06-21 2024-05-21 Faraday Semi, Inc. Power converters with large duty cycles

Families Citing this family (39)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110254537A1 (en) * 2010-04-14 2011-10-20 System General Corp. Method and Apparatus for Detecting CCM Operation of a Magnetic Device
US9502980B2 (en) * 2011-12-27 2016-11-22 Infineon Technologies Americas Corp. Circuit and method for producing an average output inductor current indicator
US9152193B2 (en) * 2012-06-06 2015-10-06 Apple Inc. Power supply acoustic noise mitigation
US9395738B2 (en) 2013-01-28 2016-07-19 Nvidia Corporation Current-parking switching regulator with a split inductor
US9800158B2 (en) 2013-01-30 2017-10-24 Nvidia Corporation Current-parking switching regulator downstream controller
US9804621B2 (en) 2013-02-05 2017-10-31 Nvidia Corporation Current-parking switching regulator downstream controller pre-driver
US9459635B2 (en) 2013-02-08 2016-10-04 Nvidia Corporation Current-parking switching regulator upstream controller
US9389617B2 (en) 2013-02-19 2016-07-12 Nvidia Corporation Pulsed current sensing
US9639102B2 (en) 2013-02-19 2017-05-02 Nvidia Corporation Predictive current sensing
EP2775600A1 (en) 2013-03-04 2014-09-10 Dialog Semiconductor GmbH Coil current estimator for peak current mode control SMPS
US9444333B2 (en) * 2013-03-15 2016-09-13 Analog Devices, Inc. Auto-tuning switching regulator
CN103178712A (en) * 2013-03-25 2013-06-26 常州大学 Device and method for suppressing low-frequency fluctuation of pulse-cycle skip modulation switching converter
JP2015012694A (en) * 2013-06-28 2015-01-19 株式会社東芝 Power-supply circuit
US9455631B2 (en) 2013-09-06 2016-09-27 Infineon Technologies Austria Ag Current estimation for a converter
US9385609B2 (en) 2014-02-14 2016-07-05 Infineon Technologies Ag Analog current estimation and digital estimation correction for a multiphase buck converter
US9543838B2 (en) 2014-02-14 2017-01-10 Infineon Technologies Ag Phase fault detection in switching power converters
CN104040363B (en) * 2014-03-06 2016-09-28 深圳欣锐科技股份有限公司 A kind of current measuring method and device
JP6254874B2 (en) * 2014-03-14 2017-12-27 株式会社メガチップス Step-down converter circuit and test method thereof
US9231472B2 (en) * 2014-04-11 2016-01-05 Infineon Technologies Austria Ag System and method for a switched-mode power supply
CN104020339B (en) * 2014-06-25 2016-07-27 电子科技大学 A kind of programmable current testing circuit
US20160084890A1 (en) * 2014-09-24 2016-03-24 Telefonaktiebolaget L M Ericsson (Publ) Method for preparing a current measuring arrangement, method for measuring an output current, controller, switched mode power supply, and base station
US9847729B2 (en) 2015-01-21 2017-12-19 Telefonaktiebolaget L M Ericsson (Publ) Method of operating a switched mode power supply, computer program, and switched mode power supply
US10033282B2 (en) * 2016-01-28 2018-07-24 Infineon Technologies Austria Ag Method and apparatus for estimating load current for semi-resonant and resonant converters
US9941792B2 (en) * 2016-04-01 2018-04-10 Nxp B.V. DC offset correction for inductor current ripple based, constant-on-time DC-DC converters
FR3052559B1 (en) * 2016-06-10 2020-06-12 Onera (Office National D'etudes Et De Recherches Aerospatiales) SYSTEM AND METHOD FOR PROVIDING THE AMPLITUDE AND PHASE DELAY OF A SINUSOIDAL SIGNAL
US10056828B2 (en) * 2016-07-11 2018-08-21 Infineon Technologies Austria Ag System and method for controlling current in a switching regulator
JP7000804B2 (en) * 2017-11-13 2022-01-19 Tdk株式会社 Power supply
US10578654B2 (en) * 2017-12-29 2020-03-03 Texas Instruments Incorporated Apparatus and methods for processing sensed current
TWI657250B (en) * 2018-05-24 2019-04-21 產晶積體電路股份有限公司 Current detection method
DE102018116883A1 (en) 2018-07-12 2020-01-16 Infineon Technologies Austria Ag Flyback converter control, flyback converter and method for operating the flyback converter
WO2020205167A1 (en) * 2019-03-29 2020-10-08 Murata Manufacturing Co., Ltd. Self-tuning regulator for interleaved power factor correction circuits and method of self-tuning regulation
US11081963B2 (en) 2019-11-27 2021-08-03 Infineon Technologies Austria Ag Slope detection and correction for current sensing using on-state resistance of a power switch
US11515794B2 (en) * 2020-07-09 2022-11-29 Infineon Technologies Austria Ag Current estimation in a power supply
US11444533B2 (en) 2020-08-10 2022-09-13 Dell Products L.P. System and method for power stage current-sense accuracy improvement in a power system
JP7501220B2 (en) 2020-08-19 2024-06-18 株式会社アイシン Current Detector
JP7247991B2 (en) * 2020-08-24 2023-03-29 トヨタ自動車株式会社 POWER SUPPLY SYSTEM, CONTROL DEVICE, AND REACTOR CURRENT MEASUREMENT METHOD
JP7452447B2 (en) * 2021-01-14 2024-03-19 トヨタ自動車株式会社 Power supply unit
CN113960359B (en) * 2021-12-22 2022-03-11 江苏由甲申田新能源科技有限公司 Current sampling circuit, method, system, device and storage medium
CN116992388B (en) * 2023-09-25 2023-12-12 广东德怡电子科技有限公司 Membrane switch test data processing method based on data analysis

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5703486A (en) 1994-08-25 1997-12-30 Yazaki Corporation Battery remaining capacity measuring device
US5789923A (en) 1995-10-30 1998-08-04 Yazaki Corporation Battery remaining capacity measuring device
US20070108953A1 (en) 2005-11-11 2007-05-17 L&L Engineering, Llc Non-linear controller for switching power supply
US20070112443A1 (en) 2005-11-11 2007-05-17 L&L Engineering, Llc Methods and systems for adaptive control

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7489062B2 (en) * 2005-11-14 2009-02-10 General Electric Company Synchronous reluctance machine with a novel rotor topology

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5703486A (en) 1994-08-25 1997-12-30 Yazaki Corporation Battery remaining capacity measuring device
US5789923A (en) 1995-10-30 1998-08-04 Yazaki Corporation Battery remaining capacity measuring device
US20070108953A1 (en) 2005-11-11 2007-05-17 L&L Engineering, Llc Non-linear controller for switching power supply
US20070112443A1 (en) 2005-11-11 2007-05-17 L&L Engineering, Llc Methods and systems for adaptive control

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9035624B1 (en) * 2011-12-27 2015-05-19 International Rectifier Corporation Power supply circuitry and current measurement
US10193442B2 (en) 2016-02-09 2019-01-29 Faraday Semi, LLC Chip embedded power converters
US10924011B2 (en) 2016-02-09 2021-02-16 Faraday Semi, Inc. Chip embedded power converters
US11557962B2 (en) 2016-02-09 2023-01-17 Faraday Semi, Inc. Chip embedded power converters
US11996770B2 (en) 2016-02-09 2024-05-28 Faraday Semi, Inc. Chip embedded power converters
US10504848B1 (en) 2019-02-19 2019-12-10 Faraday Semi, Inc. Chip embedded integrated voltage regulator
US11652062B2 (en) 2019-02-19 2023-05-16 Faraday Semi, Inc. Chip embedded integrated voltage regulator
US11069624B2 (en) 2019-04-17 2021-07-20 Faraday Semi, Inc. Electrical devices and methods of manufacture
US11621230B2 (en) 2019-04-17 2023-04-04 Faraday Semi, Inc. Electrical devices and methods of manufacture
US11063516B1 (en) 2020-07-29 2021-07-13 Faraday Semi, Inc. Power converters with bootstrap
US11855534B2 (en) 2020-07-29 2023-12-26 Faraday Semi, Inc. Power converters with bootstrap
US11990839B2 (en) 2022-06-21 2024-05-21 Faraday Semi, Inc. Power converters with large duty cycles

Also Published As

Publication number Publication date
CN102460928B (en) 2015-11-25
US8676525B2 (en) 2014-03-18
EP2438671B1 (en) 2013-03-06
US20120078556A1 (en) 2012-03-29
EP2438671A1 (en) 2012-04-11
CN102460928A (en) 2012-05-16

Similar Documents

Publication Publication Date Title
US8676525B2 (en) Current measurement in switched mode power supply
US8085024B2 (en) Self-tuning digital current estimator for low-power switching converters
EP2446525B1 (en) Capacitance determination in a switched mode power supply
US8536842B2 (en) Sensorless self-tuning digital current programmed mode (CPM) controller with multiple parameter estimation and thermal stress equalization
US10114046B2 (en) Measuring output current in a buck SMPS
US10033272B2 (en) Switching loss correction circuitry and method
US9219414B2 (en) Load current readback and average estimation
Lukic et al. Self-tuning digital current estimator for low-power switching converters
Lukić et al. Sensorless self-tuning digital CPM controller with multiple parameter estimation and thermal stress equalization
US10270342B2 (en) Error correction for average current sensing in a switching regulator
US20190379270A1 (en) Lossless average input and output current sensing in a switched-mode power supply
US20140268950A1 (en) System and Method for Calibrating a Power Supply
CN111693758B (en) Current sensing for monitoring load current in buck power converter
US9977088B2 (en) Battery fuel gauge current sensing circuit and method thereof
EP3821525A1 (en) Circuits and methods for measuring the output current of a switched capacitor regulator
WO2023250234A2 (en) Integrated circuit package with internal circuitry to detect external component parameters and parasitics
US10650946B1 (en) Trimming method of DCR sensing circuits
US20080234954A1 (en) Digital power monitoring circuit and system
US20160305988A1 (en) Digitally assisted current sense circuit and method for digitizing a sensed signal
Radić et al. Noninvasive self-tuning output capacitor time constant estimator for low power digitally controlled dc-dc converters
US9893629B2 (en) Control method for switching power supply circuit and power supply device
Straka Multi-mode near minimum deviation controller IC for high frequency switch-mode power supplies
JP2024047816A (en) Switching Circuit
US9853539B1 (en) Systems and methods for measuring inductor current in a switching DC-to-DC converter
JP2024140946A (en) Switching Circuit

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 200980159733.7

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09779617

Country of ref document: EP

Kind code of ref document: A1

DPE1 Request for preliminary examination filed after expiration of 19th month from priority date (pct application filed from 20040101)
WWE Wipo information: entry into national phase

Ref document number: 13321915

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2009779617

Country of ref document: EP