CN102809684B - Power detection method and circuit for primary side circuit of power supply unit - Google Patents

Power detection method and circuit for primary side circuit of power supply unit Download PDF

Info

Publication number
CN102809684B
CN102809684B CN201110148990.XA CN201110148990A CN102809684B CN 102809684 B CN102809684 B CN 102809684B CN 201110148990 A CN201110148990 A CN 201110148990A CN 102809684 B CN102809684 B CN 102809684B
Authority
CN
China
Prior art keywords
current
voltage
signal
power
primary side
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.)
Expired - Fee Related
Application number
CN201110148990.XA
Other languages
Chinese (zh)
Other versions
CN102809684A (en
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.)
Acbel Polytech Inc
Original Assignee
Acbel Polytech Inc
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
Priority to TW100112173A priority Critical patent/TWI460437B/en
Application filed by Acbel Polytech Inc filed Critical Acbel Polytech Inc
Priority to CN201110148990.XA priority patent/CN102809684B/en
Publication of CN102809684A publication Critical patent/CN102809684A/en
Application granted granted Critical
Publication of CN102809684B publication Critical patent/CN102809684B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Measurement Of Current Or Voltage (AREA)

Abstract

The invention discloses power detection method and circuit for a primary side circuit of a power supply unit. The power detection method uses a voltage sampling program, a current sampling program and a power calculation program. The voltage sampling program captures alternating-current voltage signal of mains supply and raises direct current level of the alternating-current voltage signal of the mains supply; negative half-cycle voltage signal serves as positive voltage level; the alternating-current voltage signal is digitally converted into direct-current sinusoidal signal; and voltage sampling is performed at certain time intervals to obtain a voltage root mean square value. The current sampling program captures alternating current signal of the mains supply and then analogically convert the alternating current signal into direct-current sinusoidal signal; and current sampling is performed at certain time intervals to obtain a current mean root square value. The power calculation program reads voltage and current sampled values for each capture, multiplies the values, and divides by a cycle time to obtain a power value.

Description

The power detecting method of power supply unit primary side circuit and power-sensing circuit thereof
Technical field
The present invention relates to a kind of power detecting method of power supply unit, espespecially a kind of primary side circuit power detection method of low-cost and high-precision.
Background technology
General computer or high-order computer at present, power supply unit as used in server, all has the ability with motherboard two-way communication.For guaranteeing the switching on and shutting down order of computer energy normal switch machine or server, power supply unit is stablized except detecting out-put supply after start, proactive notification motherboard is powered outside good signal at present, the current primary side magnitude of voltage of more necessary return, current value and performance number, allow electricity consumption computer grasp power supply unit electricity condition.Therefore, how power supply unit meets the data of computer requirement return electricity condition, namely enjoys each source appliance to supply factory and pays close attention to.
Because power supply unit prime cost is in order to maintain on electrical stability and high conversion efficiency circuit configuration, increases monitoring electricity condition and return electricity consumption status function circuit and certainly will cause cost; Therefore, the early stage practice is the input voltage and the input current that utilize precision electrical meter to measure record power supply unit, and sets up the table of comparisons.When after the power supply unit checking circuit rough estimate magnitude of voltage that is made up of OP operational amplifier of inside and current value, table look-up with the table of comparisons, to computer return checking result.Measure record owing to tabling look-up by precision electrical meter, therefore the result precision that detects being arranged at the checking circuit in power supply unit is not required.But, this practice still non-optimal, because the table of comparisons can not verify all parameters, therefore still there is certain error with actual value, and as shown in Figure 9, in order to not increase too high cost, above-mentioned look-up routine is directly performed it with the inner original primary side microprocessor of power supply unit, therefore the voltage signal that detects of checking circuit and current signal I inall have to pass through and be filtered into direct current signal and just can input to this primary side microprocessor.But, thus namely cannot direct calculated power value.
Therefore in order to meet the demand of precision, the testing circuit adopting power measurement IC to replace OP amplifier to form, due to the close computing of power measurement IC semen collection, therefore can provide and use electricity condition more accurately, also comprise the computing of performance number.Adopt the circuit of this power measurement IC as shown in Figure 10, the electric work sense terminals of this power measurement IC 40 is connected to the ac power input end Vin of power supply unit primary side circuit 10, and current sense end is then connected to the current detection device R that is serially connected with ac power input end don, and to be connected with full-bridge rectifier 12 output terminal of primary side circuit 10 again, to use precision and calculate the magnitude of voltage of primary side circuit 10, current value and performance number.Again because this power measurement IC 40 is connected to primary side circuit 10, but operation result must be exported to secondary side circuit controller 31 and the I of secondary side circuit 30 2c exports interface 32, to be sent to computer; But primary side circuit 10 is not identical with secondary side circuit 30 ground connection, therefore power measurement IC 40 outputs signal and just must can export secondary side circuit controller 31 to by a signal switching processor 41, primary side microprocessor 13 and a photo-coupler 14, finally exports the I be connected with computer to 2c exports interface 32.
As shown in the above description, in order to provide the calculating of primary side magnitude of voltage, current value and performance number accurately, employ the power measurement IC of high cost, and because of this power measurement IC signal format different from primary side microprocessor, therefore must additionally add a signal switching processor, more improve the cost of overall power supply unit; Therefore, the circuit of the return primary side circuit electricity condition of current power supply unit needs to be improved further.
Summary of the invention
Because above-mentioned existing technical matters, fundamental purpose of the present invention is to provide a kind of method detecting power supply unit primary side circuit power with low cost, and has high accurancy and precision concurrently.
The technical way used for reaching above-mentioned purpose makes this power detecting method directly be performed by primary side microprocessor, and it includes a voltage sampling program, a current sampling program and a power calculation program, wherein:
Above-mentioned voltage sampling routine package contains following steps:
Acquisition mains voltage signal;
Increase the direct current level of mains voltage signal, make negative half period voltage signal be positive voltage level;
Digital conversion ac voltage signal is direct current string ripple signal; And
Carry out voltage sampling with certain hour interval, obtain a rms voltage.
Above-mentioned current sampling routine package contains following steps:
Acquisition mains current signal;
Analog-converted ac current signal is direct current string ripple signal; And
Carry out current sampling with certain hour interval, obtain a RMS current.
Above-mentioned power calculation routine package contains following steps:
Read each voltage of capturing and current sampling value and give and be multiplied; And
Divided by cycle length one by one, obtain performance number.
The invention described above method is in order to can directly be performed by primary side microprocessor, and additionally need not increase signal switching processor, calculating the rms voltage of mains ac power supply, first the mains voltage signal captured is increased its direct current level, negative half period voltage signal is made to be positive voltage level, and be directly inputted into primary side microprocessor, carry out computing; Mains current signal then directly gets the full-bridge wave filter of primary side circuit, therefore can obtain the less current signal of amplitude, and is after direct current string ripple signal with analog-converted by it, is directly inputted in primary side microprocessor; Therefore, this primary side microprocessor can to the voltage of direct current string ripple signal and electric current, capture voltage and current sampling value and carry out Power arithmetic, and directly by the communication conduit of original primary side microprocessor and secondary side circuit controller, operation result is exported to secondary side circuit controller.So, the present invention need not use expensive power measurement IC and signal switching processor really, provide at present use the magnitude of voltage of alternating current, current value and performance number.
Above-mentioned power calculation Program Synchronization captures in voltage and current sampling value step, for judging an entire cycle time, first preset a magnitude of voltage and a current value, when the voltage captured continuously or current sampling value, compare preset voltage value and current value judge higher than result, lower than result, higher than result, lower than result time, then learn the voltage and current sampling that have completed one-period.
Synchronously in above-mentioned power calculation program capture in voltage and current sampling value step, adopt correction method of tabling look-up further for crawl current sampling value, namely correction parameter is organized in this middle foundation of tabling look-up more, and respectively organizes correction parameter acquisition mode and include:
The AC supply voltage value of adjustment power supply unit;
During the different magnitude of voltage of output, perform following steps to obtain the current correction parameter of each output voltage values;
First time adjusts current AC power current value;
Measure the first real current root-mean-square value of analog DC string signal wave current with precision electrical meter, and first after synchronization gain sampling detects current sampling value, and coordinate current correction parameter to form first oblique arithmetic expression;
Second time adjusts current AC power current value;
Measure the second real current root-mean-square value of analog DC string signal wave current with precision electrical meter, and second after synchronization gain sampling detects current sampling value, and coordinate current correction parameter to form the oblique arithmetic expression of second point; And
Solve this first and second put the correction parameter of oblique arithmetic expression, namely obtain one group of current correction parameter under the magnitude of voltage of current input ac power.
Therefore, when establishing the corresponding current correction parameter of above-mentioned different input voltage value, after detecting current primary side current value, namely can read the current correction parameter of the current input voltage value of middle correspondence of tabling look-up, correct this and detect primary side current value, make it close to the current value measured as precision electrical meter institute actual amount, then carry out power calculation.
Technical way used in the present invention makes the primary side circuit of this tool power detection include:
One voltage signal change-over circuit, is connected to the ac power input end of primary side circuit, to capture mains voltage signal, and increases the direct current level of mains voltage signal, makes negative half period voltage signal be export after positive voltage level;
One current signal change-over circuit, is connected to the output terminal of the full-bridge wave filter of primary side circuit with a current detection device, reduce the analog DC string signal wave current amplitude that this full-bridge wave filter exports;
Primary side microprocessor, its input end connects this voltage signal change-over circuit and current signal change-over circuit respectively, with by analog voltage signal digital conversion direct current string ripple signal, repeat to sample the direct current string ripple signal of this voltage in each cycle and electric current with the set time again, and after the voltage captured and current sampling value are given being multiplied, then divided by cycle length to obtain performance number at every turn.
The invention described above directly coordinates simple voltage and current signal change-over circuit with primary side microprocessor, can obtain the magnitude of voltage of power supply unit primary side circuit use mains supply, current value and performance number.
A current correction table of comparisons is had in above-mentioned primary side microprocessor is further, because the input current waveform of power supply unit can change along with the change of input voltage height, and above-mentioned voltage and current signal change-over circuit form primarily of operational amplifier, input current has distortion phenomenon through operational amplifier, therefore for maintaining certain current detection precision, the necessary built-in current correction table of comparisons of this primary side microprocessor, obtain current sampling value in each, carry out current correction with lookup table mode.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms a application's part, does not form limitation of the invention.In the accompanying drawings:
Fig. 1 is the circuit block diagram of an isolated form switched power supplier;
Fig. 2 is ac voltage signal oscillogram of the present invention;
Fig. 3 is ac current signal oscillogram of the present invention;
Fig. 4 A is the detailed circuit diagram of voltage signal change-over circuit of the present invention;
Fig. 4 B is the detailed circuit diagram of current signal change-over circuit of the present invention;
Fig. 5 A is the oscillogram that direct current string wave voltage signal of the present invention judges the single cycle time;
Fig. 5 B is the oscillogram of direct current string wave voltage sample of signal magnitude of voltage of the present invention;
Fig. 6 is the process flow diagram of each group correction parameter creation facilities program (CFP) in the current correction table of comparisons of the present invention;
Fig. 7 A is the verification yield value statistical form calculated after the present invention measures with sectional type, stepless current correction mode and actual precision electrical meter;
Fig. 7 B is the verification off-set value statistical form calculated after the present invention measures with sectional type, stepless current correction mode and actual precision electrical meter;
Fig. 8 is power detecting method process flow diagram of the present invention;
Fig. 9 is the current waveform figure of existing isolated form switched power supplier primary side circuit;
Figure 10 is the circuit diagram of existing isolated form switched power supplier.
Accompanying drawing number:
10 primary side circuit 11 electromagnetic isolation unit
12 full-bridge rectifier 13 primary side microprocessors
14 photo-coupler 15 transformers
151 first siding ring 20 voltage signal change-over circuits
201 differential circuit 202 direct current level regulator circuits
21 current signal change-over circuit 30 secondary side circuit
31 secondary side circuit controller 32I 2c exports interface
40 power measurement IC 41 signal switching processors
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with accompanying drawing, the embodiment of the present invention is described in further details.At this, schematic description and description of the present invention is for explaining the present invention, but not as a limitation of the invention.
Refer to shown in Fig. 1, for power supply unit comprises the circuit block diagram of primary side circuit of the present invention, wherein this primary side circuit 10 consists predominantly of electromagnetic isolation unit 11, full-bridge wave filter 12, BUKL electric capacity C b, a transformer 15 first siding ring 151, be serially connected with transformer 15 first siding ring 151 active switch Q and one control this active switch Q open and close primary side microprocessor 13; Again, the power-sensing circuit of primary side circuit 10 of the present invention, except including primary side microprocessor 13, further includes:
One voltage signal change-over circuit 20, is connected to the ac power input end V of primary side circuit 10 in, to capture mains voltage signal, as shown in Figure 1, and increase input voltage signal V adirect current level, make negative half period voltage signal be export after positive voltage level; In the present embodiment, as shown in Figure 2, this voltage signal change-over circuit 20 includes a differential circuit 201 and a direct current level produces circuit 202, the forward of this differential circuit 201 and reverse input end are connected to power supply unit ac power input end L, N respectively, and positive input is connected to this direct current level generation circuit 202 further, with scale smaller mains voltage signal V in, and improve this ac voltage signal direct current level, make ac voltage signal amplitude be not less than 0; And
One current signal change-over circuit 21, with a current detection device R dbe connected to the output terminal of the full-bridge wave filter 12 of primary side circuit 10, the analog DC string signal wave current amplitude that this full-bridge wave filter 12 exports reduced, as shown in Figure 4 B.In the present embodiment, as shown in Figure 3, this current signal change-over circuit 21 includes a differential circuit, includes positive input and reverse input end, and this forward and reverse input end are connected to this current detection device R dtwo ends.
Input end as primary side microprocessor 13 of the present invention connects this voltage signal change-over circuit 20 and current signal change-over circuit 21 respectively, because the amplitude of voltage signal and current signal reduces all, therefore can be directly inputted into this primary side microprocessor 13; Wherein this primary side microprocessor 13 is by analog voltage signal digital conversion direct current string ripple signal, repeat to sample the direct current string ripple signal of this voltage in each cycle and electric current with the set time again, and after the voltage captured and current sampling value are given being multiplied, then divided by cycle length to obtain performance number at every turn.
Shown in Fig. 5 A, the voltage signal that above-mentioned primary side microprocessor 13 must just receive and current signal judge the single cycle time, just can calculate performance number; Therefore the single cycle time T judgment mode of this primary side microprocessor 13, first preset a magnitude of voltage V rEFand a current value, when the voltage captured continuously or current sampling value, as Fig. 5 B, compare preset voltage value V rEFand current value judge higher than result, lower than result, higher than result, lower than result time, then learn the voltage and current sampling that have completed one-period time T.
Because the ac voltage signal digital conversion of input is direct current string wave voltage signal V by primary side microprocessor 13 d, and also receive direct current string signal wave current I o, as shown in fig. 4 a and 4b, therefore when synchronization gain voltage sampling value and current sampling value, can directly be multiplied for calculated power value.
In addition, can change along with input voltage signal size based on power supply unit input current, add that the differential circuit of voltage and current signal change-over circuit 20,21 forms primarily of operational amplifier, input current can be caused to have distortion phenomenon through operational amplifier, therefore for maintaining certain current detection precision, the necessary built-in current correction table of comparisons of this primary side microprocessor 13, obtains current sampling value in each, carries out current correction with look-up table; This current correction table of comparisons includes many group input voltages and correction parameter; Refer to shown in Fig. 6, set up each group correction parameter acquisition mode in the current correction table of comparisons for above-mentioned, it includes:
Adjustment power supply unit exports different magnitude of voltage S10;
During the different magnitude of voltage of output, perform following steps respectively to obtain the current correction parameter S11 of each output voltage values;
First time adjusts current AC power current value (80V/1A) S12;
The first real current root-mean-square value M of analog DC string signal wave current is measured with precision electrical meter c1, and first after synchronization gain sampling detects current sampling value Irms raw1, and coordinate current correction parameter to form first oblique arithmetic expression: M c1=CS n* Irms raw1+ COffset n(S13);
Second time adjusts current AC power current value (80V/15A) S14;
The second real current root-mean-square value M of analog DC string signal wave current is measured with precision electrical meter c2, and second after synchronization gain sampling detects current sampling value Irms raw2, and coordinate current correction parameter to form the oblique arithmetic expression of second point: M c2=CS n* Irms raw2+ COffset n(S15); And
Solve this first and second put the correction parameter CS of oblique arithmetic expression nand COffset n, namely obtain one group of current correction parameter S16 under current input voltage (80V).
Current correction parameter under above-mentioned steps double counting goes out different magnitude of voltage, can obtain the current correction table of comparisons of following table one:
Therefore when this primary side microprocessor 13 obtains current sampling value Irms from direct current string signal wave current at every turn rawafter, namely can read corresponding magnitude of voltage V at present in the current correction table of comparisons rmscurrent correction parameter, correct this and detect primary side current value Irms raw, make it close to the current value Irms measured as precision electrical meter institute actual amount, guarantee the precision of judged current value; Current value after wherein correcting is: Irms=Irms raw* CS m+ Coffset m; If V rms=CCP m, for carrying out follow-up power calculation.
The available mains voltage scope of general universe formula power supply supply is wide, for example can be 80V to 164V voltage range, the current correction table of comparisons setting up each input voltage then must spend quite a lot of time, under must carrying out different magnitude of voltage with precision electrical meter, the current value of different electric current detects (such as desirable 80V, 106V, 132V, 198V, 164V), could obtain the current correction parameter of different input voltage; Therefore the present invention can adopt multisection type, meaning namely, store many group voltage and current correction parameter thereof in advance, if detect, current voltage is non-organizes voltage for arbitrary storage more, then get and the correction carrying out detecting electric current the most close to current magnitude of voltage and for the current correction parameter of little magnitude of voltage.Because power supply unit is when heavy duty, electric current through superpotential and current signal change-over circuit waveform distortion even more serious, therefore when setting many group voltage, more multivoltage value can be got ask for its current correction parameter in heavily loaded high pressure range.
In addition, the present invention separately provides a kind of mode, make the current correction parameter of the current correction table of comparisons only under the different voltage of storage arrays, if primary side microprocessor detects current input voltage without the current correction parameter of mating the voltage stored, then read two close voltages of voltage at present in the current correction table of comparisons, extend to its current magnitude of voltage with interpolation method (interpolation algorithm), to reason out the current correction parameter of current magnitude of voltage, below illustrate it.
Order detects voltage V at present rmsthrough judging to be arranged in the first voltage CCP being stored in the current correction table of comparisons mand the second voltage CCP m-1between, the current correction parameter wherein corresponding to first and second voltage is respectively verification yield value CS m, CS m-1and verification off-set value COffset m, Coffset m-1, and known voltage V rmscurrent correction parameter CS m-1m, Coffset m-1m, then carry out interior difference operation with first and second voltage and current correction parameter thereof and obtain, listed by following two formulas:
CS m - 1 m = CS m - 1 ( CCP m - V rms ) + CS m ( V rms - CCP m - 1 ) CCP m - CCP m - 1 ; CCP m ≠ CCP m - 1 ;
COffset m - 1 m = COffset m - 1 ( CCP m - V rms ) + COffset m ( V rms - CCP m - 1 ) CCP m - CCP m - 1 .
The current voltage V of comparison more afterwards rmsvalue and the magnitude relationship of first and second voltage, select one group of current correction parameter, and enter to correct to estimated current, it includes:
When current voltage is less than the first voltage, then with the current correction parameter of the first voltage to estimated current Irms rawcorrect;
When current voltage falls between the first voltage and the second voltage, then the current correction parameter of trying to achieve with interpolation method is to estimated current Irms rawcorrect; And
When current voltage is greater than the second voltage, then with the current correction parameter of the second voltage to estimated current Irms rawcorrect;
Irms = Irms raw &times; CS m - 1 + COffset m - 1 , ifV rms < CCP m - 1 Irms = Irms raw &times; CS m - 1 m + COffset m - 1 m , if CCP m - 1 &le; V rms &le; CCP m Irms = Irms raw &times; CS m + COffset m if V rms > CCP m .
Thus, even if the current correction parameter of the not built-in all voltage of primary side microprocessor 13 of the present invention, still by predetermined current correction parameter, interpolation method is coordinated to derive, please refer to Fig. 7 A, shown in 7B, to store up four groups of voltage (80V in advance, 125V, 175V, 235V) and the current correction parameter coordination interpolation method of correspondence extrapolate current correction parameter (CSm_Interprolation, Coffset_Interprolation), current correction parameter (the CSm_real calculating gained is measured with precision electrical meter respectively with reality, Coffset_real) and sectional type select current correction parameter (CSm_Section, Coffset_Section) add up, as known in illustrated, sectional type is adopted to coordinate interpolation method can realize the correction of stepless, and be close to actual measurement with precision electrical meter and calculate acquired results.
As long as therefore the present invention coordinates simple voltage and current signal change-over circuit with primary side microprocessor really, the magnitude of voltage of the current electricity consumption of power supply unit, current value and performance number can be calculated; And store many group voltage and current correction parameter thereof in advance by simple, namely sectional type or stepless the current correction parameter of current utilization voltage can be calculated, correct synchronously detecting current sampling at present, to return the current value and performance number that measure as actual precision electrical meter, and expensive power measurement IC and signal switching processor need not be adopted, possess power with regard to power supply unit and detect.
State from above, the power detecting method of power supply unit primary side circuit of the present invention includes a voltage sampling program, a current sampling program and a power calculation program.
Please coordinate shown in Fig. 8, above-mentioned voltage sampling routine package contains following steps:
Acquisition mains voltage signal S20;
Increase the direct current level of mains voltage signal, make negative half period voltage signal be positive voltage level S21;
Digital conversion ac voltage signal is direct current string ripple signal S22; And
Carry out voltage sampling with certain hour interval, obtain a rms voltage S23.
Again, above-mentioned current sampling routine package contains following steps:
Acquisition mains current signal S30;
Analog-converted ac current signal is direct current string ripple signal S31; And
Carry out current sampling with certain hour interval, obtain a RMS current S33.
Above-mentioned power calculation routine package contains following steps:
Read each voltage of capturing and current sampling value and give the S40 that is multiplied; And
Divided by cycle length one by one, obtain performance number S41.
Above-mentioned power calculation Program Synchronization captures in voltage and current sampling value step, for judging an entire cycle time, first preset a magnitude of voltage and a current value, when the voltage captured continuously or current sampling value, compare preset voltage value and current value judge higher than result, lower than result, higher than result, lower than result time, then learn the voltage and current sampling that have completed one-period.
Synchronously in above-mentioned power calculation program capture in voltage and current sampling value step, adopt correction method of tabling look-up further for crawl current sampling value, namely correction parameter is organized in this middle foundation of tabling look-up more, and respectively organizes correction parameter acquisition mode and include:
Adjustment power supply unit exports different magnitude of voltage;
During the different magnitude of voltage of output, perform following steps to obtain the current correction parameter of each output voltage values;
The load of adjustment power supply unit is underloading, makes power supply unit export the first DC power signal;
Measure the first real current root-mean-square value of analog DC string signal wave current equally with precision electrical meter, and first after synchronization gain sampling detects current sampling value, and coordinate current correction parameter to form first oblique arithmetic expression;
Adjust the load of power supply unit again for heavy duty, make power supply unit export the second DC power signal; Wherein the voltage of this first and second DC power signal is identical, but electric current is different;
Measure the second real current root-mean-square value of analog DC string signal wave current equally with precision electrical meter, and second after synchronization gain sampling detects current sampling value, and coordinate current correction parameter to form the oblique arithmetic expression of second point; And
Solve this first and second put the correction parameter of oblique arithmetic expression, namely obtain one group of current correction parameter under current output voltage values.
Therefore when the present invention detects up till now after primary side current value, namely can read the current correction parameter of the current magnitude of voltage of middle correspondence of tabling look-up, correct this and detect primary side current value, make it close to the current value measured as precision electrical meter institute actual amount.
Above-described specific embodiment; object of the present invention, technical scheme and beneficial effect are further described; be understood that; the foregoing is only specific embodiments of the invention; the protection domain be not intended to limit the present invention; within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. a power detecting method for power supply unit primary side circuit, is characterized in that, includes a voltage sampling step, a current sampling step and a power calculation step, wherein:
Described voltage sampling step includes following steps:
Acquisition mains voltage signal;
Increase the direct current level of described mains voltage signal, make negative half period voltage signal be positive voltage level;
Digital conversion ac voltage signal is digital full-wave voltage signal; And
Carry out voltage sampling with certain hour interval, obtain a rms voltage;
Described current sampling step includes following steps:
Acquisition mains current signal;
Ac current signal described in analog-converted is simulation full-wave electric current signal; And
Carry out current sampling with certain hour interval, obtain a RMS current; And
Described power calculation step includes following steps:
Read the voltage of every subsynchronous crawl and current sampling value and give and be multiplied; And
Divided by the one-period time, obtain performance number, when wherein judging described cycle length, first preset a magnitude of voltage and a current value, when the voltage captured continuously or current sampling value, compare preset voltage value and current value judge higher than result, lower than result, higher than result, lower than result time, then learn the voltage and current sampling that have completed one-period.
2. the power detecting method of power supply unit primary side circuit as claimed in claim 1, it is characterized in that, in described power calculation step when reading each current sampling value captured, it is corrected with look-up table again after capturing current sampling value, this look-up table sets up a current correction table of comparisons, the described current correction table of comparisons includes many group voltage and current correction parameter thereof, reads described current correction parameter value, corrected current sampling value according to the synchronous magnitude of voltage that captures.
3. the power detecting method of power supply unit primary side circuit as claimed in claim 2, it is characterized in that, each group of correction parameter of the described current correction table of comparisons is set up mode and is included:
Adjustment power supply unit exports different magnitude of voltage;
During the different magnitude of voltage of output, perform following steps respectively to obtain the current correction parameter of each output voltage values:
First time adjustment AC power electric current;
Measure the first real current root-mean-square value of simulation full-wave electric current signal with precision electrical meter, and first after synchronization gain sampling detects current sampling value, and coordinate current correction parameter to form first oblique arithmetic expression;
Second time adjustment AC power electric current;
Measure the second real current root-mean-square value of simulation full-wave electric current signal with precision electrical meter, and second after synchronization gain sampling detects current sampling value, and coordinate current correction parameter to form the oblique arithmetic expression of second point; And
Described in solving, first and second puts the correction parameter of oblique arithmetic expression, namely obtains one group of current correction parameter under current output voltage values.
4. the power detecting method of power supply unit primary side circuit as claimed in claim 3, it is characterized in that, described look-up table is in reading in described current correction parameter value step according to the synchronous magnitude of voltage that captures, if detect current voltage not mate arbitrary voltage in the described current correction table of comparisons, then read with current voltage the most close to and carry out the correction detecting electric current for the current correction parameter of little voltage.
5. the power detecting method of power supply unit primary side circuit as claimed in claim 3, it is characterized in that, described look-up table is in reading in described current correction parameter value step according to the synchronous magnitude of voltage that captures, if detect current voltage not mate arbitrary voltage in the described current correction table of comparisons, then read the described current correction table of comparisons two voltages the most close with current voltage and current correction parameter thereof, and extrapolate the current correction parameter of current voltage with interpolation method.
6. a power-sensing circuit for power supply unit primary side circuit, is characterized in that, includes:
One voltage signal change-over circuit, is connected to the ac power input end of described primary side circuit, to capture mains voltage signal, and increases the direct current level of described mains voltage signal, makes negative half period voltage signal be export after positive voltage level;
One current signal change-over circuit, is connected to the output terminal of the full-bridge wave filter of described primary side circuit with a current detection device, reduce the simulation full-wave electric current signal amplitude that described full-bridge wave filter exports; And
One primary side microprocessor, the input end of described primary side microprocessor connects described voltage signal change-over circuit and current signal change-over circuit respectively, because the amplitude of voltage signal and current signal reduces all, therefore described primary side microprocessor can be directly inputted into; The analog voltage signal digital conversion that voltage signal change-over circuit and current signal change-over circuit export by wherein said primary side microprocessor is digital full-wave voltage signal and digital full-wave electric current signal, repeat to sample the described digital full-wave voltage signal in each cycle and digital full-wave electric current signal with the set time again, and after the voltage of every subsynchronous crawl and current sampling value are given being multiplied, then divided by cycle length to obtain performance number.
7. power-sensing circuit as claimed in claim 6, it is characterized in that, described voltage signal change-over circuit includes:
One direct current level produces circuit; And
One differential circuit, its forward and reverse input end are connected to power supply unit ac power input end L, N respectively, wherein said positive input is connected to described direct current level further and produces circuit, with scale smaller mains voltage signal, and improve described ac voltage signal, make ac voltage signal amplitude be not less than 0.
8. power-sensing circuit as claimed in claims 6 or 7, it is characterized in that, described current signal change-over circuit includes a differential circuit, includes positive input and reverse input end, and described forward and reverse input end are connected to two ends of described current detection device.
9. power-sensing circuit as claimed in claim 8, it is characterized in that, described primary side microprocessor calculates the single cycle time judging voltage signal and current signal, preset a magnitude of voltage and a current value, when the voltage captured continuously or current sampling value, compare preset voltage value and current value judge higher than result, lower than result, higher than result, lower than result time, then learn the voltage and current sampling that have completed one-period.
10. power-sensing circuit as claimed in claim 8, it is characterized in that, the built-in current correction table of comparisons of described primary side microprocessor, the described current correction table of comparisons includes many group voltage and current correction parameter thereof, after synchronous crawl voltage and electric current, with look-up table further according to the current correction parameter value detecting voltage sense stream correction parameter at present, current sampling value is corrected.
11. power-sensing circuits as claimed in claim 10, it is characterized in that, described primary side microprocessor reads in this current correction parameter value step with look-up table in the synchronous magnitude of voltage that captures of foundation, if detect current voltage not mate arbitrary voltage in this current correction table of comparisons, then read with current voltage the most close to and carry out the correction detecting electric current for the current correction parameter of little voltage.
12. power-sensing circuits as claimed in claim 10, it is characterized in that, described primary side microprocessor reads in described current correction parameter value step with look-up table in the synchronous magnitude of voltage that captures of foundation, if detect current voltage not mate arbitrary voltage in the described current correction table of comparisons, then read the described current correction table of comparisons two voltages the most close with current voltage and current correction parameter thereof, and extrapolate the current correction parameter of current voltage with interpolation method.
CN201110148990.XA 2011-04-08 2011-06-03 Power detection method and circuit for primary side circuit of power supply unit Expired - Fee Related CN102809684B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW100112173A TWI460437B (en) 2011-04-08 2011-04-08 Power detection method of power supply primary circuit and power detection circuit
CN201110148990.XA CN102809684B (en) 2011-04-08 2011-06-03 Power detection method and circuit for primary side circuit of power supply unit

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
TW100112173A TWI460437B (en) 2011-04-08 2011-04-08 Power detection method of power supply primary circuit and power detection circuit
CN201110148990.XA CN102809684B (en) 2011-04-08 2011-06-03 Power detection method and circuit for primary side circuit of power supply unit

Publications (2)

Publication Number Publication Date
CN102809684A CN102809684A (en) 2012-12-05
CN102809684B true CN102809684B (en) 2015-02-18

Family

ID=50114237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110148990.XA Expired - Fee Related CN102809684B (en) 2011-04-08 2011-06-03 Power detection method and circuit for primary side circuit of power supply unit

Country Status (2)

Country Link
CN (1) CN102809684B (en)
TW (1) TWI460437B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104181380B (en) * 2013-05-23 2017-03-01 远翔科技股份有限公司 Underloading current detecting system
CN104659922B (en) * 2013-11-18 2017-01-18 立锜科技股份有限公司 Electric power computing method
CN103698562B (en) * 2013-12-26 2016-03-16 艾德克斯电子(南京)有限公司 A kind of electronic load device and emulation mode thereof
CN105319437A (en) * 2014-08-05 2016-02-10 国家电网公司 Direct-current power sampling system
CN104267254B (en) * 2014-08-13 2017-03-01 如皋市图腾电力科技有限公司 A kind of sinusoidal current reactive power detection method
CN107271831B (en) * 2017-05-31 2020-06-19 国家电网公司 Transformer substation secondary cable alignment device and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2929729Y (en) * 2006-07-14 2007-08-01 鸿富锦精密工业(深圳)有限公司 Output power measuring device for power supply device
TW201011515A (en) * 2008-09-12 2010-03-16 Acbel Polytech Inc Power supply having function of monitoring power of input power-source
TWM385003U (en) * 2009-11-16 2010-07-21 Etasis Electronics Corporati Electrical power detector and its management device
CN101930026A (en) * 2009-06-22 2010-12-29 冠捷投资有限公司 Electronic device with power loss detection function

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM304837U (en) * 2006-07-21 2007-01-11 Hon Hai Prec Ind Co Ltd Apparatus for measuring an output power of a power supply
US7375995B1 (en) * 2007-02-01 2008-05-20 Spi Electronic Co., Ltd. Power factor correction circuit
US20090306914A1 (en) * 2008-06-04 2009-12-10 Texas Instruments Incorporated System and method for measuring input power of power supplies

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2929729Y (en) * 2006-07-14 2007-08-01 鸿富锦精密工业(深圳)有限公司 Output power measuring device for power supply device
TW201011515A (en) * 2008-09-12 2010-03-16 Acbel Polytech Inc Power supply having function of monitoring power of input power-source
CN101930026A (en) * 2009-06-22 2010-12-29 冠捷投资有限公司 Electronic device with power loss detection function
TWM385003U (en) * 2009-11-16 2010-07-21 Etasis Electronics Corporati Electrical power detector and its management device

Also Published As

Publication number Publication date
CN102809684A (en) 2012-12-05
TWI460437B (en) 2014-11-11
TW201241445A (en) 2012-10-16

Similar Documents

Publication Publication Date Title
CN102809684B (en) Power detection method and circuit for primary side circuit of power supply unit
CN104583784B (en) The system and method for Input Power & Current measurement
CN101533082B (en) Electric energy meter half wave rectification testing line
CN107402324B (en) Power supply sampling circuit and method based on single current transformer and low-voltage circuit breaker thereof
CN101499716B (en) Single phase power factor correcting analog circuit without need of detecting DC output voltage
CN102866364A (en) Photovoltaic inverter test system and test method thereof
CN102156227A (en) Detecting system and detecting method for non-vehicular charging machine
CN115825633B (en) Evaluation method and device of complete machine test system of photovoltaic inverter and upper computer
CN103872690A (en) Method for controlling dynamic voltage restorer based on HHT detection method and PFC
CN105871242A (en) Single-phase bidirectional converter control system
CN102427248B (en) Direct-driven wind power synchronization control method based on Buck-Boost matrix converter
CN103248258B (en) Vehicle-mounted sine wave inverter and inversion control circuit thereof
CN103312188B (en) For power supply and the method for testing thereof of reactor performance test in power electronic equipment
CN103105525B (en) Precision compensation method of current clamp, detection method and detection system using current clamp
CN108051770A (en) A kind of correction method of three-phase intelligent electric-energy meter
CN101938147B (en) Uninterruptable power supply aging self-feedback control method and system
CN204855631U (en) Alternating current virtual value detection circuitry
CN203747682U (en) Device of single-phase AC-DC conversion power supply
CN104133188A (en) Method and device for detecting electric quantity return and supplement error at voltage loss of two phases of three-phase four-wire electric energy meter
CN103913628A (en) Method and apparatus for measurement of AC voltage signal at light load operation
CN209446692U (en) A kind of detection circuit and DC Electronic Loads for grid-connecting apparatus
CN107561380A (en) A kind of experimental provision and experimental method for probing into distribution transformer winding AC resistance and overtone order relation
CN110470903B (en) Voltage frequency soft measurement device and method
CN103825445A (en) Bridgeless power factor controller of AC-DC converter
CN105911346A (en) Bi-directional intelligent electric meter respectively used for metering fundamental wave and harmonic wave and metering method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150218

Termination date: 20210603