1. Field of the Invention
This invention relates to voltage converters and more particularly to control of voltage converters.
2. Description of the Related Art
Voltage converters, also sometimes referred to as voltage regulators, are used in various applications to translate an input voltage to a regulated output voltage. Switching converters may provide, e.g., a regulated DC output voltage from an unregulated AC input or a translated DC output from a DC input. Such converters can be required when the voltage level of available power needs to be changed to meet the requirements of circuitry that operates at a higher or lower voltage than the available voltage.
In one embodiment a voltage converter is provided having a switching cycle with an ON portion and an OFF portion. The voltage converter includes a current control loop to sense current through an inductor and to compare the sensed current to a threshold current value to determine when to end the ON portion, during which the current flows through the inductor. A voltage control loop senses the output voltage of the voltage converter and determines a difference between the sensed output voltage and a threshold voltage and supplies an indication of the difference for use in determining the threshold current value. A timing control loop compares a switching frequency of the voltage converter with a target switching frequency and adjusts the OFF portion of the switching cycle based on the comparison.
In another embodiment a voltage converter has a switching cycle with a first portion and a second portion. The voltage converter includes a first control loop to sense a parameter of the voltage converter and to end a first portion of the switching cycle based on the sensed parameter. The voltage converter further includes a frequency control loop to compare a switching frequency of the voltage converter with a target frequency and to generate an indication thereof. The frequency control loop adjusts the second portion of the switching cycle based on the indication. The second portion of the switching cycle is substantially constant over short periods of time but varying over longer periods of time.
In another embodiment a method is provided that includes sensing current flowing through an inductor and comparing the sensed current to a threshold current value to determine when to end an ON portion of a voltage converter having a switching cycle with the ON portion and an OFF portion to control the current through the inductor. The method further includes a voltage control loop determining a difference between an output voltage of the voltage converter and a reference voltage value and supplying an indication of the difference to adjust the threshold current value. A frequency control loop compares a switching frequency of the voltage converter with a target frequency and adjusts OFF time of the switching cycle based on the comparison. The adjusting of the OFF time occurs at a lower rate than adjustment of the current threshold.
In another embodiment a method includes sensing at least one parameter of a voltage converter and using the sensed parameter to end a first portion of a switching cycle of the voltage converter based on the sensed parameter, the switching cycle having the first portion and a second portion. The method further includes comparing a switching frequency of the voltage converter with a target frequency and generating an error indication thereof. The method adjusts the second portion of the switching cycle based on the error indication, the second portion of the switching cycle being a pseudo-constant portion of the switching cycle, the adjusting of the second portion using a frequency control loop having a first bandwidth that is lower than a second bandwidth of another control loop used in the voltage converter that is associated with determining when to end the first portion.
The present invention may be better understood, and its numerous objects, features, and advantages made apparent to those skilled in the art by referencing the accompanying drawings.
The use of the same reference symbols in different drawings indicates similar or identical items.
Boost converters, buck/boost converters, flyback converters, asymmetric half bridge converters and other converter topologies store energy in the inductor in a portion of the converter switching cycle and take energy back out and transfer the energy into the output in another portion of the switching cycle. The current through the inductor represents the amount of energy stored in the inductor. Measurement of current through the inductor serves as a proxy for how much energy is being input in a particular cycle. One way to control voltage converters is to control how much energy is being put into the inductor by measuring peak current through the inductor. When the peak current reaches a desired threshold, the converter stops additional current from being input into the inductor for the remainder of the cycle to stop storing energy when the desired peak current is reached.
Referring to
There are several approaches to controlling the operation of the converter circuit. One control strategy is constant frequency as illustrated in
Most of the energy in a constant frequency control system is found at the fundamental frequency. Other spectral content depends on the duty cycle. A problem with fixed frequency peak current control is that the system can become unstable when duty cycle is greater than 50% (when ON time is greater than OFF time). Such a duty cycle can result in chaotic behavior resulting in having a long ON time, then a short ON time, etc. A solution to such chaotic behavior is to add another circuit that provides slope compensation. Slope compensation reduces gain in the positive feedback loop that causes the instability until the loop is no longer unstable. A slope compensation system senses the output voltage and adjusts the current target over the course of the cycle. The additional circuitry required for slope compensation can reduce performance of converter.
The exemplary voltage converter 100 is an isolated system and includes an isolated communication channel 116 to provide the sensed voltage information as feedback from the secondary to the primary side. Isolated communication channels are utilized in various applications where necessary to prevent current flow between separate electric circuits while still maintaining communication between the circuits. The isolation may be required for signal isolation, safety, or for other reasons. Within power conversion products, communication links that provide isolation typically provide control and/or feedback information between high and low voltage circuits in the power conversion products. Communication between isolated circuits has typically involved a transmitter and receiver communicating over a single isolation channel. The isolation channels may be implemented, e.g., using capacitive, optical, or inductive isolation techniques.
One way to provide the feedback of the output voltage is to send back the output voltage. In another approach, rather than sending the sensed output voltage, an amplified error signal is sent that is determined based on a comparison between the output voltage and a reference voltage. The precision necessary in the isolation channel can be less if there is gain in the system before the isolation channel so that the signal to noise ratio of the transmission of the error signal across the isolation channel is improved. An integrator provides such a gain in a frequency-dependent manner, and/or a simple amplification may also be used.
Constant frequency control can be implemented with an oscillator using a resistor and capacitor (RC) provided externally to the converter and the frequency of the voltage converter is locked to that oscillator. But that has the downside of using integrated circuit pins to connect the oscillator. Instead of constant frequency, another control approach uses constant OFF time for converters that use an intermediate storage element, or constant ON time. A constant OFF time control systems waits until the inductor current reaches its desired peak current and then turns OFF for a constant time as illustrated in
When using constant OFF time, the system behaves as if it is ideally slope compensated. Constant OFF time removes the danger of instability and chaotic behavior that can result from ON time being greater than OFF time in the constant frequency case. Generally, constant OFF time is relatively easy to implement and requires a comparator and a constant delay. A problem with constant OFF time is the fact that frequency is changing. A variable frequency can be undesirable from, e.g., the perspective of controlling EMI. Accordingly, an embodiment utilizes the advantage of constant OFF time with constant frequency by using a pseudo-constant OFF time.
A pseudo-constant OFF time embodiment has constant OFF time over short periods of time but the OFF time varies over longer periods in a slow loop to maintain a desired frequency. OFF time is adjusted in a very slow loop that adjusts frequency by adjusting the OFF time. The loop reacts slowly to changes. The average frequency is close to a desired or predetermined frequency that can be set, e.g., programmably, but when there is a transient, local disturbance, or load change, or other occurrence, then for a short period of time the frequency will not be at target frequency because the ON time will vary to address the transient or other occurrence. But the frequency control loop will slowly adjust the OFF time to return to the desired frequency.
Referring to
The frequency control loop 129 controls the frequency by adjusting the OFF time. The frequency control loop provides a controlled delay (OFF time) instead of a fixed delay (OFF time), hence the OFF time is pseudo constant rather than being constant. The frequency control loop may be implemented as a delay-locked loop (DLL).
The frequency control loop 129 measures the frequency at which the voltage converter is operating, by, e.g., measuring the onset of cycle N to the onset of cycle N+1. Thus, e.g., the rising edges of the ON portions can be used to measure the period of a voltage regulator cycle in the measurement logic 121. The measured period is supplied to a compare node 123, which compares the measured period to a reference period and provides an error signal indicative of the difference. The reference period 122 can be programmed and supplied from a variety of sources. The reference period can be based, e.g., on an external resistor and capacitor or can be supplied digitally over a communication interface or from a non-volatile or volatile memory. The error determined in the compare node 123 controls the length of the constant OFF time. If the measured period is longer than the reference period then the OFF time is decreased by the frequency control loop. If the measured period is too short (switching frequency is too high) then the length of the OFF time is increased to decrease the frequency.
The loop includes a compensation block 127 to ensure loop stability. Gain should be chosen to ensure loop stability in a manner well known in the art. The particular gain choice will depend on the system. The exemplary compensation block is but one example of compensation that may be used in the loop and appropriate filters should be chosen according to the requirements of the particular implementation. In an embodiment, the frequency control loop 129 has an integrator with a very low crossover frequency. In one embodiment, the loop filter is a discrete time, digital filter with a sample rate equal to the switching frequency. Using an integrator with a very low crossover frequency limits the bandwidth of the frequency control loop as compared to the bandwidth of the voltage control loop that sets the peak current based on the output voltage. In embodiments the bandwidth of the voltage control loop is an order of magnitude or more greater than the bandwidth of the frequency control loop. For example, in one embodiment the bandwidth of the voltage control loop is approximately 5 kHz and the bandwidth of the frequency control loop is approximately 50 Hz. Those bandwidths are exemplary and other bandwidth may be utilized according to the requirements of the particular implementation. In one embodiment, the loop filter is implemented as digital, discrete time filter with a sample rate equal to the switching.
While the different bandwidths of the frequency control and voltage control loops ensure that the loops are substantially independent, there is interaction. When the timing loop slowly changes the OFF time to maintain the frequency, the voltage converter adjusts its operating point slightly. For example, if the switching frequency is too fast and the OFF time is increased to slow the frequency, the output voltage changes slightly, which in turn changes peak current. But the low bandwidth of the frequency control loop ensures the frequency loop does not strongly influence the voltage control loop. Thus, the frequency remains close to the predetermined desired frequency and the voltage converter still has most of the advantages of a constant OFF time implementation. The pseudo-constant OFF time embodiment described in
While the pseudo-constant OFF time approach is useful for converter topologies that store in the inductor in a portion of the converter switching cycle and take energy back out and transfer the energy into the output during another portion of the cycle, the pseudo-constant frequency control approach may be used in other topologies. For example, the approach may be used in buck converters where energy goes directly from input to output.
Referring to
In order to control frequency, a frequency control loop 329 compares the measured switch cycle frequency to a reference frequency. The loop 329 measures the frequency at which the voltage converter is operating, by, e.g., measuring the onset of cycle N to the onset of cycle N+1. Thus, the rising edges of the control signal supplied to switch 303 can be used to measure the period of a voltage regulator cycle in the measurement logic 321. The measured period is supplied to a compare node 323, which compares the measured period to a reference period 322 and provides an error signal indicative of the difference. The reference period 322 can be programmed and supplied from a variety of sources. The reference period can be based, e.g., on an external resistor and capacitor or can be supplied digitally over a communication interface or from a non-volatile or volatile memory. The error controls the length of the constant ON time and that length is supplied to control logic 319 as DELAY. If the measured period is longer than the reference period (frequency too low) then the ON time is decreased by the loop to increase the switching frequency. If the measured period is too short (switching frequency is too high) then the length of the ON time is increased to decrease the switching frequency. Loop compensation depends on implementation of the particular system, e.g., K/s, where K is an appropriate gain factor. Constant on time control is simple but has no instability like current mode control so there is no need for slope compensation. Thus, a pseudo-constant frequency approach of
Thus, as can be seen from the embodiment of