CN102687358A - Power supply circuit and electric appliance - Google Patents

Power supply circuit and electric appliance Download PDF

Info

Publication number
CN102687358A
CN102687358A CN2012800002133A CN201280000213A CN102687358A CN 102687358 A CN102687358 A CN 102687358A CN 2012800002133 A CN2012800002133 A CN 2012800002133A CN 201280000213 A CN201280000213 A CN 201280000213A CN 102687358 A CN102687358 A CN 102687358A
Authority
CN
China
Prior art keywords
circuit
output
alternating voltage
control unit
motherboard
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.)
Granted
Application number
CN2012800002133A
Other languages
Chinese (zh)
Other versions
CN102687358B (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.)
Huawei Device Co Ltd
Huawei Device Shenzhen Co Ltd
Original Assignee
Huawei Device Co Ltd
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 Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Publication of CN102687358A publication Critical patent/CN102687358A/en
Application granted granted Critical
Publication of CN102687358B publication Critical patent/CN102687358B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/28Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H3/00Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection
    • H02H3/20Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection responsive to excess voltage
    • H02H3/207Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection responsive to excess voltage also responsive to under-voltage

Abstract

The embodiment of the invention provides a power supply circuit and an electric appliance. The power supply circuit comprises an adapter, a mainboard circuit and a voltage testing circuit, wherein the adapter is used for supplying power to the mainboard circuit; the voltage testing circuit is used for providing alternating voltage to the mainboard circuit, receiving closing instruction of the mainboard circuit and controlling the adaptor to stop supplying power to the mainboard circuit based on closing instruction; when a sample value of alternating voltage is more than the early-warning upper limit value or less than the early-warning lower limit value, the mainboard circuit is used for saving the present data and outputting closing instruction to the voltage testing circuit. The technology scheme of the invention solves the problem that the mainboard data lose because of sudden outage.

Description

Power supply circuits and electric equipment
Technical field
The present invention relates to circuit engineering, relate in particular to a kind of power supply circuits and electric equipment.
Background technology
Many electronic products can be directly with civil power or industrial electrical network power supply, and be the main board power supply of electronic product through adapter.Because the voltage of electrical network is often unstable, so occur causing mainboard to damage or the situation of loss of data because of voltage fluctuation through regular meeting.General electronic product can design overvoltage crowbar, and is as shown in Figure 1.When ac input voltage surpasses dangerous threshold, for example greater than after exchanging (AC) 380V (can be designated as 380AC), overvoltage crowbar can be blocked high pressure, and this moment, mainboard will quit work because of outage immediately.And for brownout, for example less than 90VAC, or situation about having a power failure, mainboard also can quit work because of outage.
No matter be brownout or power failure or by overvoltage crowbar blocking-up high pressure, mainboard all can sudden power and have little time protected data, thereby causes loss of data.
Summary of the invention
The present invention provides a kind of power supply circuits and electric equipment, in order to solve mainboard causes loss of data because of sudden power problem.
The embodiment of the invention provides a kind of power supply circuits, comprising: adapter, motherboard circuit and voltage detecting circuit;
The input of said adapter is connected with ac power output, and the output of said adapter is connected with said motherboard circuit, said adapter, be used for to the alternating voltage of input handle and output DC to give said motherboard circuit power supply;
The input of said voltage detecting circuit is connected with said ac power output; First output of said voltage detecting circuit is connected with said motherboard circuit, and second output of said voltage detecting circuit is connected with said adapter, said voltage detecting circuit; Be used for the alternating voltage of input is sampled; Calculate alternating voltage according to the alternating voltage sampled value, said alternating voltage is offered said motherboard circuit, and receive the out code that said motherboard circuit sends; Control said adapter according to said out code through said second output, so that said adapter stops to said motherboard circuit power supply;
Said motherboard circuit; Alternating voltage that is used for said voltage detecting circuit is provided and preset early warning higher limit or preset early warning lower limit compare; At said alternating voltage during greater than said early warning higher limit or less than said early warning lower limit; Preserve current data, and export said out code to said voltage detecting circuit through first output of said voltage detecting circuit.
The embodiment of the invention provides a kind of electric equipment, comprising: power supply circuits;
Said power supply circuits comprise; Adapter, motherboard circuit and voltage detecting circuit;
The input of said adapter is connected with ac power output, and the output of said adapter is connected with said motherboard circuit, said adapter, be used for to the alternating voltage of input handle and output DC to give said motherboard circuit power supply;
The input of said voltage detecting circuit is connected with said ac power output; First output of said voltage detecting circuit is connected with said motherboard circuit, and second output of said voltage detecting circuit is connected with said adapter, said voltage detecting circuit; Be used for the alternating voltage of input is sampled; Calculate alternating voltage according to the alternating voltage sampled value, said alternating voltage is offered said motherboard circuit, and receive the out code that said motherboard circuit sends; Control said adapter according to said out code through said second output, so that said adapter stops to said motherboard circuit power supply;
Said motherboard circuit; Alternating voltage that is used for said voltage detecting circuit is provided and preset early warning higher limit or preset early warning lower limit compare; At said alternating voltage during greater than said early warning higher limit or less than said early warning lower limit; Preserve current data, and export said out code to said voltage detecting circuit through first output of said voltage detecting circuit.
Power supply circuits that the embodiment of the invention provides and electric equipment; Voltage detecting circuit in the power supply circuits is through sampling to the alternating voltage of ac power output output; Calculate alternating voltage according to the alternating voltage sampled value, then alternating voltage is offered the motherboard circuit in the power supply circuits, motherboard circuit compares alternating voltage and early warning higher limit or early warning lower limit; Judge whether to make the situation of motherboard circuit sudden power according to comparative result; And, preserve current data in advance, and send out code to voltage detecting circuit judging to occur making the situation of motherboard circuit sudden power the time; Thereby close the output of adapter through voltage detecting circuit, prevent that sudden power from causing damage to motherboard circuit.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply; Obviously, the accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
The electrical block diagram of Fig. 1 for using civil power or industrial electrical network to supply power in the prior art;
The structural representation of the power supply circuits that Fig. 2 provides for one embodiment of the invention;
Fig. 3 A is the structural representation of the power supply circuits that provide of another embodiment of the present invention;
Fig. 3 B is the electric voltage over press fluctuation sketch map that another embodiment of the present invention provides;
Fig. 3 C is that another embodiment of the present invention provides under-voltage fluctuation sketch map;
The implementation structure sketch map of the alternating current sampling circuit that Fig. 4 provides for one embodiment of the invention;
The implementation structure sketch map of the control unit that Fig. 5 provides for one embodiment of the invention;
The implementation structure sketch map of the stand-by power supply circuit that Fig. 6 provides for one embodiment of the invention;
The implementation structure sketch map of the photoelectric coupled circuit that Fig. 7 provides for one embodiment of the invention;
The flow chart of the method for supplying power to that Fig. 8 provides for one embodiment of the invention;
The flow chart of the method for supplying power to that Fig. 9 provides for another embodiment of the present invention.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, intactly description; Obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The structural representation of the power supply circuits that Fig. 2 provides for one embodiment of the invention.As shown in Figure 2, the power supply circuits of present embodiment comprise: adapter 10, motherboard circuit 20 and voltage detecting circuit 30.
Wherein, the input of adapter 10 is connected with ac power output, and the output of adapter 10 is connected with motherboard circuit 20.Adapter 10, be used for to the alternating voltage of input handle and output DC to give motherboard circuit 20 power supplies.
Wherein, the alternating voltage of 10 pairs of inputs of adapter is handled the alternating voltage that mainly is meant input and is carried out rectification, and alternating current is become galvanic process.The output of adapter 10 is connected the output that is meant adapter 10 specifically and is connected with electric power management circuit on the motherboard circuit 20 with motherboard circuit 20, be used under the control of electric power management circuit to motherboard circuit 20 power supplies.
The input of voltage detecting circuit 30 is connected with ac power output, and first output of voltage detecting circuit 30 is connected with motherboard circuit 20, and second output of voltage detecting circuit 30 is connected with adapter 10.Voltage detecting circuit 30; Be used for the alternating voltage of input is sampled; Calculate alternating voltage according to the alternating voltage sampled value, alternating voltage is offered motherboard circuit 20, and receive the out code that motherboard circuit 20 sends; According to the second output control adapter 10 of out code, so that adapter 10 stops to motherboard circuit 20 power supplies through voltage detecting circuit 30.Wherein, First output of voltage detecting circuit 30 mainly is meant the communication interface that voltage detecting circuit 30 and motherboard circuit 20 communicate; For example, first output can be a serial line interface, for example can be UART Universal Asynchronous Receiver Transmitter (the Universal Asynchronous Receiver/Transmitter of 2 lines; UART) Serial Peripheral Interface (SPI) of interface or 3 lines (Serial Peripheral Interface, SPI).Second output of voltage detecting circuit 30 is actually one and is used to control the control interface that adapter 10 opens and closes its direct current output, for example can be input and output (Input/Output, I/O) interface.Wherein, second output of voltage detecting circuit 30 specifically can be realized the control to the output of adapter 10 through turn-offing level or enable level to the output enable end output of adapter 10 through being connected with the output enable end of adapter 10.Motherboard circuit 20; Alternating voltage that is used for voltage detecting circuit 30 is provided and preset early warning higher limit or preset early warning lower limit compare; At alternating voltage during greater than the early warning higher limit or less than the early warning lower limit; Preserve current data, and export out codes to voltage detecting circuit 30, close its direct current output to stop to motherboard circuit 20 power supplies with control voltage detecting circuit 30 control adapters 10 through first output of voltage detecting circuit 30.
Wherein, current data mainly is meant all data that CPU handles, moves, receives and dispatches, preserves, such as data of document, wireless receiving and the transmission of personal information, transmission or the like.
Wherein, early warning higher limit and early warning lower limit are arranged in the memory space of motherboard circuit 20 in advance, for example can be arranged in the flash memory (Flash) of motherboard circuit 20.The voltage range that early warning higher limit and early warning lower limit can be supported according to the fan-out capability and the motherboard circuit 20 of actual AC power etc. is carried out the adaptability configuration.Illustrate; For the more weak AC power of fan-out capability; Early warning higher limit and early warning lower limit can be set to 320VAC and 90VAC respectively, and for the stronger AC power of fan-out capability, early warning higher limit and early warning lower limit can be set to 400VAC and 90VAC respectively.
If the alternating voltage sampled value is greater than the early warning higher limit; Explain that alternating current fluctuates; The fluctuation tendency of alternating voltage is for increasing; And if alternating voltage increased to and use this alternating voltage just might damage motherboard circuit 20 as motherboard circuit 20 in the power supply of interior whole system,, thereby mean that motherboard circuit 20 can the sudden power or the generation loss of data that quits work suddenly if motherboard circuit 20 is damaged.Therefore; When judging the alternating voltage sampled value greater than this situation of early warning higher limit; Motherboard circuit 20 is at first preserved current data to prevent loss of data; Close its direct current output through voltage detecting circuit 30 control adapters 10 then, stopping, and then prevent that motherboard circuit 20 is damaged to motherboard circuit 20 power supplies.
If the alternating voltage sampled value is less than the early warning lower limit; Explain that alternating current fluctuates; The fluctuation tendency of alternating voltage is for reducing, if thereby and alternating voltage be reduced to and continue to use this alternating current to supply power in interior whole system might to make motherboard circuit 20 cause loss of data because of undertension quits work suddenly as motherboard circuit 20.Therefore; When judging the alternating voltage sampled value less than this situation of early warning lower limit; Motherboard circuit 20 is at first preserved current data to prevent loss of data; Close its direct current output through voltage detecting circuit 30 control adapters 10 then, motherboard circuit 20 is caused damage with the rush of current that prevents to cause by sudden power.
In this explanation, motherboard circuit described in the various embodiments of the present invention 20 mainly be meant CPU on the motherboard circuit 20 (Central Processing Unit, CPU).
In this explanation, the described ac power output of various embodiments of the present invention mainly is meant when using civil power or industrial electrical network power supply, the output of civil power or industrial electrical network.For the ease of diagram, in the accompanying drawing that various embodiments of the present invention provide, all represent ac power output with literal " AC input ".
The power supply circuits of present embodiment have increased voltage detecting circuit; Through voltage detecting circuit the alternating current of ac power output output is sampled; Calculate current alternating voltage according to the alternating voltage sampled value; Then alternating voltage is offered motherboard circuit, motherboard circuit judges whether to take place the situation of sudden power through alternating voltage and early warning higher limit or early warning lower limit are compared according to comparative result; And when judging the situation that sudden power might take place; In time preserve current data preventing loss of data, and close its output through power sense circuit control adapter and stop preventing sudden power motherboard circuit being caused damage to the motherboard circuit power supply.
Fig. 3 A is the structural representation of the power supply circuits that provide of another embodiment of the present invention.Present embodiment is based on realization embodiment illustrated in fig. 2.Shown in Fig. 3 A, the power supply circuits of present embodiment also comprise: adapter 10, motherboard circuit 20 and voltage detecting circuit 30.
In the present embodiment; Motherboard circuit 20 is except having the middle function of describing embodiment illustrated in fig. 2; Also have following function: promptly motherboard circuit 20 can also be used for being not more than at alternating voltage (promptly being less than or equal to) early warning higher limit and when being not less than (promptly more than or equal to) early warning lower limit; Alternating voltage and preset normal range (NR) higher limit or preset normal range (NR) lower limit are compared, and greater than the normal range (NR) higher limit, promptly alternating voltage is greater than the normal range (NR) higher limit and when being not more than the early warning higher limit at alternating voltage; Perhaps at alternating voltage less than the normal range (NR) lower limit; Be alternating voltage when being not less than the early warning lower limit, preserve current data, and report the unsettled information of alternating voltage to administrative center less than the normal range (NR) lower limit.Wherein, motherboard circuit 20 can (Radio Frequency, RF) circuit reports the unsettled information of alternating voltage to administrative center through the radio frequency on it.
Further; In order to prevent that sudden power from causing damage to motherboard circuit 20; Motherboard circuit 20 can also be at alternating voltage greater than the normal range (NR) higher limit and be not more than the early warning higher limit, perhaps at alternating voltage less than the normal range (NR) lower limit but when being not less than the early warning lower limit, send out codes to voltage detecting circuit 30; Close its direct current output with control voltage detecting circuit 30 control adapters 10, to stop to motherboard circuit 20 power supplies.
Wherein, normal range (NR) higher limit and normal range (NR) lower limit are arranged in the memory space of motherboard circuit 20 in advance, for example can be arranged among the Flash of motherboard circuit 20.The voltage range that normal range (NR) higher limit and normal range (NR) lower limit can be supported according to the fan-out capability and the motherboard circuit 20 of actual AC power etc. is carried out the adaptability configuration.Illustrate, normal range (NR) higher limit and normal range (NR) lower limit can be set to 260VAC and 180VAC respectively.
If alternating voltage is greater than the normal range (NR) higher limit; Explain that alternating voltage fluctuates; The fluctuation tendency of alternating voltage is for increasing; In order to prevent to cause motherboard circuit 20 to be damaged sudden power causing loss of data because of alternating voltage increases, motherboard circuit 20 is at first preserved current data to prevent loss of data after greater than the normal range (NR) higher limit judging alternating voltage.Further, motherboard circuit 20 reports administrative center with the unsettled situation of supply current, promptly reports the unsettled information of alternating voltage to administrative center, so that administrative center's this information of record.Follow-up, administrative staff or staff or user etc. can carry out inspection operation according to information recorded.Further, motherboard circuit 20 can also send out code to voltage detecting circuit 30, so that voltage detecting circuit 30 control adapters 10 stop to motherboard circuit 20 power supplies.Fig. 3 B provides a kind of sketch map of electric voltage over press fluctuation.In Fig. 3 B, the normal range (NR) higher limit is set to 260VAC, and the early warning higher limit is 400VAC.
If alternating voltage is less than the normal range (NR) lower limit; Explain that alternating voltage fluctuates; The fluctuation tendency of alternating voltage is for reducing; In order to prevent to cause loss of data because of alternating voltage reduces to cause motherboard circuit 20 because of undertension (sudden power), motherboard circuit 20 is at first preserved current data to prevent loss of data after less than the normal range (NR) lower limit judging alternating voltage.Further, motherboard circuit 20 reports administrative center with the unsettled situation of supply power voltage, promptly reports the unsettled information of alternating voltage to administrative center, so that administrative center's this information of record.Follow-up, administrative staff or staff or user etc. can carry out inspection operation according to information recorded.Further, motherboard circuit 20 can also send out code to voltage detecting circuit 30, so that voltage detecting circuit 30 control adapters 10 stop to motherboard circuit 20 power supplies.Fig. 3 C provides a kind of sketch map of under-voltage fluctuation.In Fig. 3 C, the normal range (NR) lower limit is set to 180VAC, and the early warning lower limit is 90VAC.
Difference and the difference of motherboard circuit 20 looked by the administrative center of present embodiment.For example, motherboard circuit 20 can be a household electric appliances, the motherboard circuit in refrigerator, the washing machine etc. for example, and then administrative center can be the watch-dog that is used for being responsible for each household electric appliances of monitoring family, for example a personal computer of family setting.Again for example, motherboard circuit 20 can be the motherboard circuit in the server, and then administrative center can be the service centre (service centre) that each server is monitored, managed.Again for example, motherboard circuit 20 can be the motherboard circuit in the power network Central Shanxi Plain, and then administrative center can belong to the service centre in sub-district by this electric power gateway.
Further, the fluctuation of alternating voltage is more common, especially near normal range (NR), fluctuates.Judge that in order to improve alternating voltage is outside normal range (NR); Whether can cause the accuracy of motherboard circuit 20 sudden power when within the early warning range fluctuation taking place; Motherboard circuit 20 in the present embodiment is not more than the situation of early warning higher limit greater than the normal range (NR) higher limit at alternating voltage; Perhaps be not less than under the situation of early warning lower limit less than the normal range (NR) lower limit at alternating voltage; Further through judging whether alternating voltage reaches the time of appointment greater than the normal range (NR) higher limit or less than time of normal range (NR) lower limit, if reach the fixed time, then this fluctuation of explanation causes motherboard circuit 20 sudden power probably; So motherboard circuit 20 needs to preserve current data, and reports the unsettled information of alternating voltage to administrative center.Shown in Fig. 3 B, after alternating voltage surpassed 260VAC30s, motherboard circuit 20 just can be carried out the preservation current data, and reports the operation of the unsettled information of alternating voltage to administrative center.Shown in Fig. 3 C, after alternating voltage was less than 180VAC30s, motherboard circuit 20 just can be carried out the preservation current data, and reported the operation of the unsettled information of alternating voltage to administrative center.Wherein, alternating voltage can be identical less than the fixed time of normal range (NR) lower limit with alternating voltage greater than the fixed time of normal range (NR) higher limit, also can be inequality, be designated as first fixed time and second fixed time respectively for showing difference.Wherein, first fixed time and second fixed time can be pre-configured in the motherboard circuit 20, for example can be arranged among the Flash of motherboard circuit 20.Wherein, first fixed time and second fixed time can be 30 seconds, 1 minute etc., but are not limited thereto.
That is to say; Be not more than the early warning higher limit and be not less than under the situation of early warning lower limit at alternating voltage; Motherboard circuit 20 specifically can be used at alternating voltage greater than the normal range (NR) higher limit, and continues greater than the normal range (NR) higher limit after first fixed time, perhaps at alternating voltage less than the normal range (NR) lower limit; And continue less than the normal range (NR) lower limit after second fixed time; Just carry out and preserve current data, and the operation that reports the unsettled information of alternating voltage to administrative center, judge the wasting of resources that causes by accident to reduce.
Wherein, motherboard circuit 20 can be saved in current data among the Flash of motherboard circuit 20, but is not limited thereto.
Further, as shown in Figure 2, the voltage detecting circuit 30 of present embodiment comprises: alternating current sampling circuit 301, ac-dc converter circuit 302 and control unit 303.Wherein, control unit 303 can be that (Micro Control Unit MCU), but is not limited thereto micro-control unit.
The input of alternating current sampling circuit 301 is connected with ac power output, and the output of alternating current sampling circuit 301 is connected with the input (V+ shown in Fig. 3 A and V-) of control unit 303.Alternating current sampling circuit 301 is used for the alternating voltage of input is sampled, and the alternating voltage sampled value is offered control unit 303.Wherein, the input of alternating current sampling circuit 301 is the input of voltage detecting circuit 30.
The input of ac-dc converter circuit 302 is connected with ac power output, and the output of ac-dc converter circuit 302 is connected with control unit 303, and concrete is to be connected with the power input (VCC shown in Fig. 3 A) of control unit 303.Ac-dc converter circuit 302 is used for converting the alternating voltage of input into direct current, and exports to control unit 303, to supply power to control unit 303.
First output of control unit 303 (Tx shown in Fig. 3 A and Rx) is first output of voltage detecting circuit 30, and second output of control unit 303 (I/O shown in Fig. 3 A) is second output of voltage detecting circuit 30.First output of control unit 303 is connected with motherboard circuit 20, and second output of control unit 303 is connected with adapter 10.Control unit 303; Be used for calculating alternating voltage according to the alternating voltage sampled value; First output through control unit 303 offers motherboard circuit 20 with alternating voltage then; And receive the out code that motherboard circuit 20 sends, according to the second output control adapter 10 of out code, so that adapter 10 stops to motherboard circuit 20 power supplies through control unit 303.Concrete, control unit 303 can turn-off level to the output enable end output of adapter 10 through one of which I/O interface, and control adapter 10 can not be exported.In addition; The control unit 303 of present embodiment can also recover normally at the alternating voltage of ac power output output after; The output output enable level control adapter 10 that enables through to adapter 10 is opened its output again, promptly again to motherboard circuit 20 power supplies.At this moment, motherboard circuit 20 also can recover operate as normal.
In the present embodiment; The alternating voltage that control unit 303 can directly calculate the alternating voltage sampled value that provides according to interchange Acquisition Circuit 301 offers motherboard circuit 20; Control unit 303 need not carry out extra process to alternating voltage like this, and it is lighter that it handles burden.
In addition; Alternating voltage that control unit 303 can also calculate the alternating voltage sampled value that provides according to alternating current sampling circuit 301 and preset normal range (NR) higher limit or preset normal range (NR) lower limit compare; At alternating voltage during greater than the normal range (NR) higher limit or less than the normal range (NR) lower limit, first output through control unit 303 offers main website circuit 20 with alternating voltage.Be that the alternating voltage that control unit 303 only will fluctuate outside the normal range (NR) offers motherboard circuit 20; Control unit 303 is through screening alternating voltage; Can reduce motherboard circuit 20 handled data volumes, help alleviating the processing burden of motherboard circuit 20.For the alternating voltage within normal range (NR), control unit 303 can abandon it, does not offer motherboard circuit 20.
Further, control unit 303 can also during greater than the normal range (NR) higher limit or less than the normal range (NR) lower limit, send a warning message to motherboard circuit 20 at alternating voltage.Control unit 303 can point out 20 pairs of these alternating voltages of motherboard circuit to do further processing through sending a warning message to motherboard circuit 20; Help improving the promptness that 20 pairs of these alternating voltages of motherboard circuit are handled, can further reduce the probability that loss of data takes place.
Wherein, normal range (NR) higher limit and normal range (NR) lower limit also can be pre-configured in the memory space of control unit 303, for example can be configured among the Flash of control unit 303.On the control unit 303 on pre-configured normal range (NR) higher limit and normal range (NR) lower limit and the motherboard circuit 20 pre-configured normal range (NR) higher limit identical with the normal range (NR) lower limit, no longer carefully state at this.
Further; The motherboard circuit 20 of present embodiment is except receiving control unit 303 alternating voltage and/or warning information that alternating voltage sends during greater than the normal range (NR) higher limit or less than the normal range (NR) lower limit; Motherboard circuit 20 can also be within the normal range (NR) at alternating voltage; Be that alternating voltage is when being not more than the normal range (NR) higher limit and being not less than the normal range (NR) lower limit; First output through control unit 303 obtains instruction to control unit 303 transmission sampled values, to obtain the alternating voltage sampled value.Correspondingly, control unit 303 can also receive the sampled value that motherboard circuit 20 sends through its first output obtain instruction, and obtains instruction according to sampled value, and first output through control unit 303 sends alternating voltages to motherboard circuit 20.
In this explanation, the alternating voltage sampled value that alternating current sampling circuit 301 offers control unit 303 is a real time data, and the alternating voltage that control unit 303 offers motherboard circuit 20 also is a real time data.
Further, shown in Fig. 3 A, the adapter 10 of present embodiment mainly comprise elementary 101 with secondary 102 two parts.Wherein, elementary 101 mainly are connected with ac power output, are used to receive the alternating voltage of input.Secondary 102 are connected with elementary 101.Preferably, adapter 10 can adopt common Switching Power Supply to realize, realizes that cost is lower.
Owing to elementary 101 1 sides that are in of control unit 303, and main circuit board 20 is in secondary 102 1 sides, and noise jamming between the two etc. are comparatively serious.In order to address this problem, first output of control unit 303 can be connected with motherboard circuit 20 through photoelectric coupled circuit, realizes signal transmission and noise isolation between control unit 303 and the motherboard circuit 20, shown in Fig. 3 A.
Further, shown in Fig. 3 A, the power supply circuits of present embodiment can also comprise: overvoltage crowbar 40.The input of overvoltage crowbar 40 is connected with ac power output, and the output of overvoltage crowbar 40 is connected with the input of adapter 10 and the input of alternating current sampling circuit 301 respectively.Just, ac power output is connected with the primary adapter 101 of adapter 10 and the input of alternating current sampling circuit 301 respectively through overvoltage crowbar 40.
Based on the existence of overvoltage crowbar 40, too high when alternating voltage, when for example a lot of greatly than early warning higher limit, overvoltage crowbar 40 can be blocked high pressure with protection motherboard circuit 20 and voltage detecting circuit 30.At this moment, motherboard circuit 20 all can quit work with voltage detecting circuit 30.In addition, when ac power output had a power failure suddenly, voltage detecting circuit 30 also all can quit work with motherboard circuit 20.At this moment, motherboard circuit 20 will sudden power and is had little time to preserve current data owing to voltage detecting circuit 30 also quits work.In order to prevent that in this extreme case generation loss of data, the power supply circuits of present embodiment also comprise stand-by power supply circuit 50 (shown in dotted portion among Fig. 3 A).Stand-by power supply circuit 50 is mainly used in after the output of overvoltage crowbar 40 blocking-up ac power outputs or when AC power has a power failure suddenly, to motherboard circuit 20 power supplies, so that motherboard circuit 20 can be preserved current data.
Concerning stand-by power supply circuit 50, it is not worked at ordinary times, but can bring in charging through the output of adapter 10.Based on this, the input of stand-by power supply circuit 50 is connected with adapter 10, is used for charging, shown in Fig. 3 A.In this explanation, the stand-by power supply circuit 50 of present embodiment can also be non-charge power supply.
In this explanation, the motherboard circuit 20 in the various embodiments of the present invention is except preserving current data, and the information of can also carrying out is sent.
The power supply circuits of present embodiment have increased voltage detecting circuit; Through voltage detecting circuit the alternating current of ac power output output is sampled, root tool alternating voltage sampled value calculates alternating voltage, then alternating voltage is offered motherboard circuit; Motherboard circuit is through comparing alternating voltage and early warning higher limit or early warning lower limit; Judge whether the situation of sudden power can take place according to comparative result, and when judging the situation that sudden power might take place, in time preserve current data to prevent loss of data; And control adapter through power sense circuit and close output, to prevent sudden power motherboard circuit is caused damage.
In the above-described embodiments, alternating current sampling circuit 301 can have a variety of implementations, for example can use existing integrated chip to realize, also can build through circuit common device (for example resistance, electric capacity etc.).The embodiment of the invention provides a kind of implementation structure of alternating current sampling circuit, and is as shown in Figure 4.The alternating current sampling circuit that present embodiment provides is made up of resistance R 1-resistance R 8 and capacitor C 1-capacitor C 3.Wherein, resistance R 1-resistance R 8 has constituted bleeder circuit.Capacitor C 3 is drawn the output of alternating current sampling circuit 301, is designated as V+ and V-.Wherein, output V+ and V-are used for passing to control unit 303 to the alternating voltage sampled value, handle obtaining alternating voltage for 303 pairs of alternating voltage sampled values of control unit.For example, control unit 303 can calculate alternating voltage through the dividing potential drop ratio.
This circuit structure is realized simple, and cost is lower.
In the above-described embodiments, control unit 303 can be by multiple implementation.Comparatively preferred, control unit 303 can directly use various integrated chips to realize, for example can use the chip of the MSP430x series of TI company, the serial realizations such as chip of BL6523x of BL company, but be not limited thereto.The embodiment of the invention provides a kind of structure of the control unit of being realized by integrated chip 303, and is as shown in Figure 5.Wherein, V+ and V-are the input pins of being responsible for receiving the alternating voltage sampled value; RST is a reset pin; AVCC is the analog power pin; DVCC is the digital power pin; AVSS is a simulation ground pin; DVSS is a pin digitally; RXD and TXD are serial line interfaces, i.e. first output; ENABLE is an I/O interface, i.e. second output; XO_OUT and XO_IN are the clock pins of this chip, and wherein crystal oscillator X1, capacitor C 1 and capacitor C 2 have constituted the clock circuit that master clock is provided to this chip.Wherein, the output V+ among Fig. 4 and V-respectively with Fig. 5 in input pin V+ be connected with V-.
In the above-described embodiments, ac-dc converter circuit 302 can for example can be realized through power supply chip by multiple implementation, also can build through discrete device, does not limit here.
In the above-described embodiments, the stand-by power supply circuit 50 in the power supply circuits can adopt the electric capacity scheme to realize, also can adopt the battery scheme to realize.And because the existence of voltage detecting circuit 30 is arranged, the frequency of utilization of stand-by power supply circuit 50 is not very high, and only is used to supply motherboard circuit 20 to preserve the data use, so less demanding to the energy storage capacity of electric capacity or battery.
When using the battery scheme to realize stand-by power supply circuit 50, can use common lithium battery, but be not limited thereto.
Wherein, use the electric capacity scheme to realize that stand-by power supply circuit 50 is more preferred implementation.Present embodiment provides a kind of structure of using the stand-by power supply circuit 50 of electric capacity realization, and is as shown in Figure 6.The stand-by power supply circuit 50 of present embodiment mainly is made up of diode D1-D4, current-limiting resistance R and super capacitor group C.Wherein, the super capacitor group can be the capacitance group of a farad level.The capacity of super capacitor can be done suitable selection according to the requirement of motherboard circuit 20 power consumptions, for example can use 2 capacitances in series to realize.
As shown in Figure 6, input can be connected with the output of adapter 10, and output is connected with the electric power management circuit of motherboard circuit 20.Concrete, during the power supply circuits operate as normal, the output of adapter 10 gives motherboard circuit 20 power supplies on the one hand, charges to the super capacitor group through current-limiting resistance on the other hand; When power supply circuits need be closed output, the super capacitor group can continue can not pour in down a chimney back in the adapter 10 simultaneously to motherboard circuit 20 power supplies.
The implementation structure of the stand-by power supply circuit that present embodiment provides is simple, be easy to realize, and cost is lower, and useful life is longer.
In the above-described embodiments, control unit 303 is connected the photoelectric coupled circuit of using and can be realized by multiple mode with motherboard circuit 20.The embodiment of the invention provides a kind of concrete implementation structure of photoelectric coupled circuit, and is as shown in Figure 7.The photoelectric coupled circuit of present embodiment mainly comprises: optocoupler D1 and optocoupler D2, and the peripheral circuit of optocoupler D1 and optocoupler D2 formation, it specifically realizes being not described in detail in this referring to shown in Figure 7.
Wherein, TXD shown in Figure 7 and RXD respectively with Fig. 5 in serial line interface TXD be connected with RXD, the CPU_RX among Fig. 7 and CPU_TX respectively with motherboard circuit 20 on serial line interface be connected.VCC among Fig. 7 is the power supply of control unit 303 1 ends, and VddIO is the power supply of motherboard circuit 20 1 ends.
In sum, the embodiment of the invention can realize the intelligent management of power supply very like a cork, and in time storage and information transmit; Be applicable to the end product or the equipment of directly supplying power by civil power or industrial electrical network; Like the power protection and the data protection of home terminal, power equipment etc., occur to give warning in advance when unusual at civil power or industrial electrical network voltage; And make corresponding action, needn't wait until after danger arrives and just make a response.In addition, the power supply circuits that the embodiment of the invention provides only need increase an alternating current sampling circuit and the control unit that can handle the alternating voltage sampling, and a small-power ac-dc converter circuit is supplied power to control unit; Several common photoelectric coupled circuit, a stand-by power supply circuit realizes that cost is lower; But reliability is high; Select the device of technical grade for use, machine life can reach more than 10 years, and cost performance is high; The power consumption of control unit is very little in addition, and power consumption increases few.
The flow chart of the method for supplying power to that Fig. 8 provides for one embodiment of the invention.The method of supplying power to of present embodiment can use Fig. 1 or power supply circuits shown in Figure 2 to realize, just the operation principle of power supply circuits.As shown in Figure 8, the method for supplying power to of present embodiment comprises:
Step 801, voltage detecting circuit are sampled to the alternating voltage of being imported by the input of voltage detecting circuit, calculate alternating voltage according to the alternating voltage sampled value, then alternating voltage are offered motherboard circuit.
Step 802, motherboard circuit compare alternating voltage and preset early warning higher limit or preset early warning lower limit; And at alternating voltage during greater than the early warning higher limit or less than the early warning lower limit; Preserve current data, and send out code to voltage detecting circuit through first output of voltage detecting circuit.
Step 803, voltage detecting circuit receive out code, and control adapter through second output of voltage detecting circuit, so that adapter stops to supply power to motherboard circuit.
Wherein, under normal circumstances, adapter converts the alternating current of ac power output output direct current into and exports to motherboard circuit, to supply power to motherboard circuit.
The input of voltage detecting circuit is connected with ac power output, is used for to voltage detecting circuit alternating current being provided.By voltage detecting circuit the alternating voltage of input is sampled, calculate alternating voltage, then alternating voltage is offered motherboard circuit according to the alternating voltage sampled value.Motherboard circuit compares with preset early warning higher limit or early warning lower limit through the alternating voltage that voltage detecting circuit is provided; Judge whether to occur making the situation of motherboard circuit sudden power according to comparative result; And judging to have the situation that makes the motherboard circuit sudden power time; In time preserve current data; And, make voltage detecting circuit control adapter make adapter stop to prevent like this motherboard circuit to be caused damage because of sudden power occurring to the motherboard circuit power supply through sending out code to voltage detecting circuit.
Wherein, motherboard circuit confirms to make the situation of its sudden power when judging alternating voltage greater than the early warning higher limit or less than the early warning lower limit.
The method of supplying power to of present embodiment is realized based on the power supply circuits that the embodiment of the invention provides; Through voltage detecting circuit the alternating current of ac power output output is sampled; Calculate alternating voltage according to the alternating voltage sampled value; Then alternating voltage is offered motherboard circuit, motherboard circuit judges whether to take place the situation of sudden power through alternating voltage and early warning higher limit or early warning lower limit are compared according to comparative result; And when judging the situation that sudden power might take place; In time preserve current data preventing loss of data, and stop preventing sudden power motherboard circuit being caused damage to the motherboard circuit power supply through power sense circuit control adapter.
The flow chart of the method for supplying power to that Fig. 9 provides for another embodiment of the present invention.Present embodiment can be realized based on Fig. 1 or power supply circuits shown in Figure 2 equally.As shown in Figure 9, the method for present embodiment comprises:
Step 901, voltage detecting circuit are sampled to the alternating voltage of being imported by the input of voltage detecting circuit, calculate alternating voltage according to the alternating voltage sampled value, then alternating voltage are offered motherboard circuit.
Step 902, motherboard circuit compare alternating voltage and preset early warning higher limit or preset early warning lower limit, to judge that whether alternating voltage is greater than the early warning higher limit or less than the early warning lower limit; If judged result is for being execution in step 903; If judged result is for denying execution in step 905.
If judged result is for being to explain that alternating voltage is greater than the early warning higher limit or less than the early warning lower limit; If judged result explains that for not alternating voltage is not more than the early warning higher limit and is not less than the early warning lower limit.
Step 903, motherboard circuit are preserved current data, and send out code through first output of voltage detecting circuit to voltage detecting circuit, so that controlling adapter, voltage detecting circuit stops to the motherboard circuit power supply, and execution in step 904.
Step 904, voltage detecting circuit receive out code, and second output control adapter through voltage detecting circuit, so that adapter stops to the motherboard circuit power supply, and execution in step 907.
Step 905, motherboard circuit compare alternating voltage and preset normal range (NR) higher limit or preset normal range (NR) lower limit, to judge that whether alternating voltage is greater than preset normal range (NR) higher limit or less than preset normal range (NR) lower limit; If judged result is for being execution in step 906; If judged result is for denying execution in step 907.
If judged result is for being to explain that alternating voltage is greater than preset normal range (NR) higher limit or less than preset normal range (NR) lower limit, outside with normal range (NR); If judged result explains that alternating voltage is not more than preset normal range (NR) higher limit and is not less than preset normal range (NR) lower limit, within normal range (NR) for not.
Step 906, motherboard circuit are preserved current data, and report the unsettled information of alternating voltage to administrative center, and execution in step 907.
Optional; Motherboard circuit, and continues greater than the normal range (NR) higher limit after first fixed time greater than the normal range (NR) higher limit at alternating voltage, perhaps at alternating voltage less than the normal range (NR) lower limit; And continue less than the normal range (NR) lower limit after second fixed time; Just carry out and preserve current data, and the operation that reports the unsettled information of alternating voltage to administrative center, help improving the accuracy that judges whether to take place sudden power.
Step 907, end operation this time.
Further, voltage detecting circuit can comprise alternating current sampling circuit, ac-dc converter circuit and control unit.
Based on this, step 901 specifically can be: the alternating current sampling circuit in the voltage detecting circuit is sampled to the alternating voltage of being imported by the input of alternating current sampling circuit, and the alternating voltage sampled value is offered the control unit in the voltage detecting circuit; Control unit calculates alternating voltage according to the alternating voltage sampled value, and first output through control unit offers motherboard circuit with interchange then.
Optional, the alternating voltage that control unit can directly will calculate according to the AC sampling value that alternating current sampling circuit provides through first output of control unit offers motherboard circuit.
Optional; Control unit can also compare alternating voltage and preset normal range (NR) higher limit or preset normal range (NR) lower limit; At alternating voltage during greater than the normal range (NR) higher limit or less than the normal range (NR) lower limit, first output through control unit offers motherboard circuit with alternating voltage.
Further, control unit can also during greater than the normal range (NR) higher limit or less than the normal range (NR) lower limit, send a warning message to motherboard circuit at alternating voltage.
Motherboard circuit through first output of voltage detecting circuit to voltage detecting circuit transmission out code specifically can be in the step 903: motherboard circuit sends out code through first output of control unit to control unit.
Step 904 specifically can be: control unit receives out code, and controls adapter through second output of control unit, so that adapter stops to supply power to motherboard circuit.
In said process; Especially be not more than preset normal range (NR) higher limit and be not less than preset normal range (NR) lower limit at alternating voltage; In the time of promptly within normal range (NR), motherboard circuit can also send sampled value to control unit through first output of control unit and obtain instruction.Accordingly, control unit obtains instruction according to sampled value, and first output through control unit sends alternating voltage to motherboard circuit.
The method of supplying power to of present embodiment is realized based on the power supply circuits that the embodiment of the invention provides; Through voltage detecting circuit the alternating current of ac power output output is sampled; Calculate alternating voltage according to the alternating voltage sampled value; Then alternating voltage is offered motherboard circuit, motherboard circuit judges whether to take place the situation of sudden power through alternating voltage sampled value and early warning higher limit or early warning lower limit are compared according to comparative result; And when judging the situation that sudden power might take place; In time preserve current data preventing loss of data, and close output, motherboard circuit is caused damage to prevent sudden power through power sense circuit control adapter.
A kind of electric equipment that one embodiment of the invention provides comprises: power supply circuits.
Wherein, power supply circuits comprise: adapter, motherboard circuit and voltage detecting circuit.
Wherein, the input of adapter is connected with ac power output, and the output of adapter is connected with motherboard circuit.Adapter, be used for to the input alternating voltage handle and output DC to supply power to motherboard circuit.
The input of voltage detecting circuit is connected with ac power output, and first output of voltage detecting circuit is connected with motherboard circuit, and second output of voltage detecting circuit is connected with adapter.Voltage detecting circuit; Be used for the alternating voltage of input is sampled; Calculate alternating voltage according to the alternating voltage sampled value, alternating voltage is offered motherboard circuit, and receive the out code that motherboard circuit sends; Control adapter according to out code through second output, so that adapter stops to supply power to motherboard circuit.
Motherboard circuit; Alternating voltage that is used for voltage detecting circuit is provided and preset early warning higher limit or preset early warning lower limit compare; At alternating voltage during greater than the early warning higher limit or less than the early warning lower limit; Preserve current data, and export out code to voltage detecting circuit through first output of voltage detecting circuit.
Wherein, the operation principle of power supply circuits and structure can repeat no more at this referring to description embodiment illustrated in fig. 2.
The electric equipment of present embodiment can be end product or the equipment that various use civil powers or industrial electrical network are directly supplied power, for example home terminal, power equipment etc.Illustrating, can be washing machine, refrigerator etc. as the electric equipment of home terminal; Electric equipment as power equipment can be an electric power gateway etc.
The electric equipment of present embodiment is owing to comprise power supply circuits; Power supply circuits have increased voltage detecting circuit; Through voltage detecting circuit the alternating current of ac power output output is sampled, calculate alternating voltage, then alternating voltage is offered motherboard circuit according to the alternating voltage sampled value; Motherboard circuit is through comparing alternating voltage and early warning higher limit or early warning lower limit; Judge whether the situation of sudden power can take place according to comparative result, and when judging the situation that sudden power might take place, in time preserve current data to prevent loss of data; And close its output through power sense circuit control adapter and stop preventing sudden power motherboard circuit being caused damage to the motherboard circuit power supply.
Further; Motherboard circuit in the power supply circuits in the above-mentioned electric equipment can also be used for when alternating voltage is not more than the early warning higher limit and is not less than the early warning lower limit; Alternating voltage and preset normal range (NR) higher limit or preset normal range (NR) lower limit are compared; During greater than the normal range (NR) higher limit or less than the normal range (NR) lower limit, preserve current data at alternating voltage, and report the unsettled information of alternating voltage to administrative center.Motherboard circuit is in time preserved current data and situation is reported when finding that alternating voltage fluctuates outside the normal range (NR), can further reduce loss of data or the impaired probability of motherboard circuit.
Further; Motherboard circuit in the power supply circuits in the above-mentioned electric equipment can specifically be used at alternating voltage greater than the normal range (NR) higher limit; And continue greater than the normal range (NR) higher limit after first fixed time, perhaps at alternating voltage less than the normal range (NR) lower limit, and continue less than the normal range (NR) lower limit after second fixed time; Preserve current data, and report the unsettled information of alternating voltage to administrative center.Motherboard circuit can improve in this way judges alternating voltage outside normal range (NR), whether can cause the accuracy of motherboard circuit sudden power when within the early warning range fluctuation taking place, to reduce the wasting of resources that erroneous judgement causes.
Further, the voltage detecting circuit in the power supply circuits in the above-mentioned electric equipment comprises: alternating current sampling circuit, ac-dc converter circuit and control unit.
Wherein, the input of alternating current sampling circuit is connected with ac power output, and the output of alternating current sampling circuit is connected with the input of control unit, and the input of alternating current sampling circuit is the input of voltage detecting circuit.Alternating current sampling circuit is used for the alternating voltage of input is sampled, and the alternating voltage sampled value is offered control unit.
The input of ac-dc converter circuit is connected with ac power output, and the output of ac-dc converter circuit is connected with control unit.Ac-dc converter circuit is used for converting the alternating voltage of input into direct current, and exports to control unit, to supply power to control unit.
First output of control unit is connected with motherboard circuit; Second output of control unit is connected with adapter; First output of control unit is first output of voltage detecting circuit, and second output of control unit is second output of voltage detecting circuit.Control unit; Be used for calculating alternating voltage according to the alternating voltage sampled value; First output through control unit offers motherboard circuit with alternating voltage then; And receive the out code that motherboard circuit is exported, then according to the second output control adapter of out code, so that adapter stops to supply power to motherboard circuit through control unit.
Further, first output of control unit can be connected with motherboard circuit through photoelectric coupled circuit.
Further, first output of control unit can be a string line interface.Second output of control unit can be an I/O interface.
Further; Control unit specifically can be used for alternating voltage and preset normal range (NR) higher limit or preset normal range (NR) lower limit are compared; At alternating voltage during greater than the normal range (NR) higher limit or less than the normal range (NR) lower limit, first output through control unit offers motherboard circuit with alternating voltage.Alternating voltage because control unit only will fluctuate outside the normal range (NR) offers motherboard circuit, and control unit can reduce the handled data volume of motherboard circuit through alternating voltage is screened, and helps alleviating the processing burden of motherboard circuit.And for the alternating voltage within normal range (NR), control unit can abandon it, does not offer motherboard circuit.
Further, control unit can also be used for, sending a warning message to motherboard circuit during greater than the normal range (NR) higher limit or less than the normal range (NR) lower limit at alternating voltage.Control unit can point out motherboard circuit that this alternating voltage is done further processing through sending a warning message to motherboard circuit, helps improving the promptness that motherboard circuit is handled this alternating voltage, can further reduce the probability that loss of data takes place.
Further, motherboard circuit can also be used for obtaining instruction through first output of control unit to control unit transmission sampled value.Especially when alternating voltage was not more than the normal range (NR) higher limit and is not less than the normal range (NR) lower limit, motherboard circuit can send sampled value to control unit through first output of control unit and obtain instruction.Correspondingly, control unit can also be used for obtaining instruction according to sampled value, and first output through control unit sends alternating voltage to motherboard circuit.
Further, the power supply circuits in the above-mentioned electric equipment can also comprise: overvoltage crowbar.
The input of overvoltage crowbar is connected with ac power output, and the output of overvoltage crowbar is connected with the input of adapter and the input of alternating current sampling circuit respectively.
Further, the power supply circuits in the above-mentioned electric equipment can also comprise: the stand-by power supply circuit.
The stand-by power supply circuit is used for after the output of overvoltage crowbar blocking-up ac power output to the motherboard circuit power supply, so that motherboard circuit is preserved current data.
Optional, the stand-by power supply circuit of present embodiment is a charge power supply, the input of stand-by power supply circuit is connected with the output of adapter, in order to charge through adapter.
The structure of power supply circuits and operation principle can repeat no more at this referring to the description of Fig. 3 A illustrated embodiment in the above-mentioned electric equipment.
The electric equipment of present embodiment is owing to comprise power supply circuits; Power supply circuits have increased voltage detecting circuit; Through voltage detecting circuit the alternating current of ac power output output is sampled, calculate alternating voltage, then alternating voltage is offered motherboard circuit according to the alternating voltage sampled value; Motherboard circuit is through comparing alternating voltage and early warning higher limit or early warning lower limit; Judge whether the situation of sudden power can take place according to comparative result, and when judging the situation that sudden power might take place, in time preserve current data to prevent loss of data; And close its output through power sense circuit control adapter and stop preventing sudden power motherboard circuit being caused damage to the motherboard circuit power supply.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be accomplished through the relevant hardware of program command; Aforesaid program can be stored in the computer read/write memory medium; This program the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
What should explain at last is: above each embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although the present invention has been carried out detailed explanation with reference to aforementioned each embodiment; Those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, perhaps to wherein part or all technical characteristic are equal to replacement; And these are revised or replacement, do not make the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.

Claims (23)

1. power supply circuits is characterized in that, comprising: adapter, motherboard circuit and voltage detecting circuit;
The input of said adapter is connected with ac power output, and the output of said adapter is connected with said motherboard circuit, said adapter, be used for to the alternating voltage of input handle and output DC to give said motherboard circuit power supply;
The input of said voltage detecting circuit is connected with said ac power output; First output of said voltage detecting circuit is connected with said motherboard circuit, and second output of said voltage detecting circuit is connected with said adapter, said voltage detecting circuit; Be used for the alternating voltage of input is sampled; Calculate alternating voltage according to the alternating voltage sampled value, said alternating voltage is offered said motherboard circuit, and receive the out code that said motherboard circuit sends; Control said adapter according to said out code through said second output, so that said adapter stops to said motherboard circuit power supply;
Said motherboard circuit; Alternating voltage that is used for said voltage detecting circuit is provided and preset early warning higher limit or preset early warning lower limit compare; At said alternating voltage during greater than said early warning higher limit or less than said early warning lower limit; Preserve current data, and export said out code to said voltage detecting circuit through first output of said voltage detecting circuit.
2. power supply circuits according to claim 1; It is characterized in that; Said motherboard circuit also is used for when said alternating voltage is not more than said early warning higher limit and be not less than said early warning lower limit, said alternating voltage and preset normal range (NR) higher limit or preset normal range (NR) lower limit is compared, at said alternating voltage during greater than said normal range (NR) higher limit or less than said normal range (NR) lower limit; Preserve said current data, and report the unsettled information of alternating voltage to administrative center.
3. power supply circuits according to claim 2; It is characterized in that said motherboard circuit specifically is used at said alternating voltage greater than said normal range (NR) higher limit, and continue greater than said normal range (NR) higher limit after first fixed time; Perhaps at said alternating voltage less than said normal range (NR) lower limit; And continue after second fixed time, to preserve said current data, and report the unsettled information of alternating voltage to said administrative center less than said normal range (NR) lower limit.
4. according to claim 1 or 2 or 3 described power supply circuits, it is characterized in that said voltage detecting circuit comprises: alternating current sampling circuit, ac-dc converter circuit and control unit;
The input of said alternating current sampling circuit is connected with said ac power output, and the output of said alternating current sampling circuit is connected with the input of said control unit, and the input of said alternating current sampling circuit is the input of said voltage detecting circuit; Said alternating current sampling circuit is used for the alternating voltage of said input is sampled, and said alternating voltage sampled value is offered said control unit;
The input of said ac-dc converter circuit is connected with said ac power output; The output of said ac-dc converter circuit is connected with said control unit; Said ac-dc converter circuit; Be used for converting the alternating voltage of said input into direct current, and export to said control unit, to supply power to said control unit;
First output of said control unit is connected with said motherboard circuit; Second output of said control unit is connected with said adapter; First output of said control unit is first output of said voltage detecting circuit, and second output of said control unit is second output of said voltage detecting circuit; Said control unit; Be used for calculating said alternating voltage according to said alternating voltage sampled value; First output through said control unit offers said motherboard circuit with said alternating voltage; And receive the said out code that said motherboard circuit is exported, control said adapter according to said out code through second output of said control unit then, so that said adapter stops to said motherboard circuit power supply.
5. power supply circuits according to claim 4 is characterized in that, first output of said control unit is connected with said motherboard circuit through photoelectric coupled circuit.
6. according to claim 4 or 5 described power supply circuits, it is characterized in that first output of said control unit is a serial line interface.
7. according to claim 4 or 5 described power supply circuits; It is characterized in that; Said control unit specifically is used for said alternating voltage and preset normal range (NR) higher limit or preset normal range (NR) lower limit are compared; At said alternating voltage during greater than said normal range (NR) higher limit or less than said normal range (NR) lower limit, first output through said control unit offers said motherboard circuit with said alternating voltage.
8. power supply circuits according to claim 7 is characterized in that, said control unit also is used for, sending a warning message to said motherboard circuit during greater than said normal range (NR) higher limit or less than said normal range (NR) lower limit at said alternating voltage.
9. according to claim 4 or 5 or 7 or 8 described power supply circuits, it is characterized in that said motherboard circuit also is used for obtaining instruction through first output of said control unit to said control unit transmission sampled value;
Said control unit also is used for obtaining instruction according to said sampled value, and first output through said control unit sends said alternating voltage to said motherboard circuit.
10. according to claim 4 or 5 or 6 or 7 or 8 or 9 described power supply circuits, it is characterized in that, also comprise: overvoltage crowbar;
The input of said overvoltage crowbar is connected with said ac power output, and the output of said overvoltage crowbar is connected with the input of said adapter and the input of said alternating current sampling circuit respectively.
11. power supply circuits according to claim 10 is characterized in that, also comprise: the stand-by power supply circuit;
Said stand-by power supply circuit is used for after said overvoltage crowbar is blocked the output of said ac power output to said motherboard circuit power supply, so that said motherboard circuit is preserved said current data.
12. an electric equipment is characterized in that, comprising: power supply circuits;
Said power supply circuits comprise: adapter, motherboard circuit and voltage detecting circuit;
The input of said adapter is connected with ac power output, and the output of said adapter is connected with said motherboard circuit, said adapter, be used for to the alternating voltage of input handle and output DC to give said motherboard circuit power supply;
The input of said voltage detecting circuit is connected with said ac power output; First output of said voltage detecting circuit is connected with said motherboard circuit, and second output of said voltage detecting circuit is connected with said adapter, said voltage detecting circuit; Be used for the alternating voltage of input is sampled; Calculate alternating voltage according to the alternating voltage sampled value, said alternating voltage is offered said motherboard circuit, and receive the out code that said motherboard circuit sends; Control said adapter according to said out code through said second output, so that said adapter stops to said motherboard circuit power supply;
Said motherboard circuit; Alternating voltage that is used for said voltage detecting circuit is provided and preset early warning higher limit or preset early warning lower limit compare; At said alternating voltage during greater than said early warning higher limit or less than said early warning lower limit; Preserve current data, and export said out code to said voltage detecting circuit through first output of said voltage detecting circuit.
13. electric equipment according to claim 12; It is characterized in that; Said motherboard circuit also is used for when said alternating voltage is not more than said early warning higher limit and be not less than said early warning lower limit; Said alternating voltage and preset normal range (NR) higher limit or preset normal range (NR) lower limit are compared;, preserve said current data, and report the unsettled information of alternating voltage during at said alternating voltage to administrative center greater than said normal range (NR) higher limit or less than said normal range (NR) lower limit.
14. electric equipment according to claim 13; It is characterized in that said motherboard circuit specifically is used at said alternating voltage greater than said normal range (NR) higher limit, and continue greater than said normal range (NR) higher limit after first fixed time; Perhaps at said alternating voltage less than said normal range (NR) lower limit; And continue after second fixed time, to preserve said current data, and report the unsettled information of alternating voltage to said administrative center less than said normal range (NR) lower limit.
15., it is characterized in that said voltage detecting circuit comprises: alternating current sampling circuit, ac-dc converter circuit and control unit according to claim 12 or 13 or 14 described electric equipments;
The input of said alternating current sampling circuit is connected with said ac power output, and the output of said alternating current sampling circuit is connected with the input of said control unit, and the input of said alternating current sampling circuit is the input of said voltage detecting circuit; Said alternating current sampling circuit is used for the alternating voltage of said input is sampled, and said alternating voltage sampled value is offered said control unit;
The input of said ac-dc converter circuit is connected with said ac power output; The output of said ac-dc converter circuit is connected with said control unit; Said ac-dc converter circuit; Be used for converting the alternating voltage of said input into direct current, and export to said control unit, to supply power to said control unit;
First output of said control unit is connected with said motherboard circuit; Second output of said control unit is connected with said adapter; First output of said control unit is first output of said voltage detecting circuit, and second output of said control unit is second output of said voltage detecting circuit; Said control unit; Be used for calculating said alternating voltage according to said alternating voltage sampled value; First output through said control unit offers said motherboard circuit with said alternating voltage; And receive the said out code that said motherboard circuit is exported, control said adapter according to said out code through second output of said control unit then, so that said adapter stops to said motherboard circuit power supply.
16. electric equipment according to claim 15 is characterized in that, first output of said control unit is connected with said motherboard circuit through photoelectric coupled circuit.
17., it is characterized in that first output of said control unit is a serial line interface according to claim 15 or 16 described electric equipments.
18. according to claim 15 or 16 described electric equipments; It is characterized in that; Said control unit specifically is used for said alternating voltage and preset normal range (NR) higher limit or preset normal range (NR) lower limit are compared; At said alternating voltage during greater than said normal range (NR) higher limit or less than said normal range (NR) lower limit, first output through said control unit offers said motherboard circuit with said alternating voltage.
19. electric equipment according to claim 18 is characterized in that, said control unit also is used for, sending a warning message to said motherboard circuit during greater than said normal range (NR) higher limit or less than said normal range (NR) lower limit at said alternating voltage.
20., it is characterized in that said motherboard circuit also is used for obtaining instruction through first output of said control unit to said control unit transmission sampled value according to claim 15 or 16 or 18 or 19 described electric equipments;
Said control unit also is used for obtaining instruction according to said sampled value, and first output through said control unit sends said alternating voltage to said motherboard circuit.
21., it is characterized in that said power supply circuits also comprise: overvoltage crowbar according to claim 15 or 16 or 17 or 18 or 19 or 20 described electric equipments;
The input of said overvoltage crowbar is connected with said ac power output, and the output of said overvoltage crowbar is connected with the input of said adapter and the input of said alternating current sampling circuit respectively.
22. electric equipment according to claim 21 is characterized in that, said power supply circuits also comprise: the stand-by power supply circuit;
Said stand-by power supply circuit is used for after said overvoltage crowbar is blocked the output of said ac power output to said motherboard circuit power supply, so that said motherboard circuit is preserved said current data.
23., it is characterized in that said electric equipment is the electric power gateway according to each described electric equipment of claim 12-22.
CN201280000213.3A 2012-03-05 2012-03-05 Power supply circuit and electric appliance Active CN102687358B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/071942 WO2013131236A1 (en) 2012-03-05 2012-03-05 Power supply circuit and electrical device

Publications (2)

Publication Number Publication Date
CN102687358A true CN102687358A (en) 2012-09-19
CN102687358B CN102687358B (en) 2014-06-11

Family

ID=46817250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201280000213.3A Active CN102687358B (en) 2012-03-05 2012-03-05 Power supply circuit and electric appliance

Country Status (2)

Country Link
CN (1) CN102687358B (en)
WO (1) WO2013131236A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104008022A (en) * 2013-02-20 2014-08-27 三星电子株式会社 Adjusting operation of an electronic device in response to a sudden-power-off (SPO) event
CN106451798A (en) * 2016-09-20 2017-02-22 宁德时代新能源科技股份有限公司 Starting method and device
CN107888086A (en) * 2016-09-27 2018-04-06 快捷半导体有限公司 The reduction of the electric size of large value capacitor in portable power source
CN108199340A (en) * 2018-01-22 2018-06-22 珠海格力电器股份有限公司 State monitoring device and method and air-conditioning
CN108494084A (en) * 2018-04-13 2018-09-04 联想(北京)有限公司 A kind of server power supply, server, method of supplying power to and device
CN112234690A (en) * 2020-12-15 2021-01-15 鹏城实验室 Power supply protection circuit, apparatus and method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060044157A1 (en) * 2004-08-27 2006-03-02 Itron Electricity Metering, Inc. Firmware power cycle routine
JP2006304437A (en) * 2005-04-18 2006-11-02 Showa Dengyosha:Kk Power supply instantaneous interruption generation device
CN2896292Y (en) * 2005-12-08 2007-05-02 兆日科技(深圳)有限公司 Circuit for detecting external voltage
CN201499011U (en) * 2009-09-16 2010-06-02 青岛海信智能商用设备有限公司 Network fiscal processor
CN201639344U (en) * 2009-12-31 2010-11-17 富比国际有限公司 Device capable of protecting vehicle-mounted electronic equipment after abnormal power-off
KR20110018991A (en) * 2009-08-19 2011-02-25 엘지전자 주식회사 Apparatus and method for power supply
CN201758389U (en) * 2010-08-23 2011-03-09 华为终端有限公司 Mobile terminal power supply equipment and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060044157A1 (en) * 2004-08-27 2006-03-02 Itron Electricity Metering, Inc. Firmware power cycle routine
JP2006304437A (en) * 2005-04-18 2006-11-02 Showa Dengyosha:Kk Power supply instantaneous interruption generation device
CN2896292Y (en) * 2005-12-08 2007-05-02 兆日科技(深圳)有限公司 Circuit for detecting external voltage
KR20110018991A (en) * 2009-08-19 2011-02-25 엘지전자 주식회사 Apparatus and method for power supply
CN201499011U (en) * 2009-09-16 2010-06-02 青岛海信智能商用设备有限公司 Network fiscal processor
CN201639344U (en) * 2009-12-31 2010-11-17 富比国际有限公司 Device capable of protecting vehicle-mounted electronic equipment after abnormal power-off
CN201758389U (en) * 2010-08-23 2011-03-09 华为终端有限公司 Mobile terminal power supply equipment and mobile terminal

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104008022A (en) * 2013-02-20 2014-08-27 三星电子株式会社 Adjusting operation of an electronic device in response to a sudden-power-off (SPO) event
CN106451798A (en) * 2016-09-20 2017-02-22 宁德时代新能源科技股份有限公司 Starting method and device
CN107888086A (en) * 2016-09-27 2018-04-06 快捷半导体有限公司 The reduction of the electric size of large value capacitor in portable power source
CN107888086B (en) * 2016-09-27 2021-01-08 快捷半导体有限公司 Reduction of electrical size of large-capacity capacitor in mobile power supply
CN108199340A (en) * 2018-01-22 2018-06-22 珠海格力电器股份有限公司 State monitoring device and method and air-conditioning
CN108494084A (en) * 2018-04-13 2018-09-04 联想(北京)有限公司 A kind of server power supply, server, method of supplying power to and device
CN112234690A (en) * 2020-12-15 2021-01-15 鹏城实验室 Power supply protection circuit, apparatus and method

Also Published As

Publication number Publication date
WO2013131236A1 (en) 2013-09-12
CN102687358B (en) 2014-06-11

Similar Documents

Publication Publication Date Title
CN102687358B (en) Power supply circuit and electric appliance
CN1794001B (en) Method for verifying smart battery failures by measuring input charging voltage and associated systems
CN102882248B (en) Battery management chip, battery management system and method
US8358103B2 (en) Automatic coupling of an alternating current power source and an inductive power apparatus to charge a target device battery
CN100420132C (en) Enabling circuit for avoiding negative voltage transients and battery recharging system
CN101267120B (en) Method for identifying power device and its circuit
CN107064823A (en) A kind of system for testing power panel and its method for testing power panel
CN101431256A (en) Power-off protection apparatus
US20240120729A1 (en) Fault handling system of solid-state transformer
CN105529944A (en) Power adapter and electronic system using same
CN104238711A (en) Voltage source stack system
US20170269131A1 (en) Electronic device
CN101567569A (en) Switched power supply and electronic device applying same
CN103259304A (en) Intelligent UPS
WO2018214262A1 (en) Encoding chip and cell supervision circuit
CN201374570Y (en) UPS with power-on self-checking function
CN205725129U (en) A kind of FTU power supply possessing double loop power supply input function
CN204649888U (en) A kind of novel lan device electrical interface identification circuit
JP2018196245A (en) DC power supply system
Bharadwaj et al. Smart Uninterrupted Power Supply for Automotive Applications
Giuntini Power quality, load and efficiency in UPS installations
CN104868567A (en) Method for performing wireless charging control of an electronic device with aid of frequency detection, and associated apparatus
CN109167431A (en) A kind of anti-lost electric system, method and power supply system storing equipment
CN219499029U (en) Uninterruptible power supply system
US10440667B2 (en) Access terminal

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee after: Huawei terminal (Shenzhen) Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee before: HUAWEI DEVICE Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190107

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: HUAWEI DEVICE Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee before: Huawei terminal (Shenzhen) Co.,Ltd.