CN115224787A - Power supply switching circuit and method - Google Patents
Power supply switching circuit and method Download PDFInfo
- Publication number
- CN115224787A CN115224787A CN202210911673.7A CN202210911673A CN115224787A CN 115224787 A CN115224787 A CN 115224787A CN 202210911673 A CN202210911673 A CN 202210911673A CN 115224787 A CN115224787 A CN 115224787A
- Authority
- CN
- China
- Prior art keywords
- unit
- level
- power supply
- comparison
- subunit
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J9/00—Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting
- H02J9/04—Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source
- H02J9/06—Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source with automatic change-over, e.g. UPS systems
- H02J9/062—Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source with automatic change-over, e.g. UPS systems for AC powered loads
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B70/00—Technologies for an efficient end-user side electric power management and consumption
- Y02B70/30—Systems integrating technologies related to power network operation and communication or information technologies for improving the carbon footprint of the management of residential or tertiary loads, i.e. smart grids as climate change mitigation technology in the buildings sector, including also the last stages of power distribution and the control, monitoring or operating management systems at local level
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S20/00—Management or operation of end-user stationary applications or the last stages of power distribution; Controlling, monitoring or operating thereof
- Y04S20/20—End-user application control systems
Landscapes
- Business, Economics & Management (AREA)
- Emergency Management (AREA)
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Stand-By Power Supply Arrangements (AREA)
Abstract
The application relates to the technical field of circuit control, in particular to a power supply switching circuit and a method, wherein the circuit comprises a power supply module, a power supply switching module, a logic control module and a level conversion module; the power supply module comprises a mains supply unit and a standby power unit, the power supply switching module comprises a first switching switch unit and a second switching switch unit, the logic control module comprises a comparison unit and a signal output unit, the level conversion module comprises a signal input unit and a level conversion unit, one end of the comparison unit is connected with the mains supply unit and the standby power unit, the other end of the comparison unit is connected with the signal output unit, the signal input unit is connected with the signal output unit, and the level conversion unit is connected with the first switching switch unit and the second switching switch unit.
Description
Technical Field
The present disclosure relates to circuit control technologies, and in particular, to a power switching circuit and method.
Background
The power supply change-over switch is a device capable of reliably switching between two power supplies, and is formed from one or several change-over switches and other necessary electric appliances, and is used for detecting power supply circuit and automatically changing over one or several load circuits from one power supply to another power supply. Simply put the power change-over switch is all the way used for a short time all the way spare, when the power of using often suddenly broke down or the power failure, through the effect of power switch pipe in the dual supply change-over switch, automatic input to stand-by power supply, messenger's equipment still can normal operating.
At present, a power supply changeover switch commonly used on a chip is usually arranged in a power supply changeover circuit in the form of a power switch tube, because the power switch tube naturally has a parasitic longitudinal PNP bipolar tube, the PMOS of the power supply changeover circuit near a changeover point can not be fully conducted, the potential of an N well of the PMOS falls to a certain extent compared with the potential of a power supply, the conduction of the parasitic PNP bipolar tube is triggered, the substrate current is expressed in a PMOS model, the substrate current threatens the safe operation of the circuit, and the Latch-up effect (Latch-up) is easily caused.
Disclosure of Invention
In order to improve the safety of circuit operation, the application provides a power switching circuit and a method.
In a first aspect, the present application provides a power switching circuit, which adopts the following technical scheme:
a power switching circuit, comprising:
the power supply module comprises a commercial power unit and a standby power unit;
the power supply switching module comprises a first switching switch unit and a second switching switch unit;
the logic control module comprises a comparison unit and a signal output unit, wherein the comparison unit is connected with the commercial power unit and the standby power unit and is used for comparing a main power supply provided by the commercial power unit with a standby power supply provided by the standby power unit and generating a comparison result, and the comparison unit is connected with the signal output unit and is used for outputting the comparison result;
and the level conversion module comprises a signal input unit and a level conversion unit, the signal input unit is connected with the signal output unit and used for receiving the comparison result of the comparison unit and sending the comparison result to the level conversion unit, and the level conversion unit is connected with the first change-over switch unit and the second change-over switch unit and used for acquiring the highest voltage as the bias potential of the first change-over switch unit and the second change-over switch unit according to the comparison result.
By adopting the technical scheme, the highest potential in the commercial power unit and the standby power unit is selected according to the comparison unit, and the highest potential is used as the bias potential of the power POMS tube in the first change-over switch unit and the second change-over switch unit, so that the PN junction between the trap and the source of the power POMS tube has no chance of positive bias and is not triggered and conducted with the parasitic PNP of the substrate any more, therefore, in the mutual switching process of the first change-over switch unit and the second change-over switch unit, the substrate current of the power switch tube is reduced, and the safety performance of the switching circuit is improved.
Optionally, the comparing unit includes a level comparing subunit;
the level comparison subunit is connected with the commercial power unit and the standby power unit, and is used for comparing the main power level of the commercial power unit with the standby power level of the standby power unit and outputting the highest logic level as a comparison result.
By adopting the technical scheme, the main power supply level and the standby power supply level are compared according to the level comparison subunit, the obtained highest logic level is used as the grid control signal of the power POMS tube, and the power switch tube is always in a fully-on or off state because the grid potential of the power POMS tube switched by the control power supply is the logic signal, so that the level loss of the output power supply is reduced.
Optionally, the logic control module further includes a switching condition setting unit, the switching condition setting unit is connected to the level comparison subunit, and the switching condition setting unit is configured to set a comparison condition of the level comparison subunit.
By adopting the technical scheme, the power supply switching condition can be set according to the actual condition, and the flexibility of the power supply switching circuit is improved.
Optionally, the level conversion unit includes a level threshold subunit and an analysis subunit, and a preset level threshold is stored in the level threshold subunit;
and one end of the analysis subunit is connected with the signal output unit and the level threshold subunit, and the other end of the analysis subunit is connected with the first change-over switch unit and the second change-over switch unit, and is used for analyzing the comparison result according to the preset level threshold and transmitting corresponding control signals to the first change-over switch unit and the second change-over switch unit.
By adopting the technical scheme, the comparison result is judged according to the analysis subunit, and the control signal meeting the control standard is favorably acquired.
Optionally, the level conversion module is connected to an abnormal state detection module, and the abnormal state detection module includes a detection unit and a compensation unit;
one end of the detection unit is connected with the analysis subunit and is used for detecting the control signal in an abnormal state and generating corresponding feedback;
the other end of the detection unit is connected with the compensation unit, and the compensation unit is used for generating a corresponding compensation variable according to the feedback and forcing the output control signal to enter a normal state according to the compensation variable.
By adopting the technical scheme, the efficiency of acquiring the normal control signal is improved.
In a second aspect, the present application further provides a power switching method, which adopts the following technical solution:
a method of power switching, comprising the steps of:
acquiring a main power supply provided by a mains supply unit;
acquiring a standby power supply provided by a standby power supply unit;
sending the main power supply and the standby power supply to a comparison unit for comparison, and outputting a corresponding comparison result according to a signal output unit;
the signal input unit receives the comparison result and sends the comparison result to the level conversion unit for analysis to obtain an analysis result;
acquiring a corresponding control signal and a highest voltage according to the analysis result, and taking the highest voltage as the bias potentials of the first change-over switch unit and the second change-over switch unit;
and controlling the first change-over switch unit and the second change-over switch unit to carry out power supply switching according to the control signal.
By adopting the technical scheme, the highest potential is selected according to the main power supply and the standby power supply, and is used as the bias potential of the well potential of the power PMOS tube in the first change-over switch unit and the second change-over switch unit, so that the PN junction between the well and the source of the power PMOS tube has no positive bias chance and is not triggered and conducted with the parasitic PNP of the substrate any more, the substrate current of the power PMOS tube is reduced in the mutual switching process of the first change-over switch unit and the second change-over switch unit, and the safety performance of the switching circuit is improved.
Optionally, the comparing unit includes a level comparing subunit, and the step of sending the main power supply and the standby power supply to the comparing unit for comparison, and outputting a corresponding comparison result according to the signal output unit includes the following steps:
acquiring a main power supply level according to the main power supply;
acquiring a standby power level according to the standby power;
and sending the main power supply level and the standby power supply level to the level comparison subunit for comparison, and outputting the highest logic level as a comparison result.
By adopting the technical scheme, the main power supply level and the standby power supply level are compared to obtain the highest logic level as the grid control signal of the PMOS tube in the first change-over switch unit and the second change-over switch unit, and as the grid potential of the power supply switching power tube is controlled to be the logic signal, the power switch tube is always in a fully-on or off state, and the level loss of the output power supply is small.
Optionally, the level shift unit includes a level threshold subunit and an analysis subunit, a preset level threshold is stored in the level threshold subunit, the signal input unit receives the comparison result, and sends the comparison result to the level shift unit for analysis, and obtaining an analysis result includes the following steps:
acquiring a preset level threshold according to the level threshold subunit;
analyzing whether the comparison result meets the preset level threshold value or not according to an analysis subunit;
and if the comparison result accords with the preset level threshold, outputting the corresponding control signal as an analysis result.
By adopting the technical scheme, the judgment is carried out according to the target level of the preset level threshold, and the acquisition of the signal meeting the control standard according to the target level is facilitated.
Optionally, the level conversion module is connected to an abnormal state detection module, and the abnormal state detection module includes a detection unit and a compensation unit, and is characterized by further including the following steps after the control signal corresponding to the output is used as an analysis result:
detecting whether the control signal is in an abnormal state or not according to the detection unit;
and if the control signal is in an abnormal state, the control signal is forcibly output to enter a normal state according to the compensation unit.
By adopting the technical scheme, the efficiency of acquiring the normal control signal is improved.
Optionally, the forcing the control signal to enter the normal state according to the compensation unit includes the following steps:
acquiring an abnormal control signal;
obtaining feedback according to the abnormal signal, and generating a compensation variable according to the feedback;
and forcibly outputting the control signal to enter a normal state according to the compensation variable.
By adopting the technical scheme, the accuracy of acquiring the normal control signal is improved.
To sum up, the application comprises the following beneficial technical effects: the highest potential in the commercial power unit and the standby power unit is selected according to the comparison unit, and the highest potential is used as the bias potential of the power POMS tube in the first change-over switch unit and the second change-over switch unit, so that the PN junction between the trap and the source of the power POMS tube has no positive bias chance and is not triggered and conducted with the parasitic PNP of the substrate any more, therefore, in the mutual switching process of the first change-over switch unit and the second change-over switch unit, the substrate current of the power switch tube is reduced, and the safety performance of the switching circuit is improved.
Drawings
Fig. 1 is an overall block diagram of an electrical switching circuit according to the present application.
Fig. 2 is a schematic overall flow chart of an electrical switching method according to the present application.
Fig. 3 is a schematic flowchart of steps S201 to S203 in an electrical switching method according to the present application.
Fig. 4 is a schematic flowchart of steps S301 to S303 in an electrical switching method according to the present application.
Fig. 5 is a schematic flowchart of steps S401 to S402 in an electrical switching method according to the present application.
Fig. 6 is a schematic flowchart of steps S501 to S403 in an electrical switching method according to the present application.
Description of the reference numerals:
1. a power supply module; 11. a mains supply unit; 12. a standby power unit; 2. a power switching module; 21. a first changeover switch unit; 22. a second changeover switch unit; 3. a logic control module; 31. a comparison unit; 311. a level comparison subunit; 32. a signal output unit; 33. a switching condition setting unit; 4. a level conversion module; 41. a signal input unit; 42. a level conversion unit; 421. a level threshold subunit; 422. an analysis subunit; 5. an abnormal state detection module; 51. a detection unit; 52. and a compensation unit.
Detailed Description
The present application is described in further detail below with reference to figures 1-6.
The embodiment of the application discloses a power supply switching circuit, which refers to fig. 1 and comprises a power supply module 1, a power supply switching module 2, a logic control module 3 and a level conversion module 4; the power supply module 1 includes a commercial power unit 11 and a standby power unit 12, the power supply switching module 2 includes a first switch unit 21 and a second switch unit 22, the logic control module 3 includes a comparison unit 31 and a signal output unit 32, and the level conversion module 4 includes a signal input unit 41 and a level conversion unit 42.
The comparing unit 31 is connected to the utility power unit 11 and the backup unit 12, and is configured to compare the main power provided by the utility power unit 11 with the backup power provided by the backup unit 12 and generate a comparison result, and the comparing unit 31 is connected to the signal output unit 32 and is configured to output the comparison result. The signal input unit 41 is connected to the signal output unit 32, and is configured to receive the comparison result of the comparison unit 31 and send the comparison result to the level shift unit 42, and the level shift unit 42 is connected to the first switch unit 21 and the second switch unit 22, and is configured to obtain a highest voltage as the bias potential of the first switch unit 21 and the second switch unit 22 according to the comparison result.
In practical applications, the main power supply can be provided by the utility power unit 11, and the backup power supply can be provided by the backup power unit 12, so that even if the main power supply is turned off or the main power supply is accidentally powered off to exit the working mode, some key components of many electronic systems must maintain basic working states, because the key components have relatively important information data recorded and stored therein, that is, the system enters the sleep mode.
After the system enters the sleep mode, some unnecessary parts with large power consumption completely turn off the power supply to save the power consumption, and some key parts are automatically switched to the standby power supply to continue working by the power supply of the standby power supply, so that the electronic system is ensured not to lose key information due to the turning off of the main power supply, and the system can correctly enter the working mode when being restarted.
The main power supply is usually obtained by converting ac power to dc power from the mains supply, the backup power supply is usually supplied by a battery, and the key components are usually a clock source for providing time for the system, a random access memory for recording data for the system, and the like. For example, in an electronic electricity meter, when the commercial power exists, the whole system is powered by the direct current generated by the commercial power, when the commercial power is lost, unnecessary modules in the system, such as display, communication and the like, can be turned off, but a clock system for generating date and timing needs to work, the consumption of electric energy and information such as distribution time period and the like cannot be lost, and when a system circuit detects that the commercial power is lost, the power supply of the circuit can be switched according to a preset power supply switching rule.
The logic control module 3 may be configured as a logic control circuit, the first switch unit 21 and the second switch unit 22 may be configured as power PMOS transistors, the comparison unit 31 may be configured as a level comparator, the main power supply and the standby power supply are compared by the level comparator, the highest logic level of the main power supply and the standby power supply is selected, the highest logic level is used as the gate control signals of the two power PMOS transistors, and since the generated highest logic level only provides bias for the well potential of the power PMOS transistor and the logic level conversion unit 42 supplies power, there is almost no power consumption.
The level shift conversion unit may be configured as a level shift circuit, a signal input unit 41 in the level shift circuit sends the obtained comparison result to the level shift unit 42, the level shift unit 42 outputs a corresponding control signal through the control signal output unit 32 according to the comparison result, and the two power PMOS transistors perform power switching according to the control signal.
In the power switching circuit, the highest potential in the commercial power unit 11 and the standby power unit 12 is selected according to the comparison unit 31, and the highest potential is used as the bias potential of the power POMS in the first switching switch unit 21 and the second switching switch unit 22, so that the PN junction between the well and the source of the power POMS does not have the chance of positive bias and is not triggered and conducted with the parasitic PNP of the substrate any more, therefore, in the process of switching the first switching switch unit 21 and the second switching switch unit 22 with each other, the substrate current of the power switching tube is reduced, and the safety performance of the switching circuit is improved.
In one embodiment of this embodiment, as shown in fig. 1, the comparing unit 31 includes a level comparing subunit 311, the level comparing subunit 311 is connected to the mains unit 11 and the power backup unit 12, and the level comparing subunit 311 is configured to compare a main power level of the mains unit 11 and a power backup level of the power backup unit 12 and output a highest logic level as a comparison result.
In practical applications, the level comparison subunit 311 compares the main power supply level and the standby power supply level to obtain the highest logic level as the gate control signal of the power PMOS transistor in the first switch unit 21 and the second switch unit 22, and since the gate potential of the power switching transistor for controlling the power supply is the logic signal, the power switching transistor is always in a fully turned-on or turned-off state, and the level loss of the output power supply is small.
In one embodiment of this embodiment, as shown in fig. 1, the logic control module 3 further includes a switching condition setting unit 33, the switching condition setting unit 33 is connected to the level comparison subunit 311, and the switching condition setting unit 33 is configured to set the comparison condition of the level comparison subunit 311.
For example, the switching condition is set by the switching condition setting unit 33, and the switching condition includes a power supply switching rule and a power supply switching pattern corresponding to the power supply switching rule. The power supply switching rule is mainly formulated based on the following two points: (1) the safe operation of a key part of circuits is ensured, the key circuits refer to circuits which need to be continuously supplied under the condition that a main power supply is lost or abnormal, and the switching cannot be started until the voltage of the main power supply is greatly reduced; (2) the service life of the standby power supply battery is prolonged as far as possible, and the standby battery does not need to be switched when the main power supply is enough to ensure the safe operation of the key circuit.
The power switching mode corresponding to the power switching rule mainly comprises two aspects: (1) depending on the absolute value of the main power supply. For example, if the minimum operating voltage of the key circuit is 1.5V, the switching condition of the main power supply may be set to 1.8V; (2) according to the relative value of the main power supply and the standby power supply. For example, when the main power supply voltage is lower than the backup power supply voltage by 1V or 70% of the main power supply voltage, a condition for triggering the switching of the main power supply is set, so that the power supply switching condition can be set according to actual conditions, and the power supply switching condition can be set according to actual conditions by the switching condition setting unit 33, thereby improving the flexibility of the power supply switching circuit.
In one embodiment of the present embodiment, as shown in fig. 1, the level converting unit 42 includes a level threshold subunit 421 and an analyzing subunit 422, wherein the level threshold subunit 421 stores a preset level threshold; the analyzing subunit 422 is connected to the signal output unit 32 and the level threshold subunit 421 at one end, and connected to the first switch unit 21 and the second switch unit 22 at the other end, and configured to analyze a comparison result according to a preset level threshold and transmit corresponding control signals to the first switch unit 21 and the second switch unit 22.
In practical applications, the level threshold subunit 421 has a corresponding requirement for the input logic lowest high level, that is, the logic lowest high level cannot be lower than the threshold voltage of the MOS transistor, and if the logic lowest high level is lower than the threshold voltage, an indeterminate state or intermediate level is output, which results in that the PMOS switch cannot be controlled correctly. Because the logic control circuit corresponding to the level conversion circuit is added, the power supply switching condition can be flexibly set, and even if a main power supply or a standby power supply is lost, the switching circuit can safely work in a correct state, so that the comparison result is judged according to the analysis subunit 422, and the control signal meeting the control standard can be acquired according to the target level.
In one implementation of this embodiment, as shown in fig. 2, the abnormal state detection module 5 includes a detection unit 51 and a compensation unit 52, one end of the detection unit 51 is connected to the analysis subunit 422, and is configured to detect the control signal in the abnormal state and generate a corresponding feedback, the other end of the detection unit 5151 is connected to the compensation unit 52, and the compensation unit 52 is configured to generate a corresponding compensation variable according to the feedback, and force the output control signal to enter the normal state according to the compensation variable, so as to improve the efficiency of acquiring the normal control signal.
The embodiment of the application discloses a power supply switching method, which comprises the following steps:
s101, acquiring a main power supply provided by a mains supply unit 11;
s102, acquiring a standby power supply provided by the standby power unit 12;
s103, sending the main power supply and the standby power supply to the comparison unit 31 for comparison, and outputting corresponding comparison results according to the signal output unit 32;
s104, the signal input unit 41 receives the comparison result and sends the comparison result to the level conversion unit 42 for analysis, and an analysis result is obtained;
s105, acquiring a corresponding control signal and the highest voltage according to the analysis result, and taking the highest voltage as the bias potentials of the first change-over switch unit 21 and the second change-over switch unit 22;
and S106, controlling the first change-over switch unit 21 and the second change-over switch unit 22 to carry out power supply switching according to the control signal.
In this embodiment, the comparing unit 31 may be configured as a comparator, the main power supply and the standby power supply are compared by a level comparator, the comparison result of the highest logic level of the main power supply and the standby power supply is obtained, the highest logic level is used as the gate control signals of the two power PMOS transistors, and since the generated highest logic level only provides bias for the well potential of the power PMOS transistor and the logic level converting unit 42 supplies power, there is almost no power consumption.
The highest logic level is used as the gate control signal of the power PMOS transistor in the first switch unit 21 and the second switch unit 22, and since the gate potential of the power transistor for controlling the power supply to switch is the logic signal, the power transistor is always in a fully turned-on or turned-off state, and the level loss of the output power supply is small.
In the power supply switching method, the highest potential is selected according to the main power supply and the standby power supply, and the highest potential is used as the bias potential of the well potential of the power PMOS tube in the first switching switch unit 21 and the second switching switch unit 22, so that the PN junction between the well and the source of the power PMOS tube has no positive bias chance and is not triggered and conducted with the parasitic PNP of the substrate any more, therefore, in the mutual switching process of the first switching switch unit 21 and the second switching switch unit 22, the substrate current of the power PMOS tube is reduced, and the safety performance of the switching circuit is improved.
In one embodiment of the present embodiment, as shown in fig. 3, the comparing unit 31 includes a level comparing subunit 311 and a signal outputting subunit, and the method includes the following steps:
s201, acquiring a main power supply level according to a main power supply;
s202, acquiring the level of the standby power supply according to the standby power supply;
s203, sends the main power supply level and the standby power supply level to the level comparison subunit 311 for comparison, and outputs the highest logic level as a comparison result.
In practical applications, the level comparison subunit 311 compares the main power supply level with the standby power supply level to obtain the highest logic level as the gate control signal of the power PMOS transistor in the first switch unit 21 and the second switch unit 22, and since the gate potential of the power switching transistor for controlling the power supply is a logic signal, the power switching transistor is always in a fully turned-on or turned-off state, and the level loss of the output power supply is small.
In one implementation of this embodiment, as shown in fig. 4, the level converting unit 42 includes a level threshold subunit 421 and an analyzing subunit 422, the level threshold subunit 421 stores a preset level threshold, the signal input unit 41 receives the comparison result and sends the comparison result to the level converting unit 42 for analysis, and the obtaining of the analysis result includes the following steps:
s301, acquiring a preset level threshold according to the level threshold subunit 421;
s302, whether the comparison result meets a preset level threshold value is analyzed according to the analysis subunit 422;
and S303, if the comparison result accords with the preset level threshold value, outputting a corresponding control signal as an analysis result.
In practical applications, the level threshold subunit 421 has a corresponding requirement for the input logic lowest high level, that is, the logic lowest high level cannot be lower than the threshold voltage of the MOS transistor, and if the logic lowest high level is lower than the threshold voltage, an indeterminate state or intermediate level is output, which results in that the PMOS switch cannot be controlled correctly. Because the logic control circuit corresponding to the level conversion circuit is added, the power supply switching condition can be flexibly set, and even if a main power supply or a standby power supply is lost, the switching circuit can also safely work in a correct state, so that the target level is judged according to the judgment subunit, and the control signal meeting the control standard is favorably acquired.
In one embodiment of the present embodiment, as shown in fig. 5, the level shift module 4 is connected to an abnormal state detection module 5, the abnormal state detection module 5 includes a detection unit 51 and a compensation unit 52, and after outputting a corresponding control signal as an analysis result, the following steps are further included:
s401, detecting whether the control signal is in an abnormal state according to the detection unit 51;
s402, if the control signal is in the abnormal state, the compensation unit 52 forces the output control signal to enter the normal state.
In practical applications, the detection unit 51 detects that the control signal output by the level conversion module 4 is in an abnormal state, and the compensation unit 52 forces the output control signal to enter a normal state, thereby improving the efficiency of acquiring a normal control signal.
In one implementation of the present embodiment, as shown in fig. 6, forcing the output control signal into the normal state according to the compensation unit 52 includes the following steps:
s501, acquiring an abnormal control signal;
s502, obtaining feedback according to the abnormal signal, and generating a compensation variable according to the feedback;
and S503, forcibly outputting a control signal to enter a normal state according to the compensation variable.
In practical application, a corresponding feedback is generated according to the obtained abnormal control signal, the compensation unit 52 generates a corresponding compensation variable according to the feedback, and the control signal output by the compensation unit is forced to enter a normal state according to the compensation variable, so that the accuracy of obtaining a normal control signal is improved.
The above embodiments are preferred embodiments of the present application, and the protection scope of the present application is not limited by the above embodiments, so: all equivalent changes made according to the structure, shape and principle of the present application shall be covered by the protection scope of the present application.
Claims (10)
1. A power switching circuit, comprising:
the power supply module (1) comprises a commercial power unit (11) and a standby power unit (12);
a power switching module (2) comprising a first switch unit (21) and a second switch unit (22);
the logic control module (3) comprises a comparison unit (31) and a signal output unit (32), wherein the comparison unit (31) is connected with the commercial power unit (11) and the standby power unit (12) and is used for comparing a main power supply provided by the commercial power unit (11) with a standby power supply provided by the standby power unit (12) and generating a comparison result, and the comparison unit (31) is connected with the signal output unit (32) and is used for outputting the comparison result;
the level conversion module (4) comprises a signal input unit (41) and a level conversion unit (42), wherein the signal input unit (41) is connected with the signal output unit (32) and used for receiving a comparison result of the comparison unit (31) and sending the comparison result to the level conversion unit (42), and the level conversion unit (42) is connected with the first switch unit (21) and the second switch unit (22) and used for acquiring the highest voltage as the bias potential of the first switch unit (21) and the second switch unit (22) according to the comparison result.
2. A power supply switching circuit according to claim 1, wherein said comparing unit (31) comprises a level comparing subunit (311);
the level comparison subunit (311) is connected with the commercial power unit (11) and the standby power unit (12), and the level comparison subunit (311) is used for comparing the main power level of the commercial power unit (11) and the standby power level of the standby power unit (12) and outputting the highest logic level as a comparison result.
3. A power supply switching circuit according to claim 2, wherein the logic control module (3) further comprises a switching condition setting unit (33), the switching condition setting unit (33) is connected to the level comparison subunit (311), and the switching condition setting unit (33) is configured to set the comparison condition of the level comparison subunit (311).
4. A power switching circuit according to claim 1, wherein the level shifting unit (42) comprises a level threshold subunit (421) and an analyzing subunit (422), the level threshold subunit (421) having a preset level threshold stored therein;
one end of the analysis subunit (422) is connected to the signal output unit (32) and the level threshold subunit (421), and the other end is connected to the first switch unit (21) and the second switch unit (22), and is configured to analyze the comparison result according to the preset level threshold and transmit corresponding control signals to the first switch unit (21) and the second switch unit (22).
5. A power supply switching circuit according to claim 4, wherein the level conversion module (4) is connected with an abnormal state detection module (5), and the abnormal state detection module (5) comprises a detection unit (51) and a compensation unit (52);
one end of the detection unit (51) is connected with the analysis subunit (422) and is used for detecting the control signal in an abnormal state and generating corresponding feedback;
the other end of the detection unit (51) is connected with the compensation unit (52), and the compensation unit (52) is used for generating a corresponding compensation variable according to the feedback and forcing the output control signal to enter a normal state according to the compensation variable.
6. A power supply switching method is characterized by comprising the following steps:
acquiring a main power supply provided by a mains supply unit;
acquiring a standby power supply provided by a standby power supply unit;
sending the main power supply and the standby power supply to a comparison unit for comparison, and outputting a corresponding comparison result according to a signal output unit;
the signal input unit receives the comparison result and sends the comparison result to the level conversion unit for analysis to obtain an analysis result;
acquiring a corresponding control signal and a highest voltage according to the analysis result, and taking the highest voltage as the bias potential of the first change-over switch unit and the second change-over switch unit;
and controlling the first change-over switch unit and the second change-over switch unit to carry out power supply switching according to the control signal.
7. The power switching method of claim 6, wherein the comparing unit comprises a level comparing subunit, and the step of sending the main power supply and the standby power supply to the comparing unit for comparison and outputting the corresponding comparison result according to the signal output unit comprises the following steps:
acquiring a main power supply level according to the main power supply;
acquiring a standby power level according to the standby power;
and sending the main power supply level and the standby power supply level to the level comparison subunit for comparison, and outputting the highest logic level as a comparison result.
8. The power switching method according to claim 7, wherein the level conversion unit includes a level threshold subunit and an analysis subunit, the level threshold subunit stores a preset level threshold, the signal input unit receives the comparison result and sends the comparison result to the level conversion unit for analysis, and obtaining the analysis result includes the following steps:
acquiring a preset level threshold according to the level threshold subunit;
analyzing whether the comparison result meets the preset level threshold value or not according to the analysis subunit;
and if the comparison result accords with the preset level threshold, outputting the corresponding control signal as an analysis result.
9. The power switching method according to claim 6, wherein the level conversion module is connected to an abnormal state detection module, the abnormal state detection module comprises a detection unit and a compensation unit, and the method further comprises the following steps after outputting the corresponding control signal as an analysis result:
detecting whether the control signal is in an abnormal state or not according to the detection unit;
and if the control signal is in an abnormal state, forcibly outputting the control signal to enter a normal state according to the compensation unit.
10. The power switching method according to claim 9, wherein the forcing the output of the control signal into a normal state according to the compensation unit comprises:
acquiring an abnormal control signal;
obtaining feedback according to the abnormal signal, and generating a compensation variable according to the feedback;
and forcibly outputting the control signal to enter a normal state according to the compensation variable.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210911673.7A CN115224787B (en) | 2022-07-30 | 2022-07-30 | Power supply switching circuit and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210911673.7A CN115224787B (en) | 2022-07-30 | 2022-07-30 | Power supply switching circuit and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115224787A true CN115224787A (en) | 2022-10-21 |
CN115224787B CN115224787B (en) | 2023-06-23 |
Family
ID=83616423
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210911673.7A Active CN115224787B (en) | 2022-07-30 | 2022-07-30 | Power supply switching circuit and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115224787B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015014108A1 (en) * | 2013-08-01 | 2015-02-05 | 华为技术有限公司 | Power supply conversion module, power supply device and power supply method |
CN108183549A (en) * | 2018-01-17 | 2018-06-19 | 上海贝岭股份有限公司 | The automatic switch-over circuit of main power source and stand-by power supply |
CN108899991A (en) * | 2018-07-20 | 2018-11-27 | 上海东软载波微电子有限公司 | Power supply automatic switchover circuit |
US20200381936A1 (en) * | 2019-05-29 | 2020-12-03 | Jtekt Corporation | Auxiliary power source device |
CN215267757U (en) * | 2021-03-01 | 2021-12-21 | 深圳市兴威帆电子技术有限公司 | Dual-power switching circuit and dual-power control system |
CN114513046A (en) * | 2022-01-26 | 2022-05-17 | 深圳市兴威帆电子技术有限公司 | Standby power supply switching circuit and device |
CN114614557A (en) * | 2022-03-16 | 2022-06-10 | 电子科技大学 | Multi-power supply switching circuit |
-
2022
- 2022-07-30 CN CN202210911673.7A patent/CN115224787B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015014108A1 (en) * | 2013-08-01 | 2015-02-05 | 华为技术有限公司 | Power supply conversion module, power supply device and power supply method |
CN108183549A (en) * | 2018-01-17 | 2018-06-19 | 上海贝岭股份有限公司 | The automatic switch-over circuit of main power source and stand-by power supply |
CN108899991A (en) * | 2018-07-20 | 2018-11-27 | 上海东软载波微电子有限公司 | Power supply automatic switchover circuit |
US20200381936A1 (en) * | 2019-05-29 | 2020-12-03 | Jtekt Corporation | Auxiliary power source device |
CN215267757U (en) * | 2021-03-01 | 2021-12-21 | 深圳市兴威帆电子技术有限公司 | Dual-power switching circuit and dual-power control system |
CN114513046A (en) * | 2022-01-26 | 2022-05-17 | 深圳市兴威帆电子技术有限公司 | Standby power supply switching circuit and device |
CN114614557A (en) * | 2022-03-16 | 2022-06-10 | 电子科技大学 | Multi-power supply switching circuit |
Non-Patent Citations (1)
Title |
---|
郭政;苏琴;: "基于DSP控制系统的无扰动可控硅双电源切换柜的研发", 通讯世界, no. 18 * |
Also Published As
Publication number | Publication date |
---|---|
CN115224787B (en) | 2023-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101447691B (en) | Commutation circuit of external power supply and battery and control method thereof | |
CN101897100B (en) | Arrangement and approach for coupling power supplies using controlled switching techniques | |
US9244509B2 (en) | Uninterruptible power system and power control system thereof | |
US20170310159A1 (en) | Supply-switching system | |
CN214380275U (en) | Dual-power supply circuit and dual-power supply system of T-Box controller | |
CN103138376A (en) | Power switching circuit and power switching method thereof | |
CN104412480A (en) | In-car power supply apparatus | |
CN103094980A (en) | Backup power control system | |
EP2176729B1 (en) | Integrated electronic device including circuitry for providing a system supply voltage from a primary power supply | |
US20120242146A1 (en) | Power Management Device | |
CN101846967A (en) | Embedded standby energy-saving method and device | |
CN110008069B (en) | Power supply switching control circuit and control method | |
CN103699175A (en) | Mainboard | |
CN111817696B (en) | Delay shutdown circuit and delay shutdown control method | |
CN102468650B (en) | Power supply device with multiple power sources | |
CN205195414U (en) | Network GNSS receiver electrical power generating system | |
CN115224787A (en) | Power supply switching circuit and method | |
EP1505710B1 (en) | Power supply apparatus with a backup time | |
CN112649724A (en) | Power failure detection circuit and method and MCU chip | |
CN212726976U (en) | Display outage system and display | |
CN112600283B (en) | Startup and shutdown circuit | |
CN113282159A (en) | Switch control system for zero current standby of embedded controller | |
CN109586363B (en) | Charging circuit | |
CN111399617B (en) | Power supply control device and electronic apparatus | |
CN209994160U (en) | Emergency power supply charge-discharge control circuit and emergency lighting equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |