The present invention relates generally to switch-mode power supplies and specifically to regulation of an output voltage of switch-mode power supply using a mixed signal digital controller.
A switch-mode power supply (SMPS) is an electronic power supply unit that incorporates a switching regulator. A switching regulator is an internal control circuit that rapidly switches transistors on and off to stabilize the output voltage.
The switched mode power supply 100 utilizes an analog controller 102 to regulate the input voltage VIN. In an exemplary embodiment, the analog controller 102 may sense or monitor the output voltage VOUT through a resistive voltage divider 108 formed by a resistor 110 and a resistor 112. More specifically, connecting the resistor 110 in series with the output voltage VOUT and shunting the resistor 112 to a ground forms the resistive voltage divider 108. The analog controller 102 monitors a scaled output voltage 142 located in between the resistor 110 and the resistor 112.
The analog controller 102 then compares the scaled output voltage 142 to a reference voltage VREF using an error amplifier 104. In an exemplary embodiment, the analog controller 102 may compare the output voltage VOUT instead of scaled output voltage 142 to a reference voltage VREF using the error amplifier 104. The error amplifier 104 includes an operational amplifier 120 to amplify a difference between the scaled output voltage 142 and the reference voltage VREF. Although the error amplifier 104 is implemented using an operational amplifier, those skilled in the arts will understand that any suitable device may be used. As shown in
During operation, the analog controller 102 adjusts an output of the error amplifier 104 depending on the difference between the scaled output and the reference voltage VREF. For example, when the output voltage VOUT is less than a required value, the scaled output voltage 142 is less than the reference voltage VREF. As a result, the output of the error amplifier 104 will increase. On the other hand, when the output voltage VOUT is greater than the required value, the scaled output voltage 142 is greater than the reference voltage VREF. As a result, the output of the error amplifier 104 will decrease.
The analog controller 102 next converts the output of the error amplifier 104 to a pulse width modulated signal using a pulse width modulator (PWM) 106. The pulse width modulator includes a comparator 126 and a flip-flop 128. A comparator is a device that compares two voltages or currents and switches its output to indicate the larger of the two voltages or currents. The comparator 126 compares the output of the error amplifier 104 with a saw tooth or ramp function, denoted as 122 in
A gate drive logic (GDL) module 130 drives a switch module 132 according to the Q output of the flip-flop 128. The switch module 132 may be implemented using metal oxide semiconductor field effect transistors (MOSFET) fabricated according to a complementary metal oxide semiconductor (CMOS) process. The switch module includes a switch 138 and a switch 140. The switch 138 and the switch 140 operate in a complementary manner. In other words, when the Q output of the flip-flop 128 is high, GDL module 130 closes the switch 138 while opening the switch 140. Opening of the switch 138 and closing of the switch 140 charges a capacitor 136 by allowing current to flow from the input voltage VIN through the switch 138 and an inductor 134. By charging the capacitor 136, the analog controller 102 increases the output voltage VOUT. Likewise, when the Q output of the flip-flop 128 is low, GDL module 130 opens the switch 138 while closing the switch 140. Closing of the switch 140 and opening of the switch 138, discharges the capacitor 136 by allowing current to flow from the capacitor 136 through the switch 140 and the inductor 134 to ground. By discharging the capacitor 136, the analog controller 102 decreases the output voltage VOUT.
As seen from
The switched mode power supply 200 utilizes a digital controller 202 to regulate the input voltage VIN. The digital controller 202 compares the output voltage VOUT to a reference voltage VREF using an analog to digital converter (ADC) 204. The ADC 204 digitizes a differential error signal between the output voltage VOUT and the reference voltage VREF into a digital word, denoted as De.
A control law module 206 then computes a digital duty cycle, denoted as DC, based on the differential error signal De. The control law module 206 represents a digital version of the compensation components of the error amplifier 104 as shown in
D
C
[k+1]=KpDe[k]+Kd(De[k]−De[k−1])+KiDi[k], (1)
where DC[k] represents the duty-ratio at discrete time k, De[k] represents a digitized version of the differential error signal De, Di[k] represents a state of a digital integrator, given by Di[k+1]=Di[k]+De[k], Kp represents the proportional gain, Kd represents the derivative gain, and Ki represents the integral gain. In another exemplary embodiment, the rounding of Kp, Kd, and Ki to a corresponding power of two, allows the use of simple adders and binary shift registers to implement the control law module 206. In a further exemplary embodiment, the control law module 206 may also be implemented with look up tables or with dedicated digital signal processors (DSP) or microcontrollers if sophisticated computations are required. As a result of the dynamic control of Kp, Kd, and Ki, these exemplary embodiments allow the use of digital controller 202 for various platforms.
A digital pulse width modulator (DPWM) 208 generates a pulse width modulated waveform based upon the differential error signal De. DPWM 208 is explained in further detail in
As shown in
A hybrid counter-delay line DPWM module may been be implemented as a compromise solution. But this implementation still needs high frequency clock and large implementation area and needs a delay-locked loop. The DPWM may also be implemented with a delta-sigma modulator. Delta-sigma DPWM has low resolution PWM output and relies on the averaging effect of the output LC filter to increase the effective bit resolution. The dithering effect of the averaging produces undesirable low frequency ripple and the spectral content of the ripple is hard to predict. Non delta-sigma dithering techniques can be used to increase the effective bit resolution but these too suffer from the undesired low frequency ripple and spectral content.
What is needed is an internal control circuit for a switch-mode power supply for low power applications without sacrificing performance and significant die area penalties.
The present invention is described with reference to the accompanying drawings. In the drawings, like reference numbers indicate identical or functionally similar elements. Additionally, the left most digit(s) of a reference number identifies the drawing in which the reference number first appears.
The present invention will now be described with reference to the accompanying drawings. In the drawings, like reference numbers generally indicate identical, functionally similar, and/or structurally similar elements. The drawing in which an element first appears is indicated by the leftmost digit(s) in the reference number.
The following detailed description of the present invention refers to the accompanying drawings that illustrate exemplary embodiments consistent with this invention. Other embodiments are possible, and modifications may be made to the embodiments within the spirit and scope of the invention. Therefore, the detailed description is not meant to limit the invention. Rather, the scope of the invention is defined by the appended claims.
The switched mode power supply 300 utilizes a mixed signal digital controller 302 to regulate the input voltage VIN. The mixed signal implementation offers several benefits compared to a pure analog, as shown in
The mixed signal digital controller 302 compares the output voltage VOUT to a reference voltage VREF using the analog to digital converter (ADC) 312. The ADC 312 digitizes a differential error signal between the output voltage VOUT and the reference voltage VREF into a digital word, denoted as De.
The control law module 314 then computes a digital duty cycle, denoted as DC, based on the differential error signal De. The control law module 314 represents a digital version of the compensation components of the error amplifier 104 as shown in
D
C
[k+1]=KpDe[k]+Kd(De[k]−De[k−1])+KiDi[k], (2)
where DC[k] represents the duty-ratio at discrete time k, De[k] represents a digitized version of the differential error signal De, Di[k] represents a state of a digital integrator, given by Di[k+1]=Di[k]+De[k], Kp represents the proportional gain, Kd represents the derivative gain, and Ki represents the integral gain. In another exemplary embodiment, the rounding of Kp, Kd, and Ki to a corresponding power of two, allows the use of simple adders and binary shift registers to implement the control law module 314. In a further exemplary embodiment, the control law module 314 may also be implemented with look up tables or with dedicated digital signal processors (DSP) or microcontrollers if sophisticated computations are required. As a result of the dynamic control of Kp, Kd, and Ki, these exemplary embodiments allow the use of digital controller 202 for various platforms.
The mixed signal digital controller 302 next converts the digital duty cycle DC generated by the control law module 314 to analog using a digital to analog converter (DAC) 308. Exemplary embodiments for the DAC 308 are shown in
A gate drive logic (GDL) module 316 drives a switch module 132 according to an output of the APWM 310. The switch module 132 may be implemented using metal oxide semiconductor field effect transistors (MOSFET) fabricated according to a complementary metal oxide semiconductor (CMOS) process. The switch module includes a switch 138 and a switch 140. The switch 138 and the switch 140 operate in a complementary manner. In other words, when the output of the APWM 310 is high, GDL module 316 closes the switch 138 while opening the switch 140. Opening of the switch 138 and closing of the switch 140 charges a capacitor 136 by allowing current to flow from the input voltage VIN through the switch 138 and an inductor 134. By charging the capacitor 136, the mixed signal digital controller 302 increases the output voltage VOUT. Likewise, when the output of the APWM 310 is low, GDL module 316 opens the switch 138 while closing the switch 140. Closing of the switch 140 and opening of the switch 138 discharges the capacitor 136 by allowing current to flow from the capacitor 136 through the switch 138 and the inductor 134 to ground. By discharging the capacitor 136, the mixed signal digital controller 302 decreases the output voltage VOUT.
The APWM 310 includes a comparator 126 and a flip-flop 128. A comparator is a device that compares two voltages or currents and switches its output to indicate the larger of the two voltages or currents. The comparator 126 compares the output of the DAC 308 with a saw tooth or ramp function, denoted as 122 in
Even though the functionality of the mixed signal controller was described for an exemplary synchronous voltage mode step down regulatory, the mixed controller can be used for step voltage regulation, non synchronous regulation by replacing switch 140 with a diode, or a current mode control. In the current mode control, the ramp function 122 is a combination of a fixed ramp and a sense current ramp. The sense current ramp is a fraction of the current through the switch 138 or the inductor 134.
In an exemplary embodiment, the series resistor R0 through RN contains four series resistors R0 through R3 configured with the ratio R0: 2*R0: 4*R0: 8*R0. In this exemplary embodiment, the series resistor R0 corresponds to the least significant bit (LSB) of the digital input VREF while the series resistor R3 corresponds to the most significant bit (MSB) of the digital input VREF.
In an exemplary embodiment, the series resistor contains three taps for a total of three series resistors denoted as R and four shunt resistors denoted as 2R. In this exemplary embodiment, the series resistor R closest to the analog output VOUT corresponds to the least significant bit (LSB) of the digital input VREF while the series resistor R furthest from the analog output VOUT corresponds to the most significant bit (MSB) of the digital input VREF.
The DAC 580 sub-divides the digital input VREF using resistor 582. The resistor 582 comprises N series 582.1 through 582.N. The junction formed between the resistor 582 and an adjacent resistor 582 forms a tap. The voltage level of the digital input VREF at a tap is less than the voltage level previous taps. In other words, the resistors 582.1 through 582.(N−1) from a series resistor of a voltage dividing network with the resistor 582.N shunted to ground. The DAC 580 uses each tap from resistor 582 as an input to a multiplexer 584. The multiplexer 584 selects a corresponding tap based upon a digital control word j. A buffer 586.1 uses a first output of the multiplexer 584 while a buffer uses a second output of the multiplexer 584. The buffer 586.1 and the buffer 586.2 isolate the multiplexer 584 from a multiplexer 590.
The DAC 580 uses the output of the buffer 586.1 and the output of the buffer 586.2 as an input to resistor 588. The output of the buffer 586.1 connects to resistor 588.1 while the output of the buffer 586.2 connects to resistor 588.N. The resistors 588.2 through 588.(N−1) are connected in series located in between the resistor 588.1 and the resistor 588.N. As with the resistor 582, the junction formed between the resistors 588 and an adjacent resistors 588 forms a tap. The DAC 580 uses each tap from resistor 588 as an input to a multiplexer 584. The multiplexer 590 selects a corresponding tap based upon a digital control word k to form the analog output VOUT.
At step 600, the output voltage of a switch-mode power supply is monitored or sensed.
At step 602, the output voltage is compared to a reference level. If the output voltage is substantially equivalent to the reference level, then the mixed signal digital controller returns to step 600, else the mixed signal digital controller proceeds to step 604.
At step 604, the difference between the output voltage and reference level is determined. The mixed signal digital controller may compare either the output voltage to a reference voltage level or a scaled version of the output voltage to a reference voltage level using an analog to digital converter (ADC).
At step 606, the difference of step 604 is digitized. The mixed signal digital controller may use an ADC such as the ADC 312 to digitize the difference between the output voltage and the reference level.
At step 608, a digital duty cycle for a pulse based upon the output of step 604 is generated. The mixed signal digital controller may generate the digital duty cycle using a control law module such as the control law module 314. The control law module implements a control function to regulate and stabilize the loop.
At step 610, the digital duty cycle is converted from digital to analog to generate an analog duty cycle. The mixed signal digital controller may use a DAC such as the DAC 308 to convert the digital duty cycle from digital to analog.
At step 612, a modulated pulse is generated using the output from step 610. The mixed signal digital controller may convert the analog output of the DAC to a pulse width modulated signal using an analog pulse width modulator such as the APWM 310. In other words, the pulse width of a pulse train is increased or decreased based upon the analog duty cycle.
At step 614, the output voltage is adjusted based upon the modulated pulse of step 612. The mixed signal digital controller may use a gate drive logic (GDL) module such as GDL 316 to drive a switch module according to the output of step 612. In other words, the mixed signal digital controller may regulate an input voltage to produce an output voltage based upon the output of step 612. The mixed signal digital controller reverts to step 600 to monitor the output voltage.
While various embodiments of the present invention have been described above, it should be understood that they have been presented by way of example, and not limitation. It will be apparent to persons skilled in the relevant arts that various changes in form and detail can be made therein without departing from the spirit and scope of the invention. Thus the present invention should not be limited by any of the above-described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents.