[go: up one dir, main page]

CN110277905A - Digital control method of power supply, power factor correction stage, and power factor correction method - Google Patents

Digital control method of power supply, power factor correction stage, and power factor correction method Download PDF

Info

Publication number
CN110277905A
CN110277905A CN201910662185.5A CN201910662185A CN110277905A CN 110277905 A CN110277905 A CN 110277905A CN 201910662185 A CN201910662185 A CN 201910662185A CN 110277905 A CN110277905 A CN 110277905A
Authority
CN
China
Prior art keywords
power factor
factor correction
voltage
current
stage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910662185.5A
Other languages
Chinese (zh)
Inventor
尤波
王旭东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin University of Science and Technology
Original Assignee
Harbin University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Harbin University of Science and Technology filed Critical Harbin University of Science and Technology
Priority to CN201910662185.5A priority Critical patent/CN110277905A/en
Publication of CN110277905A publication Critical patent/CN110277905A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M1/00Details of apparatus for conversion
    • H02M1/42Circuits or arrangements for compensating for or adjusting power factor in converters or inverters
    • H02M1/4208Arrangements for improving power factor of AC input
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M1/00Details of apparatus for conversion
    • H02M1/44Circuits or arrangements for compensating for electromagnetic interference in converters or inverters
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M3/00Conversion of DC power input into DC power output
    • H02M3/02Conversion of DC power input into DC power output without intermediate conversion into AC
    • H02M3/04Conversion of DC power input into DC power output without intermediate conversion into AC by static converters
    • H02M3/10Conversion of DC power input into DC power output without intermediate conversion into AC by static converters using discharge tubes with control electrode or semiconductor devices with control electrode
    • H02M3/145Conversion of DC power input into DC power output without intermediate conversion into AC by static converters using discharge tubes with control electrode or semiconductor devices with control electrode using devices of a triode or transistor type requiring continuous application of a control signal
    • H02M3/155Conversion of DC power input into DC power output without intermediate conversion into AC by static converters using discharge tubes with control electrode or semiconductor devices with control electrode using devices of a triode or transistor type requiring continuous application of a control signal using semiconductor devices only
    • H02M3/156Conversion of DC power input into DC power output without intermediate conversion into AC by static converters using discharge tubes with control electrode or semiconductor devices with control electrode using devices of a triode or transistor type requiring continuous application of a control signal using semiconductor devices only with automatic control of output voltage or current, e.g. switching regulators
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M1/00Details of apparatus for conversion
    • H02M1/0003Details of control, feedback or regulation circuits
    • H02M1/0012Control circuits using digital or numerical techniques
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M1/00Details of apparatus for conversion
    • H02M1/0048Circuits or arrangements for reducing losses
    • H02M1/0054Transistor switching losses
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B70/00Technologies for an efficient end-user side electric power management and consumption
    • Y02B70/10Technologies improving the efficiency by using switched-mode power supplies [SMPS], i.e. efficient power electronics conversion e.g. power factor correction or reduction of losses in power supplies or efficient standby modes

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Dc-Dc Converters (AREA)
  • Rectifiers (AREA)

Abstract

电源的数字控制方法、功率因数校正级、以及功率因数校正方法,涉及电源领域。本发明是为了解决传统的电源当开关频率较高时,功率因数校正级电路效率低,以及DC‑DC变换级电路MOSFET管开关损耗大、电磁干扰大的问题。本发明所述电源的功率因数校正级在传统的功率因数校正级的基础上增加了无源损吸电路。本发明所述的电源的数字控制方法以及功率因数校正方法均分别对功率因数校正级和DC‑DC变换级的相关电压电流进行采样,并送入DSP进行处理,产生的三路PWM信号分别控制功率因数校正级和DC‑DC变换级的MOS管,对电压环和电流环均采用增量式数字PI算法。

A digital control method for a power supply, a power factor correction stage, and a power factor correction method relate to the field of power supplies. The invention aims to solve the problems of low power factor correction stage circuit efficiency, large MOSFET tube switching loss and large electromagnetic interference of the DC-DC conversion stage circuit when the switching frequency of the traditional power supply is high. The power factor correction stage of the power supply of the present invention adds a passive loss-sink circuit on the basis of the traditional power factor correction stage. The digital control method of the power supply and the power factor correction method of the present invention respectively sample the relevant voltage and current of the power factor correction stage and the DC-DC conversion stage, and send them to the DSP for processing, and the generated three-way PWM signals are respectively controlled The MOS transistors of the power factor correction stage and the DC-DC conversion stage adopt incremental digital PI algorithms for both the voltage loop and the current loop.

Description

电源的数字控制方法、功率因数校正级、以及功率因数校正 方法Digital control method of power supply, power factor correction stage, and power factor correction method

技术领域technical field

本发明涉及功率因数校正技术以及DC-DC变换技术,属于电源领域。The invention relates to power factor correction technology and DC-DC conversion technology, and belongs to the field of power supply.

背景技术Background technique

电源包括EMI单元、桥式整流电路、功率因数校正级、DC-DC变换级、采样电路以及控制器等。数字信号处理器DSP具有处理速度快、精确、可靠性高等特点,已经逐步取代了传统的模拟控制。将以DSP为主的数字控制技术应用于电源,可以简化电路结构,并获得高功率密度和高可靠性,例如,在DSP内嵌入由软件实现的比例积分调节(PI)器,以此控制电源的功率因数校正级。但是,这种电源也存在一些问题,例如:The power supply includes an EMI unit, a bridge rectifier circuit, a power factor correction stage, a DC-DC conversion stage, a sampling circuit, and a controller. Digital signal processor DSP has the characteristics of fast processing speed, precision and high reliability, and has gradually replaced traditional analog control. Applying DSP-based digital control technology to the power supply can simplify the circuit structure and obtain high power density and high reliability. For example, a proportional-integral regulator (PI) implemented by software is embedded in the DSP to control the power supply. power factor correction stage. However, there are also some problems with this power supply, such as:

1、当功率因数校正级中的MOSFET管开关频率较高时,功率开关MOSFET管上的功率损耗大,电压电流变化率高,使开关器件的电压应力和电流应力增大,功率因数校正级效率降低,并且降低了开关MOSFET管的使用寿命。1. When the switching frequency of the MOSFET tube in the power factor correction stage is high, the power loss on the power switch MOSFET tube is large, and the voltage and current change rate is high, which increases the voltage stress and current stress of the switching device, and the efficiency of the power factor correction stage Reduced, and reduce the service life of the switch MOSFET tube.

2、DC-DC变换级电路中的开关MOSFET管内部存在寄生电容,开关MOSFET管开通或关断时会产生很大的开关损耗,同时还会产生严重的电磁干扰。2. There is parasitic capacitance inside the switch MOSFET tube in the DC-DC conversion stage circuit. When the switch MOSFET tube is turned on or off, a large switching loss will be generated, and serious electromagnetic interference will also be generated.

发明内容Contents of the invention

本发明是为了解决传统的电源当开关频率较高时,功率因数校正级电路效率低,以及DC-DC变换级电路MOSFET管开关损耗大、电磁干扰大的问题,现提供一种电源的数字控制方法、功率因数校正级、以及功率因数校正方法。The invention aims to solve the problems of low efficiency of the power factor correction stage circuit, large switching loss and large electromagnetic interference of the MOSFET tube of the DC-DC conversion stage circuit when the switching frequency of the traditional power supply is high, and now provides a digital control of the power supply method, power factor correction stage, and power factor correction method.

本发明所述的一种功率因数校正级,包括第一电感L1、第一二极管VD1、第一MOS管S1和第一电容C1;所述第一电感L1的一端作为所述功率因数校正级的正输入端、另一端连接第一MOS管S1的漏极;第一二极管VD1的阴极连接第一电容C1的一端,第一电容C1的另一端连接第一MOS管S1的源极;第一二极管VD1与第一电容C1的公共端作为所述功率因数校正级的正输出端,第一电容C1与第一MOS管S1的公共端同时作为所述功率因数校正级的负输入端和负输出端;A power factor correction stage according to the present invention includes a first inductor L1, a first diode VD1, a first MOS transistor S1, and a first capacitor C1; one end of the first inductor L1 is used as the power factor correction The positive input terminal of the first stage and the other end are connected to the drain of the first MOS transistor S1; the cathode of the first diode VD1 is connected to one end of the first capacitor C1, and the other end of the first capacitor C1 is connected to the source of the first MOS transistor S1 ; The common terminal of the first diode VD1 and the first capacitor C1 is used as the positive output terminal of the power factor correction stage, and the common terminal of the first capacitor C1 and the first MOS transistor S1 is simultaneously used as the negative output terminal of the power factor correction stage input and negative output;

所述功率因数校正级还包括无源损吸电路,所述无源损吸电路包括第四电感L4、第五电容C5、第二电阻R2以及第四二极管VD4;所述第二电阻R2、第四二极管VD4以及第四电感L4依次首尾串联形成闭合回路,第四二极管VD4与第二电阻R2相连接的一端为阳极,所述第五电容C5并联在第二电阻R2两端;The power factor correction stage also includes a passive loss-sink circuit, and the passive loss-sink circuit includes a fourth inductor L4, a fifth capacitor C5, a second resistor R2, and a fourth diode VD4; the second resistor R2 , the fourth diode VD4 and the fourth inductor L4 are connected in series end to end in order to form a closed loop, the end of the fourth diode VD4 connected to the second resistor R2 is an anode, and the fifth capacitor C5 is connected in parallel between the second resistor R2 end;

第二电阻R2和第四电感L4的公共端还同时连接第一MOS管S1的漏极;第四二极管VD4的阴极还同时连接第一二极管VD1的阳极。The common terminal of the second resistor R2 and the fourth inductor L4 is also connected to the drain of the first MOS transistor S1; the cathode of the fourth diode VD4 is also connected to the anode of the first diode VD1.

基于上述功率因数校正级的电源,包括EMI单元、桥式整流电路、功率因数校正级、DC-DC变换级、第一采样电路、第二采样电路以及DSP;The power supply based on the above-mentioned power factor correction stage includes an EMI unit, a bridge rectifier circuit, a power factor correction stage, a DC-DC conversion stage, a first sampling circuit, a second sampling circuit and a DSP;

所述EMI单元用于对输入的交流电进行滤波处理,并将滤波后得到的信号发送至桥式整流电路;The EMI unit is used to filter the input alternating current, and send the filtered signal to the bridge rectifier circuit;

所述桥式整流电路用于将滤波后得到的信号转化为单向脉动电压信号和单向脉动电流信号,并将所述单向脉动电压信号和单向脉动电流信号发送至功率因数校正级;The bridge rectifier circuit is used to convert the filtered signal into a unidirectional pulsating voltage signal and a unidirectional pulsating current signal, and send the unidirectional pulsating voltage signal and unidirectional pulsating current signal to a power factor correction stage;

所述功率因数校正级对所述单向脉动电压信号单和向脉动电流信号进行处理,并将处理结果发送至DC-DC变换级;The power factor correction stage processes the unidirectional pulsating voltage signal and unidirectional pulsating current signal, and sends the processing result to the DC-DC conversion stage;

所述DC-DC变换级用于对功率因数校正级发来的信号进行转换,得到直流输出;所述DC-DC变换级包括第二电感L2、第二二极管VD2、第三二极管VD3、第二MOS管S2、第二电容C2、第三MOS管S3、第五二极管VD5、第三电容C3、第六电容C6、第三电感L3、第四电容C4以及第一电阻R1;第二MOS管S2的漏极同时连接第三二极管VD3的阴极和第二电容C2的一端、源极同时连接第三二极管VD3的阳极和第二电容C2的另一端;第三MOS管S3的漏极同时连接第五二极管VD5的阳极和第三电容C3的一端,第三MOS管S3的源极同时连接第五二极管VD5的阴极、第三电容C3的另一端以及第六电容C6的一端;第二电感L2的一端作为DC-DC变换级的正输入端、另一端连接第二二极管VD2的阳极,第二二极管VD2的阴极同时连接第二MOS管S2的漏极、第三MOS管S3的漏极以及第三电感L3的一端;第三电感L3的另一端同时连接第四电容C4的一端和第一电阻R1的一端,且连接点作为DC-DC变换级的正输出端;第一电阻R1的另一端、第四电容C4的另一端、第六电容C6的另一端、以及第二MOS管S2的源极相连接,且连接点同时作为DC-DC变换级的负输入端和负输出端;The DC-DC conversion stage is used to convert the signal sent by the power factor correction stage to obtain a DC output; the DC-DC conversion stage includes a second inductor L2, a second diode VD2, a third diode VD3, second MOS transistor S2, second capacitor C2, third MOS transistor S3, fifth diode VD5, third capacitor C3, sixth capacitor C6, third inductor L3, fourth capacitor C4 and first resistor R1 ; The drain of the second MOS transistor S2 is simultaneously connected to the cathode of the third diode VD3 and one end of the second capacitor C2, and the source is simultaneously connected to the anode of the third diode VD3 and the other end of the second capacitor C2; the third The drain of the MOS transistor S3 is simultaneously connected to the anode of the fifth diode VD5 and one end of the third capacitor C3, and the source of the third MOS transistor S3 is simultaneously connected to the cathode of the fifth diode VD5 and the other end of the third capacitor C3 And one end of the sixth capacitor C6; one end of the second inductor L2 is used as the positive input end of the DC-DC conversion stage, the other end is connected to the anode of the second diode VD2, and the cathode of the second diode VD2 is connected to the second MOS at the same time The drain of the transistor S2, the drain of the third MOS transistor S3, and one end of the third inductance L3; the other end of the third inductance L3 is simultaneously connected to one end of the fourth capacitor C4 and one end of the first resistor R1, and the connection point is used as a DC - the positive output end of the DC conversion stage; the other end of the first resistor R1, the other end of the fourth capacitor C4, the other end of the sixth capacitor C6, and the source of the second MOS transistor S2 are connected, and the connection point is also used as The negative input terminal and negative output terminal of the DC-DC conversion stage;

第一采样电路用于采集功率因数校正级的输入电压Uin、第一电感L1的电流Iin、以及输出电压U1,并将采样得到的信号发送至DSP;The first sampling circuit is used to collect the input voltage U in of the power factor correction stage, the current I in of the first inductor L1, and the output voltage U 1 , and send the sampled signals to the DSP;

第二采样电路用于采集DC-DC变换级第三电感L3的电流IL以及DC-DC变换级的输出电压Un,并将采样得到的信号发送至DSP;The second sampling circuit is used to collect the current I L of the third inductor L3 of the DC-DC conversion stage and the output voltage U n of the DC-DC conversion stage, and send the sampled signal to the DSP;

DSP产生的第一驱动信号PWM1、第二驱动信号PWM2以及第三驱动信号PWM3分别发送至第一MOS管S1的栅极、第二MOS管S2的栅极以及第三MOS管S3的栅极。The first driving signal PWM1 , the second driving signal PWM2 and the third driving signal PWM3 generated by the DSP are respectively sent to the gate of the first MOS transistor S1 , the gate of the second MOS transistor S2 and the gate of the third MOS transistor S3 .

上述电源的数字控制方法包括一级数字控制方法和二级数字控制方法;The above-mentioned digital control method of the power supply includes a primary digital control method and a secondary digital control method;

所述一级数字控制方法包括以下步骤:The primary digital control method includes the following steps:

第一电压误差放大步骤,计算功率因数校正级输出电压U1与基准电压Ur1的差值,计算结果为Ue1The first voltage error amplification step is to calculate the difference between the output voltage U1 of the power factor correction stage and the reference voltage Ur1, and the calculation result is Ue1 ;

第一比例积分调节步骤,以Ue1作为输入信号进行积分调节,输出结果为Uo1In the first proportional-integral adjustment step, the integral adjustment is performed with U e1 as the input signal, and the output result is U o1 ;

乘法计算步骤,将Uo1、功率因数校正级输入电压Uin以及Uin有效值平方的倒数相乘,计算结果为Ir1The multiplication calculation step is to multiply U o1 , the input voltage U in of the power factor correction stage, and the reciprocal of the square of the effective value of U in , and the calculation result is I r1 ;

第一电流误差放大步骤,计算功率因数校正级输入电流Iin与Ir1的差值,计算结果为IoThe first current error amplification step is to calculate the difference between the input current I in and I r1 of the power factor correction stage, and the calculation result is I o ;

第二比例积分调节步骤,以Io作为输入信号进行积分调节,输出结果为PWM1;In the second proportional-integral adjustment step, the integral adjustment is performed with Io as an input signal, and the output result is PWM1;

所述二级数字控制方法包括:The secondary digital control method includes:

第二电压误差放大步骤,计算电源的DC-DC变换级输出电压Un与基准电压Ur2的差值,计算结果为Ue2The second voltage error amplification step is to calculate the difference between the output voltage U n of the DC-DC conversion stage of the power supply and the reference voltage U r2 , and the calculation result is U e2 ;

第三比例积分调节步骤,以Ue2作为输入信号进行积分调节,输出结果为Ir2In the third proportional-integral adjustment step, the integral adjustment is performed with U e2 as the input signal, and the output result is I r2 ;

第二电流误差放大步骤,计算DC-DC变换级输出电流IL与Ir2的差值,计算结果为Ie2The second current error amplification step is to calculate the difference between the output current I L and I r2 of the DC-DC conversion stage, and the calculation result is Ie 2 ;

第四比例积分调节步骤,以Ie2作为输入信号进行积分调节,输出结果为PWM2和PWM3。In the fourth proportional-integral adjustment step, the integral adjustment is performed with Ie 2 as the input signal, and the output results are PWM2 and PWM3.

进一步地,所述第一电压误差放大步骤、第一电流误差放大步骤、第二电压误差放大步骤以及第二电流误差放大步骤包括以下子步骤:Further, the first voltage error amplification step, the first current error amplification step, the second voltage error amplification step and the second current error amplification step include the following sub-steps:

初始化子步骤:设置初始值e(k-1)=0,k代表采样时序;Initialization sub-step: set the initial value e(k-1)=0, k represents the sampling timing;

采样子步骤:采样本次输入c(k);Sampling sub-step: sampling this input c(k);

偏差值计算子步骤:计算偏差值e(k),e(k)=r(k)-c(k),其中,r(k)为基准值;Deviation value calculation sub-step: calculate deviation value e(k), e(k)=r(k)-c(k), wherein, r(k) is the reference value;

控制量计算子步骤:计算控制量Δu(k),Δu(k)=K1e(k)-K2e(k-1),然后输出Δu(k)。Sub-step of control quantity calculation: calculate control quantity Δu(k), Δu(k)=K 1 e(k)-K 2 e(k-1), and then output Δu(k).

进一步地,所述方法还包括:Further, the method also includes:

保护步骤,将采样值与对应的预设值进行比较,当采样值大于对应的预设值时,DSP停止第一驱动信号PWM1、第二驱动信号PWM2以及第三驱动信号PWM3的输出;并且控制故障指示灯闪烁、蜂鸣器报警、通过蓝牙模块发送报警信号。The protection step is to compare the sampled value with the corresponding preset value, and when the sampled value is greater than the corresponding preset value, the DSP stops the output of the first drive signal PWM1, the second drive signal PWM2 and the third drive signal PWM3; and controls The fault indicator light flashes, the buzzer alarms, and the alarm signal is sent through the Bluetooth module.

进一步地,如果MOS管的导通时间大于关断时间,则电压和电流的采样位置位于MOS管一个开关周期中的上升沿;如果MOS管的导通时间小于关断时间,则电压和电流的采样位置位于MOS管一个开关周期中的下降沿。Further, if the turn-on time of the MOS tube is greater than the turn-off time, the sampling position of the voltage and current is located at the rising edge of a switching cycle of the MOS tube; if the turn-on time of the MOS tube is shorter than the turn-off time, the voltage and current The sampling position is located at the falling edge of a switching cycle of the MOS transistor.

上述电源的功率因数校正方法包括一级功率因数校正方法和二级功率因数校正方法;The above-mentioned power factor correction method of the power supply includes a primary power factor correction method and a secondary power factor correction method;

所述一级功率因数校正方法包括以下步骤:The primary power factor correction method includes the following steps:

第一电压误差放大步骤,计算U1与基准电压Ur1的差值,计算结果为Ue1The first voltage error amplification step is to calculate the difference between U 1 and the reference voltage U r1 , and the calculation result is U e1 ;

第一比例积分调节步骤,以Ue1作为输入信号进行积分调节,输出结果为Uo1In the first proportional-integral adjustment step, the integral adjustment is performed with U e1 as the input signal, and the output result is U o1 ;

乘法计算步骤,将Uo1、Uin以及Uin有效值平方的倒数相乘,计算结果为Ir1The multiplication calculation step is to multiply U o1 , U in and the reciprocal of the square of the effective value of U in , and the calculation result is I r1 ;

第一电流误差放大步骤,计算Iin与Ir1的差值,计算结果为IoThe first current error amplification step is to calculate the difference between I in and I r1 , and the calculation result is I o ;

第二比例积分调节步骤,以Io作为输入信号进行积分调节,输出结果为PWM1;In the second proportional-integral adjustment step, the integral adjustment is performed with Io as an input signal, and the output result is PWM1;

所述二级功率因数校正方法包括:The secondary power factor correction method includes:

第二电压误差放大步骤,计算Un与基准电压Ur2的差值,计算结果为Ue2The second voltage error amplification step is to calculate the difference between U n and the reference voltage U r2 , and the calculation result is U e2 ;

第三比例积分调节步骤,以Ue2作为输入信号进行积分调节,输出结果为Ir2In the third proportional-integral adjustment step, the integral adjustment is performed with U e2 as the input signal, and the output result is I r2 ;

第二电流误差放大步骤,计算IL与Ir2的差值,计算结果为Ie2;The second current error amplification step is to calculate the difference between IL and Ir2, and the calculation result is Ie2 ;

第四比例积分调节步骤,以Ie2作为输入信号进行积分调节,输出结果为PWM2和PWM3。In the fourth proportional-integral adjustment step, the integral adjustment is performed with Ie2 as the input signal, and the output results are PWM2 and PWM3.

进一步地,所述第一电压误差放大步骤、第一电流误差放大步骤、第二电压误差放大步骤以及第二电流误差放大步骤包括以下子步骤:Further, the first voltage error amplification step, the first current error amplification step, the second voltage error amplification step and the second current error amplification step include the following sub-steps:

初始化子步骤:设置初始值e(k-1)=0,k代表采样时序;Initialization sub-step: set the initial value e(k-1)=0, k represents the sampling timing;

采样子步骤:采样本次输入c(k);Sampling sub-step: sampling this input c(k);

偏差值计算子步骤:计算偏差值e(k),e(k)=r(k)-c(k),其中,r(k)为基准值;Deviation value calculation sub-step: calculate deviation value e(k), e(k)=r(k)-c(k), wherein, r(k) is the reference value;

控制量计算子步骤:计算控制量Δu(k),Δu(k)=K1e(k)-K2e(k-1),然后输出Δu(k)。Sub-step of control quantity calculation: calculate control quantity Δu(k), Δu(k)=K 1 e(k)-K 2 e(k-1), and then output Δu(k).

进一步地,所述电源还包括故障指示灯、蜂鸣器以及蓝牙模块;Further, the power supply also includes a fault indicator light, a buzzer and a Bluetooth module;

所述电源功率因数校正方法还包括:The power factor correction method of the power supply also includes:

保护步骤,将采样值与对应的预设值进行比较,当采样值大于对应的预设值时,DSP停止第一驱动信号PWM1、第二驱动信号PWM2以及第三驱动信号PWM3的输出;并且控制故障指示灯闪烁、蜂鸣器报警、通过蓝牙模块发送报警信号。The protection step is to compare the sampled value with the corresponding preset value, and when the sampled value is greater than the corresponding preset value, the DSP stops the output of the first drive signal PWM1, the second drive signal PWM2 and the third drive signal PWM3; and controls The fault indicator light flashes, the buzzer alarms, and the alarm signal is sent through the Bluetooth module.

进一步地,如果MOS管的导通时间大于关断时间,则电压和电流的采样位置位于MOS管一个开关周期中的上升沿;如果MOS管的导通时间小于关断时间,则电压和电流的采样位置位于MOS管一个开关周期中的下降沿。Further, if the turn-on time of the MOS tube is greater than the turn-off time, the sampling position of the voltage and current is located at the rising edge of a switching cycle of the MOS tube; if the turn-on time of the MOS tube is shorter than the turn-off time, the voltage and current The sampling position is located at the falling edge of a switching cycle of the MOS transistor.

根据本发明的实施例,本发明具有以下有益效果:According to the embodiments of the present invention, the present invention has the following beneficial effects:

1.本发明针对传统的功率因数校正级(PFC级)电路在较高的开关频率上功率开关MOSFET管上的功率损耗大、电压电流变化率高,使开关器件的电压应力和电流应力增加,使功率因数校正级效率降低,且降低开关MOSFET管的使用寿命的问题,提出了一种无源无损吸收电路,可以降低乃至消除开关MOSFET管上的损耗,降低开关器件的电压电流应力,提高功率因数校正级的效率和性能。1. The present invention aims at the large power loss and high rate of change of voltage and current on the power switch MOSFET tube of the traditional power factor correction level (PFC level) circuit at a higher switching frequency, which increases the voltage stress and current stress of the switching device, To reduce the efficiency of the power factor correction stage and reduce the service life of the switching MOSFET tube, a passive non-destructive absorption circuit is proposed, which can reduce or even eliminate the loss on the switching MOSFET tube, reduce the voltage and current stress of the switching device, and increase the power Factor correction stage efficiency and performance.

2.本发明针对传统的DC-DC变换级电路中开关MOSFET管内部存在寄生电容、开关MOSFET管开通关断时会产生很大的开关损耗、同时还会产生严重的电磁干扰(EMI)问题,提出了一种零电压开关电路,减弱了开关MOSFET管内部存在寄生电容的影响,降低了电磁干扰。2. The present invention aims at the parasitic capacitance inside the switch MOSFET tube in the traditional DC-DC conversion stage circuit, which will generate a large switching loss when the switch MOSFET tube is turned on and off, and also produce serious electromagnetic interference (EMI) problems, A zero-voltage switching circuit is proposed, which weakens the influence of parasitic capacitance inside the switching MOSFET tube and reduces electromagnetic interference.

3.本发明针对数字信号处理器(DSP)的传统比例积分(PI)算法需要把每次产生的偏差值累加起来、容易产生积分饱和现象的问题,提出了一种数字增量型PI算法,由于没有多次积分累加消除系统静差时,其积分饱和现象显著减小,使控制结果更加精确。3. the traditional proportional integral (PI) algorithm of digital signal processor (DSP) needs to add up the deviation value that produces at every turn, the problem that easily produces integral saturation phenomenon, proposes a kind of digital increment type PI algorithm, Since there is no multiple integral accumulation to eliminate the static error of the system, the integral saturation phenomenon is significantly reduced, making the control result more accurate.

4.本发明针对传统的功率因数数字控制方法电压输入范围较窄的问题,提出了一种前馈控制方法,使电压可以在宽范围内变化,而且不影响控制效果。4. Aiming at the problem that the voltage input range of the traditional power factor digital control method is narrow, the present invention proposes a feedforward control method, so that the voltage can be varied in a wide range without affecting the control effect.

5.本发明针对传统的电压电流采样方法当上升沿或者下降沿非常窄时,采样信号的准确度会收到开关MOSFET管噪声的影响,产生较大偏差的问题,提出了一种改进的电压电流采样方法,避免了开关MOSFET管噪声的影响,使采样结果更精确。5. The present invention aims at the problem that when the rising edge or falling edge of the traditional voltage and current sampling method is very narrow, the accuracy of the sampling signal will be affected by the noise of the switching MOSFET tube, resulting in a large deviation, and an improved voltage sampling method is proposed. The current sampling method avoids the influence of switching MOSFET tube noise and makes the sampling result more accurate.

6.本发明与传统的功率因数模拟控制方法比较,大量控制过程通过DSP来完成,可以实现模拟控制难以实现的复杂控制算法。6. Compared with the traditional power factor analog control method, a large number of control processes of the present invention are completed by DSP, and complex control algorithms that are difficult to implement by analog control can be realized.

7.本发明利用软件确定和调整控制参数,系统调试方便,用户可根据自己的系统需要方便地修改控制参数,即使控制对象发生了变化,也无需修改控制器硬件,只需改变软件参数即可,从而大大地加强了系统硬件兼容性。7. The present invention uses software to determine and adjust control parameters, which is convenient for system debugging. Users can easily modify control parameters according to their own system needs. Even if the control object changes, there is no need to modify the controller hardware, just change the software parameters. , thus greatly enhancing the system hardware compatibility.

8.本发明的数字信号处理过程不易受外界环境干扰和影响,避免了采用模拟控制信号传递过程中的失真,提高了系统的可靠性。8. The digital signal processing process of the present invention is not easily disturbed and affected by the external environment, avoids the distortion in the transmission process of the analog control signal, and improves the reliability of the system.

9.本发明采用数字控制可减少电路中元器件数量,降低材料和组装成本。9. The digital control adopted by the present invention can reduce the number of components in the circuit, and reduce the cost of materials and assembly.

10.本发明采用两级电路,对功率因数校正级与DC-DC变换级的电压电流参数都进行了采样,并送到DSP进行处理,产生的三路PWM信号分别控制第一级PFC功率因数开关管和第二级的DC-DC开关MOS管,使控制精度更加精确。与单级功率因数校正电路对比功率因数更高,具有低输入电流谐波失真更低,可以应用在大功率场合。10. The present invention adopts a two-stage circuit, samples the voltage and current parameters of the power factor correction stage and the DC-DC conversion stage, and sends them to the DSP for processing, and the generated three-way PWM signals respectively control the first-stage PFC power factor The switch tube and the second-stage DC-DC switch MOS tube make the control accuracy more precise. Compared with the single-stage power factor correction circuit, the power factor is higher, and the harmonic distortion of the low input current is lower, so it can be applied in high-power occasions.

11.本发明采用电压电流双环控制,电压环通过调节平均输入电流来控制直流总线电压,电流环控制交流输入电流使之跟踪输入电压。控制过程由DSP完成,数字控制系统克服了模拟控制系统电路功能单一、控制精度不高的缺点,抗干扰能力强,可靠性高,可实现复杂控制。11. The present invention adopts voltage and current double-loop control, the voltage loop controls the DC bus voltage by adjusting the average input current, and the current loop controls the AC input current to track the input voltage. The control process is completed by DSP. The digital control system overcomes the shortcomings of single circuit function and low control precision of the analog control system. It has strong anti-interference ability and high reliability, and can realize complex control.

附图说明Description of drawings

图1为实施方式中电源的功能框图;Fig. 1 is the functional block diagram of power supply in the embodiment;

图2为实施方式中电源的电路拓扑结构示意图;2 is a schematic diagram of a circuit topology of a power supply in an embodiment;

图3为实施方式中一级功率因数校正模块的功能框图;FIG. 3 is a functional block diagram of a primary power factor correction module in an embodiment;

图4为实施方式中二级功率因数校正模块的功能框图;FIG. 4 is a functional block diagram of a secondary power factor correction module in an embodiment;

图5为实施方式中第二MOS管S2和第三MOS管S3的工作时序示意图;FIG. 5 is a schematic diagram of the working sequence of the second MOS transistor S2 and the third MOS transistor S3 in the embodiment;

图6为实施方式中增量型PI算法的流程图;Fig. 6 is the flowchart of incremental PI algorithm in the embodiment;

图7为实施方式中保护过程的流程图。Fig. 7 is a flow chart of the protection process in the embodiment.

具体实施方式Detailed ways

具体实施方式一:图1所示为电源的基本功能框图,其中,传统的功率因数校正级包括第一电感L1、第一二极管VD1、第一MOS管S1和第一电容C1;所述第一电感L1的一端作为所述功率因数校正级的正输入端、另一端连接第一MOS管S1的漏极;第一二极管VD1的阴极连接第一电容C1的一端,第一电容C1的另一端连接第一MOS管S1的源极;第一二极管VD1与第一电容C1的公共端作为所述功率因数校正级的正输出端,第一电容C1与第一MOS管S1的公共端同时作为所述功率因数校正级的负输入端和负输出端;Embodiment 1: FIG. 1 shows a basic functional block diagram of a power supply, wherein a traditional power factor correction stage includes a first inductor L1, a first diode VD1, a first MOS transistor S1, and a first capacitor C1; One end of the first inductor L1 is used as the positive input end of the power factor correction stage, and the other end is connected to the drain of the first MOS transistor S1; the cathode of the first diode VD1 is connected to one end of the first capacitor C1, and the first capacitor C1 The other end of the first MOS transistor S1 is connected to the source; the common end of the first diode VD1 and the first capacitor C1 is used as the positive output end of the power factor correction stage, and the first capacitor C1 and the first MOS transistor S1 The common terminal simultaneously serves as a negative input terminal and a negative output terminal of the power factor correction stage;

本实施方式在上述功率因数校正级的基础上增加了无源损吸电路,如图2所示,所述无源损吸电路包括第四电感L4、第五电容C5、第二电阻R2以及第四二极管VD4;所述第二电阻R2、第四二极管VD4以及第四电感L4依次首尾串联形成闭合回路,第四二极管VD4与第二电阻R2相连接的一端为阳极,所述第五电容C5并联在第二电阻R2两端;In this embodiment, a passive loss sink circuit is added on the basis of the power factor correction stage described above. As shown in FIG. 2 , the passive loss sink circuit includes a fourth inductor L4, a fifth capacitor C5, a second resistor R2 and a Four diodes VD4; the second resistor R2, the fourth diode VD4, and the fourth inductor L4 are connected in series end to end to form a closed loop, and the end of the fourth diode VD4 connected to the second resistor R2 is an anode, so The fifth capacitor C5 is connected in parallel at both ends of the second resistor R2;

第二电阻R2和第四电感L4的公共端还同时连接第一MOS管S1的漏极;第四二极管VD4的阴极还同时连接第一二极管VD1的阳极。The common terminal of the second resistor R2 and the fourth inductor L4 is also connected to the drain of the first MOS transistor S1; the cathode of the fourth diode VD4 is also connected to the anode of the first diode VD1.

电源电路中,采样电路通过采样功率因数校正级的输入电压Uin、第一电感的电流Iin、以及输出电压U1,DSP通过内部预设的PI算法产生PWM1驱动信号,以此控制第一MOS管S1的开通和关断。由于第一MOS管S1的开关频率很高,第一MOS管S1上的功率损耗较大,并且由于电压变化率和电流变化率很高,使第一MOS管S1上电压应力和电流应力增大,降低了功率因数校正级的效率。In the power supply circuit, the sampling circuit samples the input voltage U in of the power factor correction stage, the current I in of the first inductor, and the output voltage U 1 , and the DSP generates a PWM1 drive signal through the internal preset PI algorithm to control the first The turn-on and turn-off of the MOS transistor S1. Due to the high switching frequency of the first MOS transistor S1, the power loss on the first MOS transistor S1 is large, and because the voltage change rate and current change rate are high, the voltage stress and current stress on the first MOS transistor S1 increase , reducing the efficiency of the power factor correction stage.

而本实施方式中的无源损吸电路在第一MOS管S1导通时,将二极管VD1的反向恢复能量储存到第四电感L4中,抑制了第一MOS管S1导通损耗的增加;在第一MOS管S1关断时,存储在L4中的能量以热量的形式消耗到电阻R2上。因此,本实施方式提供的功率因数校正级可以降低甚至消除开关MOSFET管上的损耗,降低开关器件的电压电流应力,提高功率因数校正级的转换效率。However, the passive loss-sink circuit in this embodiment stores the reverse recovery energy of the diode VD1 in the fourth inductance L4 when the first MOS transistor S1 is turned on, thereby suppressing the increase of the conduction loss of the first MOS transistor S1; When the first MOS transistor S1 is turned off, the energy stored in L4 is consumed to the resistor R2 in the form of heat. Therefore, the power factor correction stage provided by this embodiment can reduce or even eliminate the loss on the switching MOSFET tube, reduce the voltage and current stress of the switching device, and improve the conversion efficiency of the power factor correction stage.

具体实施方式二:如图1所示,本实施方式所提供的电源包括EMI单元、桥式整流电路、功率因数校正级、DC-DC变换级、第一采样电路、第二采样电路以及DSP;Specific embodiment two: as shown in Figure 1, the power supply provided by this embodiment includes an EMI unit, a bridge rectifier circuit, a power factor correction stage, a DC-DC conversion stage, a first sampling circuit, a second sampling circuit and a DSP;

交流电(AC)通过EMI滤波器滤除了大部分纹波,然后进入到桥式整流电路得到单向脉动电流和单向脉动电压,并将所述单向脉动电压信号和单向脉动电流信号发送至功率因数校正级;其中,桥式整流电路耐压1200V,额定电流为8A。Alternating current (AC) filters out most of the ripples through the EMI filter, and then enters the bridge rectifier circuit to obtain unidirectional pulsating current and unidirectional pulsating voltage, and sends the unidirectional pulsating voltage signal and unidirectional pulsating current signal to Power factor correction stage; Among them, the bridge rectifier circuit has a withstand voltage of 1200V and a rated current of 8A.

所述功率因数校正级采用实施方式一中的结构,用于对所述单向脉动电压信号单和向脉动电流信号进行处理,并将处理结果发送至DC-DC变换级到直流输出;The power factor correction stage adopts the structure in the first embodiment, and is used to process the unidirectional pulsating voltage signal and unidirectional pulsating current signal, and send the processing result to the DC-DC conversion stage for DC output;

所述DC-DC变换级用于对功率因数校正级发来的信号进行转换,得到直流输出。由于第二MOS管S2、第三MOS管S3内部存在寄生电容,MOSFET管工作在较高频率下,开关损耗严重,因此,本实方式对DC-DC变换级做出了改进,提供了一种零电压开关电路,具体结构如图2所示。所述DC-DC变换级包括第二电感L2、第二二极管VD2、第三二极管VD3、第二MOS管S2、第二电容C2、第三MOS管S3、第五二极管VD5、第三电容C3、第六电容C6、第三电感L3、第四电容C4以及第一电阻R1;第二MOS管S2的漏极同时连接第三二极管VD3的阴极和第二电容C2的一端、源极同时连接第三二极管VD3的阳极和第二电容C2的另一端;第三MOS管S3的漏极同时连接第五二极管VD5的阳极和第三电容C3的一端,第三MOS管S3的源极同时连接第五二极管VD5的阴极、第三电容C3的另一端以及第六电容C6的一端;第二电感L2的一端作为DC-DC变换级的正输入端、另一端连接第二二极管VD2的阳极,第二二极管VD2的阴极同时连接第二MOS管S2的漏极、第三MOS管S3的漏极以及第三电感L3的一端;第三电感L3的另一端同时连接第四电容C4的一端和第一电阻R1的一端,且连接点作为DC-DC变换级的正输出端;第一电阻R1的另一端、第四电容C4的另一端、第六电容C6的另一端、以及第二MOS管S2的源极相连接,且连接点同时作为DC-DC变换级的负输入端和负输出端;The DC-DC conversion stage is used to convert the signal sent by the power factor correction stage to obtain a DC output. Due to the parasitic capacitance inside the second MOS transistor S2 and the third MOS transistor S3, the MOSFET tubes work at a higher frequency, and the switching loss is serious. Therefore, this method improves the DC-DC conversion stage and provides a The specific structure of the zero-voltage switching circuit is shown in Figure 2. The DC-DC conversion stage includes a second inductor L2, a second diode VD2, a third diode VD3, a second MOS transistor S2, a second capacitor C2, a third MOS transistor S3, and a fifth diode VD5 , the third capacitor C3, the sixth capacitor C6, the third inductor L3, the fourth capacitor C4 and the first resistor R1; the drain of the second MOS transistor S2 is simultaneously connected to the cathode of the third diode VD3 and the second capacitor C2 One end and source are simultaneously connected to the anode of the third diode VD3 and the other end of the second capacitor C2; the drain of the third MOS transistor S3 is connected to the anode of the fifth diode VD5 and one end of the third capacitor C3 at the same time. The sources of the three MOS transistors S3 are simultaneously connected to the cathode of the fifth diode VD5, the other end of the third capacitor C3, and one end of the sixth capacitor C6; one end of the second inductor L2 is used as the positive input end of the DC-DC conversion stage, The other end is connected to the anode of the second diode VD2, and the cathode of the second diode VD2 is connected to the drain of the second MOS transistor S2, the drain of the third MOS transistor S3 and one end of the third inductor L3; the third inductor The other end of L3 is connected to one end of the fourth capacitor C4 and one end of the first resistor R1 at the same time, and the connection point is used as the positive output end of the DC-DC conversion stage; the other end of the first resistor R1, the other end of the fourth capacitor C4, The other end of the sixth capacitor C6 is connected to the source of the second MOS transistor S2, and the connection point is also used as a negative input terminal and a negative output terminal of the DC-DC conversion stage;

第二电感L2、第二二极管VD2、第三二极管VD3和第二MOS管S2构成一个BOOST变换器,第二MOS管S2、第三MOS管S3、第三二极管VD3、第五二极管VD5和第三电感L3构成一个BUCK变换器。第二电容C2和第三电容C3是谐振电容,第六电容C6相当于BOOST变换器中的负载电容,同时也可以看作是BUCK变换器的等效电源。The second inductor L2, the second diode VD2, the third diode VD3 and the second MOS transistor S2 constitute a BOOST converter, the second MOS transistor S2, the third MOS transistor S3, the third diode VD3, the second MOS transistor S2 The five diodes VD5 and the third inductor L3 constitute a BUCK converter. The second capacitor C2 and the third capacitor C3 are resonant capacitors, and the sixth capacitor C6 is equivalent to the load capacitor in the BOOST converter, and can also be regarded as an equivalent power supply of the BUCK converter.

第一采样电路用于采集功率因数校正级的输入电压Uin、第一电感L1的电流Iin、以及输出电压U1,并将采样得到的信号发送至DSP;The first sampling circuit is used to collect the input voltage U in of the power factor correction stage, the current I in of the first inductor L1, and the output voltage U 1 , and send the sampled signals to the DSP;

第二采样电路用于采集DC-DC变换级第三电感L3的电流IL以及DC-DC变换级的输出电压Un,并将采样得到的信号发送至DSP;DSP通过内部预设的的PI算法产生第二驱动信号PWM2和第三驱动信号PWM3,以分别控制第二MOS管S2和第三MOS管S3开通关断。The second sampling circuit is used to collect the current I L of the third inductor L3 of the DC-DC conversion stage and the output voltage U n of the DC-DC conversion stage, and send the sampled signal to the DSP; the DSP passes the internally preset PI The algorithm generates the second drive signal PWM2 and the third drive signal PWM3 to respectively control the second MOS transistor S2 and the third MOS transistor S3 to be turned on and off.

与传统的电源相比较,本实施方式的大量控制(例如功率因数控制)都由DSP来完成,可以实现模拟控制难以做到的复杂控制算法,减少了电路中元器件数量,降低了材料和组装成本;传统电源采用模拟控制,无法在线调试,需要修改硬件电路才能进行调试,而本实施方式利用软件确定和调整控制参数,系统调试方便,用户可根据自己的系统需要方便地修改控制参数,即使控制对象发生了变化,也无需修改控制器硬件,只需改变软件参数即可,从而大大地加强了系统硬件兼容性。此外,数字信号处理不易受外界环境干扰和影响,避免了采用模拟控制信号传递过程中的失真,提高了系统的可靠性。DSP芯片型号为TMS320F28335,是一种32位高性能的可编程信号处理器,具有极强的数据处理能力。具备32位浮点处理单元,有多达18路的PWM信号输出,本实施方式中使用了其中3路PWM信号,其中,第二驱动信号PWM2与第三驱动信号PWM3相同,三个驱动信号用于控制三个MOS管的开通关断,以便得到理想的直流输出。该DSP具有12位16通道模数转换单元以及80纳秒的转换率,本实施方式使用了5路模数转换单元用于处理采样电压和电流。此外,该DSP还具有多达88个输入输出引脚,可以扩展多种设备,本实施方式扩展了外部显示屏,可以实时显示电源输出的电流电压数值,使用者可获得电源的工作状态;还扩展了指示灯和蜂鸣器,当电源发生故障时,指示灯闪烁,蜂鸣器会发出声响以提示使用者故障发生;此外还扩展了蓝牙模块,当故障发生时通过蓝牙模块通知远处值班人员。Compared with the traditional power supply, a large number of controls (such as power factor control) of this embodiment are completed by DSP, which can realize complex control algorithms that are difficult to achieve by analog control, reduce the number of components in the circuit, and reduce the cost of materials and assembly. Cost; the traditional power supply adopts analog control, which cannot be debugged online, and the hardware circuit needs to be modified to debug. However, this embodiment uses software to determine and adjust the control parameters, which is convenient for system debugging. Users can easily modify the control parameters according to their own system needs. The control object has changed, and there is no need to modify the controller hardware, only the software parameters need to be changed, thus greatly enhancing the system hardware compatibility. In addition, the digital signal processing is not easily disturbed and affected by the external environment, which avoids the distortion in the transmission process of the analog control signal and improves the reliability of the system. The DSP chip model is TMS320F28335, which is a 32-bit high-performance programmable signal processor with extremely strong data processing capabilities. Equipped with a 32-bit floating-point processing unit, there are up to 18 PWM signal outputs. In this embodiment, 3 PWM signals are used, wherein the second drive signal PWM2 is the same as the third drive signal PWM3, and the three drive signals are used It is used to control the on-off of the three MOS tubes in order to obtain the ideal DC output. The DSP has a 12-bit, 16-channel analog-to-digital conversion unit and a conversion rate of 80 nanoseconds. This embodiment uses 5-channel analog-to-digital conversion units for processing sampled voltage and current. In addition, the DSP also has up to 88 input and output pins, which can expand a variety of devices. This embodiment expands the external display screen, which can display the current and voltage values output by the power supply in real time, and the user can obtain the working status of the power supply; The indicator light and buzzer are expanded. When the power fails, the indicator light will flash and the buzzer will make a sound to remind the user of the failure; in addition, the Bluetooth module is also expanded to notify the remote on duty through the Bluetooth module. personnel.

本实施方式提供的电源,不仅能够消除功率因数校正级中开关MOSFET管上的损耗,降低开关器件的电压电流应力,提高功率因数校正级的效率和性能,还能够减弱DC-DC变换级中开关MOSFET管内部存在的寄生电容的影响,降低了电磁干扰。The power supply provided by this embodiment can not only eliminate the loss on the switching MOSFET tube in the power factor correction stage, reduce the voltage and current stress of the switching device, improve the efficiency and performance of the power factor correction stage, but also reduce the power consumption of the switch in the DC-DC conversion stage. The influence of the parasitic capacitance existing inside the MOSFET tube reduces electromagnetic interference.

作为本发明的一个优选实施方式,本实施方式对DSP内部嵌入的软件程序作出改进。As a preferred embodiment of the present invention, this embodiment improves the software program embedded in the DSP.

所述DSP内嵌入一级功率因数校正模块和二级功率因数校正模块;A primary power factor correction module and a secondary power factor correction module are embedded in the DSP;

如图3所示,所述一级功率因数校正模块包括:As shown in Figure 3, the primary power factor correction module includes:

第一电压误差放大器,计算U1与基准电压Ur1的差值,计算结果为Ue1The first voltage error amplifier calculates the difference between U1 and the reference voltage Ur1, and the calculation result is Ue1 ;

第一比例积分调节器,以Ue1作为输入信号进行积分调节,输出结果为Uo1The first proportional-integral regulator uses U e1 as an input signal to perform integral regulation, and the output result is U o1 ;

乘法器,将Uo1、Uin以及Uin有效值平方的倒数相乘,计算结果为Ir1A multiplier, which multiplies U o1 , U in and the reciprocal of the square of the effective value of U in , and the calculation result is I r1 ;

第一电流误差放大器,计算Iin与Ir1的差值,计算结果为IoThe first current error amplifier calculates the difference between Iin and Ir1 , and the calculated result is Io ;

第二比例积分调节器,以Io作为输入信号进行积分调节,输出结果为PWM1。The second proportional-integral regulator takes Io as the input signal for integral regulation, and the output result is PWM1.

对于功率因数校正级,DSP内的控制逻辑为:将采样到的功率因数校正级的输出电压U1与基准电压信号Ur1送入电压误差放大器进行比较;比较结果送入比例积分调节器进行处理;处理结果Uo1作为乘法器的一路输入、用于稳定负载的输出电压,采样到的电压Uin也送到乘法器作为乘法器的二路输入,同时还作为电流信号的基准波形,用于维持输入电流的正弦性;电压Uin有效值的平方的倒数作为乘法器的第三路输入,实现前馈控制,使输入电压可以在较宽的范围内变化而不影响控制效果;乘法器的输出Ir1作为电流反馈控制的基准信号,与电流Iin共同送入电流误差放大器进行比较,比较结果Io送到比例积分调节器,比例积分调节器的输出作为PWM1的驱动信号,用于驱动第一MOS管S1开通和关断。For the power factor correction stage, the control logic in the DSP is: the sampled output voltage U1 of the power factor correction stage and the reference voltage signal U r1 are sent to the voltage error amplifier for comparison; the comparison result is sent to the proportional integral regulator for processing ; The processing result U o1 is used as one input of the multiplier to stabilize the output voltage of the load, and the sampled voltage Uin is also sent to the multiplier as the second input of the multiplier, and is also used as the reference waveform of the current signal to maintain The sinusoidal nature of the input current; the reciprocal of the square of the effective value of the voltage U in is used as the third input of the multiplier to realize feed-forward control, so that the input voltage can change in a wide range without affecting the control effect; the output of the multiplier As the reference signal of current feedback control, I r1 is sent to the current error amplifier together with the current I in for comparison, and the comparison result I o is sent to the proportional-integral regulator, and the output of the proportional-integral regulator is used as the driving signal of PWM1 to drive the first A MOS transistor S1 is turned on and off.

如图4所示,所述二级功率因数校正模块包括:As shown in Figure 4, the secondary power factor correction module includes:

第二电压误差放大器,计算Un与基准电压Ur2的差值,计算结果为Ue2The second voltage error amplifier calculates the difference between U n and the reference voltage U r2 , and the calculation result is U e2 ;

第三比例积分调节器,以Ue2作为输入信号进行积分调节,输出结果为Ir2The third proportional-integral regulator uses U e2 as an input signal for integral regulation, and the output result is I r2 ;

第二电流误差放大器,计算IL与Ir2的差值,计算结果为Ie2;The second current error amplifier calculates the difference between I L and I r2 , and the calculation result is Ie2;

第四比例积分调节器,以Ie2作为输入信号进行积分调节,输出结果为PWM2和PWM3。对于DC-DC变换级,DSP内的控制逻辑为:采样到的输出电压Un与基准电压Ur2经过电压误差放大器比较后输出Ue2,Ue2送入比例积分调节器后输出Ir2,Ir2与采样到的输出电流IL送入电流误差放大器进行比较,比较结果经过比例积分调节器调节产生PWM2和PWM3驱动信号,分别驱动第二MOS管S2和第三MOS管S3。如图5所示,第二MOS管S2导通时,第三MOS管S3关闭。The fourth proportional-integral regulator uses Ie2 as an input signal to perform integral regulation, and the output results are PWM2 and PWM3. For the DC-DC conversion stage, the control logic in the DSP is as follows: the sampled output voltage U n is compared with the reference voltage U r2 to output U e2 after being compared with the voltage error amplifier, and U e2 is sent to the proportional-integral regulator to output I r2 , and I r2 and the sampled output current IL are sent to the current error amplifier for comparison, and the comparison result is regulated by a proportional-integral regulator to generate PWM2 and PWM3 driving signals, which drive the second MOS transistor S2 and the third MOS transistor S3 respectively. As shown in FIG. 5 , when the second MOS transistor S2 is turned on, the third MOS transistor S3 is turned off.

本实施方式采用两级电路,对功率因数校正级与DC-DC变换级的电压电流参数都进行了采样,并送到DSP进行处理,产生的两路PWM信号分别控制第一级的功率因数校正极开关管和第二级的DC-DC变换级开关管,使控制精度更高。与单级功率因数校正电路对比,本实施方式的功率因数更高,低输入电流谐波失真更低,可以应用在大功率场合。This embodiment adopts a two-stage circuit, samples the voltage and current parameters of the power factor correction stage and the DC-DC conversion stage, and sends them to the DSP for processing, and the two generated PWM signals respectively control the power factor correction of the first stage Pole switch tube and second stage DC-DC conversion stage switch tube make the control precision higher. Compared with the single-stage power factor correction circuit, the power factor of this embodiment is higher, and the harmonic distortion of low input current is lower, so it can be applied in high-power occasions.

本实施方式中,电压环和电流环均采用增量式数字PI算法,双闭环线性控制系统的给定值r(t)与实际输出值c(t)相减得到的偏差值e(t)即为系统的控制偏差,即:In this embodiment, both the voltage loop and the current loop adopt the incremental digital PI algorithm, and the deviation value e(t) obtained by subtracting the given value r(t) of the double closed-loop linear control system from the actual output value c(t) is the control deviation of the system, namely:

e(t)=r(t)-c(t)e(t)=r(t)-c(t)

为了实现被控对象的可控性,需由控制量来完成,具体为:通过上式中控制偏差e(t)经过比例环节P和积分环节I分别调节控制后,得到输出。In order to achieve the controllability of the controlled object, it needs to be completed by the control quantity, specifically: the output is obtained after the control deviation e(t) in the above formula is adjusted and controlled by the proportional link P and the integral link I respectively.

上式中控制偏差e(t)为PI调节器的输入,u(t)为PI调节器的输出,KP为比例系数,Ti为积分时间常数。In the above formula, the control deviation e(t) is the input of the PI regulator, u(t) is the output of the PI regulator, K P is the proportional coefficient, and T i is the integral time constant.

比例环节是利用无滞后、无失真地比例关系来复现输入的偏差信号,通过加大比例系数KP可加快系统响应,若存在静差将有助于消除静差。积分环节用来消除系统的静差,积分环节的强弱由积分常数Ti来表示,其含意为对输入进行积累后,达到比例作用所需要的时间。The proportional link is to use the proportional relationship without lag and distortion to reproduce the input deviation signal. By increasing the proportional coefficient K P , the system response can be accelerated. If there is a static error, it will help to eliminate the static error. The integral link is used to eliminate the static error of the system. The strength of the integral link is represented by the integral constant T i , which means the time required to achieve the proportional action after the input is accumulated.

采样的电压电流信号进入DSP内部,首先要经过模拟量和数字量转换,数字PI控制一般需PI控制公式进行离散化处理,数字PI调节器形式如下:When the sampled voltage and current signals enter the DSP, they must first be converted from analog to digital. Digital PI control generally requires PI control formulas for discrete processing. The digital PI regulator has the following form:

其离散化形式为位置型PI算法的形式Its discretization form is the form of positional PI algorithm

对位置型PI算法简化可得增量型PI算法:The incremental PI algorithm can be obtained by simplifying the positional PI algorithm:

u(k)=u(k-1)+K1e(k)-K2e(k-1)u(k)=u(k-1)+K 1 e(k)-K 2 e(k-1)

作为本发明的一个优选实施方式,增量型PI算法的流程如图6所示。首先设置初始值e(k-1)=0,采样本次输入e(k),计算偏差值e(k)=r(k)-e(k),计算控制量Δu(k)=K1e(k)-K2e(k-1),然后输出Δu(k),为下一时刻做准备。当进行下一次采样时循环此过程。以上控制算法均在DSP内完成。这里的Δu(k)是指图3和图4中的电压误差放大器以及电流误差放大器。As a preferred implementation of the present invention, the flow of the incremental PI algorithm is shown in FIG. 6 . First set the initial value e(k-1)=0, sample the input e(k) this time, calculate the deviation value e(k)=r(k)-e(k), and calculate the control amount Δu(k)=K 1 e(k)-K 2 e(k-1), and then output Δu(k) to prepare for the next moment. This process is looped when the next sample is taken. The above control algorithms are completed in DSP. Here Δu(k) refers to the voltage error amplifier and current error amplifier in Figure 3 and Figure 4.

传统的电源控制环路采用单环控制,而本实施方式采用电压电流双环控制,电压环通过调节平均输入电流来控制直流总线电压,电流环控制交流输入电流使之跟踪输入电压。控制过程由DSP完成,数字控制系统克服了模拟控制系统电路功能单一、控制精度不高的缺点,抗干扰能力强,可靠性高,可实现复杂控制。The traditional power supply control loop adopts single-loop control, but this embodiment adopts voltage and current double-loop control. The voltage loop controls the DC bus voltage by adjusting the average input current, and the current loop controls the AC input current to track the input voltage. The control process is completed by DSP. The digital control system overcomes the shortcomings of single circuit function and low control precision of the analog control system. It has strong anti-interference ability and high reliability, and can realize complex control.

作为本发明的一个优选实施方式,本实施方式对于采样的输入电压、输入电流、输出电压、以及输出电流,分别预先设定一个值,即预设值。如图7所示,将采样的输入电压、输入电流、输出电压、以及输出电流分别与对应的预设值进行对比,当所有采样值都低于或等于对应的预设值时,电源正常工作;当任意一个采样值大于对应的预设值时,DSP停止PWM控制信号输出,故障灯闪烁,蜂鸣器报警,并通过蓝牙模块通知远处值班人员。As a preferred embodiment of the present invention, in this embodiment, a value is preset for the sampled input voltage, input current, output voltage, and output current, that is, a preset value. As shown in Figure 7, compare the sampled input voltage, input current, output voltage, and output current with the corresponding preset values, and when all sampled values are lower than or equal to the corresponding preset values, the power supply is working normally ;When any sampling value is greater than the corresponding preset value, DSP stops PWM control signal output, the fault light flashes, the buzzer alarms, and the remote on-duty personnel is notified through the Bluetooth module.

作为本发明的一个优选实施方式,本实施方式对采样位置进行了改进。为了保证在MOS管的每个开关周期中确定一个固定的采样点且远离开关点,传统的采样方法是在MOS管的一个开关周期中的上升沿或者下降沿的中点进行采样,但是当上升沿或者下降沿非常窄的时候,采样信号的准确度会收到开关MOSFET管噪声的影响。而本实施方式采样边沿的选择取决于开关管的导通时间,如果导通时间大于关断时间,则采样边沿选择在上升沿,如果导通时间小于关断时间,则采样边沿选择在下降沿,这样就避免了开关开关MOSFET管噪声的影响。As a preferred embodiment of the present invention, this embodiment improves the sampling position. In order to ensure a fixed sampling point and away from the switching point in each switching cycle of the MOS tube, the traditional sampling method is to sample at the midpoint of the rising edge or falling edge in a switching cycle of the MOS tube, but when the rising When the edge or falling edge is very narrow, the accuracy of the sampling signal will be affected by the noise of the switching MOSFET. In this embodiment, the selection of the sampling edge depends on the on-time of the switch tube. If the on-time is greater than the off-time, the sampling edge is selected on the rising edge; if the on-time is less than the off-time, the sampling edge is selected on the falling edge. , In this way, the influence of switching MOSFET tube noise is avoided.

具体实施方式三:本实施方式提供了实施方二所述电源的数字控制方法,所述方法包括一级数字控制方法和二级数字控制方法;Embodiment 3: This embodiment provides a digital control method for the power supply described in Embodiment 2, the method includes a first-level digital control method and a second-level digital control method;

所述一级数字控制方法包括以下步骤:The primary digital control method includes the following steps:

第一电压误差放大步骤,计算U1与基准电压Ur1的差值,计算结果为Ue1The first voltage error amplification step is to calculate the difference between U 1 and the reference voltage U r1 , and the calculation result is U e1 ;

第一比例积分调节步骤,以Ue1作为输入信号进行积分调节,输出结果为Uo1In the first proportional-integral adjustment step, the integral adjustment is performed with U e1 as the input signal, and the output result is U o1 ;

乘法计算步骤,将Uo1、Uin以及Uin有效值平方的倒数相乘,计算结果为Ir1The multiplication calculation step is to multiply U o1 , U in and the reciprocal of the square of the effective value of U in , and the calculation result is I r1 ;

第一电流误差放大步骤,计算Iin与Ir1的差值,计算结果为IoThe first current error amplification step is to calculate the difference between I in and I r1 , and the calculation result is I o ;

第二比例积分调节步骤,以Io作为输入信号进行积分调节,输出结果为PWM1;In the second proportional-integral adjustment step, the integral adjustment is performed with Io as an input signal, and the output result is PWM1;

所述二级数字控制方法包括:The secondary digital control method includes:

第二电压误差放大步骤,计算Un与基准电压Ur2的差值,计算结果为Ue2The second voltage error amplification step is to calculate the difference between U n and the reference voltage U r2 , and the calculation result is U e2 ;

第三比例积分调节步骤,以Ue2作为输入信号进行积分调节,输出结果为Ir2In the third proportional-integral adjustment step, the integral adjustment is performed with U e2 as the input signal, and the output result is I r2 ;

第二电流误差放大步骤,计算IL与Ir2的差值,计算结果为Ie2In the second current error amplification step, the difference between I L and I r2 is calculated, and the calculation result is Ie 2 ;

第四比例积分调节步骤,以Ie2作为输入信号进行积分调节,输出结果为PWM2和PWM3。In the fourth proportional-integral adjustment step, the integral adjustment is performed with Ie 2 as the input signal, and the output results are PWM2 and PWM3.

本实施方式所提供的方法由嵌入在DSP内的软件实现。The method provided by this embodiment is implemented by software embedded in the DSP.

本实施方式中,电压环和电流环均采用增量式数字PI算法,双闭环线性控制系统的给定值r(t)与实际输出值c(t)相减得到的偏差值e(t)即为系统的控制偏差,即:In this embodiment, both the voltage loop and the current loop adopt the incremental digital PI algorithm, and the deviation value e(t) obtained by subtracting the given value r(t) of the double closed-loop linear control system from the actual output value c(t) is the control deviation of the system, namely:

e(t)=T(t)-c(t)e(t)=T(t)-c(t)

为了实现被控对象的可控性,需由控制量来完成,具体为:通过上式中控制偏差e(t)经过比例环节P和积分环节I分别调节控制后,得到输出。In order to achieve the controllability of the controlled object, it needs to be completed by the control quantity, specifically: the output is obtained after the control deviation e(t) in the above formula is adjusted and controlled by the proportional link P and the integral link I respectively.

上式中控制偏差e(t)为PI调节器的输入,u(t)为PI调节器的输出,KP为比例系数,Ti为积分时间常数。In the above formula, the control deviation e(t) is the input of the PI regulator, u(t) is the output of the PI regulator, K P is the proportional coefficient, and T i is the integral time constant.

比例环节是利用无滞后、无失真地比例关系来复现输入的偏差信号,通过加大比例系数KP可加快系统响应,若存在静差将有助于消除静差。积分环节用来消除系统的静差,积分环节的强弱由积分常数Ti来表示,其含意为对输入进行积累后,达到比例作用所需要的时间。The proportional link is to use the proportional relationship without lag and distortion to reproduce the input deviation signal. By increasing the proportional coefficient K P , the system response can be accelerated. If there is a static error, it will help to eliminate the static error. The integral link is used to eliminate the static error of the system. The strength of the integral link is represented by the integral constant Ti , which means the time required to achieve the proportional effect after the input is accumulated.

采样的电压电流信号进入DSP内部,首先要经过模拟量和数字量转换,数字PI控制一般需PI控制公式进行离散化处理,数字PI调节器形式如下:When the sampled voltage and current signals enter the DSP, they must first be converted from analog to digital. Digital PI control generally requires PI control formulas for discrete processing. The digital PI regulator has the following form:

其离散化形式为位置型PI算法的形式Its discretization form is the form of positional PI algorithm

对位置型PI算法简化可得增量型PI算法:The incremental PI algorithm can be obtained by simplifying the positional PI algorithm:

u(k)=u(k-1)+K1e(k)-K2e(k-1)u(k)=u(k-1)+K 1 e(k)-K 2 e(k-1)

作为本发明的优选实施方式,增量型PI算法的流程如图6所示。首先设置初始值e(k-1)=0,采样本次输入e(k),计算偏差值e(k)=r(k)-e(k),计算控制量Δu(k)=K1e(k)-K2e(k-1),然后输出Δu(k),为下一时刻做准备。当进行下一次采样时循环此过程。以上控制算法均在DSP内完成。这里的Δu(k)是指图3和图4中的电压误差放大器以及电流误差放大器。As a preferred embodiment of the present invention, the flow of the incremental PI algorithm is shown in FIG. 6 . First set the initial value e(k-1)=0, sample the input e(k) this time, calculate the deviation value e(k)=r(k)-e(k), and calculate the control amount Δu(k)=K 1 e(k)-K 2 e(k-1), and then output Δu(k) to prepare for the next moment. This process is looped when the next sample is taken. The above control algorithms are completed in DSP. Here Δu(k) refers to the voltage error amplifier and current error amplifier in Figure 3 and Figure 4.

作为本发明的一个优选实施方式,所述数字控制方法还包括:As a preferred embodiment of the present invention, the digital control method also includes:

保护步骤,将采样值与对应的预设值进行比较,当采样值大于对应的预设值时,DSP停止第一驱动信号PWM1、第二驱动信号PWM2以及第三驱动信号PWM3的输出;并且控制故障指示灯闪烁、蜂鸣器报警、通过蓝牙模块发送报警信号。The protection step is to compare the sampled value with the corresponding preset value, and when the sampled value is greater than the corresponding preset value, the DSP stops the output of the first drive signal PWM1, the second drive signal PWM2 and the third drive signal PWM3; and controls The fault indicator light flashes, the buzzer alarms, and the alarm signal is sent through the Bluetooth module.

作为本发明的一个优选实施方式,本实施方式对采样位置进行了改进。为了保证在MOS管的每个开关周期中确定一个固定的采样点且远离开关点,传统的采样方法是在MOS管的一个开关周期中的上升沿或者下降沿的中点进行采样,但是当上升沿或者下降沿非常窄的时候,采样信号的准确度会收到开关MOSFET管噪声的影响。而本实施方式采样边沿的选择取决于开关管的导通时间,如果导通时间大于关断时间,则采样边沿选择在上升沿,如果导通时间小于关断时间,则采样边沿选择在下降沿,这样就避免了开关开关MOSFET管噪声的影响。As a preferred embodiment of the present invention, this embodiment improves the sampling position. In order to ensure a fixed sampling point and away from the switching point in each switching cycle of the MOS tube, the traditional sampling method is to sample at the midpoint of the rising edge or falling edge in a switching cycle of the MOS tube, but when the rising When the edge or falling edge is very narrow, the accuracy of the sampling signal will be affected by the noise of the switching MOSFET. In this embodiment, the selection of the sampling edge depends on the on-time of the switch tube. If the on-time is greater than the off-time, the sampling edge is selected on the rising edge; if the on-time is less than the off-time, the sampling edge is selected on the falling edge. , In this way, the influence of switching MOSFET tube noise is avoided.

具体实施方式四:本实施方式提供了实施方二所述电源的功率因数校正方法,所述方法包括一级功率因数校正方法和二级功率因数校正方法;Embodiment 4: This embodiment provides the power factor correction method of the power supply described in Embodiment 2, the method includes a primary power factor correction method and a secondary power factor correction method;

所述一级功率因数校正方法包括以下步骤:The primary power factor correction method includes the following steps:

第一电压误差放大步骤,计算U1与基准电压Ur1的差值,计算结果为Ue1The first voltage error amplification step is to calculate the difference between U 1 and the reference voltage U r1 , and the calculation result is U e1 ;

第一比例积分调节步骤,以Ue1作为输入信号进行积分调节,输出结果为Uo1In the first proportional-integral adjustment step, the integral adjustment is performed with U e1 as the input signal, and the output result is U o1 ;

乘法计算步骤,将Uo1、Uin以及Uin有效值平方的倒数相乘,计算结果为Ir1The multiplication calculation step is to multiply U o1 , U in and the reciprocal of the square of the effective value of U in , and the calculation result is I r1 ;

第一电流误差放大步骤,计算Iin与Ir1的差值,计算结果为IoThe first current error amplification step is to calculate the difference between I in and I r1 , and the calculation result is I o ;

第二比例积分调节步骤,以Io作为输入信号进行积分调节,输出结果为PWM1;In the second proportional-integral adjustment step, the integral adjustment is performed with Io as an input signal, and the output result is PWM1;

所述二级功率因数校正方法包括:The secondary power factor correction method includes:

第二电压误差放大步骤,计算Un与基准电压Ur2的差值,计算结果为Ue2The second voltage error amplification step is to calculate the difference between U n and the reference voltage U r2 , and the calculation result is U e2 ;

第三比例积分调节步骤,以Ue2作为输入信号进行积分调节,输出结果为Ir2In the third proportional-integral adjustment step, the integral adjustment is performed with U e2 as the input signal, and the output result is I r2 ;

第二电流误差放大步骤,计算IL与Ir2的差值,计算结果为Ie2In the second current error amplification step, the difference between I L and I r2 is calculated, and the calculation result is Ie 2 ;

第四比例积分调节步骤,以Ie2作为输入信号进行积分调节,输出结果为PWM2和PWM3。In the fourth proportional-integral adjustment step, the integral adjustment is performed with Ie 2 as the input signal, and the output results are PWM2 and PWM3.

本实施方式所提供的方法与实施方式二中的一级功率因数校正模块法和二级功率因数校正模块相对应,由嵌入在DSP内的软件实现。The method provided in this embodiment corresponds to the first-level power factor correction module method and the second-level power factor correction module in the second embodiment, and is implemented by software embedded in the DSP.

本实施方式中,电压环和电流环均采用增量式数字PI算法,双闭环线性控制系统的给定值r(t)与实际输出值c(t)相减得到的偏差值e(t)即为系统的控制偏差,即:In this embodiment, both the voltage loop and the current loop adopt the incremental digital PI algorithm, and the deviation value e(t) obtained by subtracting the given value r(t) of the double closed-loop linear control system from the actual output value c(t) is the control deviation of the system, namely:

e(t)=r(t)-c(t)e(t)=r(t)-c(t)

为了实现被控对象的可控性,需由控制量来完成,具体为:通过上式中控制偏差e(t)经过比例环节P和积分环节I分别调节控制后,得到输出。In order to achieve the controllability of the controlled object, it needs to be completed by the control quantity, specifically: the output is obtained after the control deviation e(t) in the above formula is adjusted and controlled by the proportional link P and the integral link I respectively.

上式中控制偏差e(t)为PI调节器的输入,u(t)为PI调节器的输出,KP为比例系数,Ti为积分时间常数。In the above formula, the control deviation e(t) is the input of the PI regulator, u(t) is the output of the PI regulator, K P is the proportional coefficient, and T i is the integral time constant.

比例环节是利用无滞后、无失真地比例关系来复现输入的偏差信号,通过加大比例系数KP可加快系统响应,若存在静差将有助于消除静差。积分环节用来消除系统的静差,积分环节的强弱由积分常数Ti来表示,其含意为对输入进行积累后,达到比例作用所需要的时间。The proportional link is to use the proportional relationship without lag and distortion to reproduce the input deviation signal. By increasing the proportional coefficient K P , the system response can be accelerated. If there is a static error, it will help to eliminate the static error. The integral link is used to eliminate the static error of the system. The strength of the integral link is represented by the integral constant T i , which means the time required to achieve the proportional action after the input is accumulated.

采样的电压电流信号进入DSP内部,首先要经过模拟量和数字量转换,数字PI控制一般需PI控制公式进行离散化处理,数字PI调节器形式如下:When the sampled voltage and current signals enter the DSP, they must first be converted from analog to digital. Digital PI control generally requires PI control formulas for discrete processing. The digital PI regulator has the following form:

其离散化形式为位置型PI算法的形式Its discretization form is the form of positional PI algorithm

对位置型PI算法简化可得增量型Pi算法:The incremental Pi algorithm can be obtained by simplifying the positional PI algorithm:

u(k)=u(k-1)+K1e(k)-K2e(k-1)u(k)=u(k-1)+K 1 e(k)-K 2 e(k-1)

作为本发明的优选实施方式,增量型PI算法的流程如图6所示。首先设置初始值e(k-1)=0,采样本次输入e(k),计算偏差值e(k)=r(k)-e(k),计算控制量Δu(k)=K1e(k)-K2e(k-1),然后输出Δu(k),为下一时刻做准备。当进行下一次采样时循环此过程。以上控制算法均在DSP内完成。这里的Δu(k)是指图3和图4中的电压误差放大器以及电流误差放大器。As a preferred embodiment of the present invention, the flow of the incremental PI algorithm is shown in FIG. 6 . First set the initial value e(k-1)=0, sample the input e(k) this time, calculate the deviation value e(k)=r(k)-e(k), and calculate the control amount Δu(k)=K 1 e(k)-K 2 e(k-1), and then output Δu(k) to prepare for the next moment. This process is looped when the next sample is taken. The above control algorithms are completed in DSP. Here Δu(k) refers to the voltage error amplifier and the current error amplifier in Fig. 3 and Fig. 4 .

作为本发明的一个优选实施方式,所述功率因数校正方法还包括:As a preferred embodiment of the present invention, the power factor correction method further includes:

保护步骤,将采样值与对应的预设值进行比较,当采样值大于对应的预设值时,DSP停止第一驱动信号PWM1、第二驱动信号PWM2以及第三驱动信号PWM3的输出;并且控制故障指示灯闪烁、蜂鸣器报警、通过蓝牙模块发送报警信号。The protection step is to compare the sampled value with the corresponding preset value, and when the sampled value is greater than the corresponding preset value, the DSP stops the output of the first drive signal PWM1, the second drive signal PWM2 and the third drive signal PWM3; and controls The fault indicator light flashes, the buzzer alarms, and the alarm signal is sent through the Bluetooth module.

作为本发明的一个优选实施方式,本实施方式对采样位置进行了改进。为了保证在MOS管的每个开关周期中确定一个固定的采样点且远离开关点,传统的采样方法是在MOS管的一个开关周期中的上升沿或者下降沿的中点进行采样,但是当上升沿或者下降沿非常窄的时候,采样信号的准确度会收到开关MOSFET管噪声的影响。而本实施方式采样边沿的选择取决于开关管的导通时间,如果导通时间大于关断时间,则采样边沿选择在上升沿,如果导通时间小于关断时间,则采样边沿选择在下降沿,这样就避免了开关开关MOSFET管噪声的影响。As a preferred embodiment of the present invention, this embodiment improves the sampling position. In order to ensure a fixed sampling point and away from the switching point in each switching cycle of the MOS tube, the traditional sampling method is to sample at the midpoint of the rising edge or falling edge in a switching cycle of the MOS tube, but when the rising When the edge or falling edge is very narrow, the accuracy of the sampling signal will be affected by the noise of the switching MOSFET. In this embodiment, the selection of the sampling edge depends on the on-time of the switch tube. If the on-time is greater than the off-time, the sampling edge is selected on the rising edge; if the on-time is less than the off-time, the sampling edge is selected on the falling edge. , In this way, the influence of switching MOSFET tube noise is avoided.

Claims (9)

1. a kind of power factor correction stage, including the first inductance L1, first diode VD1, the first metal-oxide-semiconductor S1 and first capacitor C1;One end of the first inductance L1 connects the first metal-oxide-semiconductor S1 as positive input terminal, the other end of the power factor correction stage Drain electrode;One end of the cathode connection first capacitor C1 of first diode VD1, the other end of first capacitor C1 connect the first MOS The source electrode of pipe S1;Positive output end of the common end of first diode VD1 and first capacitor C1 as the power factor correction stage, The common end of first capacitor C1 and the first metal-oxide-semiconductor S1 are used as the negative input end and negative output of the power factor correction stage simultaneously End;
It is characterized in that, the power factor correction stage further includes that passive damage inhales circuit, it includes the 4th that the passive damage, which inhales circuit, Inductance L4, the 5th capacitor C5, second resistance R2 and the 4th diode VD4;The second resistance R2, the 4th diode VD4 with And the 4th inductance L4 successively from beginning to end series connection form closed circuit, the 4th diode VD4 is with the one end being connected second resistance R2 Anode, the 5th capacitor C5 are connected in parallel on the both ends second resistance R2;
The common end of second resistance R2 and the 4th inductance L4 also connect the drain electrode of the first metal-oxide-semiconductor S1 simultaneously;4th diode VD4's Cathode also connects the anode of first diode VD1 simultaneously.
2. the digital control method of the power supply based on power factor correction stage described in claim 1, which is characterized in that the method Including level-one digital control method and two-stage digital control method;
The level-one digital control method the following steps are included:
First voltage error amplification procedure calculates power factor correction stage output voltage U1With reference voltage Ur1Difference, calculate It as a result is Ue1
First proportional integration regulating step, with Ue1Integral adjustment is carried out as input signal, output result is Uo1
Multiplication calculates step, by Uo1, power factor correction stage input voltage UinAnd UinThe reciprocal multiplication of virtual value square, meter Calculation result is Ir1
First current error amplification procedure calculates power factor correction stage input current IinWith Ir1Difference, calculated result Io
Second proportional integration regulating step, with IoIntegral adjustment is carried out as input signal, output result is PWM1;
The two-stage digital control method includes:
Second voltage error amplification procedure calculates the DC-DC conversion stage output voltage U of power supplynWith reference voltage Ur2Difference, meter Calculation result is Ue2
Third proportional integration regulating step, with Ue2Integral adjustment is carried out as input signal, output result is Ir2
Second current error amplification procedure calculates DC-DC conversion stage and exports electric current ILWith Ir2Difference, calculated result Ie2
4th proportional integration regulating step, with Ie2Integral adjustment is carried out as input signal, output result is PWM2 and PWM3.
3. according to the method described in claim 2, it is characterized in that, the first voltage error amplification procedure, the first electric current miss Poor amplification procedure, second voltage error amplification procedure and the second current error amplification procedure include following sub-step:
Initial subslep: setting initial value e (k-1)=0, k represents sampling time sequence;
Sampling sub-step: this input c (k) is sampled;
Deviation calculates sub-step: calculating deviation e (k), e (k)=r (k)-c (k), wherein be worth on the basis of r (k);
Control amount calculates sub-step: calculating control amount Δ u (k), Δ u (k)=K1e(k)-K2E (k-1) then exports Δ u (k).
4. according to the method in claim 2 or 3, which is characterized in that the method also includes:
Step is protected, sampled value is compared with corresponding preset value, when sampled value is greater than corresponding preset value, DSP stops The only output of the first driving signal PWM1, the second driving signal PWM2 and third driving signal PWM3;And it controls failure to refer to Show lamp flashing, buzzer warning, alarm signal is sent by bluetooth module.
5. according to the method in claim 2 or 3, which is characterized in that if the turn-on time of metal-oxide-semiconductor is greater than the turn-off time, Then the sampling location of voltage and current is located at the rising edge in one switch periods of metal-oxide-semiconductor;If the turn-on time of metal-oxide-semiconductor is less than Turn-off time, then the sampling location of voltage and current is located at the failing edge in one switch periods of metal-oxide-semiconductor.
6. the power factor correcting method based on power factor correction stage described in claim 1, which is characterized in that the method packet Include level-one power factor correcting method and secondary power factor correcting method;
The level-one power factor correcting method the following steps are included:
First voltage error amplification procedure calculates power factor correction stage output voltage U1With reference voltage Ur1Difference, calculate It as a result is Ue1
First proportional integration regulating step, with Ue1Integral adjustment is carried out as input signal, output result is Uo1
Multiplication calculates step, by Uo1, power factor correction stage input voltage UinAnd UinThe reciprocal multiplication of virtual value square, meter Calculation result is Ir1
First current error amplification procedure calculates power factor correction stage input current IinWith Ir1Difference, calculated result Io
Second proportional integration regulating step, with IoIntegral adjustment is carried out as input signal, output result is PWM1;
The secondary power factor correcting method includes:
Second voltage error amplification procedure calculates the DC-DC conversion stage output voltage U of power supplynWith reference voltage Ur2Difference, meter Calculation result is Ue2
Third proportional integration regulating step, with Ue2Integral adjustment is carried out as input signal, output result is Ir2
Second current error amplification procedure calculates DC-DC conversion stage and exports electric current ILWith Ir2Difference, calculated result Ie2
4th proportional integration regulating step, with Ie2Integral adjustment is carried out as input signal, output result is PWM2 and PWM3.
7. power factor correcting method according to claim 6, which is characterized in that the first voltage error amplification step Suddenly, the first current error amplification procedure, second voltage error amplification procedure and the second current error amplification procedure include following Sub-step:
Initial subslep: setting initial value e (k-1)=0, k represents sampling time sequence;
Sampling sub-step: this input c (k) is sampled;
Deviation calculates sub-step: calculating deviation e (k), e (k)=r (k)-c (k), wherein be worth on the basis of r (k);
Control amount calculates sub-step: calculating control amount Δ u (k), Δ u (k)=K1e(k)-K2E (k-1) then exports Δ u (k).
8. power factor correcting method according to claim 6 or 7, which is characterized in that the method also includes:
Step is protected, sampled value is compared with corresponding preset value, when sampled value is greater than corresponding preset value, DSP stops The only output of the first driving signal PWM1, the second driving signal PWM2 and third driving signal PWM3;And it controls failure to refer to Show lamp flashing, buzzer warning, alarm signal is sent by bluetooth module.
9. power factor correcting method according to claim 6 or 7, which is characterized in that if the turn-on time of metal-oxide-semiconductor is big In the turn-off time, then the sampling location of voltage and current is located at the rising edge in one switch periods of metal-oxide-semiconductor;If metal-oxide-semiconductor Turn-on time is less than the turn-off time, then the sampling location of voltage and current is located at the failing edge in one switch periods of metal-oxide-semiconductor.
CN201910662185.5A 2019-07-22 2019-07-22 Digital control method of power supply, power factor correction stage, and power factor correction method Pending CN110277905A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910662185.5A CN110277905A (en) 2019-07-22 2019-07-22 Digital control method of power supply, power factor correction stage, and power factor correction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910662185.5A CN110277905A (en) 2019-07-22 2019-07-22 Digital control method of power supply, power factor correction stage, and power factor correction method

Publications (1)

Publication Number Publication Date
CN110277905A true CN110277905A (en) 2019-09-24

Family

ID=67965018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910662185.5A Pending CN110277905A (en) 2019-07-22 2019-07-22 Digital control method of power supply, power factor correction stage, and power factor correction method

Country Status (1)

Country Link
CN (1) CN110277905A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110933815A (en) * 2019-12-03 2020-03-27 哈尔滨理工大学 LED driving power supply and digital control method thereof
CN118585031A (en) * 2024-08-02 2024-09-03 华杰恒信(山东)电子科技有限公司 Intelligent Regulation System of Bipolar Output Constant Voltage and Constant Current Power Supply
DE102023133230A1 (en) * 2023-11-28 2025-05-28 Infineon Technologies Austria Ag Method for operating a power converter and power converter with active snubber circuit

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09117130A (en) * 1995-08-31 1997-05-02 Samsung Electro Mech Co Ltd Boost type converter circuit
EP1028518A2 (en) * 1999-02-11 2000-08-16 Delta Electronics, Inc. Soft-switching cell for reducing switching losses in pulse-width-modulated converters
KR20110018555A (en) * 2009-08-18 2011-02-24 정진국 Pseudo-resonant pulse-width converter with no reverse return current due to snubber network of passive components
CN102751857A (en) * 2012-07-20 2012-10-24 东莞市铭普实业有限公司 Passive lossless buffering circuit of power factor correction circuit
CN106787668A (en) * 2015-11-20 2017-05-31 南京理工大学 A kind of power factor correcting converter of loading range wide
CN109245516A (en) * 2018-09-20 2019-01-18 北京精密机电控制设备研究所 A kind of active PFC numerical control device
KR20190059392A (en) * 2017-11-23 2019-05-31 엘지디스플레이 주식회사 Boost converter and display device using the same

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09117130A (en) * 1995-08-31 1997-05-02 Samsung Electro Mech Co Ltd Boost type converter circuit
EP1028518A2 (en) * 1999-02-11 2000-08-16 Delta Electronics, Inc. Soft-switching cell for reducing switching losses in pulse-width-modulated converters
KR20110018555A (en) * 2009-08-18 2011-02-24 정진국 Pseudo-resonant pulse-width converter with no reverse return current due to snubber network of passive components
CN102751857A (en) * 2012-07-20 2012-10-24 东莞市铭普实业有限公司 Passive lossless buffering circuit of power factor correction circuit
CN106787668A (en) * 2015-11-20 2017-05-31 南京理工大学 A kind of power factor correcting converter of loading range wide
KR20190059392A (en) * 2017-11-23 2019-05-31 엘지디스플레이 주식회사 Boost converter and display device using the same
CN109245516A (en) * 2018-09-20 2019-01-18 北京精密机电控制设备研究所 A kind of active PFC numerical control device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
葛高峰: ""基于DSP的数字控制功率因数校正变换器的研究"", 《中国优秀硕士学位论文全文数据库 工程科技II辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110933815A (en) * 2019-12-03 2020-03-27 哈尔滨理工大学 LED driving power supply and digital control method thereof
DE102023133230A1 (en) * 2023-11-28 2025-05-28 Infineon Technologies Austria Ag Method for operating a power converter and power converter with active snubber circuit
CN118585031A (en) * 2024-08-02 2024-09-03 华杰恒信(山东)电子科技有限公司 Intelligent Regulation System of Bipolar Output Constant Voltage and Constant Current Power Supply

Similar Documents

Publication Publication Date Title
CN110365205B (en) High-efficiency totem-pole bridgeless PFC rectifier control method
Wei et al. A novel bridgeless buck-boost PFC converter
US10819224B2 (en) Power factor correction circuit, control method and controller
CN101986542B (en) PFC (power factor correction) control method with high input power factor and control circuit thereof
CN101247072A (en) voltage regulation circuit
CN205195552U (en) Power factor correction converter of wide load scope
CN105071649B (en) Fully digital power factor correction circuit with frequency switching modulation
CN102355130A (en) Double-tube Buck-Boost type PFC (Power Factor Correction) converter based on one-cycle control
CN110277905A (en) Digital control method of power supply, power factor correction stage, and power factor correction method
CN101546963A (en) Digital monocyclic control method of PFC converter
CN111865064B (en) CRM (customer relationship management) buck-boost converter controlled by segmented fixed conduction time
CN102427293A (en) Low output ripple wave parallel power-factor correction (PFC) transform control method and device
CN103280988A (en) Driving power source and driving method of multifunctional piezoelectric pump based on FPGA
CN112311222A (en) An improved bridgeless DBPFC converter and control method based on composite predictive current control
CN103763812B (en) A kind of solar energy and semiconductor illuminator based on DSP and control method thereof
CN115566907B (en) Improved VMC LLC resonant PFC converter control system and design method thereof
CN115622422B (en) Soft switch control method and device suitable for SEPIC type PFC converter
CN203399001U (en) Multifunctional Piezoelectric Pump Driving Power Based on FPGA
CN114944748A (en) Constant frequency control circuit and method for constant on-time control mode converter
CN103427672A (en) Synchronous, continuous and adjustable power supply system
WO2015192741A1 (en) High-power-factor valley-fill circuit for driving switch type load, and switching power supply
CN203301375U (en) Hierarchical thought-based fuzzy PI double loop-controlled direct-current boost circuit
Jia et al. Research and Implementation of SWISS rectifier based on fuzzy PI control
CN115474311B (en) LED driving power supply and control method thereof
CN114744865B (en) A dual-inductor bridgeless Boost PFC circuit and control method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190924

WD01 Invention patent application deemed withdrawn after publication