CN102687358B - Power supply circuit and electric appliance - Google Patents

Power supply circuit and electric appliance Download PDF

Info

Publication number
CN102687358B
CN102687358B CN201280000213.3A CN201280000213A CN102687358B CN 102687358 B CN102687358 B CN 102687358B CN 201280000213 A CN201280000213 A CN 201280000213A CN 102687358 B CN102687358 B CN 102687358B
Authority
CN
China
Prior art keywords
circuit
output
alternating voltage
control unit
normal range
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.)
Active
Application number
CN201280000213.3A
Other languages
Chinese (zh)
Other versions
CN102687358A (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 directly be powered with civil power or industrial electrical network, and the main board power supply that is electronic product by adapter.Because the voltage of electrical network is often unstable, so often there will be the situation that causes mainboard damage or loss of data because of voltage fluctuation.General electronic product can design overvoltage crowbar, as shown in Figure 1.When ac input voltage exceedes dangerous threshold, be for example greater than after interchange (AC) 380V (can be designated as 380AC), overvoltage crowbar can be blocked high pressure, and now mainboard will quit work immediately because of power-off.And for brownout, for example, be less than 90VAC, or situation about having a power failure, mainboard also can quit work because of power-off.
No matter brownout or power failure or by overvoltage crowbar blocking-up high pressure, all power-off suddenly and have little time protected data of mainboard, thus cause loss of data.
Summary of the invention
The invention provides a kind of power supply circuits and electric equipment, cause the problem of loss of data in order to solve mainboard because of suddenly power-off.
The embodiment of the present invention provides a kind of power supply circuits, comprising: adapter, motherboard circuit and voltage detecting circuit;
The input of described adapter is connected with ac power output, and the output of described adapter is connected with described motherboard circuit, and described adapter, for processing and export direct current to power to described motherboard circuit to the alternating voltage of input;
The input of described voltage detecting circuit is connected with described ac power output, the first output of described voltage detecting circuit is connected with described motherboard circuit, the second output of described voltage detecting circuit is connected with described adapter, described voltage detecting circuit, for the alternating voltage of input is sampled, calculate alternating voltage according to alternating voltage sampled value, described alternating voltage is offered to described motherboard circuit, and receive the out code that described motherboard circuit sends, according to described out code by adapter described in described the second output control, so that described adapter stops to described motherboard circuit power supply,
Described motherboard circuit, compare for alternating voltage that described voltage detecting circuit is provided and default early warning higher limit or default early warning lower limit, in the time that described alternating voltage is greater than described early warning higher limit or is less than described early warning lower limit, preserve current data, and export described out code by the first output of described voltage detecting circuit to described voltage detecting circuit.
The embodiment of the present invention provides a kind of electric equipment, comprising: power supply circuits;
Described power supply circuits comprise; Adapter, motherboard circuit and voltage detecting circuit;
The input of described adapter is connected with ac power output, and the output of described adapter is connected with described motherboard circuit, and described adapter, for processing and export direct current to power to described motherboard circuit to the alternating voltage of input;
The input of described voltage detecting circuit is connected with described ac power output, the first output of described voltage detecting circuit is connected with described motherboard circuit, the second output of described voltage detecting circuit is connected with described adapter, described voltage detecting circuit, for the alternating voltage of input is sampled, calculate alternating voltage according to alternating voltage sampled value, described alternating voltage is offered to described motherboard circuit, and receive the out code that described motherboard circuit sends, according to described out code by adapter described in described the second output control, so that described adapter stops to described motherboard circuit power supply,
Described motherboard circuit, compare for alternating voltage that described voltage detecting circuit is provided and default early warning higher limit or default early warning lower limit, in the time that described alternating voltage is greater than described early warning higher limit or is less than described early warning lower limit, preserve current data, and export described out code by the first output of described voltage detecting circuit to described voltage detecting circuit.
The power supply circuits that the embodiment of the present invention provides and electric equipment, voltage detecting circuit in power supply circuits is by sampling to the alternating voltage of ac power output output, calculate alternating voltage according to alternating voltage sampled value, then alternating voltage is offered to the motherboard circuit in 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 the unexpected power-off of motherboard circuit according to comparative result, and in the time judging the situation that may occur making the unexpected power-off of motherboard circuit, preserve in advance current data, and send out code to voltage detecting circuit, thereby close the output of adapter by voltage detecting circuit, prevent that unexpected power-off from causing damage to motherboard circuit.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the electrical block diagram that uses civil power or industrial electrical network to power in prior art;
The structural representation of the power supply circuits that Fig. 2 provides for one embodiment of the invention;
The structural representation of the power supply circuits that Fig. 3 A provides for another embodiment of the present invention;
The electric voltage over press fluctuation schematic diagram that Fig. 3 B provides for another embodiment of the present invention;
Fig. 3 C provides under-voltage fluctuation schematic diagram for another embodiment of the present invention;
The implementation structure schematic diagram of the alternating current sampling circuit that Fig. 4 provides for one embodiment of the invention;
The implementation structure schematic diagram of the control unit that Fig. 5 provides for one embodiment of the invention;
The implementation structure schematic diagram of the stand-by power supply circuit that Fig. 6 provides for one embodiment of the invention;
The implementation structure schematic diagram 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 making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
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 the 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, for processing and export direct current to power to motherboard circuit 20 to the alternating voltage of input.
Wherein, adapter 10 is processed to the alternating voltage of input the alternating voltage mainly referring to input and is carried out rectification, and alternating current is become to galvanic process.The output of adapter 10 is connected with motherboard circuit 20 and refers to that specifically the output of adapter 10 is connected with the electric power management circuit on motherboard circuit 20, for powering to motherboard circuit 20 under the control of electric power management circuit.
The input of voltage detecting circuit 30 is connected with ac power output, and the first output of voltage detecting circuit 30 is connected with motherboard circuit 20, and the second output of voltage detecting circuit 30 is connected with adapter 10.Voltage detecting circuit 30, for the alternating voltage of input is sampled, calculate alternating voltage according to alternating voltage sampled value, alternating voltage is offered to motherboard circuit 20, and receive the out code that motherboard circuit 20 sends, pass through the second output control adapter 10 of voltage detecting circuit 30 according to out code, so that adapter 10 stops powering to motherboard circuit 20.Wherein, the first output of voltage detecting circuit 30 mainly refers to the communication interface that voltage detecting circuit 30 and motherboard circuit 20 communicate, for example, the first output can be serial line interface, can be for example 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).The second output of voltage detecting circuit 30 is actually a control interface that opens and closes its direct current output for controlling adapter 10, for example, can be input and output (Input/Output, I/O) interface.Wherein, the second output of voltage detecting circuit 30 specifically can, by being connected with the output enable end of adapter 10, be turn-offed level or be enabled level the control that realizes the output to adapter 10 by the output enable end output to adapter 10.Motherboard circuit 20, compare for alternating voltage that voltage detecting circuit 30 is provided and default early warning higher limit or default early warning lower limit, in the time that alternating voltage is greater than early warning higher limit or is less than early warning lower limit, preserve current data, and export out code by the first output of voltage detecting circuit 30 to voltage detecting circuit 30, control adapter 10 and close its direct current and export to stop to power to motherboard circuit 20 to control voltage detecting circuit 30.
Wherein, current data mainly refers to all data that CPU processes, moves, receives and dispatches, preserves, such as data of document, wireless receiving and the transmission of personal information, transmission etc.
Wherein, early warning higher limit and early warning lower limit set in advance in the memory space of motherboard circuit 20, for example, can be arranged in the flash memory (Flash) of motherboard circuit 20.Voltage range that early warning higher limit and early warning lower limit can be supported according to the fan-out capability of actual AC power and motherboard circuit 20 etc. is carried out adaptability configuration.Illustrate, for the weak AC power of fan-out capability, early warning higher limit and early warning lower limit can be set to respectively 320VAC and 90VAC, and for the stronger AC power of fan-out capability, early warning higher limit and early warning lower limit can be set to respectively 400VAC and 90VAC.
If alternating voltage sampled value is greater than early warning higher limit, illustrate that alternating current fluctuates, the fluctuation tendency of alternating voltage is for increasing, if and alternating voltage has increased to and uses this alternating voltage just likely to damage motherboard circuit 20 in the power supply of interior whole system for motherboard circuit 20, if motherboard circuit 20 is damaged, thereby mean that motherboard circuit 20 can unexpected power-off or cut work generation loss of data.Therefore, in the time judging alternating voltage sampled value and be greater than this situation of early warning higher limit, first motherboard circuit 20 preserves current data to prevent loss of data, then control adapter 10 by voltage detecting circuit 30 and close its direct current output, power to motherboard circuit 20 stopping, and then prevent that motherboard circuit 20 is damaged.
If alternating voltage sampled value is less than early warning lower limit, illustrate 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 likely to make motherboard circuit 20 cause loss of data because of the work of undertension cut in interior whole system power supply for motherboard circuit 20.Therefore, in the time judging alternating voltage sampled value and be less than this situation of early warning lower limit, first motherboard circuit 20 preserves current data to prevent loss of data, then control adapter 10 by voltage detecting circuit 30 and close its direct current output, with the rush of current that prevents from being caused by unexpected power-off, motherboard circuit 20 is caused to damage.
In this explanation, motherboard circuit 20 described in various embodiments of the present invention mainly refers to the CPU (Central Processing Unit, CPU) on motherboard circuit 20.
In this explanation, the ac power output described in various embodiments of the present invention mainly refers to while 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 providing in various embodiments of the present invention, all represent ac power output with word " AC input ".
The power supply circuits of the present embodiment have increased voltage detecting circuit, by voltage detecting circuit, the alternating current of ac power output output is sampled, calculate current alternating voltage according to alternating voltage sampled value, then alternating voltage is offered to motherboard circuit, motherboard circuit is by comparing alternating voltage and early warning higher limit or early warning lower limit, judge whether to occur the situation of unexpected power-off according to comparative result, and in the time judging the situation that unexpected power-off likely occurs, preserve in time current data to prevent loss of data, and close its output by power sense circuit control adapter and stop powering to motherboard circuit, to prevent that unexpected power-off from causing damage to motherboard circuit.
The structural representation of the power supply circuits that Fig. 3 A provides for another embodiment of the present invention.The present embodiment is based on realization embodiment illustrated in fig. 2.As shown in Figure 3A, the power supply circuits of the 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 function of middle description embodiment illustrated in fig. 2, motherboard circuit 20 also there is following functions: when can also be used for being not more than at alternating voltage (being less than or equal to) early warning higher limit and be not less than (being more than or equal to) early warning lower limit, alternating voltage and default normal range (NR) higher limit or default normal range (NR) lower limit are compared, be greater than normal range (NR) higher limit at alternating voltage, be that alternating voltage is when being greater than normal range (NR) higher limit and being not more than early warning higher limit, or be less than normal range (NR) lower limit at alternating voltage, be that alternating voltage is when being less than normal range (NR) lower limit and being not less than early warning lower limit, preserve current data, and report the unsettled information of alternating voltage to administrative center.Wherein, motherboard circuit 20 can report the unsettled information of alternating voltage to administrative center by radio frequency (Radio Frequency, the RF) circuit on it.
Further, in order to prevent that unexpected power-off from causing damage to motherboard circuit 20, motherboard circuit 20 can also be greater than normal range (NR) higher limit and be not more than early warning higher limit at alternating voltage, or in the time that alternating voltage is less than normal range (NR) lower limit but is not less than early warning lower limit, send out code to voltage detecting circuit 30, control adapter 10 and close the output of its direct current to control voltage detecting circuit 30, power to motherboard circuit 20 stopping.
Wherein, normal range (NR) higher limit and normal range (NR) lower limit set in advance in the memory space of motherboard circuit 20, for example, can be arranged in the Flash of motherboard circuit 20.Voltage range that normal range (NR) higher limit and normal range (NR) lower limit can be supported according to the fan-out capability of actual AC power and motherboard circuit 20 etc. is carried out adaptability configuration.Illustrate, normal range (NR) higher limit and normal range (NR) lower limit can be set to respectively 260VAC and 180VAC.
If alternating voltage is greater than normal range (NR) higher limit, illustrate that alternating voltage fluctuates, the fluctuation tendency of alternating voltage is for increasing, in order to prevent causing the damaged suddenly power-off of motherboard circuit 20 to cause loss of data because alternating voltage increases, first motherboard circuit 20 preserves current data to prevent loss of data judging after alternating voltage is greater than normal range (NR) higher limit.Further, unsettled supply current situation is reported administrative center by motherboard circuit 20, reports the unsettled information of alternating voltage to administrative center, so that administrative center records this information.Follow-up, administrative staff or staff or user etc. can carry out inspection operation according to the information of record.Further, motherboard circuit 20 can also send out code to voltage detecting circuit 30, stops powering to motherboard circuit 20 so that voltage detecting circuit 30 is controlled adapter 10.Fig. 3 B provides a kind of schematic diagram of electric voltage over press fluctuation.In Fig. 3 B, normal range (NR) higher limit is set to 260VAC, and early warning higher limit is 400VAC.
If alternating voltage is less than normal range (NR) lower limit, illustrate that alternating voltage fluctuates, the fluctuation tendency of alternating voltage is for reducing, in order to prevent causing loss of data because alternating voltage reduces to cause motherboard circuit 20 because of undertension (suddenly power-off), first motherboard circuit 20 preserves current data to prevent loss of data judging after alternating voltage is less than normal range (NR) lower limit.Further, unsettled supply power voltage situation is reported administrative center by motherboard circuit 20, reports the unsettled information of alternating voltage to administrative center, so that administrative center records this information.Follow-up, administrative staff or staff or user etc. can carry out inspection operation according to the information of record.Further, motherboard circuit 20 can also send out code to voltage detecting circuit 30, stops powering to motherboard circuit 20 so that voltage detecting circuit 30 is controlled adapter 10.Fig. 3 C provides a kind of schematic diagram of under-voltage fluctuation.In Fig. 3 C, normal range (NR) lower limit is set to 180VAC, and early warning lower limit is 90VAC.
The difference of motherboard circuit 20 is looked and difference by the administrative center of the present embodiment.For example, motherboard circuit 20 can be household electric appliances, such as, motherboard circuit in refrigerator, washing machine etc., and administrative center can be the watch-dog for the each household electric appliances of responsible monitoring family that family arranges, for example personal computer.Again for example, motherboard circuit 20 can be the motherboard circuit in server, and 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, the service centre of administrative center in can this community, electric power gateway place.
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), while there is fluctuation within early warning range, whether can cause the accuracy of motherboard circuit 20 unexpected power-off, motherboard circuit 20 in the present embodiment is greater than normal range (NR) higher limit and is not more than the situation of early warning higher limit at alternating voltage, or in the situation that alternating voltage is less than normal range (NR) lower limit and is not less than early warning lower limit, further by judging whether time that alternating voltage is greater than normal range (NR) higher limit or is less than normal range (NR) lower limit reaches the time of appointment, if reach the fixed time, illustrate that this fluctuation probably causes the unexpected power-off of motherboard circuit 20, therefore motherboard circuit 20 need to be preserved current data, and report the unsettled information of alternating voltage to administrative center.As shown in Figure 3 B, after alternating voltage exceedes 260VAC30s, motherboard circuit 20 just can be carried out preservation current data, and reports the operation of the unsettled information of alternating voltage to administrative center.As shown in Figure 3 C, after alternating voltage is less than 180VAC30s, motherboard circuit 20 just can be carried out preservation current data, and reports the operation of the unsettled information of alternating voltage to administrative center.Wherein, the fixed time that alternating voltage is greater than normal range (NR) higher limit and alternating voltage are less than fixed time of normal range (NR) lower limit can be identical, can be not identical yet, and for showing that difference is designated as respectively the first fixed time and the second fixed time.Wherein, the first fixed time and the second fixed time can be pre-configured in motherboard circuit 20, for example, can be arranged in the Flash of motherboard circuit 20.Wherein, the first fixed time and the second fixed time can be 30 seconds, 1 minute etc., but are not limited to this.
That is to say, in the situation that alternating voltage is not more than early warning higher limit and is not less than early warning lower limit, motherboard circuit 20 specifically can be for being greater than normal range (NR) higher limit at alternating voltage, and continue to be greater than after the first fixed time of normal range (NR) higher limit, or be less than normal range (NR) lower limit at alternating voltage, and continue to be less than after the second fixed time of normal range (NR) lower limit, just carry out and preserve current data, and report the operation of the unsettled information of alternating voltage, the wasting of resources causing to reduce erroneous judgement to administrative center.
Wherein, motherboard circuit 20 can be saved in current data in the Flash of motherboard circuit 20, but is not limited to this.
Further, as shown in Figure 2, the voltage detecting circuit 30 of the present embodiment comprises: alternating current sampling circuit 301, ac-dc converter circuit 302 and control unit 303.Wherein, control unit 303 can be micro-control unit (Micro Control Unit, MCU), but is not limited to this.
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+ as shown in Figure 3A and V-) of control unit 303.Alternating current sampling circuit 301, for the alternating voltage of input is sampled, and offers control unit 303 by alternating voltage sampled value.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 as shown in Figure 3A) of control unit 303.Ac-dc converter circuit 302, for the alternating voltage of input is converted to direct current, and exports to control unit 303, to power to control unit 303.
First output (Tx as shown in Figure 3A and Rx) of control unit 303 is the first output of voltage detecting circuit 30, and second output (I/O as shown in Figure 3A) of control unit 303 is the second output of voltage detecting circuit 30.The first output of control unit 303 is connected with motherboard circuit 20, and the second output of control unit 303 is connected with adapter 10.Control unit 303, for calculating alternating voltage according to alternating voltage sampled value, then by the first output of control unit 303, alternating voltage is offered to motherboard circuit 20, and receive the out code that motherboard circuit 20 sends, pass through the second output control adapter 10 of control unit 303 according to out code, so that adapter 10 stops powering to motherboard circuit 20.Concrete, control unit 303 can turn-off level to the output enable end output of adapter 10 by one I/O interface, controls adapter 10 and can not export.In addition, the control unit 303 of the present embodiment can also be after the alternating voltage of ac power output output recovers normally, reopen its output by the output output enable level control adapter 10 that enables to adapter 10, again power to motherboard circuit 20.Now, motherboard circuit 20 also can recover normal work.
In the present embodiment, the alternating voltage that control unit 303 can directly the alternating voltage sampled value providing according to interchange Acquisition Circuit 301 be provided offers motherboard circuit 20, control unit 303 does not need alternating voltage to carry out extra process like this, and its processing load is lighter.
In addition, the alternating voltage that control unit 303 can also the alternating voltage sampled value providing according to alternating current sampling circuit 301 be provided and default normal range (NR) higher limit or default normal range (NR) lower limit compare, in the time that alternating voltage is greater than normal range (NR) higher limit or is less than normal range (NR) lower limit, by the first output of control unit 303, alternating voltage is offered to main website circuit 20.Be that control unit 303 only offers motherboard circuit 20 by fluctuation to the alternating voltage outside normal range (NR), control unit 303 is by screening alternating voltage, can reduce the handled data volume of motherboard circuit 20, be conducive to alleviate the processing load of motherboard circuit 20.For the alternating voltage within normal range (NR), control unit 303 can be abandoned, and does not offer motherboard circuit 20.
Further, control unit 303 can also, in the time that alternating voltage is greater than normal range (NR) higher limit or is less than normal range (NR) lower limit, send a warning message to motherboard circuit 20.Control unit 303 is by sending a warning message and can point out motherboard circuit 20 to do further processing to this alternating voltage to motherboard circuit 20, be conducive to improve the promptness that motherboard circuit 20 is processed this alternating voltage, can further reduce the probability that loss of data occurs.
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 in the Flash of control unit 303.Normal range (NR) higher limit pre-configured on control unit 303 is identical with normal range (NR) lower limit with normal range (NR) higher limit pre-configured on motherboard circuit 20 with normal range (NR) lower limit, no longer carefully states at this.
Further, the motherboard circuit 20 of the present embodiment is except alternating voltage and/or warning information that reception control unit 303 sends in the time that alternating voltage is greater than normal range (NR) higher limit or is less than normal range (NR) lower limit, motherboard circuit 20 can also be at alternating voltage within normal range (NR), be that alternating voltage is when being not more than normal range (NR) higher limit and being not less than normal range (NR) lower limit, send sampled value by the first output of control unit 303 to control unit 303 and obtain instruction, to obtain alternating voltage sampled value.Correspondingly, the sampled value that control unit 303 can also send by its first output reception motherboard circuit 20 is obtained instruction, and obtains instruction according to sampled value, sends alternating voltage by the first output of control unit 303 to motherboard circuit 20.
In this explanation, the alternating voltage sampled value that alternating current sampling circuit 301 offers control unit 303 is real time data, and the alternating voltage that control unit 303 offers motherboard circuit 20 is also real time data.
Further, as shown in Figure 3A, the adapter 10 of the present embodiment mainly comprises elementary 101 and secondary 102 two parts.Wherein, elementary 101 are mainly connected with ac power output, for receiving the alternating voltage of input.Secondary 102 are connected with elementary 101.Preferably, adapter 10 can adopt common Switching Power Supply to realize, and realizes cost lower.
Due to control unit 303 in elementary 101 1 sides, and main circuit board 20 is in secondary 102 1 sides, noise jamming between the two etc. are comparatively serious.In order to address this problem, the first output of control unit 303 can be connected with motherboard circuit 20 by photoelectric coupled circuit, realizes signal transmission and noise isolation between control unit 303 and motherboard circuit 20, as shown in Figure 3A.
Further, as shown in Figure 3A, the power supply circuits of the 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.Namely, ac power output is connected with the primary adapter 101 of adapter 10 and the input of alternating current sampling circuit 301 respectively by overvoltage crowbar 40.
Based on the existence of overvoltage crowbar 40, for example, in the time that alternating voltage too high, is more much larger than early warning higher limit, overvoltage crowbar 40 can blocking-up high pressure with protection motherboard circuit 20 and voltage detecting circuit 30.Now, motherboard circuit 20 and voltage detecting circuit 30 all can quit work.In addition, in the time that ac power output has a power failure suddenly, voltage detecting circuit 30 and motherboard circuit 20 also all can quit work.Now, motherboard circuit 20 power-off suddenly and have little time to preserve current data because 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 the present embodiment also comprise stand-by power supply circuit 50 (as shown in dotted portion in Fig. 3 A).Stand-by power supply circuit 50 is mainly used in, after overvoltage crowbar 40 is blocked the output of ac power output or in the time that AC power has a power failure suddenly, powering to motherboard circuit 20, 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 by the output of adapter 10.Based on this, the input of stand-by power supply circuit 50 is connected with adapter 10, for charging, as shown in Figure 3A.In this explanation, the stand-by power supply circuit 50 of the present embodiment can also be non-charge power supply.
In this explanation, the motherboard circuit 20 in various embodiments of the present invention, except preserving current data, can also carry out information transmission.
The power supply circuits of the present embodiment have increased voltage detecting circuit, by 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 to motherboard circuit, motherboard circuit is by comparing alternating voltage and early warning higher limit or early warning lower limit, judge whether to occur the situation of unexpected power-off according to comparative result, and in the time judging the situation that unexpected power-off likely occurs, preserve in time current data to prevent loss of data, and close output by power sense circuit control adapter, to prevent that unexpected power-off from causing damage to motherboard circuit.
In the above-described embodiments, alternating current sampling circuit 301 can have a variety of implementations, for example, can realize with existing integrated chip, also can such as, build by circuit common device (resistance, electric capacity etc.).The embodiment of the present invention provides a kind of implementation structure of alternating current sampling circuit, as shown in Figure 4.The alternating current sampling circuit that the 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 formed 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-, for alternating voltage sampled value is passed to control unit 303, process and obtain alternating voltage alternating voltage sampled value for control unit 303.For example, control unit 303 can calculate alternating voltage by 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 be realized with various integrated chips, for example, can use the realizations such as the chip of the BL6523x series of chip, the BL company of the MSP430x series of TI company, but be not limited to this.The embodiment of the present invention provides a kind of structure of the control unit of being realized by integrated chip 303, as shown in Figure 5.Wherein, V+ and V-are the input pins of being responsible for receiving alternating voltage sampled value; RST is reset pin; AVCC is analog power pin; DVCC is digital power pin; AVSS is pin in analog; DVSS is pin digitally; RXD and TXD are serial line interfaces, i.e. the first output; ENABLE is an I/O interface, i.e. the 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 formed the clock circuit that master clock is provided to this chip.Wherein, the output V+ in Fig. 4 is connected with input pin V+ and V-in Fig. 5 respectively with V-.
In the above-described embodiments, ac-dc converter circuit 302 can by multiple implementation, for example, can be realized by power supply chip, also can build by discrete device, does not limit herein.
In the above-described embodiments, the stand-by power supply circuit 50 in power supply circuits can adopt electric capacity scheme to realize, and also can adopt battery to realize.And owing to there being the existence of voltage detecting circuit 30, the frequency of utilization of stand-by power supply circuit 50 is not very high, and only for for motherboard circuit 20 save datas, so less demanding to the energy storage capacity of electric capacity or battery.
In the time using battery to realize stand-by power supply circuit 50, can use common lithium battery, but be not limited to this.
Wherein, use electric capacity scheme to realize stand-by power supply circuit 50 for more preferred implementation.The present embodiment provides a kind of structure of the stand-by power supply circuit 50 that uses electric capacity realization, as shown in Figure 6.The stand-by power supply circuit 50 of the present embodiment is mainly made up of diode D1-D4, current-limiting resistance R and super capacitor group C.Wherein, super capacitor group can be the capacitance group of a farad level.The capacity of super capacitor can do suitable selection according to the requirement of motherboard circuit 20 power consumptions, for example, can realize by 2 capacitances in series.
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, when power supply circuits are normally worked, the output of adapter 10 powers on the one hand motherboard circuit 20, charges on the other hand by current-limiting resistance to super capacitor group; In the time that power supply circuits need to be closed output, super capacitor group can continue to power to motherboard circuit 20, can not pour in down a chimney back in adapter 10 simultaneously.
The implementation structure of the stand-by power supply circuit that the 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 be connected with motherboard circuit 20 use photoelectric coupled circuit can be realized by various ways.The embodiment of the present invention provides a kind of specific implementation structure of photoelectric coupled circuit, as shown in Figure 7.The photoelectric coupled circuit of the present embodiment mainly comprises: optocoupler D1 and optocoupler D2, and the peripheral circuit of optocoupler D1 and optocoupler D2 formation, its specific implementation is shown in Figure 7, is not described in detail in this.
Wherein, TXD shown in Fig. 7 is connected with serial line interface TXD and RXD in Fig. 5 respectively with RXD, and the CPU_RX in Fig. 7 is connected with the serial line interface on motherboard circuit 20 respectively with CPU_TX.VCC in Fig. 7 is the power supply of control unit 303 one end, and VddIO is the power supply of motherboard circuit 20 one end.
In sum; the embodiment of the present invention can realize the intelligent management of power supply very like a cork; data storage in time and information transmission; be applicable to end product or the equipment of directly being powered by civil power or industrial electrical network; as the power protection of home terminal, power equipment etc. and data protection, occur when abnormal, can giving warning in advance 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 present invention provides only need to increase alternating current sampling circuit and the control unit that can process alternating voltage sampling, a small-power ac-dc converter circuit is powered to control unit, several common photoelectric coupled circuit, a stand-by power supply circuit, realizes cost lower, but reliability is high, select the device of technical grade, 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 the present embodiment can use power supply circuits shown in Fig. 1 or Fig. 2 to realize, the namely operation principle of power supply circuits.As shown in Figure 8, the method for supplying power to of the present embodiment comprises:
Step 801, voltage detecting circuit are sampled to the alternating voltage of the input input by voltage detecting circuit, calculate alternating voltage according to alternating voltage sampled value, then alternating voltage are offered to motherboard circuit.
Step 802, motherboard circuit compare alternating voltage and default early warning higher limit or default early warning lower limit, and in the time that alternating voltage is greater than early warning higher limit or is less than early warning lower limit, preserve current data, and send out code by the first output of voltage detecting circuit to voltage detecting circuit.
Step 803, voltage detecting circuit receive out code, and by the second output control adapter of voltage detecting circuit, so that adapter stops powering to motherboard circuit.
Wherein, under normal circumstances, adapter is converted to the alternating current of ac power output output direct current and exports to motherboard circuit, to power to motherboard circuit.
The input of voltage detecting circuit is connected with ac power output, for providing alternating current to voltage detecting circuit.By voltage detecting circuit, the alternating voltage of input is sampled, calculate alternating voltage according to alternating voltage sampled value, then alternating voltage is offered to motherboard circuit.Motherboard circuit compares by alternating voltage that voltage detecting circuit is provided and default early warning higher limit or early warning lower limit, judge whether may occur making the situation of the unexpected power-off of motherboard circuit according to comparative result, and judging may there is the situation that makes the unexpected power-off of motherboard circuit time, preserve in time current data, and by sending out code to voltage detecting circuit, make voltage detecting circuit control adapter make adapter stop, to motherboard circuit power supply, can preventing like this because occurring that unexpected power-off causes damage to motherboard circuit.
Wherein, motherboard circuit, in the time judging alternating voltage and be greater than early warning higher limit or be less than early warning lower limit, is determined the situation that may make its unexpected power-off.
The power supply circuits that the method for supplying power to of the present embodiment provides based on the embodiment of the present invention are realized, by voltage detecting circuit, the alternating current of ac power output output is sampled, calculate alternating voltage according to alternating voltage sampled value, then alternating voltage is offered to motherboard circuit, motherboard circuit is by comparing alternating voltage and early warning higher limit or early warning lower limit, judge whether to occur the situation of unexpected power-off according to comparative result, and in the time judging the situation that unexpected power-off likely occurs, preserve in time current data to prevent loss of data, and stop powering to motherboard circuit by power sense circuit control adapter, to prevent that unexpected power-off from causing damage to motherboard circuit.
The flow chart of the method for supplying power to that Fig. 9 provides for another embodiment of the present invention.The present embodiment can be realized based on power supply circuits shown in Fig. 1 or Fig. 2 equally.As shown in Figure 9, the method for the present embodiment comprises:
Step 901, voltage detecting circuit are sampled to the alternating voltage of the input input by voltage detecting circuit, calculate alternating voltage according to alternating voltage sampled value, then alternating voltage are offered to motherboard circuit.
Step 902, motherboard circuit compare alternating voltage and default early warning higher limit or default early warning lower limit, to judge whether alternating voltage is greater than early warning higher limit or is less than early warning lower limit; If judged result is yes, execution step 903; If judged result is no, execution step 905.
If judged result is yes, illustrate that alternating voltage is greater than early warning higher limit or is less than early warning lower limit; If judged result is no, illustrate that alternating voltage is not more than early warning higher limit and is not less than early warning lower limit.
Step 903, motherboard circuit are preserved current data, and send out code by the first output of voltage detecting circuit to voltage detecting circuit, so that voltage detecting circuit control adapter stops to motherboard circuit power supply, and perform step 904.
Step 904, voltage detecting circuit receive out code, and by the second output control adapter of voltage detecting circuit, so that adapter stops to motherboard circuit power supply, and perform step 907.
Step 905, motherboard circuit compare alternating voltage and default normal range (NR) higher limit or default normal range (NR) lower limit, to judge whether alternating voltage is greater than default normal range (NR) higher limit or is less than default normal range (NR) lower limit; If judged result is yes, execution step 906; If judged result is no, execution step 907.
If judged result is yes, illustrate that alternating voltage is greater than default normal range (NR) higher limit or is less than default normal range (NR) lower limit, outside with normal range (NR); If judged result is no, illustrate that alternating voltage is not more than default normal range (NR) higher limit and is not less than default normal range (NR) lower limit, within normal range (NR).
Step 906, motherboard circuit are preserved current data, and report the unsettled information of alternating voltage to administrative center, and perform step 907.
Optionally, motherboard circuit is greater than normal range (NR) higher limit at alternating voltage, and continue to be greater than after the first fixed time of normal range (NR) higher limit, or be less than normal range (NR) lower limit at alternating voltage, and continue to be less than after the second fixed time of normal range (NR) lower limit, just carry out and preserve current data, and report the operation of the unsettled information of alternating voltage to administrative center, be conducive to improve the accuracy that judges whether to occur unexpected power-off.
This time operation of step 907, end.
Further, voltage detecting circuit can comprise alternating current sampling circuit, ac-dc converter circuit and control unit.
Based on this, step 901 can be specifically: the alternating current sampling circuit in voltage detecting circuit is sampled to the alternating voltage of the input input by alternating current sampling circuit, and alternating voltage sampled value is offered to the control unit in voltage detecting circuit; Control unit calculates alternating voltage according to alternating voltage sampled value, then by the first output of control unit, interchange is offered to motherboard circuit.
Optionally, the alternating voltage that control unit can directly the AC sampling value providing according to alternating current sampling circuit be provided by the first output of control unit offers motherboard circuit.
Optionally, control unit can also compare alternating voltage and default normal range (NR) higher limit or default normal range (NR) lower limit, in the time that alternating voltage is greater than normal range (NR) higher limit or is less than normal range (NR) lower limit, by the first output of control unit, alternating voltage is offered to motherboard circuit.
Further, control unit can also, in the time that alternating voltage is greater than normal range (NR) higher limit or is less than normal range (NR) lower limit, send a warning message to motherboard circuit.
In step 903, motherboard circuit by the first output of voltage detecting circuit to voltage detecting circuit transmission out code can be specifically: motherboard circuit sends out code by the first output of control unit to control unit.
Step 904 can be specifically: control unit receives out code, and by the second output control adapter of control unit, so that adapter stops powering to motherboard circuit.
In said process, especially be not more than default normal range (NR) higher limit and be not less than default normal range (NR) lower limit at alternating voltage,, within normal range (NR) time, motherboard circuit can also send sampled value to control unit by the first output of control unit and obtain instruction.Accordingly, control unit obtains instruction according to sampled value, sends alternating voltage by the first output of control unit to motherboard circuit.
The power supply circuits that the method for supplying power to of the present embodiment provides based on the embodiment of the present invention are realized, by voltage detecting circuit, the alternating current of ac power output output is sampled, calculate alternating voltage according to alternating voltage sampled value, then alternating voltage is offered to motherboard circuit, motherboard circuit is by comparing alternating voltage sampled value and early warning higher limit or early warning lower limit, judge whether to occur the situation of unexpected power-off according to comparative result, and in the time judging the situation that unexpected power-off likely occurs, preserve in time current data to prevent loss of data, and close output by power sense circuit control adapter, to prevent that unexpected power-off from causing damage to motherboard circuit.
A kind of electric equipment that one embodiment of the invention provides, comprising: 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, for processing and export direct current to power to motherboard circuit to the alternating voltage of input.
The input of voltage detecting circuit is connected with ac power output, and the first output of voltage detecting circuit is connected with motherboard circuit, and the second output of voltage detecting circuit is connected with adapter.Voltage detecting circuit, for the alternating voltage of input is sampled, calculate alternating voltage according to alternating voltage sampled value, alternating voltage is offered to motherboard circuit, and receive motherboard circuit send out code, pass through the second output control adapter according to out code, so that adapter stops powering to motherboard circuit.
Motherboard circuit, compare for alternating voltage that voltage detecting circuit is provided and default early warning higher limit or default early warning lower limit, in the time that alternating voltage is greater than early warning higher limit or is less than early warning lower limit, preserve current data, and export out code by the first output of voltage detecting circuit to voltage detecting circuit.
Wherein, the description that the operation principle of power supply circuits and structure can embodiment shown in Figure 2, does not repeat them here.
The electric equipment of the present embodiment can be various use civil powers or directly end product or the equipment of power supply of industrial electrical network, such as home terminal, power equipment etc.Illustrating, can be washing machine, refrigerator etc. as the electric equipment of home terminal; Can be electric power gateway etc. as the electric equipment of power equipment.
The electric equipment of the present embodiment is owing to comprising power supply circuits, power supply circuits have increased voltage detecting circuit, by voltage detecting circuit, the alternating current of ac power output output is sampled, calculate alternating voltage according to alternating voltage sampled value, then alternating voltage is offered to motherboard circuit, motherboard circuit is by comparing alternating voltage and early warning higher limit or early warning lower limit, judge whether to occur the situation of unexpected power-off according to comparative result, and in the time judging the situation that unexpected power-off likely occurs, preserve in time current data to prevent loss of data, and close its output by power sense circuit control adapter and stop powering to motherboard circuit, to prevent that unexpected power-off from causing damage to motherboard circuit.
Further, motherboard circuit in power supply circuits in above-mentioned electric equipment can also be used in the time that alternating voltage is not more than early warning higher limit and is not less than early warning lower limit, alternating voltage and default normal range (NR) higher limit or default normal range (NR) lower limit are compared, in the time that alternating voltage is greater than normal range (NR) higher limit or is less than normal range (NR) lower limit, preserve current data, and report the unsettled information of alternating voltage to administrative center.Motherboard circuit, in the time finding that alternating voltage fluctuates outside normal range (NR), is preserved in time current data and situation is reported, and can further reduce loss of data or the impaired probability of motherboard circuit.
Further, motherboard circuit in power supply circuits in above-mentioned electric equipment can be specifically for being greater than normal range (NR) higher limit at alternating voltage, and continue to be greater than after the first fixed time of normal range (NR) higher limit, or be less than normal range (NR) lower limit at alternating voltage, and continue to be less than after the second fixed time of normal range (NR) lower limit, preserve current data, and report the unsettled information of alternating voltage to administrative center.Motherboard circuit can improve in this way and judges that alternating voltage is outside normal range (NR), whether can cause the accuracy of the unexpected power-off of motherboard circuit, the wasting of resources causing to reduce erroneous judgement within early warning range while there is fluctuation.
Further, the voltage detecting circuit in the power supply circuits in 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, the input that the input of alternating current sampling circuit is voltage detecting circuit.Alternating current sampling circuit, for the alternating voltage of input is sampled, and offers control unit by alternating voltage sampled value.
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, for the alternating voltage of input is converted to direct current, and exports to control unit, to power to control unit.
The first output of control unit is connected with motherboard circuit, the second output of control unit is connected with adapter, the first output that the first output of control unit is voltage detecting circuit, the second output that the second output of control unit is voltage detecting circuit.Control unit, for calculating alternating voltage according to alternating voltage sampled value, then by the first output of control unit, alternating voltage is offered to motherboard circuit, and receive the out code of motherboard circuit output, then pass through the second output control adapter of control unit according to out code, so that adapter stops powering to motherboard circuit.
Further, the first output of control unit can be connected with motherboard circuit by photoelectric coupled circuit.
Further, the first output of control unit can be a string line interface.The second output of control unit can be an I/O interface.
Further, control unit specifically can be for comparing alternating voltage and default normal range (NR) higher limit or default normal range (NR) lower limit, in the time that alternating voltage is greater than normal range (NR) higher limit or is less than normal range (NR) lower limit, by the first output of control unit, alternating voltage is offered to motherboard circuit.Because control unit only offers motherboard circuit by fluctuation to the alternating voltage outside normal range (NR), control unit, by alternating voltage is screened, can reduce the handled data volume of motherboard circuit, is conducive to alleviate the processing load of motherboard circuit.And for the alternating voltage within normal range (NR), control unit can be abandoned, do not offer motherboard circuit.
Further, control unit can also be used for, in the time that alternating voltage is greater than normal range (NR) higher limit or is less than normal range (NR) lower limit, sending a warning message to motherboard circuit.Control unit can point out motherboard circuit to do further processing to this alternating voltage by sending a warning message to motherboard circuit, is conducive to improve the promptness that motherboard circuit is processed this alternating voltage, can further reduce the probability that loss of data occurs.
Further, motherboard circuit can also be used for obtaining instruction by the first output of control unit to control unit transmission sampled value.Especially in the time that alternating voltage is not more than normal range (NR) higher limit and is not less than normal range (NR) lower limit, motherboard circuit can send sampled value to control unit by the first output of control unit and obtain instruction.Correspondingly, control unit can also be used for obtaining instruction according to sampled value, sends alternating voltage by the first output of control unit to motherboard circuit.
Further, the power supply circuits in 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 above-mentioned electric equipment can also comprise: stand-by power supply circuit.
Stand-by power supply circuit, for powering to motherboard circuit after the output at overvoltage crowbar blocking-up ac power output, so that motherboard circuit is preserved current data.
Optionally, the stand-by power supply circuit of the present embodiment is charge power supply, and the input of stand-by power supply circuit is connected with the output of adapter, in order to charge by adapter.
In above-mentioned electric equipment, the structure of power supply circuits and operation principle can, referring to the description of Fig. 3 A illustrated embodiment, not repeat them here.
The electric equipment of the present embodiment is owing to comprising power supply circuits, power supply circuits have increased voltage detecting circuit, by voltage detecting circuit, the alternating current of ac power output output is sampled, calculate alternating voltage according to alternating voltage sampled value, then alternating voltage is offered to motherboard circuit, motherboard circuit is by comparing alternating voltage and early warning higher limit or early warning lower limit, judge whether to occur the situation of unexpected power-off according to comparative result, and in the time judging the situation that unexpected power-off likely occurs, preserve in time current data to prevent loss of data, and close its output by power sense circuit control adapter and stop powering to motherboard circuit, to prevent that unexpected power-off from causing damage to motherboard circuit.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can complete by the relevant hardware of program command, aforesaid program can be stored in a computer read/write memory medium, this program, in the time carrying out, is carried out the step that comprises said method embodiment; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: above each embodiment, only in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to aforementioned each embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or some or all of technical characterictic is wherein equal to replacement; And these amendments or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (21)

1. power supply circuits, is characterized in that, comprising: adapter, motherboard circuit and voltage detecting circuit;
The input of described adapter is connected with ac power output, and the output of described adapter is connected with described motherboard circuit, and described adapter, for processing and export direct current to power to described motherboard circuit to the alternating voltage of input;
The input of described voltage detecting circuit is connected with described ac power output, the first output of described voltage detecting circuit is connected with described motherboard circuit, the second output of described voltage detecting circuit is connected with described adapter, described voltage detecting circuit, for the alternating voltage of input is sampled, calculate alternating voltage according to alternating voltage sampled value, described alternating voltage is offered to described motherboard circuit, and receive the out code that described motherboard circuit sends, according to described out code by adapter described in described the second output control, so that described adapter stops to described motherboard circuit power supply,
Described motherboard circuit, compare for alternating voltage that described voltage detecting circuit is provided and default early warning higher limit or default early warning lower limit, in the time that described alternating voltage is greater than described early warning higher limit or is less than described early warning lower limit, preserve current data, and export described out code by the first output of described voltage detecting circuit to described voltage detecting circuit;
Described voltage detecting circuit comprises: alternating current sampling circuit, ac-dc converter circuit and control unit;
The input of described alternating current sampling circuit is connected with described ac power output, and the output of described alternating current sampling circuit is connected with the input of described control unit, the input that the input of described alternating current sampling circuit is described voltage detecting circuit; Described alternating current sampling circuit, samples for the alternating voltage to described input, and described alternating voltage sampled value is offered to described control unit;
The input of described ac-dc converter circuit is connected with described ac power output, the output of described ac-dc converter circuit is connected with described control unit, described ac-dc converter circuit, for the alternating voltage of described input is converted to direct current, and export to described control unit, to power to described control unit;
The first output of described control unit is connected with described motherboard circuit, the second output of described control unit is connected with described adapter, the first output that the first output of described control unit is described voltage detecting circuit, the second output that the second output of described control unit is described voltage detecting circuit; Described control unit, for calculating described alternating voltage according to described alternating voltage sampled value, described alternating voltage is offered described motherboard circuit by the first output by described control unit, and receive the described out code of described motherboard circuit output, then according to described out code by adapter described in the second output control of described control unit, so that described adapter stops to the power supply of described motherboard circuit.
2. power supply circuits according to claim 1, it is characterized in that, described motherboard circuit is also when being not more than described early warning higher limit and being not less than described early warning lower limit at described alternating voltage, described alternating voltage and default normal range (NR) higher limit or default normal range (NR) lower limit are compared, in the time that described alternating voltage is greater than described normal range (NR) higher limit or is less than described normal range (NR) lower limit, preserve described 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, described motherboard circuit is specifically for being greater than described normal range (NR) higher limit at described alternating voltage, and continue to be greater than after described the first fixed time of normal range (NR) higher limit, or be less than described normal range (NR) lower limit at described alternating voltage, and continue to be less than after described the second fixed time of normal range (NR) lower limit, preserve described current data, and report the unsettled information of alternating voltage to described administrative center.
4. power supply circuits according to claim 1, is characterized in that, the first output of described control unit is connected with described motherboard circuit by photoelectric coupled circuit.
5. power supply circuits according to claim 1, is characterized in that, the first output of described control unit is a serial line interface.
6. power supply circuits according to claim 1, it is characterized in that, described control unit is specifically for comparing described alternating voltage and default normal range (NR) higher limit or default normal range (NR) lower limit, in the time that described alternating voltage is greater than described normal range (NR) higher limit or is less than described normal range (NR) lower limit, by the first output of described control unit, described alternating voltage is offered to described motherboard circuit.
7. power supply circuits according to claim 6, is characterized in that, described control unit also when being greater than described normal range (NR) higher limit at described alternating voltage or being less than described normal range (NR) lower limit, sends a warning message to described motherboard circuit.
8. according to the power supply circuits described in claim 1 or 4 or 5 or 6 or 7, it is characterized in that, described motherboard circuit also sends sampled value for the first output by described control unit to described control unit and obtains instruction;
Described control unit, also for obtaining instruction according to described sampled value, sends described alternating voltage by the first output of described control unit to described motherboard circuit.
9. power supply circuits according to claim 8, is characterized in that, also comprise: overvoltage crowbar;
The input of described overvoltage crowbar is connected with described ac power output, and the output of described overvoltage crowbar is connected with the input of described adapter and the input of described alternating current sampling circuit respectively.
10. power supply circuits according to claim 9, is characterized in that, also comprise: stand-by power supply circuit;
Described stand-by power supply circuit, for blocking at described overvoltage crowbar after the output of described ac power output to described motherboard circuit power supply, so that described motherboard circuit is preserved described current data.
11. 1 kinds of electric equipments, is characterized in that, comprising: power supply circuits;
Described power supply circuits comprise: adapter, motherboard circuit and voltage detecting circuit;
The input of described adapter is connected with ac power output, and the output of described adapter is connected with described motherboard circuit, and described adapter, for processing and export direct current to power to described motherboard circuit to the alternating voltage of input;
The input of described voltage detecting circuit is connected with described ac power output, the first output of described voltage detecting circuit is connected with described motherboard circuit, the second output of described voltage detecting circuit is connected with described adapter, described voltage detecting circuit, for the alternating voltage of input is sampled, calculate alternating voltage according to alternating voltage sampled value, described alternating voltage is offered to described motherboard circuit, and receive the out code that described motherboard circuit sends, according to described out code by adapter described in described the second output control, so that described adapter stops to described motherboard circuit power supply,
Described motherboard circuit, compare for alternating voltage that described voltage detecting circuit is provided and default early warning higher limit or default early warning lower limit, in the time that described alternating voltage is greater than described early warning higher limit or is less than described early warning lower limit, preserve current data, and export described out code by the first output of described voltage detecting circuit to described voltage detecting circuit;
Described voltage detecting circuit comprises: alternating current sampling circuit, ac-dc converter circuit and control unit;
The input of described alternating current sampling circuit is connected with described ac power output, and the output of described alternating current sampling circuit is connected with the input of described control unit, the input that the input of described alternating current sampling circuit is described voltage detecting circuit; Described alternating current sampling circuit, samples for the alternating voltage to described input, and described alternating voltage sampled value is offered to described control unit;
The input of described ac-dc converter circuit is connected with described ac power output, the output of described ac-dc converter circuit is connected with described control unit, described ac-dc converter circuit, for the alternating voltage of described input is converted to direct current, and export to described control unit, to power to described control unit;
The first output of described control unit is connected with described motherboard circuit, the second output of described control unit is connected with described adapter, the first output that the first output of described control unit is described voltage detecting circuit, the second output that the second output of described control unit is described voltage detecting circuit; Described control unit, for calculating described alternating voltage according to described alternating voltage sampled value, described alternating voltage is offered described motherboard circuit by the first output by described control unit, and receive the described out code of described motherboard circuit output, then according to described out code by adapter described in the second output control of described control unit, so that described adapter stops to the power supply of described motherboard circuit.
12. electric equipments according to claim 11, it is characterized in that, described motherboard circuit is also when being not more than described early warning higher limit and being not less than described early warning lower limit at described alternating voltage, described alternating voltage and default normal range (NR) higher limit or default normal range (NR) lower limit are compared, in the time that described alternating voltage is greater than described normal range (NR) higher limit or is less than described normal range (NR) lower limit, preserve described current data, and report the unsettled information of alternating voltage to administrative center.
13. electric equipments according to claim 12, it is characterized in that, described motherboard circuit is specifically for being greater than described normal range (NR) higher limit at described alternating voltage, and continue to be greater than after described the first fixed time of normal range (NR) higher limit, or be less than described normal range (NR) lower limit at described alternating voltage, and continue to be less than after described the second fixed time of normal range (NR) lower limit, preserve described current data, and report the unsettled information of alternating voltage to described administrative center.
14. electric equipments according to claim 11, is characterized in that, the first output of described control unit is connected with described motherboard circuit by photoelectric coupled circuit.
15. electric equipments according to claim 11, is characterized in that, the first output of described control unit is a serial line interface.
16. electric equipments according to claim 11, it is characterized in that, described control unit is specifically for comparing described alternating voltage and default normal range (NR) higher limit or default normal range (NR) lower limit, in the time that described alternating voltage is greater than described normal range (NR) higher limit or is less than described normal range (NR) lower limit, by the first output of described control unit, described alternating voltage is offered to described motherboard circuit.
17. electric equipments according to claim 16, is characterized in that, described control unit also when being greater than described normal range (NR) higher limit at described alternating voltage or being less than described normal range (NR) lower limit, sends a warning message to described motherboard circuit.
18. according to the electric equipment described in claim 11 or 14 or 15 or 16 or 17, it is characterized in that, described motherboard circuit also sends sampled value for the first output by described control unit to described control unit and obtains instruction;
Described control unit, also for obtaining instruction according to described sampled value, sends described alternating voltage by the first output of described control unit to described motherboard circuit.
19. electric equipments according to claim 18, is characterized in that, described power supply circuits also comprise: overvoltage crowbar;
The input of described overvoltage crowbar is connected with described ac power output, and the output of described overvoltage crowbar is connected with the input of described adapter and the input of described alternating current sampling circuit respectively.
20. electric equipments according to claim 19, is characterized in that, described power supply circuits also comprise: stand-by power supply circuit;
Described stand-by power supply circuit, for blocking at described overvoltage crowbar after the output of described ac power output to described motherboard circuit power supply, so that described motherboard circuit is preserved described current data.
21. according to the electric equipment described in claim 11 or 12 or 13 or 14 or 15 or 16 or 17 or 19 or 20, it is characterized in that, described electric equipment is electric power gateway.
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 CN102687358A (en) 2012-09-19
CN102687358B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140104617A (en) * 2013-02-20 2014-08-29 삼성전자주식회사 Mobile device using sudden power off possibility information and operation method tererof
CN106451798A (en) * 2016-09-20 2017-02-22 宁德时代新能源科技股份有限公司 Starting method and device
US10038370B2 (en) * 2016-09-27 2018-07-31 Fairchild Semiconductor Corporation Reduction of electrical size of bulk capacitors in mobile power supplies
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 (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7269522B2 (en) * 2004-08-27 2007-09-11 Itron, Inc. Firmware power cycle routine

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN102687358A (en) 2012-09-19
WO2013131236A1 (en) 2013-09-12

Similar Documents

Publication Publication Date Title
CN102687358B (en) Power supply circuit and electric appliance
US20100001685A1 (en) Automatic coupling of an alternating current power source and an inductive power apparatus to charge a target device battery
CN103713721B (en) Uninterruptible power system and power supply control system thereof
CN102882267A (en) Power supply device, electronic equipment and power supply method
CN103887993A (en) Electronic device
US20240120729A1 (en) Fault handling system of solid-state transformer
CN201994717U (en) Control device for supplying power to breaker control units
CN102148529A (en) Control device and control method thereof for intelligently supplying power to circuit breaker control unit
US10459014B2 (en) Electronic device
CN103872785A (en) Electric power storage device
CN102778849A (en) On-off control circuit, electronic equipment and on-off control method
CN104238711A (en) Voltage source stack system
EP3872602A1 (en) Sleep of power supply, sleep determination method and device, sleep device
CN107731260B (en) SSD power supply method and system and SSD
JP6817892B2 (en) DC power supply system
US9236766B2 (en) Control of a power adapter with energy storage elements based on output voltage thresholds
CN201374570Y (en) UPS with power-on self-checking function
WO2018214262A1 (en) Encoding chip and cell supervision circuit
CN109167431A (en) A kind of anti-lost electric system, method and power supply system storing equipment
CN215769604U (en) Industrial personal computer protection system
CN110690883A (en) EC reset circuit and electronic equipment based on composite signal
US10440667B2 (en) Access terminal
Bharadwaj et al. Smart Uninterrupted Power Supply for Automotive Applications
CN215646227U (en) Low-power protection circuit and mobile communication device
CN218214118U (en) Data communication circuit

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

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.

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

TR01 Transfer of patent right