Deadtime automatic-optimization system for flyback power supply having primary-side feedback in CCM, control system and method for flyback power supply having primary-side feedback in CCM
11557959 · 2023-01-17
Assignee
- CSMC TECHNOLOGIES FAB2 CO., LTD. (Wuxi New District, CN)
- SOUTHEAST UNIVERSITY (Xuanwu District Nanjing, CN)
Inventors
- Shen Xu (Wuxi New District, CN)
- Minggang Chen (Wuxi New District, CN)
- Hao Wang (Wuxi New District, CN)
- Jinyu Xiao (Wuxi New District, CN)
- Wei Su (Wuxi New District, CN)
- Weifeng Sun (Wuxi New District, CN)
- Longxing Shi (Wuxi New District, CN)
Cpc classification
H02M1/0009
ELECTRICITY
H02M1/083
ELECTRICITY
H02M1/38
ELECTRICITY
H02M1/385
ELECTRICITY
Y02B70/10
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
International classification
H02M1/38
ELECTRICITY
H02M1/08
ELECTRICITY
Abstract
An automatic dead zone time optimization system in a primary-side regulation flyback power supply continuous conduction mode (CCM), including a closed loop formed by a control system, including a single output digital to analog converter (DAC) midpoint sampling module, a digital control module, a current detection module, a dead zone time calculation module and a pulse-width modulation (PWM) driving module, and a controlled synchronous rectification primary-side regulation flyback converter. A primary-side current is sampled using a DAC Sampling mechanism to calculate a secondary-side average current, so as to obtain a primary-side average current and a secondary-side average current, in the case of CCM. A secondary-side current is input into the dead zone time calculation module to obtain a reasonable dead zone time; and the PWM driving module is jointly controlled by a primary-side regulation loop and the obtained dead zone time.
Claims
1. A deadtime automatic-optimization system of a flyback power supply having a primary-side feedback in a continuous conduction mode (CCM), comprising: a control system consisting of a single-output digital to analog converter (DAC) midpoint sampling module, a digital control module, a current detection module, a deadtime calculation module, and a pulse-width modulation (PWM) driving module, the control system forming a closed loop with a main topology of a controlled flyback converter having a synchronous-rectification primary-side feedback; wherein the single-output DAC midpoint sampling module is configured to sample a voltage signal V.sub.sense(t.sub.mid) on an auxiliary winding at a midpoint instant of a secondary-side current reset time T.sub.r, to output to the digital control module; the digital control module is configured to calculate an error e(n) between the voltage signal V.sub.sense(t.sub.mid) and a system-predetermined fixed value V.sub.REF and calculate an input voltage control amount V.sub.c(n) for the PWM driving module by using proportion and integration to output to the PWM driving module; the digital control module is configured to output a digital value V.sub.peak_d of a peak voltage on a primary-side current sampling resistor R.sub.cs according to a value of the error e(n); the digital value V.sub.peak_d and a voltage V.sub.cs at two terminals of the primary-side current sampling resistor R.sub.cs are configured to output to the current detection module; the current detection module is configured to obtain a primary-side average current I.sub.mid_p and a secondary-side average current I.sub.s(t.sub.mid) in the CCM indirectly by sampling and calculating in a pure digital manner through a DAC, and output the secondary-side average current I.sub.x(t.sub.mid) as an output signal to the deadtime calculation module to calculate a reasonable deadtime t.sub.d between a turn-off of a secondary-side rectifier SR and a turn-on of a primary-side switching transistor SW; the PWM driving module is configured to generate duty cycle control signals duty and duty_SR under a common control of the deadtime t.sub.d output by the deadtime calculation module and the control amount V.sub.c(n) output by the digital control module; and the duty cycle control signals duty and duty_SR are configured to control switching of the primary-side switching transistor SW and the secondary-side rectifier SR, respectively, to implement an automatic optimization of the deadtime of the flyback power supply having the synchronous-rectification primary-side feedback in the CCM.
2. The deadtime automatic-optimization system of claim 1, wherein the single-output DAC midpoint sampling module comprises: a first DAC, a triangular wave generator, a first comparator CMP1, a second comparator CMP2, a counter, and a feedback amount calculation module; wherein a voltage signal V.sub.sense on the auxiliary winding is connected as an input signal to positive terminals of the first comparator CMP1 and the second comparator CMP2, respectively; a negative terminal of the first comparator CMP1 is connected to a voltage signal V.sub.ref_slope of a single slope digital wave obtained by superimposition of a digital single sloping wave output by the triangular wave generator and an analog reference voltage output by the first DAC; a negative terminal of the second comparator CMP2 is connected to zero voltage; the first comparator CMP1 and the second comparator CMP2 respectively output a feedback comparison signal V.sub.ref_comp and a zero-crossing comparison signal V.sub.zvs_comp to be connected to the counter; the counter is configured to count to obtain values of Δt.sub.r_half and T.sub.r according to changes between high levels and low levels of the feedback comparison signal and the zero-crossing comparison signal V.sub.zvs_comp, Δt.sub.r half is a total time required for the voltage signal V.sub.ref_slope of the single slope digital wave to rise from a position of an initial voltage V.sub.initial to a position crossing the voltage signal V.sub.sense on the auxiliary winding, and T.sub.r is a reset time required for the secondary-side current to drop from a peak value to a lowest point; the feedback amount calculation module is configured to output a feedback signal V.sub.ref initial to be connected to an input terminal of the triangular wave generator and an input terminal of the first DAC, and is configured to adjust a digital value of the initial voltage V.sub.initial of the single slope digital wave for a next cycle according to a difference between the values of Δt.sub.r half and T.sub.r; and when the voltage signal V.sub.sense on the auxiliary winding is equal to the voltage signal V.sub.ref_slope of the single slope digital wave, an instant value of the voltage signal V.sub.ref_slope of the single slope digital wave is assigned to the voltage signal V.sub.sense(t.sub.mid) at the midpoint instant T.sub.mid to output as an output signal of the single-output DAC midpoint sampling module in a current switching cycle.
3. The deadtime automatic-optimization system of claim 1, wherein the digital control module comprises: an adder, a subtractor, a multiplier, a register, operational amplifiers K.sub.p and K.sub.i, and a mode determination module; wherein an input signal of the digital control module is the voltage signal V.sub.sense(t.sub.mid) of the single-output DAC midpoint sampling module, and output signals of the digital control module are the digital value V.sub.peak_d of the peak voltage on the primary-side current sampling resistor R.sub.cs and the control amount V.sub.c(n); a value of the error e(n) between the voltage signal V.sub.sense(t.sub.mid) of the single-output DAC midpoint sampling module and the system-predetermined fixed value V.sub.REF is calculated, and the control amount V.sub.c(n) is calculated by proportion and integration according to the error e(n) to output; and the mode determination module is configured to output the digital value V.sub.peak_d of the peak value on the primary-side current sampling resistor R.sub.cs as an output signal according to the value of the error e(n).
4. The deadtime automatic-optimization system of claim 1, wherein the current detection module comprises: a single-input double-output DAC, a third comparator CMP3 and a fourth comparator CMP4, a primary-side current time counting module, and a secondary-side average current calculation module; wherein the digital value V.sub.peak_d of the peak voltage on the primary-side current sampling resistor R.sub.cs output by the digital control module is respectively connected to the single-input double-output DAC and the secondary-side average current calculation module; a positive terminal of the third comparator CMP3 is connected to the voltage V.sub.cs at the two terminals of the primary-side current sampling resistor R.sub.cs, and a negative terminal of the third comparator CMP3 is connected to a voltage analog value V.sub.peak on the primary-side current sampling resistor corresponding to a primary-side peak current output by the single-input double-output DAC; a positive terminal of the fourth comparator CMP4 is connected to the voltage V.sub.cs at the two terminals of the primary-side current sampling resistor R.sub.cs, and a negative terminal of the fourth comparator CMP4 is connected to a voltage analog value V.sub.peak_half on the primary-side current sampling resistor corresponding to k times of the voltage analog value V.sub.peak on the primary-side current sampling resistor corresponding to the primary-side peak current, and V.sub.peak_half=k.Math.V.sub.peak, 0<k<1; the third comparator CMP3 and the fourth comparator CMP4 are configured to output comparison signals and V.sub.cmp3 and V.sub.cmp4, respectively, and the comparison signals V.sub.cmp3 and V.sub.cmp4 are connected to the primary-side current time counting module; the primary-side current time counting module comprises two counters, input signals of the two counters are the comparison signals and V.sub.cmp3 and V.sub.cmp4 of the comparators CMP3 and CMP4, respectively; according to changes between high levels and low levels of the comparison signals V.sub.cmp3 and V.sub.cmp4, a time t.sub.a required by a linear increase of a primary-side current from zero amp or an initial current to a peak current in a discontinuous conduction mode (DCM), and a time t.sub.b required by a linear increase of the primary-side current from zero amp or the initial current to the peak current in the CCM are obtained; the times t.sub.a and t.sub.b are configured to output to the secondary-side average current calculation module; according to the input times t.sub.a and t.sub.b and the digital value V.sub.peak_d of the peak voltage on the primary-side current sampling resistor R.sub.cs output by the digital control module, the secondary-side average current calculation module is configured to divide V.sub.peak_d by a resistance of the primary-side current sampling resistor R.sub.cs to obtain a digital value corresponding to a peak current I.sub.peak p of a primary-side winding inductor, and the digital value corresponding to the peak current I.sub.peak p is substituted into an expression of I.sub.s(t.sub.mid):
5. The deadtime automatic-optimization system of claim 1, wherein the deadtime calculation module is configured to calculate the reasonable deadtime t.sub.d between the turn-off of the secondary-side rectifier SR and the turn-on of the primary-side switching transistor SW according to the secondary-side average current I.sub.s(t.sub.mid) output by the current detection module by using a calculation chain comprising an adder, a multiplier, and a divider, and the deadtime t.sub.d is calculated according to following formulas:
6. A control system of a flyback power supply having a primary-side feedback in a continuous conduction mode (CCM), the flyback power supply having the primary-side feedback comprising: a primary side of a transformer comprising a primary-side winding, a primary-side switching transistor, and a primary-side current sampling resistor connected in series to the primary-side switching transistor; a secondary side of the transformer comprising a secondary-side winding and a secondary-side rectifier; and an auxiliary winding; wherein the control system comprises: a single-output digital to analog converter (DAC) midpoint sampling module configured to sample a voltage signal V.sub.sense(t.sub.mid) on the auxiliary winding at a midpoint instant T.sub.r/2 of a secondary-side current reset time T.sub.r; a digital control module configured to calculate an error e(n) between the voltage signal V.sub.sense(t.sub.mid) and a system-predetermined fixed value V.sub.REF, calculate an input voltage control amount V.sub.c(n) for a PWM driving module by using proportion and integration according to the error e(n), and obtain a digital value V.sub.peak_d of a peak voltage on the primary-side current sampling resistor R.sub.cs according to the error e(n); a current detection module configured to obtain a primary-side average current J.sub.mid_p and a secondary-side average current I.sub.x(t.sub.mid) in the CCM indirectly by sampling and calculating through a digital-to-analog conversion according to the digital value V.sub.peak_d and a voltage V.sub.cs at two terminals of the primary-side current sampling resistor R.sub.cs; a deadtime calculation module configured to calculate a deadtime t.sub.d between a turn-off of the secondary-side rectifier and a turn-on of the primary-side switching transistor according to the secondary-side average current I.sub.x(t.sub.mid); and the PWM driving module configured to generate a primary-side duty cycle control signal duty and a secondary-side duty cycle control signal duty_SR according to the deadtime t.sub.d and the input voltage control amount V.sub.c(n), control switching of the primary-side switching transistor according to the primary-side duty cycle control signal duty, and control switching of the secondary-side rectifier according to the secondary-side duty cycle control signal duty_SR.
7. The control system of claim 6, wherein the single-output DAC midpoint sampling module comprises: a first DAC, a triangular wave generator, a first comparator CMP1, a second comparator CMP2, a counter, and a feedback amount calculation module; wherein a voltage signal V.sub.sense on the auxiliary winding is configured to input as input signals to a positive terminal of the first comparator CMP1 and a positive terminal of the second comparator CMP2, respectively; after superimposition of a digital single sloping wave output by the triangular wave generator and an analog reference voltage output by the first DAC, a voltage signal V.sub.ref_slope of a single slope digital wave is obtained and is configured to input to a negative terminal of the first comparator CMP1; a negative terminal of the second comparator CMP2 is connected to zero voltage; the first comparator CMP1 is configured to output a feedback comparison signal V.sub.ref_comp to the counter, and the second comparator CMP2 is configured to output a zero-crossing comparison signal V.sub.zvs_comp to the counter; the counter is configured to count to obtain values of Δt.sub.r half and T.sub.r according to changes between high levels and low levels of the feedback comparison signal V.sub.ref_comp and the zero-crossing comparison signal V.sub.zvs_comp, wherein Δt.sub.r half is a total time required for the voltage signal V.sub.ref_slope of the single slope digital wave to rise from a position of an initial voltage V.sub.initial to a position crossing the voltage signal V.sub.sense on the auxiliary winding, and T.sub.r is a reset time required for the secondary-side current to drop from a peak value to a lowest point; according to a difference between the values of Δt.sub.r half and T.sub.r, the feedback amount calculation module is configured to output a feedback signal V.sub.ref initial to an input terminal of the triangular wave generator and an input terminal of the first DAC, and adjust a digital value of the initial voltage V.sub.initial for a next cycle; when the voltage signal V.sub.sense on the auxiliary winding is equal to the voltage signal V.sub.ref_slope of the single slope digital wave, an instant value of the voltage signal V.sub.ref_slope of the single slope digital wave is assigned to the voltage signal V.sub.sense(t.sub.mid) to output as an output signal of the single-output DAC midpoint sampling module in a current switching cycle.
8. The control system of claim 6, wherein the current detection module comprises: a single-input double-output DAC, a third comparator CMP3, a fourth comparator CMP4, a primary-side current time counting module, and a secondary-side average current calculation module; wherein the single-input double-output DAC and the secondary-side average current calculation module are configured to receive the digital value V.sub.peak_d output by the digital control module; a positive terminal of the third comparator CMP3 and a positive terminal of the fourth comparator CMP4 are configured to receive the voltage V.sub.cs ; a voltage analog value V.sub.peak on the primary-side current sampling resistor corresponds to a primary-side peak current output by a first output terminal of the single-input double-output DAC, and the voltage analog value V.sub.peak is configured to output to a negative terminal of the third comparator CMP3; a second output terminal of the single-input double-output DAC is configured to output V.sub.peak_half, wherein V.sub.peak_half=k.Math.V.sub.peak, 0<k<1, and the V.sub.peak_half is configured to output to a negative terminal of the fourth comparator CMP4; the third comparator CMP3 is configured to output a comparison signal V.sub.cmp3 to a first counter of the primary-side current time counting module, and the fourth comparator CMP4 is configured to output a comparison signal V.sub.cmp4 to a second counter of the primary-side current time counting module; according to changes of high levels and low levels of the comparison signal V.sub.cmp3 and the comparison signal V.sub.cmp4, the primary-side current time counting module is configured to obtain a time T.sub.q required by a linear increase of a primary-side current from zero amp or an initial current to a peak current in a DCM and a time t.sub.b, required by a linear increase of the primary-side current from zero amp or the initial current to the peak current in the CCM, and output the times t.sub.a and t.sub.b to the secondary-side average current calculation module; the secondary-side average current calculation module is configured to divide the digital value V.sub.peak_d by a resistance of the primary-side current sampling resistor R.sub.cs to obtain a digital value I.sub.peak p corresponding to a peak current of a primary-side winding inductor, and the digital value I.sub.peak p is substituted into an expression of I.sub.x(t.sub.mid ) along with the times t.sub.a and t.sub.b;
9. The control system of claim 6, wherein the deadtime calculation module is configured to calculate the deadtime t.sub.d according to following formulas:
10. The control system of claim 6, wherein the PWM driving module comprises: a sixth comparator, an inverter, a D flip-flop, an OR-gate, and a PWM driving unit; wherein a positive input terminal of the sixth comparator is configured to receive the deadtime t.sub.d, and a negative input terminal of the sixth comparator is connected to zero voltage; an output terminal of the sixth comparator is connected to an input terminal of the inverter; an output terminal of the inverter is connected to a D-input terminal of the D flip-flop; an input signal of the PWM driving unit is the input voltage control amount V.sub.c(n); a first output terminal of the PWM driving unit is configured to output the primary-side duty cycle control signal duty, and a second output terminal of the PWM driving unit is configured to output a signal duty_SRI to a clock control terminal of the D flip-flop; a Q-output terminal of the D flip-flop is connected to one input terminal of the OR-gate, the signal duty_SRI is configured to input to the other input terminal of the OR-gate, and an output terminal of the OR-gate is configured to output the secondary-side duty cycle control signal duty_SR.
11. The control system of claim 6, wherein the secondary-side rectifier is a metal oxide semiconductor (MOS) transistor.
12. The control system of claim 6, wherein the primary-side switching transistor is a MOS transistor, and the primary-side current sampling resistor is connected in series between a source of the primary-side switching transistor and ground.
13. A method of controlling a flyback power supply having a primary-side feedback in a continuous conduction mode (CCM), the flyback power supply having the primary-side feedback comprising: a primary side of a transformer comprising a primary-side winding, a primary-side switching transistor, and a primary-side current sampling resistor connected in series to the primary-side switching transistor; a secondary side of the transformer comprising a secondary-side winding and a secondary-side rectifier; and an auxiliary winding; wherein the method comprises: sampling a voltage signal V.sub.sense(t.sub.mid) on the auxiliary winding at a midpoint instant T.sub.r/2 of a secondary-side current reset time T.sub.r; calculating an error e(n) between the voltage signal V.sub.sense(t.sub.mid) and a system-predetermined fixed value V.sub.REF, calculating an input voltage control amount V.sub.c(n) for a PWM driving module by using proportion and integration according to the error e(n), and obtaining a digital value V.sub.peak_d of a peak voltage on the primary-side current sampling resistor R.sub.cs according to the error e(n); obtaining a primary-side average current I.sub.mid p and a secondary-side average current I.sub.s(t.sub.mid) in the CCM indirectly by sampling and calculating through a digital-to-analog conversion according to the digital value V.sub.peak_d and a voltage V.sub.cs at two terminals of the primary-side current sampling resistor R.sub.cs; calculating a deadtime t.sub.d between a turn-off of the secondary-side rectifier and a turn-on of the primary-side switching transistor according to the secondary-side average current I.sub.s(t.sub.mid); generating, by the PWM driving module, a primary-side duty cycle control signal duty and a secondary-side duty cycle control signal duty_SR according to the deadtime t.sub.d and the input voltage control amount V.sub.c(n); and controlling switching of the primary-side switching transistor according to the primary-side duty cycle control signal duty, and controlling switching of the secondary-side rectifier according to the secondary-side duty cycle control signal duty_SR.
14. The method of claim 13, wherein the step of sampling the voltage signal V.sub.sense(t.sub.mid) on the auxiliary winding at the midpoint instant T.sub.r/2 of the secondary-side current reset time T.sub.r comprises: inputting, by a positive terminal of a first comparator CMP1, a voltage signal V.sub.sense on the auxiliary winding, after superimposition of a digital single sloping wave output by a triangular wave generator and an analog reference voltage output by a first DAC, obtaining a voltage signal V.sub.ref_slope of a single slope digital wave to output to a negative terminal of the first comparator CMP1, and outputting, by the first comparator CMP1, a feedback comparison signal V.sub.ref_comp; inputting, by a positive terminal of a second comparator CMP2, the voltage signal V.sub.sense on the auxiliary winding, inputting, by a negative terminal of the second comparator CMP2, zero voltage, and outputting, by the second comparator CMP2, a zero-crossing comparison signal V.sub.zvs_comp; counting to obtain values of Δt.sub.r half and T.sub.r according to changes between high levels and low levels of the feedback comparison signal V.sub.ref_comp and the zero-crossing comparison signal V.sub.zvs_comp, wherein Δt.sub.r half is a total time required for the voltage signal V.sub.ref_slope of the single slope digital wave to rise from a position of an initial voltage V.sub.initial to a position crossing the voltage signal V.sub.sense on the auxiliary winding, and T.sub.r is a reset time required for a secondary-side current to drop from a peak value to a lowest point; outputting a feedback signal V.sub.ref initial to an input terminal of the triangular wave generator and an input terminal of the first DAC, and adjusting a digital value of the initial voltage V.sub.initial for a next cycle according to a difference between the values of Δt.sub.r half and T.sub.r; and assigning, when the voltage signal V.sub.sense on the auxiliary winding is equal to the voltage signal V.sub.ref_slope of the single slope digital wave, an instant value of the voltage signal V.sub.ref_slope of the single slope digital wave to the voltage signal V.sub.sense(t.sub.mid).
15. The method of claim 13, wherein the step of obtaining the primary-side average current I.sub.mid p and the secondary-side average current I.sub.s(t.sub.mid) in the CCM indirectly by sampling and calculating through the digital-to-analog conversion according to the digital value V.sub.peak_d and the voltage V.sub.cs at the two terminals of the primary-side current sampling resistor R.sub.cs comprises: receiving, by a positive terminal of a third comparator CMP3 and a positive terminal of a fourth comparator CMP4, the voltage V.sub.csl performing a digital-to-analog conversion on the digital value V.sub.peak_d to obtain a voltage analog value V.sub.peak on the primary-side current sampling resistor corresponding to a primary-side peak current and output the voltage analog value V.sub.peak to a negative terminal of the third comparator CMP3, and to obtain V.sub.peak_half and output the V.sub.peak_half to a negative terminal of the fourth comparator CMP4, wherein V.sub.peak_half=k.Math.V.sub.peak, 0<k<1; obtaining, according to changes between high levels and low levels of a comparison signal V.sub.cmp3 output by the third comparator CMP3 and changes between high levels and low levels of a comparison signal V.sub.cmp4 output by the fourth comparator CMP4, a time t.sub.a required by a linear increase of a primary-side current from zero amp or an initial current to a peak current in a DCM and a time t.sub.b required by a linear increase of the primary-side current from zero amp or the initial current to the peak current in the CCM; dividing the digital value V.sub.peak_d by a resistance of the primary-side current sampling resistor R.sub.cz to obtain a digital value I.sub.peak p of a peak current of a primary-side winding inductor; and substituting the digital value I.sub.peak p, the times t.sub.a and t.sub.b into an expression of I.sub.s(t.sub.mid):
16. The method of claim 13, wherein during the step of calculating the deadtime t.sub.d between the turn-off of the secondary-side rectifier and the turn-on of the primary-side switching transistor according to the secondary-side average current I.sub.s(t.sub.mid), the deadtime T.sub.d is calculated according to following formulas:
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) In order to illustrate the technical solutions in the embodiments of the present disclosure more clearly, the drawings used in the description of the embodiments will be briefly introduced below. Apparently, the drawings in the following description are merely some embodiments of the present disclosure. For those skilled in the art, drawings of other embodiments can be obtained according to these drawings, without any creative efforts.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
DETAILED DESCRIPTION OF THE EMBODIMENTS
(15) In order to make the objectives, features, and advantages of the present disclosure more comprehensible, the specified embodiments of the present disclosure will be illustrated in detail with reference to the accompanying drawings.
(16)
(17) The synchronous rectification is a new technology for replacing a rectifier diode with a MOSFET having an extremely low on-resistance, which is generally applied to scenarios with low voltages and high current. A synchronous rectifier has a lower on-resistance and less forward voltage drop, resulting in low rectification losses and meeting current design requirements.
(18)
(19) In order to avoid the breakdown phenomenon caused by a simultaneous turning-on of the primary-side switching transistor and the secondary-side switching transistor during the switching between the primary-side and secondary-side switches of the flyback converter, it must ensure that a deadtime is interposed between the primary-side and secondary-side switching transistors. That is, the secondary-side switching transistor can be turned on only after the primary-side switching transistor is turned off; the primary-side switching transistor can be turned on only after the secondary-side switching transistor is turned off
(20)
(21) At an instant t.sub.0, a primary-side switching transistor SW is turned on, a primary-side current I.sub.p flows through a primary-side inductor L.sub.m and the primary-side switching transistor SW, and the primary-side current I.sub.p increases linearly. In a period between t.sub.0 to t.sub.1, the primary-side switching transistor SW is turned on, and a voltage V.sub.ds.sup.sw at two terminals thereof is zero.
(22) At the instant t.sub.1, the primary-side switching transistor SW is turned off. An equivalent parasitic capacitor C.sub.eqp at the two terminals of the switching transistor is charged by the excitation current I.sub.p, until the value of the voltage V.sub.ds.sup.sw at the two terminals of the primary-side switching transistor SW reaches V.sub.in+NV.sub.o at the instant t.sub.2.
(23) In a period between t.sub.1 and t.sub.3, a secondary-side switching transistor SR is not turned on yet. At the instant t.sub.2, the primary-side current I.sub.p drops to zero, and primary-side energy is transferred to the secondary side through a transformer. At this instant, the secondary-side switching transistor SR is still in the off state, a parasitic diode D.sub.R is turned on, and a secondary-side current I.sub.S increases quickly. Since the on-resistance of the parasitic diode D.sub.R is much greater than the on-resistance of the MOSFET of the secondary-side switching transistor SR, the secondary-side current I.sub.S flowing through the parasitic diode D.sub.R will cause a large conduction loss of the diode, resulting in a decrease in the efficiency of the flyback converter, and therefore the deadtime of t.sub.1 to t.sub.3 should be as small as possible.
(24) In a period between t.sub.3 and t.sub.4, the secondary-side switching transistor SR is turned on. The secondary-side current I.sub.S flows through the MOSFET, rather than through the parasitic diode D.sub.R. The on-resistance of the MOSFET of the secondary-side switching transistor SR is extremely low, thereby greatly reducing the conduction loss.
(25) At an instant t.sub.4, the secondary-side switching transistor SR is turned off. In a period between t.sub.4 and t.sub.5, the MOSFET of the secondary-side switching transistor SR is off, and the current flows through the parasitic diode D.sub.R of the MOSFET. When the primary-side switching transistor SW is turned on at the instant t.sub.6, the voltage drop at the two terminals of the parasitic diode suddenly changes from forward to reverse, and a reverse recovery current can be generated in the process, which causes a reverse recovery loss of the parasitic diode D.sub.R. Therefore, in order to reduce the reverse recovery loss of the parasitic diode D.sub.R in the CCM, the deadtime of t.sub.4 to t.sub.5 should be as small as possible.
(26)
(27)
(28)
(29)
(30) In view of the presence of the forward conduction loss and the reverse recovery loss of the parasitic diode of the conventional flyback converter having the synchronous-rectification primary-side feedback in the CCM, the present disclosure provides a deadtime automatic-optimization system in the CCM, which can reasonably optimize the deadtime, thereby minimizing the forward conduction loss and the reverse recovery loss of the parasitic diode. According to the present disclosure, the primary-side current is sampled to calculate the secondary-side average current through a digital to analog converter (DAC) sampling mechanism, to obtain a primary-side average current I.sub.mid_p and a secondary-side average current I.sub.s(t.sub.mid) in the CCM. Then, the secondary-side average current is input into a deadtime calculation module, so that a reasonable deadtime t.sub.d is obtained. Finally, a PWM driving module is controlled by a primary-side feedback loop and the obtained deadtime t.sub.d together to generate a drive signal duty for the primary-side switching transistor and a drive signal duty_SR for the secondary-side rectifier, so that the deadtime between the turn-off of the secondary-side rectifier and the turn-on of the primary-side switching transistor in the CCM can be reasonably optimized.
(31)
(32) The present disclosure has the advantages and benefits that: according to the present disclosure, the primary-side current is sampled to calculate the secondary-side average current through a digital to analog converter (DAC) sampling mechanism, and a primary-side average current I.sub.mid_p and a secondary-side average current I.sub.s(t.sub.mid) in the CCM are obtained. Then, the secondary-side current is input into a deadtime calculation module, so that a reasonable deadtime t.sub.d is obtained. Finally, a PWM driving module is controlled by a primary-side feedback loop and the obtained deadtime t.sub.d together to generate a drive signal duty for the primary-side switching transistor and a drive signal duty_SR for the secondary-side rectifier, so that the deadtime between the turn-off of the secondary-side rectifier and the turn-on of the primary-side switching transistor in the CCM can be reasonably optimized.
(33)
(34)
(35) Turn-off delay phase: the circuit in this phase is as shown in
(36)
(37) By substituting C.sub.iss=C.sub.gs+C.sub.dg into the above formula, a duration ΔT.sub.1 of the turn-off delay phase can be calculated as follows:
(38)
(39) Since
(40)
Therefore, the above formula can be written as:
(41)
(42) Miller effect phase: the circuit in this phase is as shown in
(43)
and i.sub.g merely flows through C.sub.dg and causes U.sub.dg to increase from I.sub.sR.sub.ds−U.sub.p to U.sub.X−U.sub.p. In this process, the charge Q.sub.p dissipated in the gate of the SR transistor can be calculated as follows:
(44)
(45) According to the above-stated analysis, U.sub.p≈I.sub.sR.sub.ds+U.sub.T and C.sub.dg=C.sub.dg=C.sub.rss1. Therefore, the above-mentioned formula can be derived into:
(46)
(47) Taking account into
(48)
so Q.sub.P1=Q.sub.gd.
(49) According to data sheets of MOSFETs, it can be known that
(50)
(51) wherein C.sub.rss(t) is the real-time data of C.sub.rss when U.sub.dg=U.sub.dg(t). C.sub.rss(t) and U.sub.dg(t) are the routine parameters in the data sheets of MOSFETs, and U.sub.dg(t) is normally given as 25V.
(52) When substituting Q.sub.P1=Q.sub.gd and the formula (6) into the formula (5),
(53) it can be derived that:
Q.sub.P=Q.sub.gd−2√{square root over (U.sub.dg(t))}C.sub.rss(t)(√{square root over (U.sub.DS−I.sub.LR.sub.ds−U.sub.T)}−√{square root over (U.sub.X−I.sub.sR.sub.ds−U.sub.T)}) (7)
(54) According to the formula (7) and
(55)
a duration ΔT.sub.2 in this phase (that is, the Miller effect phase) can be calculated as follows:
(56)
(57) In summary, the most optimized deadtime t.sub.d between the turn-off of the secondary-side rectifier SR and the turn-on of the primary-side switching transistor SW is:
(58)
(59) According to the above-stated analysis, for a given circuit, the variables in the above formulas, except I.sub.s, are all constants. Therefore, the following constants can be defined:
(60)
(61) For the fourth term in the formula (9), Taylor series is used herein to expand the fourth term, and higher-order terms are negligible:
(62)
(63) wherein m=√{square root over (U.sub.X−U.sub.T)}, and n=R.sub.ds. Therefore, the deadtime t.sub.d can be represented by:
t.sub.d=K.sub.1+K.sub.2+K.sub.3+f(I.sub.s) (10).
(64) For the internal block diagram of the deadtime calculation module in
(65)
(66)
(67)
V.sub.c(n)=V.sub.c(n−1)+K.sub.p.Math.(e(n)−e(n−1))+K.sub.i.Math.e(n) (11),
e(n)=V.sub.sense(t.sub.mid)−V.sub.REF (12).
(68) V.sub.c(n) denotes a control amount in a current cycle. V.sub.c(n−1) denotes a control amount in a previous cycle. e (n) denotes an error in the current cycle. e(n−1) denotes an error in the previous circle. K.sub.p and K.sub.i denote an integral parameter and a differential parameter, respectively, which are not a unique value in the full load range, and need to be set to different values according to different modes.
(69) The present disclosure further provides a control system of a flyback power supply having a primary-side feedback in the CCM. The flyback power supply having the primary-side feedback includes a primary side of a transformer, a secondary side of the transformer, and an auxiliary winding. The primary side includes a primary-side winding, a primary-side switching transistor, and a primary-side current sampling resistor that is in series connected to the primary-side switching transistor. The secondary side includes a secondary-side winding and a secondary-side rectifier. The control system includes: a single-output DAC midpoint sampling module sampling a voltage signal V.sub.sense(t.sub.mid) on the auxiliary winding at a midpoint instant T.sub.r/2 of a secondary-side current reset time T.sub.r; a digital control module calculating an error e(n) between the voltage signal V.sub.sense(t.sub.mid) and a predetermined fixed value V.sub.REF, calculating an input voltage control amount V.sub.c(n) for a PWM driving module by using proportion and integration according to the error e(n), and obtaining a digital value V.sub.peak_d of a peak voltage on the primary-side current sampling resistor R.sub.cs according to the error e(n); a current detection module indirectly sampling and calculating through a digital-to-analog conversion according to the digital value V.sub.peak_d and a voltage V.sub.cs at two terminals of the primary-side current sampling resistor R.sub.cs to obtain a primary-side average current I.sub.mid_p and a secondary-side average current I.sub.s(t.sub.mid) in the CCM; a deadtime calculation module calculating a deadtime t.sub.d between a turn-off of the secondary-side rectifier and a turn-on of the primary-side switching transistor according to the secondary-side average current I.sub.s(t.sub.mid); and the PWM driving module generating a primary-side duty cycle control signal duty and a secondary-side duty cycle control signal duty_SR according to the deadtime t.sub.d and the input voltage control amount V.sub.c(n), and controlling switching of the primary-side switching transistor according to the primary-side duty cycle control signal duty, and controlling switching of the secondary-side rectifier according to the secondary-side duty cycle control signal duty_SR.
(70) In one of the embodiments, the single-output DAC midpoint sampling module includes a digital to analog converter, a triangular wave generator, a comparator CMP1, a comparator CMP2, a counter, and a feedback amount calculation module. The voltage signal V.sub.sense on the auxiliary winding is input as input signals to a positive terminal of the comparator CMP1 and a positive terminal of the comparator CMP2, respectively. After a digital single sloping wave output by the triangular wave generator is superimposed on an analog reference voltage output by the digital to analog converter, a voltage signal V.sub.ref_slope of the single slope digital wave is obtained and is input to a negative terminal of the comparator CMP1. A negative terminal of the comparator CMP2 is connected to zero voltage. The comparator CMP1 outputs a feedback comparison signal V.sub.ref_comp to the counter, and the comparator CMP2 outputs a zero-crossing comparison signal V.sub.zvs_comp to the counter. The counter counts to obtain values of Δt.sub.r_half and T.sub.r according to changes between high levels and low levels of the feedback comparison signal V.sub.ref_comp and the zero-crossing comparison signal V.sub.zvs_comp, in which Δt.sub.r_half is a total time required for the voltage signal V.sub.ref_slope of the single slope digital wave to rise from a position of an initial voltage V.sub.initial to a position crossing the voltage signal V.sub.sense on the auxiliary winding, and T.sub.r is a reset time required for the secondary-side current to drop from a peak value to the lowest point. According to a difference between the values of Δt.sub.r_half and T.sub.r, the feedback amount calculation module outputs a feedback signal V.sub.ref_initial to an input terminal of the triangular wave generator and an input terminal of the digital to analog converter and adjusts a digital value of the initial voltage V.sub.initial for a next cycle. When the voltage signal V.sub.sense on the auxiliary winding is equal to the voltage signal V.sub.ref_slope of the single slope digital wave, the instant value of the voltage signal V.sub.ref_slope of the single slope digital wave is assigned to the voltage signal V.sub.sense(t.sub.mid) to output as an output signal of the single-output DAC midpoint sampling module in a current switching cycle.
(71) In one of the embodiments, the current detection module includes a single-input double-output digital to analog converter, a comparator CMP3, a comparator CMP4, a primary-side current time counting module, and a secondary-side average current calculation module. The single-input double-output digital to analog converter and the secondary-side average current calculation module receive the digital value V.sub.peak_d output by the digital control module. A positive terminal of the comparator CMP3 and a positive terminal of the comparator CMP4 receive the voltage V.sub.cs. A primary-side peak current output by a first output terminal of the single-input double-output digital to analog converter corresponds to the voltage analog value V.sub.peak on the primary-side current sampling resistor, and the voltage analog value V.sub.peak is output to a negative terminal of the comparator CMP3. A second output terminal of the single-input double-output digital to analog converter outputs V.sub.peak half, wherein V.sub.peak_half=k.Math.V.sub.peak, 0<k<1, and the V.sub.peak_half is output to a negative terminal of the comparator CMP4. The comparator CMP3 outputs a comparison signal V.sub.cmp3 to a first counter of the primary-side current time counting module. The comparator CMP4 outputs a comparison signal V.sub.cmp4 to a second counter of the primary-side current time counting module. According to changes of high levels and low levels of the comparison signal V.sub.cmp3 and the comparison signal V.sub.cmp4, the primary-side current time counting module obtains a time t.sub.a required by a linear increase of a primary current from zero amp or an initial current to a peak current in a DCM and a time t.sub.b required by a linear increase of the primary-side current from zero amp or the initial current to the peak current in the CCM, and outputs the times t.sub.a and t.sub.b to the secondary-side average current calculation module. The secondary-side average current calculation module divides the digital value V.sub.peak_d by a resistance of the primary-side current sampling resistor R.sub.cs to obtain a digital value I.sub.peak_p corresponding to a peak current of the primary-side winding inductor, which is substituted into an expression of I.sub.s(t.sub.mid) along with the times t.sub.a and t.sub.b:
(72)
(73) wherein N.sub.p and N.sub.s denote a number of turns of the primary-side winding and the secondary-side winding of the transformer respectively, to obtain and output the secondary-side average current I.sub.s(t.sub.mid) in the CCM.
(74) In one of the embodiments, the deadtime calculation module calculates the deadtime t.sub.d according to the following formulas:
(75)
(76) In the above-mentioned formulas, U.sub.p is a Miller plateau voltage. U.sub.g is a gate voltage of the secondary-side rectifier. R.sub.g is a gate resistance of the secondary-side rectifier. Q.sub.g is a total dissipation charge amount of the gate during the turn-off of the secondary-side rectifier. Q.sub.gd is a dissipation charge amount of the gate in a Miller effect phase during the turn-off of the secondary-side rectifier. Q.sub.gs is a dissipation charge amount of the gate in a phase that U.sub.gs decreases from the Miller plateau voltage U.sub.p to 0 during the turn-off of the secondary-side rectifier. I.sub.L is a load current. U.sub.ds is an input voltage of the secondary-side rectifier. C.sub.rss is a reverse transfer capacitance of the secondary-side rectifier. I.sub.s is a secondary-side current. U.sub.X is an experimental measurement. U.sub.T is a threshold voltage of the secondary-side rectifier, and R.sub.ds is a source-drain resistance of the secondary-side rectifier.
(77) In one of the embodiments, the PWM driving module includes a comparator, an inverter, a D flip-flop, an OR-gate, and a PWM driving unit. A positive input terminal of the comparator inputs the deadtime t.sub.d. A negative input terminal of the comparator is connected to zero voltage. An output terminal of the comparator is connected to an input terminal of the inverter. An output terminal of the inverter is connected to a D-input terminal of the D flip-flop. An input signal of the PWM driving unit is the input voltage control amount V.sub.c(n). A first output terminal of the PWM driving unit outputs the primary-side duty cycle control signal duty, and a second output terminal thereof outputs the signal duty_SRI to a clock control terminal of the D flip-flop. A Q-output terminal of the D flip-flop is connected to one input terminal of the OR-gate, the signal duty_SRI is input to the other input terminal of the OR-gate. An output terminal of the OR-gate outputs the secondary-side duty cycle control signal duty_SR.
(78) In one of the embodiments, the secondary-side rectifier is a MOS transistor.
(79) In one of the embodiments, the primary-side switching transistor is a MOS transistor. The primary-side current sampling resistor is connected in series between the source of the primary-side switching transistor and the ground.
(80) The present disclosure further provides a method of controlling a flyback power supply having a primary-side feedback in the CCM. The flyback power supply having the primary-side feedback includes a primary side of a transformer, a secondary side of the transformer, and an auxiliary winding. The primary side includes a primary-side winding, a primary-side switching transistor, and a primary-side current sampling resistor that is connected in series to the primary-side switching transistor. The secondary side includes a secondary-side winding and a secondary-side rectifier. The method includes: sampling a voltage signal V.sub.sense(t.sub.mid) on the auxiliary winding at a midpoint instant T.sub.r/2 of a secondary-side current reset time T.sub.r; calculating an error e(n) between the voltage signal V.sub.sense(t.sub.mid) and a predetermined fixed value V.sub.REF, calculating an input voltage control amount V.sub.c(n) for a PWM driving module by using proportion and integration according to the error e(n), and obtaining a digital value V.sub.peak_d of a peak voltage on the primary-side current sampling resistor R.sub.cs according to the error e(n); indirectly sampling and calculating to obtain a primary-side average current I.sub.mid_p and a secondary-side average current I.sub.s(t.sub.mid) in the CCM through a digital-to-analog conversion according to the digital value V.sub.peak_d and a voltage V.sub.cs at two terminals of the primary-side current sampling resistor R.sub.cs; calculating a deadtime t.sub.d between a turn-off of the secondary-side rectifier and a turn-on of the primary-side switching transistor according to the secondary-side average current I.sub.s(t.sub.mid); generating, by the PWM driving module, a primary-side duty cycle control signal duty and a secondary-side duty cycle control signal duty_SR according to the deadtime t.sub.d and the input voltage control amount V.sub.c(n); and controlling switching of the primary-side switching transistor according to the primary-side duty cycle control signal duty, and controlling switching of the secondary-side rectifier according to the secondary-side duty cycle control signal duty_SR.
(81) In one of the embodiments, the step of sampling the voltage signal V.sub.sense(t.sub.mid) on the auxiliary winding at the midpoint instant T.sub.r/2 of the secondary-side current reset time T.sub.r, includes:
(82) inputting, by a positive terminal of a comparator CMP1, a voltage signal V.sub.sense on the auxiliary winding, after superimposition of a digital single sloping wave output by a triangular wave generator and an analog reference voltage output by a digital to analog converter, obtaining a voltage signal V.sub.ref_slope of a single slope digital wave to output to a negative terminal of the comparator CMP1, and outputting, by the comparator CMP1, a feedback comparison signal V.sub.ref_comp;
(83) inputting, by a positive terminal of a comparator CMP2, the voltage signal V.sub.sense on the auxiliary winding, inputting, by a negative terminal thereof, zero voltage, and outputting, by the comparator CMP2, a zero-crossing comparison signal V.sub.zvs_comp;
(84) counting to obtain values of Δt.sub.r_half and T.sub.r according to changes between high levels and low levels of the feedback comparison signal V.sub.ref_comp and the zero-crossing comparison signal V.sub.zvs_comp, wherein Δt.sub.r_half is a total time required for the voltage signal V.sub.ref_slope of the single slope digital wave to rise from a position of an initial voltage V.sub.initial to a position crossing the voltage signal V.sub.sense on the auxiliary winding, and T.sub.r is a reset time required for a secondary-side current to drop from a peak value to a lowest point;
(85) outputting a feedback signal V.sub.ref_initial to an input terminal of the triangular wave generator and an input terminal of the digital to analog converter and adjusting a digital value of the initial voltage V.sub.initial for a next cycle according to a difference between the values of Δt.sub.r_half and T.sub.r; and
(86) assigning, when the voltage signal V.sub.sense on the auxiliary winding is equal to the voltage signal V.sub.ref_slope of the single slope digital wave, an instant value of the voltage signal V.sub.ref_slope of the single slope digital wave to the voltage signal V.sub.sense(t.sub.mid)
(87) In one of the embodiments, the step of indirectly sampling and calculating to obtain the primary-side average current I.sub.mid_p and the secondary-side average current I.sub.s(t.sub.mid) in the CCM through the digital-to-analog conversion according to the digital value V.sub.peak_d and the voltage V.sub.cs at the two terminals of the primary-side current sampling resistor R.sub.cs, includes:
(88) receiving, by a positive terminal of a comparator CMP3 and a positive terminal of a comparator CMP4, the voltage V.sub.cs;
(89) performing a digital-to-analog conversion on the digital value V.sub.peak_d to obtain a voltage analog value V.sub.peak on the primary-side current sampling resistor corresponding to a primary-side peak current and output the voltage analog value V.sub.peak to a negative terminal of the comparator CMP3, and to obtain V.sub.peak_half and output the V.sub.peak_half to a negative terminal of the comparator CMP4, wherein V.sub.peak_half=k.Math.V.sub.peak, 0<k<1;
(90) obtaining, according to changes between high levels and low levels of a comparison signal V.sub.cmp3 output by the comparator CMP3 and changes between high levels and low levels of a comparison signal V.sub.cmp4 output by the comparator CMP4, a time t.sub.a required by a linear increase of a primary-side current from zero amp or an initial current to a peak current in a DCM and a time t.sub.b required by a linear increase of the primary-side current from zero amp or the initial current to the peak current in the CCM;
(91) dividing the digital value V.sub.peak_d by a resistance of the primary-side current sampling resistor R.sub.cs to obtain a digital value I.sub.peak_p of a peak current of a primary-side winding inductor; and
(92) substituting the digital value I.sub.peak_p, and the times t.sub.a and t.sub.b into an expression of I.sub.s(t.sub.mid):
(93)
(94) wherein N.sub.p and N.sub.s denote a number of turns of the primary-side winding and the secondary-side winding of the transformer respectively, to obtain the secondary-side average current I.sub.s(t.sub.mid) in the CCM.
(95) In one of the embodiments, during the step of calculating the deadtime t.sub.d between the turn-off of the secondary-side rectifier and the turn-on of the primary-side switching transistor according to the secondary-side average current I.sub.s(t.sub.mid), the deadtime t.sub.d is calculated according to following formulas:
(96)
(97) In the above-mentioned formulas, U.sub.p is a Miller plateau voltage, U.sub.g is a gate voltage of the secondary-side rectifier, R.sub.g is a gate resistance of the secondary-side rectifier, Q.sub.g is a total dissipation charge amount of the gate during the turn-off of the secondary-side rectifier, Q.sub.gd is a dissipation charge amount of the gate in a Miller effect phase during the turn-off of the secondary-side rectifier, Q.sub.gs is a dissipation charge amount of the gate in a phase that U.sub.gs decreases from the Miller plateau voltage U.sub.p to 0 during the turn-off of the secondary-side rectifier, I.sub.L is a load current, U.sub.ds is an input voltage of the secondary-side rectifier, C.sub.rss is a reverse transfer capacitance of the secondary-side rectifier, I.sub.s is a secondary-side current, U.sub.X is an experimental measurement, U.sub.T is a threshold voltage of the secondary-side rectifier, and R.sub.ds is a source-drain resistance of the secondary-side rectifier.