一种电源切换电路以及供电设备
By using hardware logic control with a comparison circuit and a NOT gate circuit, selective conduction of two power supplies is achieved, solving the problems of power competition and backflow in traditional power switching, improving switching stability and safety, and extending battery life.
Patent Information
- Application Number
- CN202611346119.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-01
- Publication Date
- 2026-11-24
AI Technical Summary
Traditional multi-power switching circuits suffer from large fixed voltage drops, heat generation, and significant mutual sinking losses when the two voltages are close. Furthermore, they have high software control risks, and microcontroller system malfunctions can lead to safety issues.
The power switching circuit employs a comparator circuit, a NOT gate circuit, and hardware logic control. It achieves selective conduction of two power supplies through comparators and hysteresis comparators, and uses the inverted signal of the NOT gate circuit to control the conduction and disconnection of the two control circuits, avoiding power competition and backflow. It adopts pure hardware logic control without the need for software intervention.
It achieves stable switching between two power supplies, avoids power competition and backflow, improves switching response speed, reduces losses, eliminates the safety hazard of microcontroller system runaway, and extends battery life.
Smart Images

Figure CN123163601A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power switching technology, and in particular to a power switching circuit and power supply equipment. Background Technology
[0002] Traditional multi-power switching circuits use Schottky diodes for automatic switching, automatically switching between two power sources based on voltage difference without control signals. However, this method suffers from a fixed voltage drop, high current generation, and simultaneous discharge and mutual sinking when the two voltages are close, resulting in significant losses. Using PMOS transistors instead of diodes offers millivolt-level forward voltage drops and virtually no losses. This method can be either self-driven or MCU-controlled. MCU-controlled switching, using voltage divider resistors for battery voltage detection, allows for software-based automatic switching. However, software control carries higher risks than hardware control; a malfunction in the microcontroller system could lead to unpredictable safety issues. Therefore, this application designs a power switching circuit and power supply device to address these problems. Summary of the Invention
[0003] This application provides a power switching circuit and a power supply device, which aims to improve the problems of power supply devices being unusable and having high power loss when switching power.
[0004] This invention provides a power switching circuit, including a comparator circuit, a NOT gate circuit, a first control circuit, and a second control circuit; The first input terminal of the comparator circuit is used to connect to the first power supply, the second input terminal of the comparator circuit is used to connect to the second power supply, and the output terminal of the comparator circuit is used to output the first enable signal. The input terminal of the NOT gate is connected to the output terminal of the comparator circuit, and is used to perform level conversion on the first enable signal. The output terminal of the NOT gate is used to output the second enable signal. The first control circuit is disposed between the first power supply and the electrical load. The control terminal of the first control circuit is connected to the output terminal of the comparison circuit and is used to turn on or off in response to the first enable signal. The second control circuit is disposed between the second power supply and the electrical load. The control terminal of the second control circuit is connected to the output terminal of the NOT gate circuit and is used to turn on or off in response to the second enable signal. Either the first enable signal or the second enable signal is a high-level signal, and the other is a low-level signal.
[0005] Preferably, the comparison circuit includes a comparator, a first resistor, and a second resistor; The first input terminal of the comparator is connected to the first power supply, and the second input terminal of the comparator is connected to the second power supply; The first end of the first resistor is connected to the output terminal of the comparator, and the second end of the first resistor is connected to the first input terminal of the comparator. The first end of the second resistor is connected to the power supply terminal, and the second end of the second resistor is connected to the output terminal of the comparator.
[0006] Preferably, the comparison circuit further includes a first voltage divider module and a reference voltage module; The first terminal of the first voltage divider module is connected to the first power supply, the second terminal of the first voltage divider module is grounded, and the output terminal of the first voltage divider module is connected to the first input terminal of the comparator. The first terminal of the reference voltage module is connected to the second power supply, the second terminal of the reference voltage module is grounded, and the output terminal of the reference voltage module is connected to the second input terminal of the comparator.
[0007] Preferably, the first voltage divider module includes a third resistor and a fourth resistor; The first end of the third resistor is connected to the first power supply, the second end of the third resistor is connected to the first end of the fourth resistor, and the second end of the fourth resistor is grounded. The common connection point of the third resistor and the fourth resistor serves as the output terminal of the first voltage divider module and is connected to the first input terminal of the comparator.
[0008] Preferably, the reference voltage module includes a fifth resistor and a Zener diode; The first end of the fifth resistor is connected to the second power supply, the second end of the fifth resistor is connected to the cathode of the Zener diode, and the anode of the Zener diode is grounded. The common point where the fifth resistor and the Zener diode are connected serves as the output terminal of the reference voltage module and is connected to the second input terminal of the comparator.
[0009] Preferably, the first control circuit includes a first switch, a second switch, a third switch, a sixth resistor, and a seventh resistor; The first switch and the second switch are connected in series and are disposed between the first power supply and the input terminal of the electrical load; The seventh resistor, the sixth resistor, and the third switch are connected in series. The first end of the seventh resistor is connected to the common connection point of the first switch and the second switch. The second end of the seventh resistor is connected to the third switch through the sixth resistor. The first end of the third switch is grounded. The control terminal of the third switch is connected to the first enable signal. The common connection point of the sixth resistor and the seventh resistor is connected to the control terminal of the first switch and the control terminal of the second switch, respectively. The input terminal of the first switch is connected to the first power source, and the output terminal of the second switch is connected to the electrical load.
[0010] Preferably, the first control circuit further includes a first current-limiting resistor and a first pull-down resistor, wherein a first end of the first current-limiting resistor is connected to the first power control terminal, and a second end of the first current-limiting resistor is connected to the control terminal of the first switch. The first end of the first pull-down resistor is connected to the second end of the first current-limiting resistor, and the second end of the first pull-down resistor is grounded.
[0011] Preferably, the second control circuit includes a fourth switch, a fifth switch, a sixth switch, an eighth resistor, and a ninth resistor; The fourth switch and the fifth switch are connected in series and are disposed between the second power supply and the input terminal of the electrical load; The ninth resistor, the eighth resistor, and the sixth switch are connected in series. The first end of the ninth resistor is connected to the common connection point of the fourth and fifth switches. The second end of the ninth resistor is connected to the sixth switch through the eighth resistor. The first end of the sixth switch is grounded. The control terminal of the sixth switch is connected to the second enable signal. The common connection point of the eighth and ninth resistors is connected to the control terminals of the fourth and fifth switches, respectively. The input terminal of the fourth switch is connected to the second power source, and the output terminal of the fifth switch is connected to the electrical load.
[0012] Preferably, the second control circuit further includes a second current-limiting resistor and a second pull-down resistor, wherein the first end of the second current-limiting resistor is connected to the control terminal of the second power supply, and the second end of the second current-limiting resistor is connected to the control terminal of the fourth switch. The first end of the second pull-down resistor is connected to the second end of the second current-limiting resistor, and the second end of the second pull-down resistor is grounded.
[0013] This application embodiment also provides a power supply device, including a first power supply, a second power supply, and the aforementioned power switching circuit. The first power supply and the second power supply are connected to an electrical load through the power switching circuit, so that either the first power supply or the second power supply supplies power to the electrical load. Attached Figure Description
[0014] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0015] Figure 1 This is a schematic diagram of the power switching circuit provided in one embodiment of this application; Figure 2 This is a schematic diagram of the circuit structure of a power switching circuit provided in an embodiment of this application; Figure 3 This is a schematic diagram of the circuit structure of the first control circuit provided in an embodiment of this application; Figure 4 This is a schematic diagram of the circuit structure of the second control circuit provided in an embodiment of this application. Detailed Implementation
[0016] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0017] It should be understood that the invention can be embodied in various forms and should not be construed as being limited to the embodiments set forth herein. Rather, providing these embodiments will make the disclosure thorough and complete, and will fully convey the scope of the invention to those skilled in the art. In the drawings, for clarity, the dimensions and relative dimensions of layers and regions may be exaggerated. The same reference numerals denote the same elements throughout.
[0018] It should be understood that when an element or layer is referred to as "on," "adjacent to," "connected to," or "coupled to" other elements or layers, it may be directly on, adjacent to, connected to, or coupled to other elements or layers, or there may be intervening elements or layers. Conversely, when an element is referred to as "directly on," "directly adjacent to," "directly connected to," or "directly coupled to" other elements or layers, there are no intervening elements or layers. It should be understood that although the terms first, second, third, etc., may be used to describe various elements, components, areas, layers, and / or portions, these elements, components, areas, layers, and / or portions should not be limited by these terms. These terms are only used to distinguish one element, component, area, layer, or portion from another element, component, area, layer, or portion. Therefore, without departing from the teachings of this invention, the first element, component, area, layer, or portion discussed below may be referred to as the second element, component, area, layer, or portion.
[0019] Spatial relation terms such as “below,” “under,” “below,” “under,” “above,” “above,” etc., are used herein for convenience of description to describe the relationship between one element or feature shown in the figure and other elements or features. It should be understood that, in addition to the orientation shown in the figure, spatial relation terms are intended to also include different orientations of the device in use and operation. For example, if the device in the figure is flipped, then the element or feature described as “below,” “under,” or “below” other elements or features will be oriented “above” other elements or features. Therefore, the exemplary terms “below” and “under” can include both above and below orientations. The device may be otherwise oriented (rotated 90 degrees or otherwise) and the spatial descriptive terms used herein will be interpreted accordingly.
[0020] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. When used herein, the singular forms “a,” “an,” and “the” are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the terms “comprising” and / or “including,” when used in this specification, identify the presence of the stated features, integers, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups. When used herein, the term “and / or” includes any and all combinations of the associated listed items.
[0021] To fully understand this invention, detailed structures and steps will be presented in the following description to illustrate the technical solution proposed by this invention. Preferred embodiments of the invention are described in detail below; however, in addition to these detailed descriptions, the invention may have other embodiments.
[0022] This invention provides a power switching circuit 1, such as... Figure 1 As shown, the power switching circuit 1 includes a comparator circuit 11, a NOT gate circuit 12, a first control circuit 13, and a second control circuit 14. The first input terminal of the comparator circuit 11 is used to connect to the first power supply VBAT1, the second input terminal of the comparator circuit 11 is used to connect to the second power supply VBAT2, and the output terminal of the comparator circuit 11 is used to output the first enable signal EN-BAT1. The input terminal of NOT gate 12 is connected to the output terminal of comparator circuit 11 to perform level conversion on the first enable signal EN-BAT1, and the output terminal of NOT gate 12 is used to output the second enable signal EN-BAT2. The first control circuit 13 is disposed between the first power supply VBAT1 and the electrical load 15. The control terminal of the first control circuit 13 is connected to the output terminal of the comparison circuit 11 and is used to turn on or off in response to the first enable signal EN-BAT1. The second control circuit 14 is disposed between the second power supply VBAT2 and the electrical load 15. The control terminal of the second control circuit 14 is connected to the output terminal of the NOT gate circuit 12 and is used to turn on or off in response to the second enable signal EN-BAT2. Either the first enable signal EN-BAT1 or the second enable signal EN-BAT2 is a high-level signal, and the other is a low-level signal.
[0023] In this example, comparator circuit 11 compares the voltage state of the first power supply VBAT1 with the voltage state of the second power supply VBAT2, and outputs the corresponding first enable signal EN-BAT1 based on the comparison result. NOT gate circuit 12 inverts the first enable signal EN-BAT1 and outputs the second enable signal EN-BAT2. Due to the inversion effect of NOT gate circuit 12, the levels of the first enable signal EN-BAT1 and the second enable signal EN-BAT2 are always opposite. When the first enable signal EN-BAT1 is high, the second enable signal EN-BAT2 is low; when the first enable signal EN-BAT1 is low, the second enable signal EN-BAT2 is high. The first control circuit 13 is turned on or off under the control of the first enable signal EN-BAT1, and the second control circuit 14 is turned on or off under the control of the second enable signal EN-BAT2. The on and off states of the two control circuits are always opposite, so that only one of the first power supply VBAT1 and the second power supply VBAT2 supplies power to the electrical load 15 at any given time. This achieves selective conduction of the two power supplies, avoiding power competition and backflow problems. Compared to schemes where switching is controlled by MCU software, this application uses pure hardware logic control, requiring no software intervention, resulting in fast switching response and eliminating the safety hazard of control failure due to MCU system malfunction.
[0024] In some embodiments, such as Figure 2 As shown, the comparator circuit 11 includes a comparator U1, a first resistor R1, and a second resistor R2; The first input terminal of comparator U1 is connected to the first power supply VBAT1, and the second input terminal of comparator U1 is connected to the second power supply VBAT2. The first end of the first resistor R1 is connected to the output terminal of comparator U1, and the second end of the first resistor R1 is connected to the first input terminal of comparator U1. The first end of the second resistor R2 is connected to the power supply terminal, and the second end of the second resistor R2 is connected to the output terminal of the comparator U1.
[0025] In this example, the first resistor R1 is connected between the output and the first input (i.e., the non-inverting input) of comparator U1, forming a positive feedback branch, making comparator U1 a hysteresis comparator. The introduction of positive feedback gives comparator U1 two different threshold voltages: an upper threshold and a lower threshold. When the voltage at the first input gradually increases from a low level and exceeds the upper threshold, the output of comparator U1 flips from low to high; when the voltage at the first input gradually decreases from a high level and falls below the lower threshold, the output of comparator U1 flips from high to low. The upper threshold is higher than the lower threshold, and the voltage range between them is the hysteresis interval. The existence of the hysteresis interval ensures that when the input signal changes slightly due to load fluctuations near the threshold, the output state of comparator U1 will not frequently change, thus improving the stability of the circuit in noisy environments. The second resistor R2 acts as a pull-up resistor, used to pull the output of comparator U1 up to the voltage level of the power supply, ensuring the stability of the high-level output amplitude. The power supply can be provided by either the first power supply VBAT1 or the second power supply VBAT2, or by an independent auxiliary power supply. The first resistor R1 is connected between the output and the first input of comparator U1, forming a positive feedback branch together with comparator U1. Therefore, the width of the hysteresis interval is determined by the ratio of the first resistor to the second resistor. When the output high level of comparator U1 is close to the power supply voltage VCC and the output low level is close to ground potential, the hysteresis interval width is approximately ΔV = VCC × R1 / R2, where VCC is the power supply voltage. Designers can adjust the width of the hysteresis interval by adjusting the ratio of the first resistor to the second resistor to adapt to the anti-interference requirements of different power supply systems. While keeping the ratio constant, the resistance values of the first and second resistors can be adjusted proportionally to balance power consumption and drive capability requirements.
[0026] In some embodiments, the comparison circuit 11 further includes a first voltage divider module 16 and a reference voltage module 17; The first terminal of the first voltage divider module 16 is connected to the first power supply VBAT1, the second terminal of the first voltage divider module 16 is grounded, and the output terminal of the first voltage divider module 16 is connected to the first input terminal of the comparator U1. The first terminal of the reference voltage module 17 is connected to the second power supply VBAT2, the second terminal of the reference voltage module 17 is grounded, and the output terminal of the reference voltage module 17 is connected to the second input terminal of the comparator U1.
[0027] In this example, the first voltage divider module 16 is used to divide the voltage of the first power supply VBAT1 and input the divided voltage signal to the first input terminal of the comparator U1. The reference voltage module 17 is used to generate a stable reference voltage using the voltage of the second power supply VBAT2 and input this reference voltage to the second input terminal (i.e., the inverting input terminal) of the comparator U1. Through the cooperation of the first voltage divider module 16 and the reference voltage module 17, the voltage of the first power supply VBAT1, after being divided, is compared with the reference voltage generated by the second power supply VBAT2 in the comparator U1. The comparison result determines the level state of the first enable signal EN-BAT1, thereby realizing the detection and judgment of the first power supply VBAT1 with the voltage of the second power supply VBAT2 as a reference.
[0028] In this example, the comparator circuit 11 compares the voltage state of the first power supply VBAT1 with the voltage state of the second power supply VBAT2, and outputs a corresponding first enable signal EN-BAT1 based on the comparison result. The NOT gate circuit 12 inverts the first enable signal EN-BAT1 and outputs a second enable signal EN-BAT2, ensuring that the levels of the first enable signal EN-BAT1 and the second enable signal EN-BAT2 are always opposite. The first control circuit 13 is turned on or off under the control of the first enable signal EN-BAT1, and the second control circuit 14 is turned on or off under the control of the second enable signal EN-BAT2. The on and off states of the two control circuits are always opposite, so that only one of the first power supply VBAT1 and the second power supply VBAT2 supplies power to the electrical load 15 at any given time.
[0029] The operation of comparator circuit 11 under three different conditions is as follows: When only the first power supply VBAT1 is connected to the circuit and the second power supply VBAT2 is not connected, the voltage of the first power supply VBAT1 is divided and enters the first input terminal of comparator U1. Since the second power supply VBAT2 is not present, the reference voltage module 17 cannot generate a reference voltage, and the second input terminal of comparator U1 is at ground potential. At this time, the voltage at the first input terminal of comparator U1 is greater than the voltage at the second input terminal, and comparator U1 outputs a high level, that is, the first enable signal EN-BAT1 is high. After this high level is inverted by the NOT gate circuit 12, the second enable signal EN-BAT2 is low. The first control circuit 13 is turned on in response to the high level of the first enable signal EN-BAT1, and the second control circuit 14 is turned off in response to the low level of the second enable signal EN-BAT2, and the first power supply VBAT1 supplies power to the electrical load 15. When only the second power supply VBAT2 is connected to the circuit and the first power supply VBAT1 is not connected, the second power supply VBAT2 generates a stable reference voltage through the reference voltage module 17 and enters the second input terminal of comparator U1. Since the first power supply VBAT1 is not in place, the first voltage divider module 16 has no output, and the first input terminal of comparator U1 is at ground potential. At this time, the voltage at the first input terminal of comparator U1 is less than the voltage at the second input terminal, and comparator U1 outputs a low level, that is, the first enable signal EN-BAT1 is low. After this low level is inverted by the NOT gate circuit 12, the second enable signal EN-BAT2 becomes high. The first control circuit 13 is turned off in response to the low-level first enable signal EN-BAT1, and the second control circuit 14 is turned on in response to the high-level second enable signal EN-BAT2, and the second power supply VBAT2 supplies power to the electrical load 15. When the first power supply VBAT1 and the second power supply VBAT2 are connected to the circuit at the same time, the voltage of the first power supply VBAT1 is divided and enters the first input terminal of comparator U1, and the second power supply VBAT2 generates a stable reference voltage through the reference voltage module 17 and enters the second input terminal of comparator U1. Comparator U1 compares the two input voltages. When the voltage of the first power supply VBAT1, after voltage division, is higher than the reference voltage, comparator U1 outputs a high level, the first enable signal EN-BAT1 is high, and the second enable signal EN-BAT2 is low. The first control circuit 13 is turned on, and the first power supply VBAT1 supplies power to the electrical load 15. When the voltage of the first power supply VBAT1 is pulled down due to increased load and, after voltage division, is lower than the reference voltage, comparator U1 outputs a low level, the first enable signal EN-BAT1 is low, and the second enable signal EN-BAT2 is high. The first control circuit 13 is turned off, and the second control circuit 14 is turned on, switching the power supply from the first power supply VBAT1 to the second power supply VBAT2. This achieves selective operation of the two power supplies, avoiding power competition and backflow issues.
[0030] Furthermore, due to the introduction of a hysteresis comparator U1 in the comparator circuit 11, which has two different thresholds—an upper threshold and a lower threshold—the switching thresholds for the rising and falling input signals are inconsistent, resulting in a hysteresis interval. When the voltage of the first power supply VBAT1, after voltage division, is located in the hysteresis interval between the upper and lower thresholds, the output state of comparator U1 remains unchanged. Regardless of whether the voltage falls from a high point into the hysteresis interval or rises from a low point back into the hysteresis interval, the output does not flip. In other words, when the first power supply VBAT1 is supplying power and its voltage falls from a high point but has not yet fallen below the lower threshold, the circuit continues to supply power from the first power supply VBAT1 and will not switch to the second power supply VBAT2; when the second power supply VBAT2 is supplying power and the voltage of the first power supply VBAT1 rises from a low point but has not yet risen above the upper threshold, the circuit continues to supply power from the second power supply VBAT2 and will not switch back to the first power supply VBAT1. This characteristic effectively avoids the "ping-pong effect" during power switching, meaning that even with a large load and a slight rebound after the battery voltage is pulled down, there will be no frequent switching between the two power supplies.
[0031] Taking a 12-volt battery system as an example, let the upper threshold correspond to a first power supply VBAT1 voltage of 12.0 volts, the lower threshold correspond to a first power supply VBAT1 voltage of 11.0 volts, and the hysteresis interval correspond to a first power supply VBAT1 voltage range of 11.0 volts to 12.0 volts. When the first power supply VBAT1 voltage is 12.3 volts, which is higher than the upper threshold of 12.0 volts, comparator U1 outputs a high level, the first control circuit 13 is turned on, and the first power supply VBAT1 supplies power to the electrical load 15. When the load increases, causing the first power supply VBAT1 voltage to drop to 11.5 volts, this voltage value falls within the hysteresis interval, the output state of comparator U1 remains unchanged, the first control circuit 13 remains on, and no switching occurs. Only when the first power supply VBAT1 voltage continues to drop to 11.0 volts, which is at or below the lower threshold, does the output of comparator U1 flip, and the power supply switches to the second power supply VBAT2. After the switch is completed, even if the voltage rebounds slightly to 11.3 volts due to load changes, it remains within the hysteresis range. The output state of comparator U1 remains unchanged, and the second control circuit 14 continues to conduct, without switching back to the first power supply VBAT1. Thus, the hysteresis range of 1 volt (11.0 volts to 12.0 volts) effectively filters out small voltage fluctuations caused by load variations, completely solving the problem of cyclical switching from battery A to battery B with a high current load and then back to battery A in traditional solutions. This avoids damage to the SEI film of lithium-ion batteries and lithium deposition caused by frequent high-current start-stop and alternating discharge, significantly extending battery life.
[0032] In some embodiments, the first voltage divider module 16 includes a third resistor R3 and a fourth resistor R4; The first end of the third resistor R3 is connected to the first power supply VBAT1, the second end of the third resistor R3 is connected to the first end of the fourth resistor R4, and the second end of the fourth resistor R4 is grounded. The common point where the third resistor R3 and the fourth resistor R4 are connected serves as the output terminal of the first voltage divider module 16, which is connected to the first input terminal of the comparator U1.
[0033] In this example, the third resistor R3 and the fourth resistor R4 form a series voltage divider network to divide the voltage of the first power supply VBAT1. The voltage value after division is determined by the resistance ratio of the third resistor R3 and the fourth resistor R4. That is, the output voltage of the first voltage divider module 16 is equal to the voltage of the first power supply VBAT1 multiplied by the resistance of the fourth resistor R4 and then divided by the sum of the resistances of the third resistor R3 and the fourth resistor R4, i.e., VBAT1×R4 / (R3+R4). Designers can select the specific resistance values of the third resistor R3 and the fourth resistor R4 according to actual needs to set a suitable in-phase input voltage range. By adjusting the voltage division ratio of the third resistor R3 and the fourth resistor R4, the voltage threshold at which the first power supply VBAT1 is determined to be available for supply can be flexibly set, thereby adapting to the requirements of different battery types and system voltage specifications.
[0034] In some embodiments, the reference voltage module 17 includes a fifth resistor R5 and a Zener diode D1; The first end of the fifth resistor R5 is connected to the second power supply VBAT2, and the second end of the fifth resistor R5 is connected to the cathode of the Zener diode D1, while the anode of the Zener diode D1 is grounded. The common point of connection between the fifth resistor R5 and the Zener diode D1 serves as the output terminal of the reference voltage module 17, which is connected to the second input terminal of the comparator U1.
[0035] In this example, the fifth resistor, R5, acts as a current-limiting resistor to restrict the current flowing through the Zener diode D1, preventing it from being damaged by excessive current. The Zener diode D1 utilizes its reverse breakdown characteristic; after reaching its breakdown voltage, the voltage across it remains essentially constant, thus providing a stable reference voltage for the second input of comparator U1. This reference voltage is determined by the breakdown voltage of Zener diode D1. When the voltage of the second power supply VBAT2 is higher than the breakdown voltage of Zener diode D1, this reference voltage is independent of the voltage value of VBAT2, and Zener diode D1 operates in a breakdown state, outputting a constant reference voltage. This design ensures that the reference voltage of comparator U1 is unaffected by fluctuations in the voltage of the second power supply VBAT2, guaranteeing the accuracy and stability of the switching decision.
[0036] In some embodiments, such as Figure 3As shown, the first control circuit 13 includes a first switch Q1, a second switch Q2, a third switch Q3, a sixth resistor R6, and a seventh resistor R7; The first switch Q1 and the second switch Q2 are connected in series and are located between the first power supply VBAT1 and the input terminal VCC-BUS of the electrical load. The seventh resistor R7, the sixth resistor R6, and the third switch Q3 are connected in series. The first end of the seventh resistor R7 is connected to the common connection point of the first switch Q1 and the second switch Q2. The second end of the seventh resistor R7 is connected to the third switch Q3 through the sixth resistor R6. The first end of the third switch Q3 is grounded. The control terminal of the third switch Q3 is connected to the first enable signal EN-BAT1. The common connection point of the sixth resistor R6 and the seventh resistor R7 is connected to the control terminal of the first switch Q1 and the control terminal of the second switch Q2, respectively. The input terminal of the first switch Q1 is connected to the first power supply VBAT1, and the output terminal of the second switch Q2 is connected to the input terminal VCC-BUS of the electrical load.
[0037] In this example, the first switch Q1 and the second switch Q2 are both P-channel enhancement-mode MOSFETs, while the third switch Q3 is an N-channel enhancement-mode MOSFET. The source of the first switch Q1 is connected to the first power supply VBAT1 as its input, its drain is its output, and its gate is its control terminal. The two P-channel MOSFETs are connected back-to-back in series to achieve bidirectional cutoff. When the first power supply VBAT1 needs to be cut off, regardless of the current direction, both P-channel MOSFETs can reliably turn off, preventing current from flowing back from the load's input terminal VCC-BUS to the first power supply VBAT1. The body diodes of the first switch Q1 and the second switch Q2 are connected in reverse series, further enhancing the reverse current protection capability. The third switch Q3 is an N-channel enhancement-mode MOSFET, with its gate connected to the first enable signal EN-BAT1 as its control terminal, its source grounded as its first terminal, and its drain as its output terminal. When the first enable signal EN-BAT1 is high, the third switch Q3 is turned on, and the gates of the first switches Q1 and Q2 are pulled low to ground potential. The gate-source voltages of the first switches Q1 and Q2 reach the negative conduction threshold, and the first switches Q1 and Q2 are turned on. The first power supply VBAT1 supplies power to the input terminal VCC-BUS of the electrical load through the first switches Q1 and Q2. When the first enable signal EN-BAT1 is low, the third switch Q3 is turned off, and the gates of the first switches Q1 and Q2 are pulled up to the potential of the input terminal VCC-BUS of the electrical load through the seventh resistor R7. The first switches Q1 and Q2 are turned off, and the path between the first power supply VBAT1 and the input terminal VCC-BUS of the electrical load is cut off. The sixth resistor R6 is used to pull the gates of the first switch Q1 and the second switch Q2 low when the third switch Q3 is turned on. The seventh resistor R7 is used to provide a continuous gate drive bias when the first switch Q1 and the second switch Q2 are turned on, and also to pull the gates of the first switch Q1 and the second switch Q2 high to the voltage level of the first power supply VBAT1 when the third switch Q3 is turned off, so that they are turned off.
[0038] In some embodiments, the first control circuit 13 further includes a first current-limiting resistor R10 and a first pull-down resistor R11. The first end of the first current-limiting resistor R10 is connected to the control terminal of the first power supply VBAT1, and the second end of the first current-limiting resistor R10 is connected to the control terminal of the first switch Q1. The first end of the first pull-down resistor R11 is connected to the second end of the first current-limiting resistor R10, and the second end of the first pull-down resistor R11 is grounded.
[0039] In this example, the first current-limiting resistor R10 is connected in series in the gate branch of the first switch Q1 to limit the magnitude of the drive current at the control terminal of the first switch Q1, preventing excessive instantaneous current when the third switch Q3 is turned on, which could damage the gate oxide layer of the first switch Q1. The first pull-down resistor R11 is connected between the gate of the first switch Q1 and ground, and is used to reliably pull down the gate of the first switch Q1 to ground potential when the first enable signal EN-BAT1 is low and the third switch Q3 is off, avoiding false triggering of the gate of the first switch Q1 due to electrostatic interference or induced noise caused by floating, and ensuring that the first control circuit 13 has a definite level state in the off state.
[0040] In some embodiments, such as Figure 4 As shown, the second control circuit 14 includes a fourth switch Q4, a fifth switch Q5, a sixth switch Q6, an eighth resistor R8, and a ninth resistor R9. The fourth switch Q4 and the fifth switch Q5 are connected in series and are located between the second power supply VBAT2 and the input terminal VCC-BUS of the electrical load. The ninth resistor R9, the eighth resistor R8, and the sixth switch Q6 are connected in series. The first end of the ninth resistor R9 is connected to the common connection point of the fourth switch Q4 and the fifth switch Q5. The second end of the ninth resistor is connected to the sixth switch Q6 through the eighth resistor R8. The first end of the sixth switch Q6 is grounded. The control terminal of the sixth switch Q6 is connected to the second enable signal EN-BAT2. The common connection point of the eighth resistor R8 and the ninth resistor R9 is connected to the control terminals of the fourth switch Q4 and the fifth switch Q5, respectively. The input terminal of the fourth switch Q4 is connected to the second power supply VBAT2, and the output terminal of the fifth switch Q5 is connected to the input terminal VCC-BUS of the electrical load.
[0041] In this example, the component types, connections, and operating principles of the second control circuit 14 are basically the same as those of the first control circuit 13. The only difference is that the second control circuit 14 is controlled by the second enable signal EN-BAT2, while the first control circuit 13 is controlled by the first enable signal EN-BAT1. The fourth switch Q4 and the fifth switch Q5 are both P-channel enhancement-mode MOSFETs, connected back-to-back in series to achieve bidirectional cutoff and reverse-current protection. The sixth switch Q6 is an N-channel enhancement-mode MOSFET. The eighth resistor R8 functions the same as the sixth resistor R6, pulling the gates of the fourth switch Q4 and the fifth switch Q5 low to ground potential when the sixth switch Q6 is on. The ninth resistor R9 functions the same as the seventh resistor R7, providing a continuous gate drive bias when the fourth switch Q4 and the fifth switch Q5 are on, and pulling the gates of the fourth switch Q4 and the fifth switch Q5 up to the off level when the sixth switch Q6 is off. Since the first enable signal EN-BAT1 and the second enable signal EN-BAT2 are inverse signals, at the same time, one of the first control circuit 13 and the second control circuit 14 is in the on state and the other is in the off state. This ensures that the first power supply VBAT1 and the second power supply VBAT2 will not supply power to the input terminal VCC-BUS of the electrical load at the same time, nor will they be disconnected from the input terminal VCC-BUS of the electrical load at the same time. There is always one and only one power supply to provide power to the input terminal VCC-BUS of the electrical load, thus realizing uninterrupted power supply.
[0042] In some embodiments, the second control circuit 14 further includes a second current-limiting resistor R12 and a second pull-down resistor R13. The first end of the second current-limiting resistor R12 is connected to the control terminal of the second power supply VBAT2, and the second end of the second current-limiting resistor R12 is connected to the control terminal of the fourth switch Q4. The first end of the second pull-down resistor R13 is connected to the second end of the second current-limiting resistor R12, and the second end of the second pull-down resistor R13 is grounded.
[0043] In this example, the second current-limiting resistor R12 is used to limit the magnitude of the gate drive current of the fourth switch Q4, preventing excessive instantaneous current when the sixth switch Q6 is turned on, which could damage the gate oxide layer of the fourth switch Q4. The second pull-down resistor R13 is used to reliably pull down the gate of the fourth switch Q4 to ground potential when the second enable signal EN-BAT2 is low, ensuring that the fourth switch Q4 maintains a defined voltage level when it is off.
[0044] This embodiment also provides a power supply device, including a first power supply, a second power supply, and the aforementioned power switching circuit. The first power supply and the second power supply are connected to the electrical load through the power switching circuit, so that either the first power supply or the second power supply can supply power to the electrical load.
[0045] In this example, the power supply device can power anesthesia machines, medical devices, portable power supply devices, or other devices that require dual-battery power and have high requirements for power supply stability. The power switching circuit 1 is located inside the power supply device and connected between the first power supply VBAT1, the second power supply VBAT2, and the device being used. It automatically selects one of the two batteries to supply power to the device. Taking anesthesia machines as an example, as crucial life support equipment in the operating room, the continuity and stability of their power supply directly affect patient safety. Using the power switching circuit 1 provided in this embodiment, when the main battery voltage drops below the lower threshold due to prolonged use or a high-current load, the circuit automatically switches to the backup battery. During the switching process, one power supply remains continuous, achieving uninterrupted power supply and preventing device restarts or data loss due to power switching. Simultaneously, due to the introduction of the hysteresis comparator U1, even when load fluctuations cause a slight increase in battery voltage, the circuit will not frequently switch back, thus avoiding damage to battery life caused by alternating discharge of the two batteries and extending the device's battery life in outdoor or mobile scenarios.
[0046] In the description of this application, it should be understood that terms such as “first” and “second” are used only to distinguish similar objects and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated.
[0047] It should be noted that in the embodiments of this application, "connection" can be understood as electrical connection. The connection between two electrical components can be a direct or indirect connection between the two electrical components. For example, the connection between A and B can be a direct connection between A and B, or an indirect connection between A and B through one or more other electrical components.
[0048] The power switching circuit and power supply equipment provided in the embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only for the purpose of helping to understand this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A power switching circuit, characterized by, It includes a comparator circuit, a NOT gate circuit, a first control circuit, and a second control circuit; The first input terminal of the comparator circuit is used to connect to the first power supply, the second input terminal of the comparator circuit is used to connect to the second power supply, and the output terminal of the comparator circuit is used to output the first enable signal. The input terminal of the NOT gate is connected to the output terminal of the comparator circuit, and is used to perform level conversion on the first enable signal. The output terminal of the NOT gate is used to output the second enable signal. The first control circuit is disposed between the first power supply and the electrical load. The control terminal of the first control circuit is connected to the output terminal of the comparison circuit and is used to turn on or off in response to the first enable signal. The second control circuit is disposed between the second power supply and the electrical load. The control terminal of the second control circuit is connected to the output terminal of the NOT gate circuit and is used to turn on or off in response to the second enable signal. Either the first enable signal or the second enable signal is a high-level signal, and the other is a low-level signal.
2. The power switching circuit of claim 1, wherein, The comparison circuit includes a comparator, a first resistor, and a second resistor; The first input terminal of the comparator is connected to the first power supply, and the second input terminal of the comparator is connected to the second power supply; The first end of the first resistor is connected to the output terminal of the comparator, and the second end of the first resistor is connected to the first input terminal of the comparator. The first end of the second resistor is connected to the power supply terminal, and the second end of the second resistor is connected to the output terminal of the comparator.
3. The power switching circuit of claim 2, wherein, The comparison circuit further includes a first voltage divider module and a reference voltage module; The first terminal of the first voltage divider module is connected to the first power supply, the second terminal of the first voltage divider module is grounded, and the output terminal of the first voltage divider module is connected to the first input terminal of the comparator. The first terminal of the reference voltage module is connected to the second power supply, the second terminal of the reference voltage module is grounded, and the output terminal of the reference voltage module is connected to the second input terminal of the comparator.
4. The power switching circuit of claim 3, wherein, The first voltage divider module includes a third resistor and a fourth resistor; The first end of the third resistor is connected to the first power supply, the second end of the third resistor is connected to the first end of the fourth resistor, and the second end of the fourth resistor is grounded. The common connection point of the third resistor and the fourth resistor serves as the output terminal of the first voltage divider module and is connected to the first input terminal of the comparator.
5. The power switching circuit of claim 3, wherein, The reference voltage module includes a fifth resistor and a Zener diode; The first end of the fifth resistor is connected to the second power supply, the second end of the fifth resistor is connected to the cathode of the Zener diode, and the anode of the Zener diode is grounded. The common point where the fifth resistor and the Zener diode are connected serves as the output terminal of the reference voltage module and is connected to the second input terminal of the comparator.
6. The power switching circuit of claim 1, wherein, The first control circuit includes a first switch, a second switch, a third switch, a sixth resistor, and a seventh resistor; The first switch and the second switch are connected in series and are disposed between the first power supply and the input terminal of the electrical load; The seventh resistor, the sixth resistor, and the third switch are connected in series. The first end of the seventh resistor is connected to the common connection point of the first switch and the second switch. The second end of the seventh resistor is connected to the third switch through the sixth resistor. The first end of the third switch is grounded. The control terminal of the third switch is connected to the first enable signal. The common connection point of the sixth resistor and the seventh resistor is connected to the control terminal of the first switch and the control terminal of the second switch, respectively. The input terminal of the first switch is connected to the first power source, and the output terminal of the second switch is connected to the electrical load.
7. The power switching circuit of claim 6, wherein, The first control circuit further includes a first current-limiting resistor and a first pull-down resistor. The first end of the first current-limiting resistor is connected to the first power control terminal, and the second end of the first current-limiting resistor is connected to the control terminal of the first switch. The first end of the first pull-down resistor is connected to the second end of the first current-limiting resistor, and the second end of the first pull-down resistor is grounded.
8. The power switching circuit according to claim 1, characterized in that, The second control circuit includes a fourth switch, a fifth switch, a sixth switch, an eighth resistor, and a ninth resistor; The fourth switch and the fifth switch are connected in series and are disposed between the second power supply and the input terminal of the electrical load; The ninth resistor, the eighth resistor, and the sixth switch are connected in series. The first end of the ninth resistor is connected to the common connection point of the fourth and fifth switches. The second end of the ninth resistor is connected to the sixth switch through the eighth resistor. The first end of the sixth switch is grounded. The control terminal of the sixth switch is connected to the second enable signal. The common connection point of the eighth and ninth resistors is connected to the control terminals of the fourth and fifth switches, respectively. The input terminal of the fourth switch is connected to the second power source, and the output terminal of the fifth switch is connected to the electrical load.
9. The power switching circuit according to claim 8, characterized in that, The second control circuit further includes a second current-limiting resistor and a second pull-down resistor. The first end of the second current-limiting resistor is connected to the control terminal of the second power supply, and the second end of the second current-limiting resistor is connected to the control terminal of the fourth switch. The first end of the second pull-down resistor is connected to the second end of the second current-limiting resistor, and the second end of the second pull-down resistor is grounded.
10. A power supply device, comprising a first power source, a second power source, and a power switching circuit as described in claims 1-9, wherein the first power source and the second power source are connected to an electrical load through the power switching circuit, so that either the first power source or the second power source supplies power to the electrical load.
