Quasi-resonant flyback circuit control method based on DSP
By adopting a DSP-based quasi-resonant flyback circuit control method in the photovoltaic power generation micro-inverter, using the EPWM control module and CMPSS comparator, single-cycle control is achieved, solving the problems of high cost and increased loss, and reducing system costs. and improved efficiency.
Patent Information
- Application Number
- CN202311622219.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-11-30
AI Technical Summary
In the existing technology, in photovoltaic power generation micro-inverters, the single-cycle control cost of the quasi-resonant flyback circuit is high, and it is difficult to calculate and generate multiple working cycles in one control cycle, resulting in increased losses.
The DSP-based quasi-resonant flyback circuit control method is used to achieve single-cycle control of the PWM control cycle through the EPWM control module and CMPSS comparator. The peak current of the primary inductor is used for PED cycle modulation without adding a valley detection circuit. Through the timer Record and calculate the opening and closing time of the switch tube to ensure periodic control of the quasi-resonant flyback operating frequency.
Single-cycle control can be achieved without adding a valley detection circuit, which reduces system cost, improves system efficiency, and meets the cycle control requirements of the quasi-resonant flyback operating frequency.
Smart Images

Figure CN117639515B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a quasi-resonance flyback circuit control method based on DSP, belonging to the technical field of PWM period control. Background Art
[0002] In the current photovoltaic power generation micro-inverter, the flyback topology is more common in the circuit topology of the micro-inverter because it can achieve a higher voltage step-up ratio, better conversion efficiency, and isolation between the AC circuit and the DC circuit.
[0003] Among them, quasi-resonant flyback has become the choice of many manufacturers because of its high conversion efficiency and low cost. Quasi-resonant (QR for short), in the most common flyback switching power supply, quasi-resonant means turning on the switch tube (such as commonly used MOSFET and other semiconductor switch tubes) at the minimum drain-source voltage (Vds). That is, quasi-resonant operation or work, the general power management IC detects the power supply working mode through the demagnetization circuit, and then turns on the switch tube at the minimum drain-source voltage waveform by detecting the signal event to ensure that the turn-on loss and EMI noise interference are reduced.
[0004] Photovoltaic inverters usually use DSP as the main controller. Conventional DSP main frequency is 60MHz~200MHz, control frequency is 10KHz~50KHz, but the quasi-resonant flyback operating frequency is 100KHz~400KHz, so it is difficult to achieve single-cycle control without adding valley detection circuits. Usually, PMW is calculated and generated within one control cycle to control multiple quasi-resonant flyback working cycles, which easily leads to failure to open the switch tube at the lowest drain voltage, resulting in increased losses. Summary of the invention
[0005] The purpose of the present invention is to solve the deficiencies of the above-mentioned prior art. Aiming at the problems that the prior art center needs to use a valley detection circuit for single-cycle control, which is costly, and the calculation and generation of multiple quasi-resonant flyback working cycle controls within one control cycle leads to increased losses, a quasi-resonant flyback circuit control method based on DSP is proposed.
[0006] In order to achieve the above object, the technical solution adopted by the present invention is:
[0007] A quasi-resonant flyback circuit control method based on DSP, wherein the quasi-resonant flyback circuit comprises a primary side, a secondary side, and a flyback converter located between the primary side and the secondary side, wherein the primary side comprises a switch tube, and the quasi-resonant flyback circuit has a DSP controller, wherein the DSP controller comprises an EPWM control module and a CMPSS comparator.
[0008] The EPWM control module includes a PWM control cycle and a PED cycle modulation for controlling the PWM control cycle. The PED cycle modulation includes a node A for turning on the switch tube, a node B for turning off the switch tube according to the primary inductor peak current Ip, a node C for turning off the switch tube until the primary inductor current is 0, and a node C for turning on the switch tube V ds At the valley value, the node A' at which the switch tube is turned on in the next cycle, the period of the PWM control cycle is T, T=T AB +T BC +T CA’ , where T AB is the switch on time, T BC T is the time from when the switch is turned off to when the primary inductor current is zero. CA’ The current from the primary inductor to the switch tube V is 0. ds The switch off time to the valley value,
[0009] Where L M is the inductance, Vin is the input voltage,
[0010] Where N is the ratio of the flyback converter, V 0 is the output voltage,
[0011] Where L p is the primary inductance, L s is the leakage inductance, and Coss is the capacitance of the parasitic capacitance of the switching tube.
[0012] Preferably, the primary inductor peak current Ip is updated, Ip is updated to Ip*, and the PED period modulation is updated according to Ip*.
[0013] Preferably, the EPWM control module is provided with a AB The TBCTR timer,
[0014] When the PWM control cycle is restarted after an interruption, the PED cycle modulation reads the record T of the TBCTR timer. AB , and according to T AB Calculate T BC , the T BC =K*T AB ,
[0015] Preferably, the EPWM control module is provided with a CMPSS comparator for triggering protection according to the primary current. When the CMPSS comparator triggers the protection, the current PWM control cycle is closed, and the PED cycle modulation calculates the next opening node according to the current TBCTR timer.
[0016] The beneficial effects of the present invention are mainly reflected in:
[0017] 1. No need to add valley detection circuit to meet the single-cycle control of PWM control period, which reduces system cost and improves system efficiency.
[0018] 2. The PWM trigger interrupt can be performed through primary current sampling, and the PWM on-time can be obtained based on single-cycle calculation, thus satisfying the periodic control of the quasi-resonant flyback operating frequency. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0020] Figure 1 It is a flow chart of the quasi-resonant flyback circuit control method based on DSP of the present invention.
[0021] Figure 2 It is a PWM control cycle timing diagram of the quasi-resonant flyback circuit control method based on DSP of the present invention.
[0022] Figure 3 It is a topological circuit diagram of the quasi-resonant flyback circuit in the present invention. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant inventions, rather than to limit the inventions. It should also be noted that, for ease of description, only the parts related to the relevant inventions are shown in the accompanying drawings. It should be noted that, in the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
[0025] The present invention provides a quasi-resonant flyback circuit control method based on DSP, such as Figure 3As shown, the quasi-resonant flyback circuit includes a primary side, a secondary side, and a flyback converter located between the primary side and the secondary side. The primary side includes a switch tube. The quasi-resonant flyback circuit has a DSP controller. The DSP controller includes an EPWM control module and a CMPSS comparator. The quasi-resonant flyback circuit belongs to the prior art. Figure 3 As shown, the structure and connection thereof will not be elaborated.
[0026] like Figure 1 and Figure 2 As shown, the EPWM control module includes a PWM control cycle and a PED cycle modulation for controlling the PWM control cycle. The PED cycle modulation includes a node A for turning on the switch tube, a node B for turning off the switch tube according to the primary inductor peak current Ip, a node C for turning off the switch tube until the primary inductor current is 0, and a node C for turning on the switch tube V ds At the valley value, the node A' at which the switch tube is turned on in the next cycle, the period of the PWM control cycle is T, T = T AB +T BC +T CA’ , where T AB is the switch on time, T BC T is the time from when the switch is turned off to when the primary inductor current is zero. CA’ The current from the primary inductor to the switch tube V is 0. ds The switch off time from the low value to the low value.
[0027] Specifically, Figure 2 As shown, it describes the working conditions of the switch tube state, switch tube current ISW, primary inductor current ILM, secondary current LR, and switch tube Vds changing with time in a single cycle.
[0028] In T AB During this time period, the switch tube is turned on, and the switch tube V ds is 0, the primary input charges the inductor LM, and the switch current I SW Rising, the primary inductor current I LM Rise. According to the inductor current formula At this time, because the switch tube is turned on, the inductor voltage V = V in , when the primary inductor current I LM Rise to the maximum value L P When the inductor current formula can be deduced as It is deduced from this Where L M is the inductance, Vin is the input voltage.
[0029] In T BC During this time period, the switch tube is turned off, and the inductor LM discharges to the secondary output. The switch tube current is 0 because the switch tube is turned off. The primary inductor current ILM The secondary current LR also decreases from the highest point at the beginning of conduction to 0. According to the inductor current formula At this time, because the switch tube is turned on, the inductor voltage Where N is the transformer ratio. When the primary inductor current I LM By the maximum value L P When it drops to 0, the inductor current formula can be deduced as It can be deduced Where N is the ratio of the flyback converter, V 0 is the output voltage.
[0030] In T CA’ During this time period, the switch tube is turned off and the switch tube current I SW , primary inductor current I LM , secondary current L R are all 0, at this time the primary inductance L P , leakage inductance L S And the LC resonant circuit composed of the parasitic capacitance Coss of the switch tube, the resonant period is
[0031] Therefore, the time from the highest point to the first valley is Where L p is the primary inductance, L s is the leakage inductance, and Coss is the capacitance of the parasitic capacitance of the switching tube.
[0032] Therefore, quasi-resonant flyback is to switch the V ds It is turned on at the minimum value to achieve the minimum turn-on loss. Currently, the first valley value is selected as the turn-on time point of the next switching cycle to ensure the reduction of turn-on loss and EMI noise interference.
[0033] In actual operation, the inverter operation needs to update the peak current Ip. Therefore, when the primary inductance peak current Ip is updated, Ip is updated to Ip*, and the PED cycle modulation is updated according to Ip*.
[0034] The EPWM control module has a function for recording T AB The TBCTR timer,
[0035] In a specific embodiment, when the PWM control cycle is restarted after an interruption, the PED cycle modulates the reading of the record T of the TBCTR timer. AB , and according to T AB Calculate T BC , T BC =K*T AB ,
[0036] Specifically, the traditional PWM control cycle is relatively fixed. When dynamic changes occur, it requires a certain amount of current, voltage, etc. sampling time and calculation to achieve the control update of the PWM control cycle. In this case, the TBCTR timer can be used to achieve T AB Real-time record, by reading T AB This can satisfy the T through the coefficient K BC The coefficient k is the calculation proportional coefficient, which can meet the efficient update requirements of PED periodic modulation without current and voltage sampling. CA’ To illustrate, the time from the peak value to the first valley value is a fixed value related to the system hardware. Therefore, we only need to get T AB Then, each modulation node of the PED periodic modulation can be calculated and updated.
[0037] In addition, since the DSP main frequency is 60MHz~200MHz, the control frequency is 10KHz~50KHz, but the quasi-resonant flyback operating frequency is 100KHz~400KHz, in order to adapt to the high frequency of the quasi-resonant flyback circuit, the EPWM control module is equipped with a CMPSS comparator for triggering protection according to the primary current. When the CMPSS comparator triggers the protection, the current PWM control cycle is closed, and the PED cycle modulation calculates the next opening node according to the current TBCTR timer. Therefore, in the case of being unable to adapt to the continuous high-frequency control of the PWM control cycle, the closure of the PWM control cycle is coordinated with the calculated opening node, thereby meeting the low-frequency adaptation to high-frequency PWM cycle operation requirements.
[0038] From the above description, it can be found that the single-cycle control of the PWM control cycle can be met without adding a valley detection circuit, which reduces system cost and improves system efficiency. The PWM trigger interrupt can be performed through primary current sampling, and the PWM on time can be calculated based on the single cycle, thus meeting the cycle control of the quasi-resonant flyback operating frequency.
[0039] The term "comprise" or any other similar term is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus / device that includes a list of elements includes not only those elements but also other elements not expressly listed, or also includes elements inherent to such process, method, article, or apparatus / device.
[0040] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
Claims
1. A quasi-resonant flyback circuit control method based on DSP, wherein the quasi-resonant flyback circuit comprises a primary side, a secondary side, and a flyback converter located between the primary side and the secondary side, wherein the primary side comprises a switch tube, and the quasi-resonant flyback circuit comprises a DSP controller, wherein the DSP controller comprises an EPWM control module and a CMPSS comparator, wherein: The EPWM control module includes a PWM control cycle and a PED cycle modulation for controlling the PWM control cycle. The PED cycle modulation includes a node A for turning on the switch tube, a node B for turning off the switch tube according to the primary inductor peak current Ip, a node C for turning off the switch tube until the primary inductor current is 0, and a node C for turning on the switch tube V ds At the valley value, the node A' at which the switch tube is turned on in the next cycle, the period of the PWM control cycle is T, T=T AB +T BC +T CA’ , where T AB is the switch on time, T BC T is the time from when the switch is turned off to when the primary inductor current is zero. CA’ The current from the primary inductor to the switch tube V is 0. ds The switch off time to the valley value, T AB = , where L M is the inductance, Vin is the input voltage, T BC = , where N is the transformation ratio of the flyback converter, V0 is the output voltage, T CA’ = , where L p is the primary inductance, L s is the leakage inductance, Coss is the capacitance of the parasitic capacitance of the switch tube; Update the primary inductor peak current Ip and update Ip to Ip*. Update the PED periodic modulation according to Ip*; The EPWM control module has a function for recording T AB The TBCTR timer, When the PWM control cycle is restarted after an interruption, the PED cycle modulation reads the record T of the TBCTR timer. AB , and according to T AB Calculate T BC , the T BC =K * T AB , K= ; The EPWM control module is provided with a CMPSS comparator for triggering protection according to the primary current. When the CMPSS comparator triggers the protection, the current PWM control cycle is closed. The PED cycle modulation calculates the next opening node according to the current TBCTR timer.
