Field of the Invention
This invention relates to the field of oscillators. More particularly, the present invention relates to the field of ramp generating oscillators for use as a reference within a power factor correction (PFC) circuit of a switching mode power converter.
Background of the Invention
For switching mode power converters the output voltage is controlled by an electronic circuit which measures a level of electric current within the circuit, compares that measured level to a predetermined desired level, and develops a response to that measurement elsewhere in the circuit in order to more accurately achieve the desired level. A switching mode power converter which uses a trailing edge modulation control scheme is illustrated in FIG. 1. The input voltage VIN is coupled to a first terminal of the inductor L1. A second terminal of the inductor L1 is coupled to a first terminal of the switch SW1 and to the anode of the diode SW2. A capacitor C1 is coupled between the cathode of the diode SW2 and a second terminal of the switch SW1. A load RL is coupled across the capacitor C1. A potentiometer PT1 is coupled across the load RL and provides a negative input to a voltage error amplifier 10. A reference voltage REF is coupled to the positive input of the error amplifier 10. The output VEAO of the voltage error amplifier 10 is coupled as the positive input of a modulating comparator 14. The negative input of the modulating comparator 14 is coupled to receive the ramp output of an oscillator 12. The output of the modulating comparator 14 is coupled as the reset input R of a flip flop 16. The input D of the flip flop 16 is coupled to the inverted output Q of the flip flop 16. A clock input CLK of the flip flop 16 is coupled to the clock output of the oscillator 12. The output Q of the flip flop 16 is coupled to control the operation of the switch SW1.
The output voltage VOUT is established by integrating the inductor current I1 in the LC filter network. This integrated current is supplied to the load circuit as the converted output voltage VOUT. In order to establish the proper output voltage from a given input voltage, the input voltage VIN is switched in and out of the circuit by the switch SW1. The resulting oscillating signal is integrated in the LC network to form the desired output voltage VOUT. If the input voltage VIN changes or varies over time, the frequency at which the switch SW1 is opened and closed can also be varied in order to maintain the desired output voltage VOUT.
Pulse width modulation (PWM) is a technique used to maintain a constant output voltage VOUT when the input voltage does not remain constant and varies over time. By changing the frequency at which the switch SW1 is opened and closed, as the input voltage changes, the output voltage VOUT can be maintained at a constant level as desired. The inductor current I1 is stored as a voltage level on the plates of the capacitor C1 when the switch SW1 is open. Because of its parallel connection to the output of the circuit, the voltage across the capacitor C1 is equivalent to the output voltage VOUT and the voltage across the potentiometer PT1. A predetermined fraction of that voltage is measured from the potentiometer PT1 forming the voltage VEA which is input into the negative terminal of the voltage error amplifier 10 and is compared to the reference voltage REF. This comparison determines how close the actual output voltage VOUT is to the desired output voltage.
Conventional pulse width modulation techniques use the trailing edge of the clock signal, so that the switch will turn on right after the trailing edge of the system clock. FIG. 1 illustrates such a trailing edge modulation control scheme. The leading edge of the clock signal may also be used for pulse width modulation. In order to implement a leading edge modulation control scheme the inputs to the error amplifier 10 must be reversed: the voltage VEA from the potentiometer PT1 is coupled to the positive terminal of the voltage error amplifier 10 and the reference voltage REF is coupled to the negative terminal of the voltage error amplifier 10.
FIGS. 2, 3 and 4 show corresponding voltage waveforms with respect to time of different voltage levels at different points within the switch control circuitry 31 of the trailing edge scheme. The time axis for the FIGS. 2, 3 and 4 has been drawn to correspond in all three figures. FIG. 2 illustrates the voltage levels with respect to time of the error amplifier output VEAO and the modulating ramp output of the oscillator 12. FIG. 3 illustrates the voltage level of the control voltage VSW1 for the switch SW1 with respect to time. The switch SW1 is "on" or closed when the control voltage VSW1 is at a high voltage level. The switch SW1 is "off" or open when the control voltage is at a low voltage level. FIG. 4 illustrates the clock impulses with respect to time of the clock output of the oscillator 12.
The switch SW1 will turn on after the trailing edge of the system clock. Once the switch SW1 is on, the modulating comparator 14 then compares the error amplifier output voltage VEAO and the modulating ramp. When the modulating ramp reaches the error amplifier output voltage, the output of the modulating comparator 14 will fall to a logical low voltage level. Because of the inverter coupled to the input, the input R of the flip flop 16 will then rise to a logical high voltage level thereby resetting the output Q of the flip flop 16 to a logical low voltage level and turning the switch SW1 off. When the switch SW1 is on, the inductor current IL will ramp up. The effective duty cycle of the trailing edge modulation is determined during the on time of the switch. FIG. 1 illustrates a typical trailing edge control scheme using a single boost power converter stage. As the input voltage VIN varies over time, the duty cycle or time that the switch SW1 is on will vary in order to maintain a constant output voltage VOUT.
A more detailed circuit diagram of a power factor controller circuit is illustrated in FIG. 5. Elements that are identical to those of FIG. 1 use the same reference numerals. The line voltage is coupled to the input terminals 20 and 22. The input terminals 20 and 22 are coupled across a full wave bridge rectifier 28. The full wave bridge rectifier 28 is also coupled to provide the DC input signal to the inductor L1. The output of the voltage error amplifier 10 is coupled as an input to a multiplier 30. A first terminal of a reference resistor R1 is coupled to the first terminal of the inductor L1. A second terminal of the resistor R1 is coupled as an input to the multiplier 30. The output of the multiplier 30 is coupled to a positive input terminal of a current error amplifier 32 and to a first terminal of a resistor RC. A second terminal of the resistor RC is coupled to the full wave bridge rectifier 28 and to a first terminal of a sense resistor RS. A second terminal of the sense resistor RS is coupled to the output terminal 26, to a first terminal of a resistor RCI and to ground. A second terminal of the resistor RCI is coupled to a negative input terminal of the current error amplifier 32. The output of the current error amplifier 32 is coupled to the negative input terminal of the modulating comparator 14 and as a feedback to the negative input terminal of the current error amplifier 32. The ramp output of the oscillator 12 is coupled to the positive input terminal of the modulating comparator 14. The output of the modulating comparator 14 is coupled as an input R of a flip flop 16. The clock output of the oscillator 12 is coupled as an input S of the flip flop 16. The output Q of the flip flop 16 is coupled to the gate of the switch SW1. In the circuit illustrated in FIG. 5 a MOSFET is used as the switch SW1.
The function of the power factor correction section is to ensure that the current follows the voltage in time and amplitude proportionally. A reference current that is proportional to the input full wave rectified voltage is produced with the help of the reference resistor R1. The reference current is applied to one of the inputs of the multiplier 30. The other input of the multiplier 30 is the output of the voltage error amplifier 10. The multiplier 30 is usually of a current input type which enables the multiplier 30 to have greater ground noise immunity. When there is a current at its input, the terminal voltage of the multiplier 30 is a diode drop between 0.7 V and 1 V.
The output of the multiplier 30 is a current which is the product of the reference current, the output of the voltage error amplifier 10 and a gain adjustor factor which will be described below. This output current is applied to the resistor RC. The voltage across the resistor RC subtracts from the sensed voltage across the sense resistor RS and is applied to the current error amplifier 32. Under closed loop control the current error amplifier 32 will try to keep this voltage differential near the zero volt level. This forces the voltage produced by the return current flowing through the sense resistor RS to be equal to the voltage across the resistor RC.
The amplified current error signal output from the current error amplifier 32 is then applied to the inverting input of the modulating comparator 14. The other input of the modulating comparator 14 is coupled to receive the ramp signal output from the oscillator 12. Pulse width modulation is obtained when the amplified error signal that sets up the trip point modulates up and down.
A current control loop modulates the duty cycle of the switch SW1 in order to force the input current waveshape to follow the shape of the input voltage. The input voltage is a full wave rectified sinewave. The current control loop and the power delivery circuitry must have at least enough bandwidth to follow this full wave rectified waveform.
As the RMS input voltage increases, the gain of the system will increase by the voltage RMS value V.sub.RMS. The gain of the system will increase as the input voltage increases because the input to the multiplier 30 is driven by the input voltage through the reference resistor R1. The gain of the multiplier 30 can be adjusted as a function of the RMS input voltage in order to cancel the square law dependency of the signal. A graph of a typical gain adjustor gain for the multiplier 30 is illustrated in FIG. 6. The gain K of the multiplier 30 is curve fitted to a value equal to 1/(V.sub.RMS).sup.2 for universal input. For an a.c. input voltage less than 85 VAC the gain K starts brown out and will not fit the 1/(V.sub.RMS).sup.2 curve. Since the output of the multiplier 30 is dependent on the rectified sinusoidal input voltage, the output of the multiplier 30 is generated in phase with the sinusoidal line input voltage.
A schematic diagram of a basic dual comparator R-C relaxation oscillator 12 which is typically used to generate the clock and ramp reference signals used within the power factor correction circuit is illustrated in FIG. 7. This circuit consists of three functional subblocks: (i) the comparators X.sub.1 and X.sub.2 for detecting the threshold voltages V.sub.TH and V.sub.TL, set by the resistive divider network including the resistors R.sub.A, R.sub.B and R.sub.C ; (ii) the timing components including the resistor R.sub.T, the capacitor C.sub.T and the resistor R.sub.D ; and (iii) an R-S latch X.sub.3 for controlling the discharge of the capacitor C, through the npn transistor Q.sub.D and the resistor R.sub.D.
Assuming that the output Q of the R-S latch X.sub.3 is at a logical low and the transistor Q.sub.D is turned off initially, the resistor R.sub.T will charge the capacitor C.sub.T towards the upper threshold voltage V.sub.TH. The upper threshold voltage V.sub.TH is set by the resistive divider as ##EQU1##
The output of the comparator X.sub.1 rises from a logical low voltage level to a logical high voltage level when the voltage across the capacitor C.sub.T crosses the upper threshold voltage V.sub.TH and the positive input of the comparator X.sub.1 becomes greater than its negative input. Once the output of the comparator X.sub.1 switches to a logical high voltage level, the input S of the R-S latch X.sub.3 will also be raised to a logical high voltage level and the output Q of the R-S latch X.sub.3 will rise from a logical low voltage level to a logical high voltage level. The transistor Q.sub.D will then turn on and saturate. If the value of the resistor R.sub.D is properly chosen, the transistor Q.sub.D and the resistor R.sub.D will discharge the voltage across the capacitor C.sub.T towards the lower threshold voltage V.sub.TL set again by the resistive divider network as ##EQU2##
As the voltage across the capacitor C.sub.T is discharged below the upper threshold voltage V.sub.TH and the positive input of the comparator X.sub.1 becomes less than the negative input, the output of the comparator X.sub.1 will drop from a logical high voltage level to a logical low voltage level. When the voltage across the timing capacitor C.sub.T falls below the lower threshold voltage V.sub.TL so that the negative input of the comparator X.sub.2 is less than the positive input, the output of the comparator X.sub.2 will rise to a logical high voltage level and the R-S latch X.sub.3 will reset. When the R-S latch X.sub.3 is reset the output Q of the R-S latch will drop to a logical low voltage level turning the transistor Q.sub.T off and ending the discharge cycle. The resistor R.sub.T will then charge the timing capacitor C.sub.T and the cycle will repeat. The timing diagram of the oscillator of FIG. 7 is shown in FIG. 8. The ramp output is taken from the node formed between the timing resistor R.sub.T and the timing capacitor C.sub.T. The clock output is taken from the output Q of the R-S latch X.sub.3. In the oscillation circuits of the prior art the amplitude of the ramp output is fixed between the threshold values V.sub.TH and V.sub.TL. Within a power factor correction circuit, a fixed amplitude ramp signal causes the bandwidth of the current control loop to vary and also has a detrimental effect on the transient response of the circuit.
What is needed is a ramp reference signal with an amplitude which varies as the a.c. input signal varies, for use by the power factor correction controller. What is further needed is a synchronizing circuit which will synchronize the ramp reference signal to the clock reference signal.
Summary of the Invention
An oscillator for generating a varying amplitude feed forward PFC modulation ramp signal includes a clock generating circuit and a ramp generating circuit. The PFC ramp signal generated by the ramp generating circuit is used within a power factor correction circuit of a switching mode power converter. The timing capacitor used within the ramp generating circuit is charged from the full wave rectified line input voltage so that the amplitude of the generated ramp output signal will follow the full wave rectified input signal, thereby maintaining the current loop bandwidth at a constant value and improving the transient response of the circuit. A one-shot circuit is coupled between the discharge transistor of the clock generating circuit and the discharge transistor of the ramp generating circuit for synchronizing the clock and ramp reference signals generated by the oscillator so that the frequency of the ramp reference signal is equal to the frequency of the clock signal. The one-shot circuit has a duty cycle which is always a fixed percentage of the period of the clock reference signal.
Brief Description of the Drawings
FIG. 1 illustrates a schematic diagram of a switching mode power converter of the prior art which uses a trailing edge modulation control scheme.
FIG. 2 illustrates the voltage levels with respect to time of the error amplifier output and the ramp output of the oscillator for the trailing edge modulation circuit of FIG. 1.
FIG. 3 illustrates the voltage level of the switch SW1 with respect to time.
FIG. 4 illustrates the clock impulses with respect to time of the clock output of the oscillator.
FIG. 5 illustrates a schematic diagram of a power factor controller circuit of the prior art.
FIG. 6 illustrates a graph of a gain adjustor gain for a multiplier of the prior art.
FIG. 7 illustrates a schematic diagram of a basic dual comparator R-C relaxation oscillator of the prior art.
FIG. 8 illustrates a timing diagram of the oscillator of FIG. 7.
FIG. 9 illustrates a schematic diagram of an embodiment of the oscillator of the present invention.
FIG. 10 illustrates a timing diagram of the oscillator of FIG. 9.
FIG. 11 illustrates a schematic diagram of the preferred embodiment of the oscillator of the present invention.
FIG. 12 illustrates a timing diagram of the oscillator of FIG. 11.
FIG. 13 illustrates a schematic diagram of the one-shot circuit used to syncronize the PFC Ramp output to the clock output signal of the oscillator of the present invention.
FIG. 14 illustrates a timing diagram of the one-shot circuit of FIG. 13.
Detailed Description of the Preferred Embodiment
The present invention includes an oscillator which generates a varying amplitude ramp signal for use within a power factor correction circuit for a switching mode power supply. The timing capacitor used within the ramp generating circuit is charged from the full wave rectified line input voltage. A one-shot circuit is coupled between the discharge transistor of the clock generating circuit and the discharge transistor of the ramp generating circuit for synchronizing the clock and ramp reference signals generated by the oscillator so that the frequency of the ramp reference signal is equal to the frequency of the clock reference signal. The one-shot circuit is designed so that the duty cycle of its output is five percent of the period of the clock signal.
An oscillator of the present invention is illustrated in FIG. 9. The oscillator includes the clock generating circuit, as illustrated in FIG. 7, a ramp generating circuit 50 and a one-shot synchronizing circuit 40. The ramp generating circuit 50 includes a timing resistor R2, a timing capacitor C2, a discharge resistor R3 and a discharge transistor Q3. A first terminal of the resistor R2 is coupled to receive a full wave rectified input signal VDCIN. A second terminal of the resistor R2 is coupled to a first terminal of the capacitor C2 and to a first terminal of the discharge resistor R3. A second terminal of the capacitor C2 is coupled to ground. A second terminal of the resistor R3 is coupled to a collector of the npn transistor Q3. An emitter of the transistor Q3 is coupled to ground. The clock reference signal is coupled to an input of the one-shot circuit 40. An output of the one-shot circuit 40 is coupled to a base of the transistor Q3 for initiating the discharge of the capacitor C2. The PFC ramp reference signal is taken from the node formed by the second terminal of the resistor R2, the first terminal of the capacitor C2 and the first terminal of the resistor R3.
The one-shot synchronizing circuit 40 is designed to have a duty cycle which is always a predetermined percentage of the period of the clock signal output from the flip flop X3. In the preferred embodiment the predetermined percentage is equal to five percent. Therefore, as the frequency of the input signal varies, the one-shot synchronizing circuit 40 will always have a duty cycle which tracks the period of the clock signal. The circuit diagram of the one-shot circuit 40 of the present invention is illustrated in FIG. 13 and will be discussed in detail below.
Timing diagrams illustrating waveforms from relevant points within the oscillator circuit of FIG. 9 are illustrated in FIG. 10, including the input voltage VACIN, the corresponding full wave rectified input signal VDCIN, the R.sub.T C.sub.T ramp waveform, the corresponding clock signal, the output of the one-shot circuit 40 and the corresponding PFC Ramp waveform. The one-shot circuit 40 is designed to have an output pulse which begins at the trailing edge of the clock signal and has a duration equal to five percent of the period of the clock signal. The output pulse from the one-shot circuit 40 controls the discharge of the timing capacitor C2 in order to synchronize the clock reference signal and the PFC Ramp signal and ensure that the frequency of the PFC ramp signal is equal to the frequency of the clock reference signal. Because the voltage source for the charging capacitor C2 is the full wave rectified line input voltage, the amplitude of the PFC Ramp signal will vary as the amplitude of the full wave rectified signal VDCIN varies in a sinusoidal fashion. This PFC Ramp signal is then utilized within a power factor correction circuit, as illustrated in FIG. 1 or FIG. 5, and provided as an input to the modulating comparator of the power factor correction circuit. It should be noted that while the amplitude of the PFC Ramp signal generated by the oscillator of the present invention is varying, the frequency of the PFC Ramp signal is equal to the frequency of the R.sub.T C.sub.T ramp signal. By allowing the amplitude of the PFC Ramp signal to vary with the full wave rectified input voltage, the bandwidth of the current control loop of the power factor correction circuit is kept constant and the transient response of the circuit is improved.
The preferred embodiment of the oscillator of the present invention is illustrated in FIG. 11. This embodiment of the oscillator of the present invention includes the ramp generating circuit 60. The ramp generating circuit 60 includes a timing resistor R2, a timing capacitor C2, a resistor R4, npn transistors Q2 and Q4, a discharge resistor R3 and a discharge npn transistor Q3. A first terminal of the resistor R2 is coupled to receive the full wave rectified voltage input signal VDCIN. A second terminal of the resistor R2 is coupled to a collector and base of the npn transistor Q2 and to a base of the npn transistor Q4. The emitters of the npn transistors Q2 and Q4 are coupled to ground. A first terminal of the resistor R4 is coupled to the supply voltage VCC. A second terminal of the resistor R4 is coupled to a collector of the npn transistor Q4, to a first terminal of the timing capacitor C2 and to a first terminal of the resistor R3. A second terminal of the resistor R3 is coupled to a collector of the npn transistor Q3. An emitter of the transistor Q3 is coupled to ground. The clock reference signal is coupled to the input of the one-shot circuit 40. The output of the one-shot circuit 40 is coupled to the base of the transistor Q3 for initiating the discharge of the capacitor C2. The PFC ramp reference signal is taken from the node formed by the second terminal of the resistor R4, the first terminal of the capacitor C2 and the first terminal of the resistor R3.
The transistors Q2 and Q4 form a current mirror through which the input current flows and the capacitor C2 is charged. The capacitor C2 is discharged through the discharge resistor R3 and the discharge transistor Q3, during the active portion of the output of the one-shot circuit 40.
Timing diagrams illustrating waveforms from relevant points within the oscillator circuit of FIG. 11 are illustrated in FIG. 12, including the input voltage VACIN, the corresponding full wave rectified input signal VDCIN, the R.sub.T C.sub.T ramp waveform, the corresponding clock signal, the output of the one-shot circuit 40 and the corresponding PFC Ramp waveform. It should be noted that each of the waveforms illustrated in FIG. 12 are identical to the waveforms illustrated in FIG. 10, with the exception of the PFC Ramp waveform. Because of the arrangement of the current mirror, including the transistors Q2 and Q4, the amplitude of the PFC Ramp signal varies in inverse proportion to the full wave rectified input signal VDCIN, as illustrated in FIG. 12. By allowing the amplitude of the PFC Ramp signal to vary in inverse proportion to the full wave rectified input voltage VDCIN, the bandwidth of the current control loop of the power factor correction circuit is kept constant and the transient response is improved. Also, because the amplitude of the PFC Ramp signal varies in inverse proportion to the full wave rectified input voltage VDCIN, by using this PFC Ramp the current multiplier and the RMS voltage input VRMS are not needed. This PFC Ramp signal will serve the gain adjusting function of the RMS voltage input VRMS and the multiplier, as well as ensuring that the input current is in phase with the input voltage. Therefore, a power factor correction circuit using the oscillator of this embodiment will not need the multiplier 30 and the RMS voltage input VRMS, because the modulating comparator 14 will compare the output of the voltage error amplifier 10 to the PFC Ramp signal generated by this oscillator and will thereby also serve the function of the multiplier 30.
A circuit schematic of the one-shot circuit 40 is illustrated in FIG. 13. The one-shot circuit 40 is coupled to receive the clock reference signal output from the flip flop X3 and the R.sub.T C.sub.T ramp signal. The R.sub.T C.sub.T ramp signal is coupled to the negative input of the comparator 80. A voltage reference signal equal to 1.375 volts is coupled to a positive input of the comparator 80. An output of the comparator 80 is coupled as an input to the logical NOR gate 82. The clock signal is coupled as an input to a logical NOR gate 82, to an R input of an R-S latch 84 and as an input to a logical NOR gate 86. An output of the logical NOR gate 82 is coupled to an S input of the R-S latch 84. A Q output of the R-S latch 84 is coupled as an input to the logical NOR gate 86. An output of the logical NOR gate 86 is the output of the one-shot synchronizing circuit 40 and is coupled to control the discharge transistor Q3.
Timing diagrams illustrating waveforms from relevant points within the one-shot synchronizing circuit 40 of FIG. 13 are illustrated in FIG. 14, including the R.sub.T C.sub.T ramp signal, the clock signal and the one-shot output signal. The operation of the one-shot circuit 40 will be explained with reference to the timing diagrams of FIG. 14. In the preferred embodiment of the present invention the higher threshold value V.sub.TH for the R.sub.T C.sub.T ramp signal is set equal to 3.75 volts and the lower threshold value V.sub.TL is set equal to 1.25 volts. The R.sub.T C.sub.T ramp signal will therefore have a peak to peak amplitude of 2.5 volts. The one-shot circuit of the present invention is designed to always have a duty cycle equal to five percent of the period of the clock signal. The one-shot output is raised to a logical high voltage level when the R.sub.T C.sub.T ramp signal is at 1.25 volts and is lowered to a logical low voltage level when the R.sub.T C.sub.T ramp signal is at 1.375 volts or five percent of the amplitude of the R.sub.T C.sub.T ramp signal.
When the R.sub.T C.sub.T ramp signal reaches 3.75 volts the clock output is raised to a logical high voltage level causing the Q output of the R-S latch 84 to rise to a logical low voltage level and the timing capacitor CT to discharge. When the R.sub.T C.sub.T ramp signal discharges to the level below 1.375 volts, the output of the comparator 80 falls to a logical low voltage level. However, because the clock signal is still at a logical high voltage level, the output of the logical NOR gate 82 will not change. When the R.sub.T C.sub.T ramp signal reaches the lower threshold value of 1.25 volts, the clock signal will fall to a logical low voltage level, causing the output of the logical NOR gate 82 to rise to a logical high voltage level. Because the S input of the R-S latch 84 is equal to a logical high voltage level and the R input of the R-S latch 84 is equal to a logical low voltage level, the Q output of the R-S latch 84 will fall to a logical low voltage level. Because both inputs to the logical NOR gate 86 are at a logical low voltage level, the output of the logical NOR gate 86 rises to a logical high voltage level. When the R.sub.T C.sub.T ramp signal then rises to a level greater than 1.375 volts, the output of the comparator 80 will rise to a logical high voltage level causing the output of the logical NOR gate 82 to fall to a logical low voltage level. Because both the S input and the R input of the R-S latch 84 are equal to a logical low voltage level, the Q output will rise to a logical high voltage level causing the output of the logical NOR gate to fall to a logical low voltage level.
The present invention has been described in terms of specific embodiments incorporating details to facilitate the understanding of the principles of construction and operation of the invention. Such reference herein to specific embodiments and details thereof is not intended to limit the scope of the claims appended hereto. It will be apparent to those skilled in the art that modifications may be made in the embodiment chosen for illustration without departing from the spirit and scope of the invention.