A kind of hardware based power factor correcting device and method
Technical field
The present invention relates to a kind of hardware based power factor correcting device and method, belong to electricity field, it is more specific and
Speech, and in particular to a kind of PFC module is an independent peripheral, rather than the hardware based power of an independent processor
Factor correction apparatus and method.
Background technology
Power factor (PF)(Power Factor), it is the relation for representing effective power and apparent energy, that is, effective power
Divided by the ratio of apparent energy.Substantially power factor (PF) can weigh the degree that electric power is used effectively, when power factor (PF) value is got over
Greatly, its electric power utilization rate is represented higher.And the Active PFC on power supply unit(Power Factor Correction,
PFC) circuit operation principles are time and the waveforms for controlling and adjusting AC current input so as to AC-input voltage ripple
Shape is as consistent as possible, allows power factor (PF) to level off to 1.This is for the electronic equipment that power demand arrives greatly some level
It is critically important, otherwise the electric power of power equipment system consumption may beyond its design when the specification to be reached.
The algorithm of Active PFC function is complex, and requirement of real-time is higher.Its implementation can be summarized as
Three kinds, one kind is pure hardware mode, and a kind of is the pure software mode based on microcontroller or DSP, and a kind of is software and hardware combining
Mode.
Pure hardware mode needs an independent chip so as to increased cost, and motility is not enough.
When pure software mode is realized, due to the complexity of PFC algorithms, the coding of the algorithm, debugging and test not only can be right
Developer has higher technical requirements, and often takes the more development time.Pure software mode also means higher
Software maintenance cost, and the reliability of its code tends to rely on coding and the personal experience of tester and professional,
It is not easily controlled.
IR companies employ the third mode, and motor vector control algorithm hardware is turned to motor control by its motor control MCU
Engine processed(MCE), wherein containing PFC functions.But architecturally, MCE independent equivalent to one processor, has oneself independent
The program space, the program of MCE realizes the motility of algorithm by a motion control sequence generator.Due to MCE and CPU
Using different core, MCE is needed using special compiler and object code the Link tool, and this causes development process more numerous
It is multiple.
The content of the invention
The present invention is directed to the problems referred to above, there is provided a kind of hardware based power factor correcting device and method, by complexity
PFC hardware algorithms turn to an independent peripheral of microcontroller, coordinate special debugging acid, developer only to configure ginseng
Number, without the need for programming PFC functions are achieved that.The present invention substantially reduces the technical threshold of PFC applications, shortens the development time, and
It is easier to be guaranteed in reliability, does not almost have software maintenance cost.
The present invention the adopted technical scheme that solves the above problems is:
A kind of hardware based power factor correcting device, including a PFC module, the PFC module is one only
Vertical peripheral hardware, rather than an independent processor, its control parameter is opened completely to CPU, it is not necessary to extra compilation tool
With object code the Link tool, it is only necessary to just can be operated on it by CPU.
Further, the PFC module includes:
Sampled data request module, for the AC-input voltage after DC bus-bar voltage, rectification, and after rectification
AC input current sampling request, response, and obtain adc data;
Register module, for responding parameter configurations of the CPU to PFC peripheral hardwares, and the process data feedback during PF is adjusted
To CPU.Configuration parameter includes:The parameter of each PI rings, DC bus-bar voltage reference value (VdcRef), whole active or part are active
PFC implementation method selection signals;
Voltage PI modules, for adjusting with reference to the PI between the DC bus-bar voltage of (VdcRef) and actual (Vdc);
Reference current module is calculated, for the calculating of the reference current needed for electric current PI modules;
Electric current PI modules, for reference to the PI between the AC input current after the rectification of (IacRef) and actual (Iac)
Adjust;
PWM waveform generation module, the PWM waveform for the dutycycle that meets the requirements is exported.
Further, described sampled data request module input Vdc_ack, Vac_ack, Iac_ack, Vdc_
Data, Vac_data, Iac_data, outfan Vdc_req, Vac_req, Iac_req connect outside the PFC module, output
End Vdc_data_conv, voltpi_start connection voltage PI modules, outfan Vac_data_conv connections are calculated with reference to electricity
Flow module, input Parameter_config connection register modules, outfan Iac_data_conv connection electric current PI moulds
Block;
Register module outfan Parameter_config connection voltage PI modules, calculate reference current module,
Electric current PI modules and PWM waveform generation module, outfan VdcRef connection voltage PI modules;
Voltage PI module outfans iref_start, Vpio connection calculates reference current module;
Calculating reference current module outfan currpi_start, IacRef connection electric current PI modules, outfan
Part_apfc_mask connects PWM waveform generation module;
Described electric current PI module outfans ipi_done, Ipio connect PWM waveform generation module;
Outside the PWM waveform generation module output end p wm_out connection PFC module.
Further, a kind of power factor calibrating method, comprises the following steps:
(1)User directly carries out parameter configuration by on-line debugging instrument |input paramete information, CPU to PFC peripheral hardwares, starts
PFC module works;
(2)ADC collection d-c bus voltage values, the AC-input voltage value after rectification, and the exchange after rectification is defeated
Enter current value, be transferred directly to PFC peripheral hardwares;
(3)PFC peripheral hardwares receive electric current, voltage data, and the regulation of system PF is carried out automatically;
(4)PFC peripheral hardwares PF is adjusted simultaneously in process data, by bus, pass CPU back, then by on-line debugging work
Tool feeds back to user, is easy to user to be tracked data, and accordingly carries out parameter adjustment;
(5)If user needs adjusting parameter, parameter configuration can be carried out to PFC peripheral hardwares by on-line debugging instrument again;
(6)Repeat the second to the 5th step.It is finally reached index request of the user to system power factor.
Further, the PFC peripheral hardwares receive electric current, voltage data, and the regulation of system PF is carried out automatically includes following step
Suddenly:
When PFC implementation methods selection signal is whole active:
(1)AC-input voltage value after ADC collection actual DC bus voltage values, rectification, and the friendship after rectification
Stream input current value, and by these values, it is transferred directly to PFC peripheral hardwares;
(2)PFC peripheral hardwares carry out the PI fortune of voltage according to reference to (VdcRef) and the d-c bus voltage value of actual (Vdc)
Calculate, export Vpio values;
(3)PFC peripheral hardwares are according to the exchange after AC-input voltage (Vac) value, and rectification after Vpio, actual rectification
Square equal (VacAvg) value of input voltage value, draws reference current (IacRef) value;
(4)PFC peripheral hardwares are carried out according to the AC input current value after the rectification with reference to (IacRef) with actual (Iac)
The PI computings of electric current, export Ipio values;
(5)PFC peripheral hardwares, through PWM generation module, export the PWM waveform of the dutycycle that meets the requirements, control electricity by Ipio values
The break-make of the IGBT in road;
When PFC implementation methods selection signal is that part is active:
(1)AC-input voltage value after ADC collection actual DC bus voltage values, rectification, and the friendship after rectification
Stream input current value, and by these values, it is transferred directly to PFC peripheral hardwares;
(2)PFC peripheral hardwares carry out the PI fortune of voltage according to reference to (VdcRef) and the d-c bus voltage value of actual (Vdc)
Calculate, export Vpio values;
(3)PFC peripheral hardwares are according to the exchange after AC-input voltage (Vac) value, and rectification after Vpio, actual rectification
Square equal (VacAvg) value of input voltage value, draws reference current (IacRef) value;
(4)PFC peripheral hardwares are carried out according to the AC input current value after the rectification with reference to (IacRef) with actual (Iac)
The PI computings of electric current, export Ipio values;
(5)PFC peripheral hardwares by Ipio values, through PWM generation module;
(6)PFC peripheral hardwares judge AC-input voltage (Vac) value after rectification whether within adjustable extent, if
It is then to export the PWM waveform of the dutycycle that meets the requirements, the break-make of the IGBT in control circuit.If it is not, then producing part_
Apfc_mask signals come mask PWM waveform output.
It is an advantage of the invention that:From unlike the software and hardware combining scheme of IR companies, PFC module is outside an independence
If a rather than independent processor, its control parameter is opened completely to CPU, therefore without the need for single program storage
Motility is achieved that with motion control sequence generator, and without the need for other compilation tool and object code the Link tool,
Exploitation is more convenient.
In addition to objects, features and advantages described above, the present invention also has other objects, features and advantages.
Below with reference to figure, the present invention is further detailed explanation.
Description of the drawings
The accompanying drawing for constituting the part of the application is used for providing a further understanding of the present invention, the schematic reality of the present invention
Apply example and its illustrate, for explaining the present invention, not constituting inappropriate limitation of the present invention.
In the accompanying drawings:
Fig. 1 is the PFC module inside structure block diagram of the present invention;
Fig. 2 is 1MCU block architecture diagrams;
Fig. 3 realizes block diagram for whole active PFC Hardwares;
Fig. 4 realizes block diagram for the active PFC Hardwares in part.
Specific embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments describing the present invention in detail.
Referring to figs. 1 to Fig. 4, a kind of hardware based power factor correcting device as shown in Figures 1 to 4 and method, bag
Include a PFC module, the PFC module is an independent peripheral, rather than an independent processor, its control parameter
Open completely to CPU, it is not necessary to extra compilation tool and object code the Link tool, it is only necessary to just can be to it by CPU
Operated.
Wherein, as shown in figure 1, the PFC module includes:
Sampled data request module, for the AC-input voltage after DC bus-bar voltage, rectification, and after rectification
AC input current sampling request, response, and obtain adc data;
Register module, for responding parameter configurations of the CPU to PFC peripheral hardwares, and the process data feedback during PF is adjusted
To CPU.Configuration parameter includes:The parameter of each PI rings, DC bus-bar voltage reference value (VdcRef), whole active or part are active
PFC implementation method selection signals;
Voltage PI modules, for adjusting with reference to the PI between the DC bus-bar voltage of (VdcRef) and actual (Vdc);
Reference current module is calculated, for the calculating of the reference current needed for electric current PI modules;
Electric current PI modules, for adjusting with reference to the PI between the AC input current of (IacRef) and actual (Iac);
PWM waveform generation module, the PWM waveform for the dutycycle that meets the requirements is exported.
Wherein, described sampled data request module input Vdc_ack, Vac_ack, Iac_ack, Vdc_data, Vac_
Data, Iac_data, outfan Vdc_req, Vac_req, Iac_req connect outside the PFC module, outfan Vdc_
Data_conv, voltpi_start connect voltage PI modules, and outfan Vac_data_conv connections calculate reference current module,
Input Parameter_config connects register module, outfan Iac_data_conv connection electric current PI modules;
Register module outfan Parameter_config connection voltage PI modules, calculate reference current module,
Electric current PI modules and PWM waveform generation module, outfan VdcRef connection voltage PI modules;
Voltage PI module outfans iref_start, Vpio connection calculates reference current module;
Calculating reference current module outfan currpi_start, IacRef connection electric current PI modules, outfan
Part_apfc_mask connects PWM waveform generation module;
Described electric current PI module outfans ipi_done, Ipio connect PWM waveform generation module;
Outside the PWM waveform generation module output end p wm_out connection PFC module.
As shown in Fig. 2 the independent peripheral hardware that only one of which kernel in MCU, wherein PFC module are only used as CPU is present, and
PFC module does not need extra compilation tool and object code the Link tool, it is only necessary to just it can be grasped by CPU
Make.
Wherein, power factor calibrating method, comprises the following steps:
(1)User is directly carried out by data/address bus by on-line debugging instrument |input paramete information, CPU to PFC peripheral hardwares
Parameter configuration, starts PFC module work, and parameter configuration includes to the voltage PI modules in PFC peripheral hardwares, calculates reference current mould
Block, electric current PI modules and PWM generation module carry out parameter configuration;
(2)ADC gathers d-c bus voltage value(Vdc_data), the AC-input voltage value after rectification(Vac_
Data), the AC input current value and after rectification(Iac_data), PFC peripheral hardwares are transferred directly to by data wire;
(3)PFC peripheral hardwares receive above-mentioned electric current, voltage data, and system PF is carried out automatically(Power factor (PF))Adjust;
(4)PFC peripheral hardwares are simultaneously by PF(Power factor (PF))Process data in regulation, by data/address bus, passes CPU back, then
User is fed back to by on-line debugging instrument, is easy to user to be tracked data, and accordingly carry out parameter adjustment;
(5)If user needs adjusting parameter, parameter configuration is carried out to PFC peripheral hardwares by on-line debugging instrument again;
Above-mentioned second is repeated to the 5th step.It is finally reached index request of the user to system power factor.
Wherein, as shown in Figures 1 to 4, the PFC peripheral hardwares receive electric current, voltage data, system PF is carried out automatically and adjusts bag
Include following steps:
When PFC implementation methods selection signal is whole active:
ADC gathers actual DC bus voltage value(Vdc_data), the AC-input voltage value after rectification(Vac_
Data), the AC input current value and after rectification(Iac_data), and by these values, PFC is transferred directly to by data wire
Module;
The DC bus-bar voltage reference value (VdcRef) that voltage PI modules are exported according to register module in PFC module with adopt
The actual DC bus voltage value that sample data demand module is collected(Vdc_data), the PI computings of voltage are carried out, Vpio is exported
It is worth and gives calculating reference current module;
Reference current module is calculated in PFC module according to the AC-input voltage value (Vac_ after Vpio, actual rectification
Data), the AC-input voltage value and after rectification(Vac_data) square(VacAvg the friendship for) being worth after rectification
Stream input current reference value(IacRef)And export and give electric current PI modules;
Electric current PI modules are according to AC input current reference (IacRef) value and the electric current after actual rectification in PFC module
Input value (Iac_data), carries out the PI computings of electric current, and output Ipio values are to PWM generation module;
PWM generation module is according to Ipio values in PFC module, output meet the requirements dutycycle PWM waveform to outside PFC module
Portion, the break-make of the IGBT in control circuit;
When PFC implementation methods selection signal is that part is active:
ADC gathers actual DC bus voltage value(Vdc_data), the AC-input voltage value after rectification(Vac_
Data), the AC input current value and after rectification(Iac_data), and by these values, PFC is transferred directly to by data wire
Module;
Voltage PI modules are according to reference to (VdcRef) and actual d-c bus voltage value in PFC module(Vdc_data),
The PI computings of voltage are carried out, output Vpio values give calculating reference current module;
Reference current module is calculated in PFC module according to the AC-input voltage value (Vac_ after Vpio, actual rectification
Data), the AC-input voltage value (Vac_data) and after rectification square(VacAvg) it is worth reference current value
(IacRef);
Friendship in PFC module after rectification of the electric current PI modules according to AC input current with reference to (IacRef) value with reality
Stream input current value (Iac_data), carries out the PI computings of electric current, and output Ipio values are to PWM generation module;
Whether PWM generation module judges AC-input voltage value (Vac_data) after rectification adjustable in PFC module
Within adjusting range, if it is, exporting the PWM waveform of the dutycycle that meets the requirements to outside PFC module according to Ipio values, control is electric
The break-make of the IGBT in road.If it is not, then calculate reference current module to produce part_apfc_mask signals to mask
PWM waveform is exported.
In sum, power factor correcting device of the invention and method, using PFC module as CPU a peripheral hardware, and
It is not as an independent processor, therefore without the need for other compiler and object code the Link tool, exploitation using PFC module
It is more convenient.
The preferred embodiments of the present invention are the foregoing is only, the present invention includes but is not limited to this example, and the present invention can
To there is various modifications and variations.All any modification, equivalent substitution and improvements within the spirit and principles in the present invention, made etc.,
Should be included within the scope of the present invention.