# Patent

## Title
Power converter with predictive pulse width modulator control

## Abstract

Various methods and devices that involve control circuits for power converters are disclosed. One method comprises controlling a switch using a control signal based on a comparison signal. The switch controls a transfer of power between an input node, which receives an input, and an output node. The method comprises measuring an output of the power converter, generating an error signal based on the output, generating a periodic ramp signal with a varying period, providing the error signal to a first input terminal of a comparator, providing the ramp signal to a second input terminal of the comparator, and generating the comparison signal based on the error signal and the ramp signal using the comparator. The method comprises increasing a slope of the ramp signal in response to an increase in the input, and increasing the slope of the ramp signal in response to a decrease in the varying period.

## Background
CROSS-REFERENCE TO RELATED APPLICATIONS
This application claims the benefit of U.S. Provisional Application No. 62/413,005, filed Oct. 26, 2016, which is incorporated by reference herein in its entirety.


BACKGROUND OF THE INVENTION
Electronic devices often need to generate multiple power regimes while only being powered by a single source. For example, a laptop computer may only have a single battery but may need to produce power regimes with different supply voltages for the various components on the laptop. Furthermore, regardless of the need for multiple power regimes, electronic devices often need to condition the power that is delivered to them from an external source. Returning to the example of a laptop, the laptop processor contains sensitive electronics and exhibits a widely varying power demand based on how hard the processor is working. Simply plugging in a DC version of the mains voltage source is not an option because the processor will not be shielded from dips or surges in the power supply and the power supply will likewise not be able to keep pace with the rapid transitions in the power drawn by the processor. The aforementioned requirements are addressed by power converters.
Power converters need to adjust rapidly to changing power demands from the loads they are regulating. This feature is becoming increasingly important as one of the main ways in which power is conserved in modern electronic devices is to switch the devices between low power operating modes for extended periods of time followed by short periodic bursts in which a large amount of power is dissipated. Power converters can be classified into two broad categories referred to as switching regulators and linear regulators. In nearly every implementation of either kind of regulator, there is a control loop that monitors the output and adjusts the amount of power flowing through the regulator between the input and the output. The control loop needs to be able to sense the output and feed the information back to the regulator fast enough to prevent overshoot or undershoot of the regulated output during a transition. The range of acceptable overshoot or undershoot and the time it takes the output to settle during the transition are set by the tolerance of the device that is being regulated.
SUMMARY OF INVENTION
In one approach a method for controlling a power converter is disclosed. The method comprises controlling a switch using a control signal. The switch controls a transfer of power between an input node of the power converter and an output node of the power converter. The input node receives an input. The method also comprises measuring an output of the power converter, generating an error signal based on the output, generating a periodic ramp signal with a varying period, providing the error signal to a first input terminal of a comparator, providing the ramp signal to a second input terminal of the comparator, and generating a comparison signal based on the error signal and the ramp signal using the comparator. The method also comprises increasing a slope of the ramp signal in response to an increase in the input, and increasing the slope of the ramp signal in response to a decrease in the varying period. The control signal is based on the comparison signal.
In one approach a method for controlling a power converter is disclosed. The method for controlling a power converter comprises controlling a switch that controls a transfer of power between an input node of the power converter and an output node of the power converter using a control signal. The input node receives an input. The method also comprises measuring an output of the power converter, generating an error signal based on the output, generating a ramp signal, providing the error signal to a first input terminal of a comparator, providing the ramp signal to a second input terminal of the comparator, and generating a comparison signal based on the error signal and the ramp signal using the comparator. The method also comprises increasing a slope of the ramp signal in response to an increase in the input, and increasing the slope of the ramp signal in response to a decrease in the output. The control signal is based on the comparison signal.
In one approach a power converter is disclosed. The power converter comprises an input node that receives an input, an output node that provides an output, and a switch with a variable impedance path. The variable impedance path is controlled by a control signal and controls a transfer of power from the input node to the output node. The power converter also comprises a driver circuit coupled to the switch, a sensing circuit coupled to the output node, an error amplifier coupled to the sensing circuit and a reference, and a periodic ramp generator circuit that generates a ramp signal with a slope and a varying period. The power converter also comprises a comparator with: (i) a comparator output communicatively coupled to the driver circuit; (ii) a first comparator input communicatively coupled to the error amplifier; and (iii) a second comparator input communicatively coupled to the periodic ramp generator circuit. The power converter also comprises a first control circuit that is configured to increase a slope of the ramp signal in response to an increase in the input, a second control circuit that is configured to increase the slope of the ramp signal in response to a decrease in the varying period, and a third control circuit that is configured to increase the slope of the ramp signal in response to a decrease in the output.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram of a power converter with a ramp signal generator having a variable slope that is in accordance with embodiments disclosed herein.
FIG. 2 is a block diagram of a power converter with FET power switches and a ramp signal generator having a variable slope that is in accordance with embodiments disclosed herein.
FIG. 3 is a flow chart of a set of methods for controlling a power converter that is in accordance with embodiments disclosed herein.
FIG. 4 is a block diagram of a power converter with FET power switches and a ramp signal generator having a variable slope and that receives a control input based on the output of the power converter control loop comparator which is in accordance with embodiments disclosed herein.
FIG. 5 is a block diagram of a power converter with FET power switches, a ramp signal generator having a variable slope, and an oscillator with a variable period that is in accordance with embodiments disclosed herein.



DETAILED DESCRIPTION OF THE EMBODIMENTS
Power converters often include feedback loops to maintain their outputs at a target level. For example, a power converter may receive power from a power supply in the form of a 5-volt battery, and convert that power into a regulated supply with a 3.3-volt target level for a load such as a microprocessor. The power converter will adjust itself so that the required level of power is drawn from the power supply to feed the load of the power converter while the voltage on the output of the power converter is maintained at a given level. A similar example could be given for a power converter providing a power at a target current level. The feedback loop that monitors the output of the power converter needs to operate quickly to maintain the regulated output at a desired target value in response to rapid changes in the amount of power drawn by the load. In certain approaches, the output of the power converter will also be adjustable while the power converter is operating, and the feedback loop will need to adjust quickly to the new target value.
The feedback loop of a power converter can influence the amount of power being transferred from the supply to a load by providing a control signal to a switch circuit that is coupled between the input of the power converter and the output of the power converter. By modulating the amount of time in a given period during which the switch is closed as compared to opened, the feedback loop will be able to match the amount of power that flows through the switch between the input and the output to keep the load regulated within a desired range. These kinds of power converters can be referred to as switching converters or switching regulators. The amount of time in a given period in which the switch is closed is referred to as the duty cycle of the converter.
Switching regulators often utilize a comparator to set the duty cycle of the converter. The comparator is used to compare a periodic ramp signal with what is referred to as an error signal. The error signal is on the main feedback path of the power converter and contains information regarding the relationship of the output of the power converter to a desired target output. As the error signal increases or decreases, the point at which the error signal crosses the ramp signal in any given period will change, thereby allowing the error signal to set the duty cycle of the power converter in combination with the periodic ramp signal and the comparator.
A comparator receives at least two inputs on first and second input pins and outputs a signal based on a comparison of those two inputs on an output pin. The polarity of the output signal will change when one input crosses the other input. In switching regulators, the comparator is part of the feedback loop, and hence the rate at which the output signal changes contributes to the overall time it takes for the feedback loop to respond to a change in the output of the power converter.
In general, a comparator circuit switches its output when either signal it is comparing crosses the other signal it is comparing. An ideal comparator would switch its output in the same way regardless of the common mode of the two signals. However, in actual circuit implementations how rapidly one signal is changing as it crosses the other, and the relative point at which that cross over occurs has an impact on how fast the comparator output switches. A power converter that takes in a supply at a voltage of 5V, regulates an output at 1V, and has a 10 MHz switching period with a 100 mV ramp, can be used to illustrate this point. Under these conditions, the power converter could use a 20% duty cycle and would therefore switch after rising 20 mV (i.e., 20% of a 100 mV ramp). A reasonable implementation for a comparator in this situation may transition on the order of 10 ns. Using the same external conditions, but increasing the ramp amplitude to 400 mV, the converter would switch at 80 mV and the ramp would be increasing at a much faster rate at the point it crosses the error voltage. The same comparator in this situation may transition on the order of 5 ns. In addition, the larger ramp approach is better protected from pulse skipping or half frequency operation.
Returning to the example of a switching regulator, the slope of the ramp at the point at which the error voltage crosses the ramp voltage is affected by numerous factors. However, approaches disclosed herein allow a power converter to maintain the slope of the ramp and the cross over point of the comparator above a target level regardless of any changes to these factors. The control loop can be designed such that the operating point for the comparator coincides with the optimal range for the comparator in terms of maximizing the speed at which the output of the comparator changes. Effectively, the characteristics of the control loop can be altered so that the information regarding the required duty cycle is allowed to flow through the loop while the operating point of the power converter is kept in its optimal range.
Power converters that can be designed to exhibit the aforementioned feature can comprise various topologies. For explanatory purposes, FIG. 1 is a block diagram of a power converter 100 with an input node receiving an input and an output node providing an output. In this example, the specific input can be conceptualized as an input voltage VIN provided by a power supply such as a battery, a mains power supply, or another power converter, while the output can be conceptualized as an output voltage VOUT provided to a load 101 such as an ASIC, microprocessor, MEMS device, or other device that consumes power. Power converter 100 includes a switching circuit 102 that controls a transfer of power between the input and the output of the power converter. The switching circuit 102 is controlled by a control signal generated by a feedback loop. Switching circuit 102 is coupled between the input node of the power converter and the output node of the power converter.
The example topology of FIG. 1 could be that of a buck converter, but the teachings herein are more broadly applicable to buck, boost, buck-boost, boost-buck, or transformer-based converters. Also, the example shows the input and output as voltages, but current signals could likewise be conceptualized as the regulated output and the input of the power converter. In FIG. 1, the switching circuit 102 is coupled between the input and the output. The switching circuit could comprise an individual active device such as a field effect transistor (FET), bipolar junction transistor (BJT), pin diode, or IGBT. The switching circuit could include a variable impedance path coupled between the input and the output. The state of the variable impedance path could be set by the feedback loop.
Power converters that are designed in accordance with this disclosure may include a feedback loop. In the example of FIG. 1, power converter 100 includes a feedback loop. The feedback loop of power converter 100 includes sensing circuit 103, error amplifier 104, comparator 105, and driver circuit 106. The error amplifier 104 receives a reference voltage VREF and generates an error signal based on the relative value of VREF as compared to the voltage provided by sensing circuit 103. The error amplifier could be coupled to sensing circuit 103 and a reference. Sensing circuit 103 can be as simple as a voltage divider connected to VOUT and ground with an input coupled to the output node of the power converter at VOUT. In other implementations, a sensing circuit connected to the output of the power converter can provided a signal that is indicative of other signals in the power converter such as a current through an output filter, a current through the switching circuit, or any other value, while VREF is commensurately adjusted to match a target value for that parameter.
The comparator of a switching regulator can compare the error voltage with a ramp voltage to set the duty cycle of the power converter's switching circuit. The comparator output could be communicatively coupled to a driver circuit of the power converter. The comparator could also have two inputs with a first comparator input communicatively coupled to the error amplifier and a second comparator input communicatively coupled to a ramp signal generator. In power converter 100, comparator 105 includes a first input and a second input and provides an output to driver circuit 106 which in turn modulates the time switching circuit 102 is closed. Comparator 105 receives the error voltage on one input and the output of a ramp generator circuit 107 on a second input. As illustrated, ramp generator circuit 107 can include multiple control inputs. Ramp generator circuit 107 can be a periodic ramp signal generator that generates a ramp signal with a slope and a varying period. The slope of the ramp could also be variable.
The ramp generator of a switching regulator can adjust the characteristics of its generated ramp based on signals that describe the current state of the ramp generator. In power converter 100, ramp generator circuit 107 can respond to three different control circuits 108, 109, and 110 providing signals to these control inputs. The control circuits can each individually receive information regarding the state of the power converter and provide a control signal based on that information to the ramp generator. As specific examples, control circuits 108, 109, and 110 could receive information regarding the input of the power converter 100, the output of the power converter 100, and a desired period of the ramp signal respectively. Ramp generator circuit 107 can respond to the three different control circuits in several ways. For example, ramp generator circuit 107 can respond by altering a slope of the periodic ramp signal. The manner in which the slope is altered will be described in more detail below, but in general, the slope will be altered to maintain the speed of the comparator at a target level.
Ramp generators used with the power converters disclosed herein can exhibit various features. For example, the ramp generators could be controlled by an oscillator. The period of the oscillator could be used to set the period of the ramp signal. The ramp signal could continue to rise throughout its period, or it could itself exhibit a duty cycle and only be rising for a fraction of its overall period. The period of the ramp signal could be adjusted while the power converter is in operation. The duty cycle of the ramp signal could likewise be adjusted. The ramp can be produced by a reactive passive component responding to a fixed voltage or current signal. For example, the ramp could be produced by a capacitor being charged in response to a fixed current. Ex ante knowledge of the capacitance and current magnitude would allow a designer to set the slope of the ramp. The ramp could return to a low voltage by rapidly discharging the capacitor. Alternatively, the ramp could return to a low level by disconnecting the node containing the ramp signal from the charging circuit. The ramp generators can receive control signals from at least one of the control circuits. The control circuits could influence the slope of the ramp signal by adjusting the size of a reactive component or adjusting the magnitude of the charging current. For example, a capacitor being charged by a current could set the slope of the ramp and the capacitor or current could be varied to alter the slope of the ramp. The control circuits could adjust the slope based on at least two of the input to the comparator, the output of the comparator, or a desired period of the ramp signal itself.
FIG. 2 illustrates a power converter 200 with a switching circuit 201 and output filter 202 configured to allow power converter 200 to operate as a buck or step-down converter. Power converter 200 will therefore be able to produce a regulated voltage at the output VOUT that is lower than the input voltage provided at the input VIN. The input could be an input voltage received from a power supply such as a battery or mains power supply. The output could be a regulated voltage provided to a processor or other load with variable power demands. The control loop of power converter 200 is similar to that of power converter 100 except that the control loop in power converter 200 is limited to a voltage mode control loop. In power converter 200, the error signal produced by error amplifier 104 is an error voltage.
The switching circuit 201 of power converter 200 includes two n-type FETs 203 and 204 to serve as the switches for switch circuit 201. However, the switches could both be p-type FETs or could be of differing polarity. The FETs include gates and variable impedance paths responsive to a control signal applied to those gates. Switching circuit 201 is coupled in between the input node of the power converter and the output node of the power converter in that FET 203 provides a variable impedance path that serves to transfer power from the input of the power converter to the output of the power converter. FET 203 can be referred to as the control FET of power converter 200. FET 204 can be referred to as the synchronous rectifier FET or synch FET of power converter 200. As illustrated, the gates of FET 203 and FET 204 receive control signals from a driver circuit 205. The current through FET or the voltage across either FET could be sensed to provide information to the control loop.
Output filter 202 includes a capacitor and an inductor. The action of this combined circuit will be to smooth variation in VOUT while the switching circuit or load is changing its state. In this particular power converter illustrated, the output of output filter 202 is sensed by sensing circuit 103. However, in other approaches, the current through the inductor of the capacitor could be sensed in combination or in the alternative to provide information to the control loop.
Driver circuit 205 is coupled to FET 203 and FET 204 and provides control signals to the FETs to alter the state of a variable impedance path between the source and drain of the FETs. Driver circuit 205 is in turn controlled by the output of comparator 105. Additional control signals such as blanking signals that prevent both switches (FETs 203 and 204) from being on at the same time, or tristate signals that automatically turn both switches off in the event of a fault condition, could also be applied to driver circuit 205.
FIG. 3 shows a flow chart 300 of a set of methods for controlling a power converter. The methods include a step 301 of controlling a switch using a control signal. The switch controls a transfer of power between an input node of the power converter and an output node of the power converter. The input node receives an input. With reference to FIG. 2, the input could be a voltage from a power supply on node VIN and the switch could be FET 203. In this approach, controlling the switch in step 301 could comprise applying a control signal to the gate. The control signal could be a comparison signal generated in step 305 below. With reference to FIG. 2, the control signal could be the signal provided from the output of comparator 105 to drive circuit 205.
Flow chart 300 also includes a set of steps that involve the transfer of information back through the control loop of the power converter. These steps could generate the control signal that is utilized in step 301. The steps could include steps 302-305 as described immediately below.
In step 302, the output of a power converter is measured. With reference to FIG. 2, this step could be a continuous process executed by a sensing circuit 103 detecting the voltage on the output of the power converter at VOUT. Alternatively, this step could involve sensing an output current, or indirectly sensing either value via the measurement of signals and other voltages that are correlated with the power converter output.
In step 303, an error signal is generated based on the output. With reference to FIG. 2, this step could involve error amplifier 104 comparing a voltage signal from sensing circuit 103 with a reference voltage VREF. Alternatively, this step could involve an evaluation of any feedback signal regarding the state of the power converter. This evaluation could include the use of a reference signal such as an externally applied reference signal or an internally generated reference voltage. The reference voltage could be generated by a voltage divider with the power supply of the power converter serving as an input.
In step 304, a periodic ramp signal is generated with a varying period. With reference to FIG. 2, this step could involve ramp generator circuit 107 producing a ramp signal with a period that can be increased or decreased by one or more control circuits such as control circuits 108, 109, and 110. Step 304 could also include generating an oscillator signal using an oscillator. The oscillator signal could have a variable oscillator frequency. The period of the ramp signal could be varied by varying the frequency of the variable oscillator. Step 304 could also include timing a start of the ramp of the periodic ramp signal using the oscillator signal. In certain approaches, the ramp will be increasing from its minimum value at the start of each period of the oscillator signal.
In step 305, a comparison signal is generated. The comparison signal can be generated based on the error signal generated in step 303 and the ramp signal generated in step 304. A comparator could receive the error signal on a first input terminal and the ramp signal on a second input terminal. With reference to FIG. 2, this step could involve comparator 105 receiving an error signal from error amplifier 104 and a ramp signal from ramp generator circuit 107. Comparator 105 could generate the comparison signal based on a comparison of those two signals.
Steps 301-305 described above are illustrated in linear fashion to facilitate a description of the comparator's control loop. However, each step in the control loop may be simultaneously executed when the loop is serving to control the comparator as information is continually transferred via negative feedback to regulate the output of the comparator within a targeted degree of variation.
Steps 306-309 are drawn to modifications to the slope of the ramp signal generated in step 304 above. As such, these steps are illustrated as separate from the steps that describe the behavior of the control loop because they may be executed by the controller at any time to modify the instantaneous behavior of the control loop. In step 306, a control circuit increases or decreases a slope of the ramp signal that is generated in step 304. This step can be conducted by one or more control circuits. With reference to FIG. 2, the control circuits could include one or more of control circuits 108, 109, and 110. The control circuits can increase or decrease the slope of the ramp signal in response to varying signals. For example, the control circuits could receive an external control signal applied from a control outside of the power converter. As another example, the control signal could sense individual current or voltages within the power converter to adjust the ramp of the ramp signal based on the state of the power converter.
In step 307, a change in the input is detected. In step 306, the slope of the ramp could be increased or decreased in response to that input. In certain approaches, the combined action of steps 307 and 306 could involve increasing a slope of the ramp signal in response to an increase in the input or decreasing a slope of the ramp signal in response to a decrease in the input. The direction in which the slop is adjusted could be selected in order to preserve the switch over point of a comparator in the control loop of the power converter. With reference to FIG. 2, the comparator could be PWM comparator 105. The first control circuit 108 could be configured to increase a slope of the ramp signal in response to an increase in the input and decrease a slope of the ramp signal in response to a decrease in the input. The state of the input could be determined via an analog sensing circuit that could detect the input current or voltage. As such, the input to first control circuit 108 could be connected directly to node VIN. However, the input could also be connected to an alternative source for information regarding the status of VIN such as an external control circuit or a monitor integrated with the supply itself. The sensing circuit could convert the sensed signal into digital information for use by the control circuit that altered the ramp, or the ramp generator could be configured to adjust the ramp based directly on the analog form of the sensed signal.
In step 308, a change in the period of the ramp signal generator is detected. In certain switching power converters, the duty cycle of the control signal applied to the power switches changes during regular operation, and the frequency of the control signal also changes. The change in frequency can be conducted by a control circuit that is external to the main control loop or integral to the control loop. In other words, the change in frequency could be based on information gleaned regarding the state of the output or could be based on some other source of information. In step 306, the slope of the ramp could be increased or decreased in response to the change in the period.
In certain approaches, the combined action of steps 308 and 306 could involve increasing a slope of the ramp signal in response to a decrease in the period or decreasing a slope of the ramp signal in response to an increase in the period. The direction in which the slope is adjusted could be selected in order to preserve the switch over point of a comparator in the control loop of the power converter. With reference to FIG. 2, the comparator could be PWM comparator 105. The second control circuit 109 could be configured to increase a slope of the ramp signal in response to a decrease in the period and decrease a slope of the ramp signal in response to an increase in the period. The period of the ramp generator signal could be determined via an analog sensing circuit that could detect the period of the ramp or an oscillator circuit, if one were used to control the period of the ramp. The period of the ramp could also be indirectly determined by information from a control circuit that was actively setting the frequency of the ramp generator circuit. For example, a digital control circuit that was setting the frequency of the ramp generator circuit by providing a digital code could provide the same digital code to the ramp generator circuit for purposes of controlling the slope of the ramp produced by the ramp generator circuit.
In step 309, a change in the output of the power converter is detected. In certain switching power converters, the output of the power converter can be set to different target levels during regular operation. This form of adjustment is in addition to the natural variation of the output based on the lag between the power converter adjusting itself and a change in the power demanded by the load. For example, the power converter might need to regulate a load at 3.5 volts in low temperature conditions and 3.3 volts at room temperature conditions. As such, a control circuit could alter the target voltage of the power converter when the temperature changed to match these targets. With reference to FIG. 2, an example of how this could be done is an adjustment to the reference voltage VREF. In step 306, the slope of the ramp could be increased or decreased in response to the change in the output.
In certain approaches, the combined action of steps 308 and 306 could involve increasing a slope of the ramp signal in response to a decrease in the output or decreasing a slope of the ramp signal in response to an increase in the output. The direction in which the slope is adjusted could be selected in order to preserve the switch over point of a comparator in the control loop of the power converter. With reference to FIG. 2, the comparator could be comparator 105. The third control circuit 110 could be configured to increase a slope of the ramp signal in response to a decrease in the output and decrease a slope of the ramp signal in response to an increase in the output. The output of the power converter could be determined via an analog sensing circuit that could detect the output of the power converter. Alternatively, the output of the power converter could be indirectly determined by information from a control circuit that was actively setting the output of the power converter to a desired level. For example, a digital control circuit that was setting the output of the power converter by providing a digital code to elements of the control loop could provide the same digital code to the ramp generator circuit for purposes of controlling the slope of the ramp produced by the ramp generator circuit.
Power converters such as power converter 100 could be configured to execute each of steps 307, 308, and 309. These power converters could also be configured to execute two or more of these steps during regular operation. The steps could be conducted while the power converter was regulating its output or during a configuration mode. One or more of steps 307, 308, and 309 could all be conducted simultaneously. In these approaches, step 306 could involve reconciling countervailing changes from the three different steps. With reference to FIG. 2, ramp generator circuit 107 could include logic, analog controls, or both that would reconcile countervailing changes received from two or more of control circuits 108, 109, and 110. The control circuits could cause the ramp of the ramp signal produced by ramp generator circuit 107 to vary proportional with the signal they operated upon. A scaling factor could be selected by a designer. The scaling factor could be embedded in the control circuit or within the ramp generator circuit itself. For example, a capacitor used to set the rise time of the ramp generator could double in size in response to a doubling of an input from control circuit 108 but only decrease by one quarter in size in response to a halving of an input from control circuit 109. The scaling factor for the combination of each control circuit with the ramp generator could be tuned for the particular input the control circuit received.
The slope of the ramp signal can be adjusted to preserve the crossover point of the inputs of a comparator in the control loop of the power converter. In particular approaches, the slope of the ramp signal will be adjusted to keep the crossover point of the error signal and the ramp signal above a certain minimum to provide the comparator with sufficient overdrive to meet a desired speed constraint such as the cross over point exceeding 300 millivolts to meet a minimum comparator output settling time of 5 nanoseconds with a comparator supply current of less than 12 uA. In other approaches, increasing and decreasing the slope of the ramp signal serves to maintain a crossover point of the error signal and the ramp signal within a range of a target crossover point despite variations in the output of the power converter, input of the power converter, and varying period of the switching signal. For example, the increasing and decreasing of the slope of the ramp could preserve the crossover point to within 100 millivolts of a target cross over point despite variations of 0.5-5 V in the output, 3.3-24 V in the input, and 500 kHz-8 MHz in the period with less than 20 uA of supply current.
A power converter may be initially operating in a first quiescent state with error signal VERR1 and a duty cycle D1. At a given time, the power converter may experience a change in its state when the input of the power converter increases. As a result, the duty cycle of the power converter will need to contract as a larger amount of power will flow through the power converter in a given period of time with a larger voltage supply. However, the slope of the ramp signal could also be increased, and the same duty cycle point can be reached for the power converter to operate correctly while the crossover point of the error signal and ramp signal is preserved.
A power converter may be initially operating in a first quiescent state with error signal VERR1, a duty cycle D1, and a period T1. The switching period can be the same thing as the period of the ramp signal, and both can be equal to T1. At a given time, the power converter may experience a change in its state when the switching period of the power converter decreases to T2 from T1. This would be caused by, for example, an increase in the switching frequency of the converter. As a result, the duty cycle of the power converter will need to be preserved despite the decrease in the period. This adjustment is implemented by the control loop via a decrease in the error signal. However, if the slope of the ramp signal is concomitantly increased, the same duty cycle point can be reached for the power converter to operate correctly while the crossover point of the error signal and ramp signal are preserved and the slope of the ramp is increased.
The approaches disclosed herein can also be used in combination with variations in the output of the power converter. With reference to variations in the input voltage, one difference is that the relationship between the variation and the required commensurate change in the slope of the ramp signal is inverted. The shift in the error signal could be caused by a decrease in the target output voltage of the power converter as opposed to an increase in the input voltage of the power converter. However, aside from a change in the scaling factor and other factors, the change in the slope of the ramp signal can still preserve the crossover point of the comparator while allowing for an increase in the slope of the ramp signal. In addition, the target output voltage is more likely to be a signal for which a digital code is available to the power converter such that in certain approaches adjusting the slope for changes in the output can be based on the application of a digital code representative of changes in the output while changes in the input are monitored using an analog sensing circuit.
A power converter can utilize one, two, or all three forms of variation described in the previous paragraphs. In the case of two or three forms of variation used in combination, a change in one operating point variable may counteract a change in another operating point variable and leave the ramp slope unchanged. For example, in a situation where the ramp slope varied with both the input and the output of the power converter simultaneously, if the input and output increased proportionally, the ramp slope would remain unchanged. The variation of the different operating point variables can combine to influence the slope of the ramp according to a shared scaling factor. For example, in a situation in which the ramp slope was altered by changing the charge current for a capacitor in the ramp signal generator circuit, the current could be Icharge=K1×VIN×f/VOUT, where K1 was the shared scaling factor, VIN was an input voltage to the converter, VOUT was an output voltage of the converter, and f was the switching frequency of the converter.
Certain approaches disclosed above can be used in combination with the control loop architecture illustrated by power converter 400 in FIG. 4. In power converter 400, the output of the comparator 105 is fed back to ramp signal generator circuit 107. The purpose of this feedback is to allow the ramp to shutoff after the comparator has tripped for a given switching cycle of the power converter. Although a direct connection is shown, the signal could be fed back from further down the control loop such as internal to driver circuit 205. In certain approaches, the signal will be fed back from the output of a latch that is used to latch the comparator signal after it trips. The latch could be in driver circuit 205. In these approaches, the step 304 of generating the ramp could include timing an end of the ramp of the periodic signal using the comparison signal generated in step 305. For example, when the comparison signal indicates a cross over point has been reached in a comparison of the ramp signal to the error signal, the ramp signal could return to a minimum value instead of continuing to increase. Since the ramp signal has effectively served its purpose at the time the comparator switches, in some approaches there is no reason to continue ramping the ramp signal, and the ramp signal generator circuit can be turned off to preserve power.
Certain approaches disclosed above can be used in combination with the control loop architecture illustrated by power converter 500 in FIG. 5. The power converter of FIG. 5 includes an oscillator 501. Oscillator 501 can have a variable period and can be used to set the period of the ramp signal generated by ramp generator circuit 107. The start of the ramp signal can be set by the oscillator. In certain approaches, the start of a period of the oscillator can cause the ramp signal to begin rising from a minimum value. As with power converter 400, the ramp generator circuit 107 of FIG. 5 includes a connection to the output of power converter 105. As such, the start of the ramp signal in power converter 500 can be set by oscillator 501 while the end of the ramp signal can be set by the output of comparator 105.
A power converter can include a control circuit to respond to a digital code and control an output of the power converter. In combination or in the alternative, a power converter can include a control circuit to respond to a digital code and control a switching frequency of the power converter. As illustrated, power converter 500 includes a fourth control circuit 502 and a fifth control circuit 503. Fourth control circuit 502 responds to a first digital code d1 and controls the switching frequency of the power converter based on that digital code. Digital code d1 is provided to oscillator 501 and alters the oscillation frequency of oscillator 501. Digital code d1 is likewise provided to the second control circuit 109 to cause an adjustment to the slope of the ramp signal generated by ramp generator circuit 107 as described above. Fifth control circuit 503 responds to a second digital code d2 and controls a target output voltage on node VOUT based on that digital code. Digital code d2 is provided to the third control circuit 110 to cause an adjustment to the slope of the ramp generated by ramp generator circuit 107 as described above.
While the specification has been described in detail with respect to specific embodiments of the invention, it will be appreciated that those skilled in the art, upon attaining an understanding of the foregoing, may readily conceive of alterations to, variations of, and equivalents to these embodiments. All of the circuitry discussed with reference to FIGS. 1, 2, 4, and 5 could be integrated on a single monolithic substrate include the logic required for any control circuits and the power FETs in the power converter switching circuit. Although examples in the disclosure were directed to switching power converters that provided a fixed voltage to a regulated regime, the same approaches can be applied to power converters that provide a fixed current to a regulated regime. Although examples in the disclosure were directed to switching power converters in buck configuration, similar approaches can be applied to boost converters, buck-boost, boost-buck, or transformer-based converters. In the provided examples, the polarity of reference, ground, and signal carrying voltages can be switched in whole or in part to achieve similar results. For example, a logic low and logic high could be switched provided an additional inverter was added to the system or provided the entire system switched. Furthermore, although examples in the disclosure were directed to switching converters the approaches disclosed herein apply to any power converter scheme that utilizes comparators and includes a control loop. These and other modifications and variations to the present invention may be practiced by those skilled in the art, without departing from the scope of the present invention, which is more particularly set forth in the appended claims.

## Claims

1. A method for controlling a power converter comprising:
controlling a switch using a control signal, wherein the switch controls a transfer of power between an input node of the power converter and an output node of the power converter, and wherein the input node receives an input;
measuring an output of the power converter;
generating an error signal based on the output;
generating a periodic ramp signal with a varying period;
providing the error signal to a first input terminal of a comparator;
providing the ramp signal to a second input terminal of the comparator;
generating a comparison signal based on the error signal and the ramp signal using the comparator;
increasing a slope of the ramp signal in response to an increase in the input; and
increasing the slope of the ramp signal in response to a decrease in the varying period;
wherein the control signal is based on the comparison signal.

2. The method of claim 1 further comprising:
increasing the slope of the ramp signal in response to a decrease in the output.

3. The method of claim 2 further comprising:
decreasing the slope of the ramp signal in response to a decrease in the input;
decreasing the slope of the ramp signal in response to an increase in the varying period; and
decreasing the slope of the ramp signal in response to an increase in the output;
wherein the decreasing of the slope and the increasing of the slope is conducted according to a fixed scaling factor with the input, a second fixed scaling factor with the varying period, and a third fixed scaling factor with the output.

4. The method of claim 3 wherein:
increasing and decreasing the slope of the ramp signal serves to maintain a crossover point of the error signal and the ramp signal above 300 millivolts.

5. The method of claim 3 wherein:
increasing and decreasing the slope of the ramp signal serves to maintain a crossover point of the error signal and the ramp signal within 100 millivolts of a target cross over point with less than 20 μA of current consumed by a control circuit of the power converter and despite variations of: (i) 0.5-5V in the output; (ii) 3.3-24V in the input; and (iii) 500 kHz-8 MHz in the varying period.

6. The method of claim 2 further comprising:
altering the output using a first control circuit and a digital code;
wherein the increasing of the slope of the ramp signal in response to a decrease in the output is conducted using a second control circuit and the digital code.

7. The method of claim 1 wherein:
the input is an input voltage received from a power supply;
the output is a regulated output voltage provided to a load;
the error signal is an error voltage;
the switch is a control field effect transistor with a gate and a variable impedance path;
controlling the switch includes applying the control signal to the gate;
the output node and the input node are coupled via the variable impedance path; and
the output node is coupled to an output filter of the power converter.

8. The method of claim 1 wherein generating the periodic ramp signal comprises:
generating an oscillator signal using an oscillator, wherein the oscillator signal has a variable oscillator frequency;
timing a start of a ramp of the periodic ramp signal using the oscillator signal; and
timing an end of the ramp of the periodic ramp signal using the comparison signal;
wherein the varying period is set by the variable oscillator frequency.

9. The method of claim 1 further comprising:
generating an oscillator signal using an oscillator, wherein the oscillator signal has a variable oscillator frequency;
timing a start of a ramp of the periodic ramp signal using the oscillator signal; and
altering the variable oscillator frequency using a first control circuit and a digital code;
wherein the increasing of the slope of the ramp signal in response to a decrease in the varying period is conducted using a second control circuit and the digital code.

10. A method for controlling a power converter comprising:
controlling a switch that controls a transfer of power between an input node of the power converter and an output node of the power converter using a control signal, wherein the input node receives an input;
measuring an output of the power converter;
generating an error signal based on the output;
generating a ramp signal;
providing the error signal to a first input terminal of a comparator;
providing the ramp signal to a second input terminal of the comparator;
generating a comparison signal based on the error signal and the ramp signal using the comparator;
increasing a slope of the ramp signal in response to an increase in the input; and
increasing the slope of the ramp signal in response to a decrease in the output;
wherein the control signal is based on the comparison signal.

11. The method for controlling a power converter from claim 10, further comprising:
increasing the slope of the ramp signal in response to a decrease in a varying period of the ramp signal.

12. The method of claim 11 wherein generating the periodic ramp signal comprises:
generating an oscillator signal using an oscillator, wherein the oscillator signal has a variable oscillator frequency;
timing a start of a ramp of the periodic ramp signal using the oscillator signal; and
timing an end of the ramp of the periodic ramp signal using the comparison signal;
wherein the varying period is set by the variable oscillator frequency.

13. The method of claim 11 further comprising:
decreasing the slope of the ramp signal in response to a decrease in the input;
decreasing the slope of the ramp signal in response to an increase in the varying period; and
decreasing the slope of the ramp signal in response to an increase in the output;
wherein the decreasing of the slope and the increasing of the slope is conducted according to a fixed scaling factor with the input, a second fixed scaling factor with the varying period, and a third fixed scaling factor with the output.

14. The method of claim 11 further comprising:
generating an oscillator signal using an oscillator, wherein the oscillator signal has a variable oscillator frequency;
timing a start of a ramp of the periodic ramp signal using the oscillator signal; and
altering the variable oscillator frequency using a first control circuit and a digital code;
wherein the increasing of the slope of the ramp signal in response to a decrease in the varying period is conducted using a second control circuit and the digital code.

15. The method of claim 10 wherein:
the input is an input voltage received from a power supply;
the output is a regulated output voltage provided to a load;
the error signal is an error voltage;
the switch is a control field effect transistor with a gate and a variable impedance path between the input and the output;
controlling the switch includes applying the control signal to the gate;
the output node and the input node are coupled together by the variable impedance path; and
the output node is coupled to an output filter of the power converter.

16. The method of claim 10 further comprising:
altering the output using a first control circuit and a digital code;
wherein the increasing of the slope of the ramp signal in response to a decrease in the output is conducted using a second control circuit and the digital code.

17. A power converter comprising:
an input node that receives an input;
an output node that provides an output;
a switch with a variable impedance path, wherein the variable impedance path is controlled by a control signal and controls a transfer of power from the input node to the output node;
a driver circuit coupled to the switch;
a sensing circuit coupled to the output node;
an error amplifier coupled to the sensing circuit and a reference;
a periodic ramp generator circuit that generates a ramp signal with a slope and a varying period;
a comparator with: (i) a comparator output communicatively coupled to the driver circuit; (ii) a first comparator input communicatively coupled to the error amplifier; and (iii) a second comparator input communicatively coupled to the periodic ramp generator circuit;
a first control circuit that is configured to increase a slope of the ramp signal in response to an increase in the input;
a second control circuit that is configured to increase the slope of the ramp signal in response to a decrease in the varying period; and
a third control circuit that is configured to increase the slope of the ramp signal in response to a decrease in the output.

18. The power converter of claim 17, further comprising:
an output filter coupled to the output node;
a second switch coupled to the switch and a ground voltage;
wherein the switch and the second switch are field effect transistors;
wherein the input is an input voltage received from a power supply; and
wherein the output is a regulated output voltage provided to a load.

19. The power converter of claim 18:
an oscillator with an oscillator control input to vary a period of oscillation of the oscillator;
wherein a start of the ramp signal is set by the oscillator; and
wherein an end of the ramp signal is set by the comparator.

20. The power converter of claim 18:
a fourth control circuit that responds to a first digital code and that controls the oscillator control input; and
a fifth control circuit that responds to a second digital code and that controls the output on the output node;
wherein the second control circuit responds to the first digital code; and
wherein the third control circuit responds to the second digital code.