# Patent

## Title
Current report in current mode switching regulation

## Abstract

A voltage regulator includes a switch configured to alternately couple and decouple a voltage source through a inductor to a load, a feedback circuitry configured to generate a feedback current proportional to a difference between a desired voltage and an output voltage at an output terminal, a current sensor configured to measure the feedback current, a controller configured to receive the feedback current level from the current sensor and, in response thereto, to control a duty cycle of the switch, and a current mirror configured to generate a reporting current proportional to the feedback current.

## Background
CROSS-REFERENCE TO RELATED APPLICATIONS
This application claims priority to U.S. Provisional Application Ser. No. 61/050,981, filed on May 6, 2008.


TECHNICAL FIELD
This disclosure relates generally to control systems for switching voltage regulators.
BACKGROUND
Voltage regulators, such as DC to DC converters, are used to provide stable voltage sources for electronic systems, particularly electronic systems that include integrated circuits. Efficient DC to DC converters are particularly needed for battery management in low power devices, such as laptop notebooks and cellular phones, but are also needed for higher power demand products, e.g., desktop computers or servers. Switching voltage regulators (or more simply “switching regulators”) are known to be an efficient type of DC to DC converter. A switching regulator generates an output voltage by converting an input DC voltage into a high frequency voltage, and filtering the high frequency voltage to generate the output DC voltage. Typically, the switching regulator includes a switch for alternately coupling and de-coupling an unregulated input DC voltage source, such as a battery, to a load, such as an integrated circuit. An output filter, typically including an inductor and a capacitor, is coupled between the input voltage source and the load to filter the output of the switch and thus provide the output DC voltage. A controller measures an electrical characteristic of the circuit, e.g., the voltage or current passing through the load, and sets the duty cycle of the switch in order to maintain the output DC voltage at a substantially uniform level. Current-mode control is one way of controlling the switching behavior of the switching components. Current-mode control measures the current across the load and attempts to maintain a specific current over the load.
Voltage regulators for microprocessors are subject to ever more stringent performance requirements. One trend is to operate at ever lower voltage and at higher currents. Another trend is to turn on or off different parts of the microprocessor in each cycle in order to conserve power. This requires that the voltage regulator react very quickly to changes in the load, e.g., several nanoseconds to shift from the minimum to the maximum load, and to have a fast transient response, e.g., to quickly stabilize without significant voltage or current ripple.
Still another trend is to place the voltage regulator close to the microprocessor in order to reduce parasitic capacitance, resistance and/or inductance in the connecting lines and thereby avoid power losses. However, in order to place the voltage regulator close to the microprocessor, the voltage regulator needs to be small and have a convenient form factor.
SUMMARY
In one aspect, a voltage regulator has an input terminal for coupling to a voltage source and an output terminal for coupling to a load through an inductor. The voltage regulator includes a switch configured to alternately couple and decouple the voltage source through the inductor to the load, feedback circuitry including an amplifier having a first input configured to receive a desired voltage, a second input, and an output, a capacitor connecting the second input to the output of the amplifier, and a resistor connecting the output of the amplifier and the output terminal such that a feedback current proportional to a difference between the desired voltage and an output voltage at the output terminal flows through the resistor, a current sensor configured to measure the feedback current, and a controller configured to receive the feedback current level from the current sensor and, in response thereto, to control the switch to couple the voltage source through the inductor to the load until an upper peak limit is reached and decouple the voltage source from the load until a lower peak limit is reached.
In another aspect, a voltage regulator includes a switch configured to alternately couple and decouple the voltage source through the inductor to the load, a feedback circuitry configured to generate a feedback current proportional to a difference between a desired voltage and an output voltage at the output terminal, a current sensor configured to measure the feedback current, a controller configured to receive the feedback current level from the current sensor and, in response thereto, to control the switch to couple the voltage source through the inductor to the load until an upper peak limit is reached and decouple the voltage source from the load until a lower peak limit is reached, a current mirror configured to generate a reporting current proportional to the feedback current, a resistor through which the reporting current passes, and reporting circuitry to measure a voltage across the resistor.
In another aspect, a method of operating a voltage regulator can include determining whether a desired output current is below a threshold, and when the desired output current is below the threshold, generating a sequence of current pulses in a discontinuous current mode, wherein the maximum current of the pulses is a function of the desired output current.
In another aspect, a method of operating a voltage regulator includes, for a finite number of current pulses during a voltage regular start mode, monotonically increasing the maximum current of the current pulses and a target voltage.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram of an exemplary switching regulator.
FIG. 2 is a schematic and circuit diagram illustrating a prior current-mode-control switching regulator.
FIG. 3 is a schematic and circuit diagram illustrating an implementation of a current-mode-control switching regulator.
FIG. 4A is a schematic and circuit diagram illustrating a portion of a current-mode-control switching regulator that is switchable between droop and no-droop modes.
FIG. 4B is a schematic and circuit diagram illustrating another implementation of a portion of a current-mode-control switching regulator that is switchable between droop and no-droop modes.
FIG. 5 is a schematic and circuit diagram illustrating a portion of a current-mode-control switching regulator that include current reporting circuitry.
FIG. 6 is a graph of output current as a function of time in a discontinuous mode of a switching regulator.
FIG. 7 is a graph of output voltage as a function of time in a discontinuous mode of a switching regulator.
FIG. 8 is a graph of maximum current as a function of desired output current.
FIGS. 9A-9C are graphs of output current as a function of time for low, medium and high desired current in a discontinuous mode of a switching regulator.
FIG. 10 is a graph of output voltage and reference voltage as a function of time during a start-up operation.



DETAILED DESCRIPTION
FIG. 1 depicts a block diagram illustrating exemplary use of a current-mode-control switching regulator 14 within an electronic device 10. Regulator 14 conditions power from a power source 12 for use by electronic circuitry 16. Electronic device 10 is, for example, a mobile phone; power source 12 is, for example, a rechargeable battery; and electronic circuitry 16 is, for example, circuitry within the mobile phone.
FIG. 2 depicts a prior current-mode control voltage regulator 104. Voltage regulator 104 is coupled to a voltage source with an input voltage Vin at a voltage input terminal 106. A voltage output terminal 108 of regulator 104 couples to a load 102. A desired output voltage reference Vref is input to regulator 104 at terminal 110.
The voltage regulator 104 includes a switching circuit which serves as a power switch for alternately coupling and decoupling the input terminal 106 to an intermediate node 112. The switching circuit includes a high-side power transistor 114 having a drain connected to the input terminal 106 and a source connected to the intermediate node 112, and a low-side power transistor 116 having a source connected to ground and a drain connected to the intermediate node 112. The opening and closing of the switching circuit generates an intermediate voltage Vint having a rectangular waveform at the intermediate node 112. The intermediate voltage Vint is directed through a filter 120 that includes an inductor 122 and a load capacitor 124 connected in parallel with load 102 to generate a generally stable output voltage Vout at the output terminal 108.
The power transistors 114 and 116 can be controlled by a switching amplifier and controller 130. To provide a control signal to the controller 130, an error amplifier 132 compares the desired output voltage reference Vref with a voltage VFB at terminal 138. The error amplifier 132 includes a high frequency transconductance stage 134 and a low frequency integrator 136. The Vref terminal 110 is connected to the positive inputs of the error amplifier 132, and terminal 138 is connected to the negative inputs of the error amplifier 132 and to load 102 by a feedback resistor 140. Error amplifier 132 operates to maintain voltage VFB at terminal 138 equal to Vref by passing a current IFB through resistor 140. The current through resistor 140 causes a voltage drop across resistor 140 equal to the voltage difference between Vref and the voltage across load 102. Current IFB is thereby indicative of the error in voltage across load 102, i.e., the difference between the voltage across the load and the desired voltage Vref. The current IFB is sensed by a current sensor 142 and this data is directed to the controller 130. The controller 130 and error amplifier act as a feedback loop so that the IFB*KI=ILOAD, where ILOAD is the average current through the load, i.e., the average of the instantaneous output current IOUT, and KI is a gain. In one embodiment, the gain factor (KI) can be approximately 120,000. The configuration of the voltage regulator 104 creates a droop voltage, i.e., as current flow to the load increases, the output voltage will drop. The slope of the droop will be RFB/KI.
FIG. 3 depicts an implementation of a current-mode control voltage regulator 204. Voltage regulator 204 is coupled to a voltage source with an input voltage Vin at a voltage input terminal 206. A voltage output terminal 208 of regulator 204 couples to a load 202. A desired output voltage reference Vref is input to regulator 204 at terminal 210.
The voltage regulator 204 includes a switching circuit which serves as a power switch for alternately coupling and decoupling the input terminal 206 to an intermediate node 212. The switching circuit also includes a rectifier, such as a switch or diode, coupling the intermediate node 212 to a low voltage line, e.g., ground. In particular, the switching circuit can include a high-side power transistor 214 having a drain connected to the input terminal 206 and a source connected to the intermediate node 212, and a low-side power transistor 216 having a source connected to ground and a drain connected to the intermediate node 212. The opening and closing of the switching circuit generates an intermediate voltage Vint having a rectangular waveform at the intermediate node 212.
The intermediate voltage Vint is directed through a filter 220 that includes an inductor 222 and a load capacitor 224 connected in parallel with load 202 to generate a generally stable output voltage Vout at the output terminal 208. The inductor 222 and capacitor 224 can be discrete components, e.g., on the same circuit board as the chip with the switches 214 and 216 and controller 230, or can be integrated into the chip with the switches 214 and 216 and controller 230.
Although only one switching circuit is illustrated in FIG. 3, the voltage regulator can include multiple switching circuits in parallel, each switching circuit having its own inductor. The outputs of the inductors can be connected to provide the output current, and the inductors can be coupled, e.g., wound around a common core, e.g., with each winding made in the same orientation.
The power transistors 214 and 216 can be controlled by a switching amplifier and controller 230. To provide a control signal to the controller 230, the desired output voltage reference Vref is input to the positive input of an amplifier 260, e.g., a single simple op-amp. The output of the amplifier 260 is connected to a current sensor 242, such as a current mirror, that measures the current flowing through a terminal 262. The terminal 262 is connected to the negative input of the amplifier 260 through a capacitor 264 with capacitance Cint. Output terminal 208 and load 202 are connected to terminal 262 by a feedback resistor 266 with resistance RFB, and are also connected to the negative input of the amplifier 260 through another resistor 268 with resistance Rint. The resistance Rint is greater, e.g., by an order of magnitude or more, than the resistance RFB.
This switching amplifier 230 is designed to work in conjunction with the sensed current information from current sensor 242 to control power transistors 214 and 216 to alternate the connection of intermediate terminal 212 between terminal 206 and ground. Low-side power transistor 216 stays on until the switching amplifier and control circuit 230 determines that the feedback current IFB, as measured by current sensor 242, remains above a pre-determined threshold below the average output current through terminal 212. After switching amplifier 230 determines the current threshold is surpassed, the low-side power transistor 216 is disabled and the high-side power transistor 214 is enabled. The switching amplifier 230 then continues to monitor the current sensor 242 output until it crosses a pre-determined threshold above the average out current through terminal 212. At this point, the switching amplifier 230 then disables high-side power transistor 214 and enables low-side power transistor 216.
Switching regulator 204 thereby operates to connect load 202 to the voltage source when the voltage across load 202 is less than Vref, and disconnects load 202 from the voltage source when the voltage across load 202 is greater than Vref. The resulting waveform of current IOUT is, in this example, triangular. The average value of the triangular waveform IOUT is equal to IFB*KI. The difference between the upper and lower peaks of the IOUT current triangle (output current ripple) is equal to KI multiplied by the difference between the upper and lower thresholds to which the switching amplifier 230 compares IFB.
At high frequencies, the capacitor 264 acts as a short, and since Rint>>RFB, current flow through resistor 268 will be negligible, and the voltages on the left and right sides (as shown in FIG. 3) of the op-amp 260 will be forced to be equal. Amplifier 260 operates to maintain voltage VFB at terminal 262 equal to Vref by passing a current IFB through resistor 266. The current through resistor 266 causes a voltage drop across resistor 266 equal to the voltage difference between Vref and the voltage across load 202. Current IFB is thereby indicative of the error in voltage across load 202, i.e., the difference between the voltage across the load and the desired voltage Vref.
At low frequencies, the capacitor 264 acts as a large impedance, so that the amplifier 260 is sensing Vout, and thereby integrates away the error. As a result, the voltage regulator 204 does not have a droop voltage, e.g., as current flow to the load increases, the output voltage remains substantially constant.
FIG. 4A depicts another implementation of a current-mode control voltage regulator which is switchable between droop and no-droop modes. This implementation is similar to the implementation illustrated in FIG. 3, but a switch 270 is added in parallel with the capacitor 264. If the switch is open, the voltage regulator acts similarly to the implementation illustrated in FIG. 3, with no droop voltage. If the switch is closed, since Rint>>RFB, current flow through resistor 268 will be negligible, and thus the voltage regulator acts similarly to the implementation illustrated in FIG. 2, with a droop voltage.
FIG. 4B depicts another implementation of a current-mode control voltage regulator which is switchable between droop and no-droop modes. This implementation is similar to the implementation illustrated in FIG. 3, but a second switch 272 is added in series with resistor 268. Opening the switch 272 disconnects the path of resistor 268, and thus the voltage regulator acts similarly to the implementation illustrated in FIG. 2, with a droop voltage.
Some implementations of the current-mode control voltage regulator include current reporting circuitry. The reporting circuitry can direct a signal that is proportional to the output current IOUT flowing into the load to an output terminal of the voltage regulator. For example, the output terminal can be connected to an external processor, i.e., a processor that is not part of the voltage regulator, e.g., a CPU of a computer system powered by the voltage regulator. In particular, the reporting circuitry can generate a signal that is proportional to the error current IFB, and thus proportional to the output current IOUT.
FIG. 5 illustrates an implementation in which a current mirror 280 generates reporting current Ireport that is a mirror of the feedback current IFB, e.g., Ireport=IFB*K2, where K2 is a constant, e.g., 1.
In some implementations, the reporting current Ireport is directed through a reporting resistor 290 with resistance Rreport to ground. The voltage Vreport across the reporting resistor 290 is thus proportional to the error current IFB. The voltage Vreport can be sensed and used for testing or reported to the microprocessor, e.g., for calculation of an estimated battery life. For example, because the voltage Vreport is proportional to the load, the voltage Vreport provides a measure of the power usage. The microprocessor can calculate the estimated battery life from the current battery power P and the power usage dP/dt determined from the voltage Vreport, e.g., dP/dt=Vreport*K3, where K3 is a constant. For example, under the assumption that the power usage will remain constant, the estimated battery life TBL can be calculated from the voltage Vreport, e.g., TBL=P/(Vreport*K3).
In some implementations, the external resistor is not needed and reporting current Ireport is directed to the output terminal for current reporting instead of a voltage. In some implementations, the processor can monitor the voltage across the RFB resistor, since this voltage is directly proportional to IFB. This voltage can be internally buffered to an output pin for direct monitoring by the user. In some implementations, this voltage can be buffered across another reference resistor to form a new current proportional to IFB. This new current can then be used similarly to the reporting current as described above.
Although FIG. 5 illustrates the current mirror 280 as located between the current sensor 242 and the feedback resistor 266, the current mirror 280 could be between the current sensor 242 and the amplifier 260, or the current mirror 280 could mirror the current flowing out of the current sensor 242 to the controller 230.
Although illustrated in conjunction with the voltage regulator of FIG. 3, the current reporting circuitry could instead be used in conjunction with the voltage regulators of FIG. 2 or 4, or with other configurations.
In normal continuous mode operation, the transistors 214 and 216 are driven by the controller 230 to deliver a large multiple of the feedback current IFB to the load 202. Excepting possibly for brief periods at change-over to prevent momentary direct connection of the input voltage to ground, at least one of the transistors 214 and 216 remains closed.
The output current from terminal 212 can form a triangular waveform with an average current that matches the desired current and should match the desired current or the current ILOAD drawn by the load. The output current can have a peak-to-peak height of Ipeak.
At light load conditions, e.g., if ILOAD is below a threshold, e.g., Ipeak/2, the switching regulator can operate in a discontinuous current mode. In particular, the switch can be operated in a tristate, so that at certain times both transistors 214 and 216 are left open and the intermediate terminal 212 is left floating. Referring to FIGS. 6 and 7, when the output voltage drops Vout below the desired reference voltage Vref, feedback current IFB becomes positive, and controller 230 closes the transistor 214 to connect the intermediate terminal 212 to the voltage source. This causes the current flow to ramp up, and also causes the voltage to increase. When the current reaches a current peak threshold IPEAKCURRENT, the transistor 214 is opened and transistor 216 is closed. This causes the current flow to ramp down. When the current flow reaches zero, both transistors 214 and 216 are left open. As a result, a positive “charge burst”, which can be a triangular waveform, is dumped into the capacitor 224. The load then drains the charge from the capacitor, causing the output voltage Vout to gradually decline until it reaches the reference voltage Vref again, triggering another charge burst.
However, the current peak threshold IPEAKCURRENT need not be a constant value. In particular, in the discontinuous mode (“DCM”), the current peak threshold IPEAKCURRENT can be a function of the average output current ILOAD or the desired current. As shown in FIG. 8, at output current near zero, the current peak threshold IPEAKCURRENT can start from a lower, e.g., minimum, threshold IMINPEAK that is a fractional value, e.g., one-quarter, one-third or one-half, of the maximum threshold IMAXPEAK. As the output current ILOAD increases, the current peak threshold IPEAKCURRENT increases, e.g., monotonically. In some implementations, at an output current ILOAD equal to or greater than half the maximum threshold, IMAXPEAK/2, the current peak threshold IPEAKCURRENT is equal to the maximum threshold IMAXPEAK. In some implementations, the current peak threshold increases linearly from the minimum threshold IMINPEAK to the maximum threshold IMAXPEAK. However, other functions can relate the current peak threshold IPEAKCURRENT to the output current ILOAD.
As a result, as shown in FIGS. 9A-9C, as the desired output current increases, the current pulses get larger, until at the transition between the continuous and discontinuous modes, the current pulses touch and have the peak current IMAXPEAK. In addition, because the current pulses are smaller at low desired current, voltage ripple can be reduced at low current conditions. Optionally, the pulse frequency can increase as the desired output current increases.
A problem with systems in which a typical constant peak current is used instead is that the voltage ripple increases as the load current gets smaller. The maximum output voltage ripple is commonly considered an important specification and therefore can restrict the peak current used from being too large. On the other hand, large peak current values are desired since they tend to lead to higher efficiency in light load conditions and allow the discontinuous mode algorithm to operate up to a higher ILOAD current level. The technique discussed above allows the discontinuous mode to have a scalable peak current that can counteract the trend of voltage ripple increasing as load decreases while still supporting the larger peak current at reasonable load currents. As a result, the voltage regulator can have improved efficiency and discontinuous mode current capability.
In constant peak current discontinuous mode implementations, the switching frequency of the regulator is directly proportional to the load current as the regulator delivers a fixed charge pulse per switching event. In order to sustain output voltage regulation, the control circuitry will modulate the frequency of switching events so that the average charge delivery to the output node is equivalent to that withdrawn by the load. With the scalable peak current technique, the charge per pulse delivered is set to be a function of the average output current. This results in a non-linear relationship between load current and discontinuous switching frequency. Another benefit of this technique is that the relationship between the actual frequency and load current can therefore be tuned or limited by adjusting the functional relationship between the scalable charge pulses and the average output current. For example, this could be useful in mobile systems where a high efficiency discontinuous mode algorithm is desired but it is desired to place a lower limit on the switching frequency to prevent it from dropping into the audible frequency range.
In some implementations, the discontinuous regulator charge pulse can be set by controlling the high side switch on-time as opposed to a peak current level. In such implementations, the on-time can be modulated as a function of the average output current to achieve substantially similar benefits as those described above.
When a voltage regulator is turned on, the regulator can move from off to maximum current capacity, resulting in an in-rush current that the input voltage may not be able to support. This could affect the voltage supply. In addition, Vout may overshoot the desired reference voltage Vref. Even if, as illustrated by FIG. 10, the voltage reference is adjusted with a “soft start” to ramp from a lower voltage up to the eventual target voltage Vtarget (Vtarget becomes the reference voltage Vref in the usual operating conditions described in the embodiments above), the initial current pulses can cause the output voltage to overshoot the reference voltage Vref.
A technique to counteract this problem is to limit both the peak current and the ramp up the reference voltage Vref during start-up conditions. A conventional “soft start” ramp on Vref may be insufficient in and of itself to solve the overshooting problems noted above; enhancing startup by limiting the peak current can further reduce overshooting. As a consequence of limiting the peak current on a cycle to cycle basis, the duty cycle will also be limited.
The start-up conditions can be the initial few pulses, e.g., less than ten pulses, e.g., the first five or four or three pulses. The peak current can grow monotonically during the start-up conditions, with initial growth being exponential, e.g., doubling each pulse, and later growth being linear. The maximum current of a particular current pulse can be a discrete function of the ordinal that pulse. For example, the first pulse can be limited to Imax/8, the second pulse can be limited to Imax/4, the third pulse can be limited to Imax/2, and the fourth pulse can be limited to 3⁄4*Imax. This technique limits the current and thus reduces the likelihood of overshooting.
Another potential benefit can be that even with a soft start on Vtarget, the voltage regulator can get large in-rush current because the current required to be delivered out of terminal 208 is directly proportional to COUT 224. Therefore even with very slow Vtarget ramps, the current required to ramp VOUT van be arbitrarily large when COUT 224 is arbitrarily increased in value. On the other hand, limiting the peak current during the initial pulses on startup directly limits the in-rush current.
In some implementations, during the start-up conditions the peak current can be limited as a function of time instead of a specific number of pulse events. For example, the duty cycle can grow monotonically with time during the start-up. Also, the limiting can be determined from an analog function, e.g., a continuous function of time with a value determined by the time of the pulse, instead of discrete steps. Again, this method will reduce both initial overshoot as well as in-rush current on the input supply.
The controller that controls the switch can be implemented with hardware (digital and/or analog), firmware or software, i.e., a computer program product tangibly embodied in a computer readable medium and including instructions to be executed by a processor, e.g., a microprocessor in the controller. The instructions can carry out a control algorithm to control the switches to generate the pulses as discussed above.
Those skilled in the art will appreciate that variations from the specific embodiments disclosed above are contemplated by the invention. The invention should not be restricted to the above embodiments, but should be measured by the following claims.

## Claims

1. A voltage regulator having an input terminal for coupling to a voltage source and an output terminal for coupling to a load through an inductor, the voltage regulator comprising:
a switch configured to alternately couple and decouple the voltage source through the inductor to the load;
a feedback circuitry configured to generate a feedback current proportional to a difference between a desired voltage and an output voltage at the output terminal;
a current sensor configured to measure the feedback current;
a controller configured to receive a feedback current measurement from the current sensor and, in response thereto, to control a duty cycle of the switch; and
a current mirror configured to generate a reporting current proportional to the feedback current.

2. The voltage regulator of claim 1, wherein the current mirror is configured to mirror the feedback current at location between the current sensor and the output terminal.

3. The voltage regulator of claim 1, wherein the feedback circuitry comprises an amplifier having an output, and wherein the current mirror is configured to mirror the feedback current at a location between the output and the current sensor.

4. The voltage regulator of claim 3, wherein the feedback circuitry comprises a resistor connecting the output of the amplifier and the output terminal, wherein the feedback current flows through the resistor, and wherein the current mirror mirrors the feedback current at location between the current sensor and the resistor.

5. The voltage regulator of claim 1, wherein the current mirror is configured to mirror a current flowing out of the current sensor to the controller.

6. The voltage regulator of claim 1, wherein the controller and the current mirror are configured such that the reporting current is not directed to the controller.

7. The voltage regulator of claim 1, wherein the controller and current mirror are in a single integrated circuit chip, and wherein the reporting current is output to an output pin of the integrated circuit chip.

8. The voltage regulator of claim 1, further comprising a second resistor through which the reporting current passes and reporting circuitry to measure a voltage across the resistor to generate a measured voltage.

9. The voltage regulator of claim 8, wherein the reporting circuitry directs the measured voltage to output terminals of the voltage regulator.

10. The voltage regulator of claim 1, wherein the controller is configured to cause the switch to couple the voltage source through the inductor to the load until an upper peak limit is reached and decouple the voltage source from the load until a lower peak limit is reached.

11. A system, comprising:
a voltage source;
a processor;
a voltage regulator having an input terminal for coupling to the voltage source and an output terminal for coupling to the processor through an inductor, the voltage regulator including
a switch configured to alternately couple and decouple the voltage source through the inductor to the processor,
a feedback circuitry configured to generate a feedback current proportional to a difference between a desired voltage and an output voltage at the output terminal,
a current sensor configured to measure the feedback current,
a controller configured to receive a feedback current measurement from the current sensor and, in response thereto, to control a duty cycle of the switch,
a current mirror configured to generate a reporting current proportional to the feedback current, and;

reporting circuitry to direct a signal proportional to the reporting current to the processor.

12. The system of claim 11, further comprising a second resistor through which the reporting current passes and reporting circuitry to measure a voltage across the resistor to generate a measured voltage.

13. The system of claim 12, wherein the processor receives the measured voltage.

14. The system of claim 13, wherein the voltage source comprises a battery.

15. The system of claim 14, wherein the processor is configured to determine a remaining battery life based on the measured voltage.

16. A method of operating a voltage regulator, comprising:
alternately coupling and decoupling a voltage source through an inductor to a load with a switch;
generating a feedback current proportional to a difference between a desired voltage and an output voltage;
measuring the feedback current with a current sensor;
controlling a duty cycle of the switch based on a feedback current measurement from the current sensor; and
mirroring the feedback current to generate a reporting current.

17. The method of claim 16, wherein mirroring the feedback current includes mirroring the feedback current at a location between the current sensor and the output terminal.

18. The method of claim 16, wherein mirroring the feedback current includes mirroring the feedback current at a location between an output of an amplifier and the current sensor.

19. The method of claim 16, wherein mirroring the feedback current comprises mirroring the current flowing out of the current sensor to the controller.