Background of the Invention
The present invention relates to switching regulator circuits. More particularly, the present invention relates to circuits and methods for controlling the frequency of switching voltage regulators using voltage controlled oscillators.
The purpose of a voltage regulator is to provide a predetermined and substantially constant output voltage to a load from a voltage source which may be poorly-specified or fluctuating. A typical switching regulator employs a switch including a switching element (e.g., a power transistor) coupled either in series or parallel with the load. The switching regulator controls the timing of the turning ON and turning OFF of the switching element in order to regulate the flow of power to the load. Typical switching regulators employ inductive energy storage elements to convert switched current pulses into a steady load current. Thus, power in a switching regulator is transmitted across the switch in discrete current pulses (versus a linear regulator where power is transmitted across the pass element as a steady flow of current).
In order to generate a stream of current pulses, switching regulators typically include control circuitry to turn the switch ON and OFF. The switch duty cycle, which is generally defined as the percentage of time that the switch is ON relative to the total period of the oscillator, can be varied by a variety of methods. In many instances, the switching regulator needs to be synchronized to an external source. This may be accomplished by injecting an external SYNC signal into the oscillator circuit to cause the oscillator to match the SYNC signal (as is well known, the SYNC signal can only be used to speed up the oscillator circuit). In commonly used sawtooth oscillators, the voltage on a capacitor ramps up to a threshold voltage at which time the voltage resets and the cycle repeats. The effect of the SYNC signal is that the oscillator ramp signal is effectively cut short and restarted so that the oscillator produces more cycles in a given time period, but the oscillator ramp signal has a lower amplitude (because each oscillator cycle has less time to ramp up).
While pre-termination of the oscillator may not be a problem in many switching regulators, pre- termination tends to cause problems in current-mode switching regulators (i.e., switching regulators that are controlled by a current signal). One of the reasons for these problems is the fact that current-mode regulators tend to become unstable when the duty cycle exceeds 50% (i.e., when the switch is ON for more than 50% of a given oscillator period). Stability is often maintained in current-mode regulators above 50% duty cycle by injecting a slope compensation signal into the current signal. One method of producing the slope compensation signal is to "pick off" a portion of the oscillator signal to be the compensation signal. This portion, however, may be unavailable when the oscillator ramp signal is pre-terminated. Under those circumstances, the slope compensation signal is often insufficient to maintain stability in the regulator.
An additional deficiency with known switching regulators that are synchronized to a given frequency is related to the production of noise. When a regulator is held at a single frequency, such as 100 khz, noise is produced at that frequency (e.g., from the switch drivers, etc.) and at each of the harmonics of that frequency. Although the noise may be irrelevant in many circumstances, there are many other circumstances where the noise tends to affect other (i.e., non-regulator) circuit components. The noise produced at the fixed frequency tends to have a signal that is very narrow and has a relatively high amplitude (i.e., focused at the frequency of the regulator and its harmonics).
In view of the foregoing, it would be desirable to provide switching regulator circuits that include the capability to be synchronized to external signals without interfering with the slope compensation circuit.
It would also be desirable to provide switching regulator circuits and methods for synchronizing the regulators while insuring that the oscillator ramp signal reaches its predetermined peak amplitude.
It would be further desirable to provide circuits and methods for reducing effects of the noise produced in switching regulators.
Summary of the Invention
It is therefore an object of the present invention to provide switching regulator circuits that include the capability to be synchronized to external signals without interfering with the slope compensation circuit.
It is also an object of the present invention to provide switching regulator circuits and methods for synchronizing the regulators while insuring that the oscillator ramp signal reaches its predetermined peak amplitude.
It is also an object of the present invention to provide circuits and methods for reducing effects of the noise produced in switching regulators.
In accordance with these and other objects of the invention, there is provided switching regulator circuits and methods that include a phase-locked loop (PLL) circuit to synchronize the oscillator circuit to external SYNC signals. The phase-locked loop circuit, which detects the external SYNC signal and locks the oscillator onto that signal, synchronizes the oscillator circuit without interfering with the production of the slope compensation signal. The synchronization is accomplished by providing a current that varies the time required to charge the timing capacitor of the oscillator circuit. For example, if the oscillator circuit needs to speed up (i.e., the SYNC signal is faster than the oscillator signal), the phase-locked loop circuit provides an increased current to the timing capacitor so that the slope of the ramp of the oscillator increases. In this manner, the period of the oscillator signal is shortened, but the oscillator signal still reaches its maximum amplitude so that the slope compensation signal is unaffected. An additional benefit from using the phase-locked loop circuit is the ease with which the VCO signal may be modulated.
In another embodiment of the present invention, the effects of noise produced by the switching regulator circuits are reduced by varying the frequency of the regulator in a controlled manner. For example, if the regulator is otherwise locked onto a frequency of 100 khz, the noise spectrum is a relatively narrow spike having a large amplitude (because all of the noise is centered around 100 khz). The switching regulators of the present invention reduce the effects of the noise by constantly varying the frequency of the regulator, for example by operating the 100 khz regulator between 75 khz and 125 khz (i.e., a 50 khz spread). The effects of varying the frequency are that the noise spectrum is spread out over a wider area having reduced amplitudes (because the noise is not permitted to build up at a single frequency). The frequency is varied in a controlled manner by applying a control signal, such as a sawtooth waveform, to a voltage controlled oscillator circuit (VCO). The control signal is used to constantly vary the time required to charge the timing capacitor of the VCO.
Brief Description of the Drawings
The above and other objects and advantages of the present invention will be apparent upon consideration of the following detailed description, taken in conjunction with the accompanying drawings, in which like reference characters refer to like parts throughout, and in which:
FIG. 1 is a schematic block diagram of a switching regulator circuit that includes a phase- locked loop circuit in accordance with the principles of the present invention;
FIG. 2 is a general illustration of various waveforms produced by the switching regulator circuit of FIG. 1 in accordance with the principles of the present invention;
FIG. 3 is a schematic block diagram of an alternate embodiment of a switching regulator circuit in accordance with the principles of the present invention in which a voltage controlled oscillator is used to reduce the effects of noise produced by the switching regulator; and
FIG. 4 is a general illustration of two noise waveforms produced by the switching regulator circuit of FIG. 3 in accordance with the principles of the present invention.
Detailed Description of the Invention
FIG. 1 shows a schematic diagram of a switching regulator circuit 100 that can be synchronized to an external SYNC signal without impairing the slope compensation signal. Regulator 100 includes phase-locked loop circuit 102 (i.e., PLL 102), voltage controlled oscillator 104 (i.e., VCO 104), control circuit 106, output circuitry 108, error amplifier 110 and latch 112. Additionally, switching regulator 100 includes oscillator timing capacitor 114, PLL capacitor 116, PLL resistor 118, error amplifier capacitor 120 and error amplifier resistor 122.
PLL 102 includes phase detector 124 that compares an external input signal SYNC to the output signal of VCO 104 and produces a current that varies to change the operating frequency of VCO 104 as is described more fully below.
VCO 104 includes current sources 126 and 128, NPN transistors 130 and 132, a resistor divider formed by resistors 134, 136 and 138, comparator 140, buffer 142 and N-channel MOSFET 144. VCO 104 operates in conjunction with VCO capacitor 114 to produce a signal that varies linearly from zero to V.sub.MAX for each cycle of the oscillator. In the present discussion, it should be assumed that V.sub.MAX is about 1.2 volts so that the oscillator signal on capacitor 114 ramps up from zero to 1.2 volts (additionally, for the present example, assume that V+ is about 2.5 volts). The oscillator signal on capacitor 114 is produced from current supplied by current source 126 and by current source 128 flowing through diode-connected transistor 130. The current charges capacitor 114 until the voltage across capacitor 114 reaches V.sub.MAX (in this example, 1.2 volts), at which point capacitor 114 is discharged through FET 144 and the output of VCO 104 pulses HIGH (i.e., the output of buffer 142 pulses HIGH until capacitor 114 has been essentially discharged, at which point the pulse returns LOW).
The trigger for determining when to discharge capacitor 114 is controlled by comparator 140 and FET 144. Comparator 140 compares the voltage across capacitor 114 to a reference voltage that is equal to V.sub.MAX (i.e., the voltage on the negative input of comparator 140). Until the voltage on capacitor 114 reaches V.sub.MAX, the signal from comparator 140 is buffered by buffer 142 so that the output signal of VCO 104 remains LOW. Once the positive input to comparator 140 reaches V.sub.MAX, buffer 142 produces a HIGH signal, FET 144 conducts so that capacitor 114 is discharged which causes the output of buffer 142 to go LOW, and the process begins again from zero volts. The magnitude of current source 126 is controlled by the input to VCO 104 to vary the time it takes for the ramp signal to reach V.sub.MAX. For example, if the magnitude of current source 126 is increased, the ramp signal reaches V.sub.MAX sooner resulting in a higher oscillator frequency.
An additional portion of VCO 104 is the circuit formed by transistor 132 and the resistor divider formed by resistors 134, 136 and 138. This circuitry produces the slope compensation signal I.sub.SLOPE as follows. The oscillator ramp signal that appears on the emitter of transistor 130 is translated positive by an emitter base voltage (i.e., 0.7 volts) to the collector of NPN transistor 130 and the base of NPN transistor 132, so that the signal on the base of transistor 132 varies, in the present example, from 0.7 volts to 1.9 volts. The resistor divider causes the current I.sub.SLOPE, which is only required when the duty cycle exceeds 50% (because the regulator is stable below 50% duty cycle), to remain at zero until the duty cycle begins to increase above the predetermined value set by resistors 136 and 138, at which time I.sub.SLOPE begins to ramp up to a maximum value set by V.sub.MAX (which, in the present example, is 1.2 volts). The duty cycle at which I.sub.SLOPE begins to ramp up is typically set at somewhat less than 50% to provide a safety margin. In this manner, the slope compensation signal reaches its maximum value at the same time that the oscillator signal reaches its maximum value, before both signals are reset for the next cycle.
Control circuit 106 includes comparator 146, resistors 148-156, unity gain follower 158 and N- channel FET 160. Comparator 146, which is the current sense comparator, looks at the inductor current of switching regulator 100 (which is measured across resistor 162 in output circuit 108) to determine when to turn the switch 164 OFF. I.sub.SLOPE is applied to regulator 100 via the connection between the collector of transistor 132 and the negative input of comparator 146 so that I.sub.SLOPE causes a voltage drop to occur across resistor 150. The inductor current at which comparator 146 trips is based on the I.sub.THRESHOLD voltage that is input from error amplifier 110, as described below, into the voltage divider formed by resistor 152 and 154, and the relationship between resistors 148 and 156 (which establishes a voltage drop across resistor 148). In the present example, assume that resistors 152 and 154 have values of 180 K.OMEGA. and 30 K.OMEGA., respectively, so that unity gain follower 158 is set to 1/7 of the I.sub.THRESHOLD voltage, and further assume that resistors 148 and 150 are 4 K.OMEGA. resistors and that resistor 156 is 8 K.OMEGA..
Based on the resistor values presented, a current is forced through resistor 148 (at the positive input to comparator 146) that produces a voltage drop across resistor 148 equal to 1/14 of the I.sub.THRESHOLD voltage. Assuming that the forced voltage drop across resistor 148 is 100 mV, then comparator 146 triggers (by going from LOW to HIGH) to turn off switch 164 when the current through the resistor 162 (of output circuit 108) is greater than a 100 mV drop. Additionally, the slope compensation current I.sub.SLOPE, which is only generated at duty cycles above 50%, causes a voltage drop to occur across resistor 150 that adjusts when comparator 146 turns off switch 164 (as I.sub.SLOPE increases, decreasing current through resistor 162 is required to turn off switch 164).
Error amplifier 110 generates I.sub.THRESHOLD based on the error between a reference voltage VREF and the feedback signal VFB that is measured by the voltage divider formed from resistors 168 and 170 in output circuit 108. The output of error amplifier 110 charges capacitor 120 in the filter formed by capacitor 120 and resistor 122.
The regulated output signal VOUT is the voltage seen across capacitor 172, which is charged by the current flowing through resistor 162. The input signal VIN is applied to switch 164, which is closed by a signal from latch 112 (which may be, for example an R-S latch in which the R input comes from control circuit 106 and the S input comes from VCO 104). Switch 164 may be any switch conventionally used with switching regulators, such as a power transistor. If a power transistor is utilized for switch 164, switch 164 will also include the appropriate driver circuitry needed to drive the power transistor. When a single switch is used, such as switch 164, schottky diode 174 is placed between inductor 166 and ground to provide a negative path for inductor 166. An alternate embodiment of switch 164 might include utilizing a second switch (not shown) in place of schottky diode 174.
FIG. 2 shows three illustrative waveforms, all having the same scale with respect to time t, of signals produced by switching regulator 100 of FIG. 1. Waveform 202 illustrates the waveform produced across capacitor 114 as capacitor 114 is charged and discharged between zero volts and V.sub.MAX (i.e., the voltage on the positive input of comparator 140). Waveform 204 illustrates a typical signal produced by the output of VCO 104 (via the output of buffer 142) that is a signal that momentarily pulses from LOW to HIGH whenever capacitor 114 if "fully" charged (fully charged being when capacitor 114 is charged to a voltage equal to V.sub.MAX, or whatever the reference voltage is that is applied to the negative input of comparator 140). Waveform 206 illustrates a sample I.sub.SLOPE current signal that is produced in the collector of transistor 132 to establish a voltage drop across resistor 150. It should be noted that signal I.sub.SLOPE remains at zero amperes until approximately half of the oscillator cycle has passed (see waveform 202).
An alternate embodiment of the present invention is shown in FIG. 3 in which switching regulator 300 may be operated to reduce the effects of noise generated by regulator 300. Regulator 300 is similar to regulator 100 of FIG. 1 in many ways. Accordingly, substantially similar components are numbered in regulator 300 with the same reference numerals as regulator 100, and the above description applies to those components.
Regulator 300 reduces the effects of noise by replacing phase detector 124, capacitor 116 and resistor 118 with a signal generator 302. Signal generator 302 produces a signal that forces the VCO frequency to vary in a controlled manner. For example, if a sawtooth signal is produced by signal generator 302, the sawtooth signal is applied to current source 126 which causes capacitor 114 to charge either more rapidly, or more slowly (depending on which point in the sawtooth waveform the input is) so that the frequency of VCO 104 varies by a predetermined amount about a central frequency. The variation in charging time of capacitor 114 varies the frequency of the oscillator signal, without requiring pre-termination of the oscillator signal. Therefore, slope compensation and the use of the signal I.sub.SLOPE is not interfered with and regulator 300 remains stable, even at duty cycles above 50%.
The change in frequency, however, produces very beneficial results, as is shown in FIG. 4. FIG. 4 shows two illustrations of a frequency spectrum that may be produced by regulator 300 of FIG. 3. Waveform 402 represents the noise spectrum produced by regulator 300 when signal generator 302 produces a constant signal that causes the oscillator signal to remain at a constant frequency f. The amplitude of the noise at frequency f, which is indicated by the peak of trace 404, reaches NOISE.sub.MAX. Similarly, traces 406 refer to the noise signals produced at the harmonics of frequency f.
Waveform 412, on the other hand, represents the operation of regulator 300 in accordance with the principles of the present invention to reduce the effects of the noise produced by the regulator. Waveform 412 includes trace 414 (which, in reality, would appear as a series of spikes having peaks that approximate the curve shown in FIG. 4, rather than the curve shown) is shown having a wider range of frequency than trace 404, in exchange for a lower amplitude. Similarly, harmonic traces 416 are likewise wider and shorter than harmonic traces 406. Waveform 412 is the noise waveform that results when regulator 300 is provided with a signal from signal generator 302 that varies, such as the sawtooth waveform described above. Constant varying of the operational frequency of the oscillator, even over a small range, results in a reduction in the cumulative effects (with respect to amplitude) of the noise produced by the regulator.
While the principles of the present invention have been illustrated using buck, step-down switching regulators, persons skilled in the art will appreciate that the principles may be equally applied to other switching regulator topologies, including for example, boost, step-up switching regulators and buck-boost switching regulators. Thus, persons skilled in the art will appreciate that the principles of the present invention can be practiced by other than the described embodiments, which are presented for purposes of illustration and not of limitation, and the present invention is limited only by the claims which follow.