Power switching circuit and electronic equipment
By introducing opposite enable signal and signal control into the power switching circuit, combining the switch enable control circuit and dead time control unit, stable switching of the power supply voltage and effective shutdown of the switch tube are achieved, and the power supply in the prior art is solved The problem of switching instability and body diode leakage is suitable for single-chip integration and discrete device construction.
Patent Information
- Application Number
- CN202420708906.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-08
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2034-04-08
AI Technical Summary
In existing power switching circuits, transistors may not be turned off, resulting in unstable power switching and body diode leakage.
A power switching circuit is designed, using a pair of opposite enable signals ENB and ENBB, a pair of opposite signals VG and VGN, switch tubes MP1, MP2, MP3, MP4, MP5, MP6, and control circuits and dead zones are enabled by switches. The time control unit realizes switching of the two power supply voltages and effective shutdown of the switch tube, ensuring the substrate switching function of the PMOS switch tube.
It realizes stable switching of the two power supply voltages, solves the problem that the switch tube cannot be turned off, and avoids the leakage of body diodes caused by substrate fixation in traditional power switching circuits, with low power consumption, and is suitable for single-chip integration and discrete device construction.
Smart Images

Figure CN222072818U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of electronic circuits, and in particular to a power switching circuit and electronic equipment. Background Art
[0002] The function of the power switching circuit is to select a power supply from two or more power supplies as the output power supply for output. Generally, the power supply with a higher voltage among the detected power supplies is used as the power supply for output.
[0003] Prior art such as application number 201410281451.7, entitled: Power switching circuit, electronic device, and control method for power switching circuit. The patent provides a power switching circuit, including a first control signal output unit, which uses a signal outputted by the main power supply exceeding a predetermined potential as a first control signal when the power voltage of the main power supply exceeds a predetermined reference voltage; a second control signal output unit, which uses a signal outputted by a backup power supply from a battery exceeding a predetermined potential as a second control signal when the potential of the first control signal does not exceed the predetermined potential; and a power output unit, which outputs the main power when the first control signal exceeds the predetermined potential and outputs the backup power when the second control signal exceeds the predetermined potential.
[0004] The turn-off voltage of the transistor in the above circuit comes from a specific power supply, and there is a possibility that it cannot be turned off. Utility Model Content
[0005] Therefore, it is necessary to provide a power switching circuit and an electronic device to solve the problem that the existing power switching circuit may not be able to be shut down.
[0006] To achieve the above object, the utility model provides a power switching circuit, including a pair of opposite enable signals ENB and ENBB, a pair of opposite signals VG and VGN, a switch tube MP1, a switch tube MP2, a switch tube MP3, a switch tube MP4, a switch tube MP5, a switch tube MP6, a power source VDD1, a power source VDD2 and an output terminal VOUT;
[0007] The input end of the switch tube MP1 is connected to the power supply VDD1 and the input end of the switch tube MP3, the body diode end of the switch tube MP1 is connected to the body diode end of the switch tube MP3, the output end of the switch tube MP3, the body diode end of the switch tube MP4 and the input end of the switch tube MP4, the control end of the switch tube MP1 is connected to the enable signal ENBB, the control end of the switch tube MP3 is connected to the signal VGN, the control end of the switch tube MP4 is connected to the signal VG, and the output end of the switch tube MP4 is connected to the output end VOUT;
[0008] The input end of the switch tube MP2 is connected to the power supply VDD2 and the input end of the switch tube MP5, the body diode end of the switch tube MP2 is connected to the body diode end of the switch tube MP5, the output end of the switch tube MP5, the body diode end of the switch tube MP6 and the input end of the switch tube MP6, the control end of the switch tube MP2 is connected to the enable signal ENB, the control end of the switch tube MP5 is connected to the signal VG, the control end of the switch tube MP6 is connected to the signal VGN, and the output end of the switch tube MP6 is connected to the output end VOUT.
[0009] Furthermore, it also includes a switch enable control circuit and an enable signal EN, the switch enable control circuit is respectively connected to the power supply VDD1 and the power supply VDD2 and outputs a signal VG and a signal VGN, the input end of the switch enable control circuit is connected to the enable signal EN, and the enable signal EN generates the opposite enable signals ENB and ENBB respectively through the switch enable control circuit, one of the opposite enable signals ENB and ENBB has the same high and low level polarity as the enable signal EN, and the other has the opposite high and low level polarity to the enable signal EN.
[0010] Further, the switch enable control circuit includes a comparator, a first level converter, a second level converter and a first inverter, the two input terminals of the comparator are respectively connected to the power supply VDD1 and the power supply VDD2, the output terminal of the comparator is connected to the input terminals of the first level converter and the second level converter, the reference power terminal of the first level converter is connected to the power supply VDD1, the reference power terminal of the second level converter is connected to the power supply VDD2, the output terminal of the first level converter is connected to the signal VG, the output terminal of the second level converter is connected to the input terminal of the first inverter, and the output terminal of the first inverter is connected to the signal VGN.
[0011] Furthermore, the switch enable control circuit also includes a second inverter, a third inverter and a fourth inverter, the output end of the comparator is connected to the input end of the second inverter, and then the output end of the second inverter is connected to the input ends of the first level converter and the second level converter, the output end of the first level converter is connected to the input end of the third inverter, and then the output end of the third inverter is connected to the signal VG, and the output end of the first inverter is connected to the input end of the fourth inverter, and then the output end of the fourth inverter is connected to the signal VGN.
[0012] Further, the switch enable control circuit comprises a dead time control unit, an input end of the dead time control unit is connected to the enable signal EN, and the dead time control unit outputs the enable signal ENB and the enable signal ENBB respectively.
[0013] Furthermore, the switch enable control circuit also includes a switch tube MP7 and a switch tube MP8, the input end of the switch tube MP7 is connected to the power supply VDD1, the control end of the switch tube MP7 is connected to the signal VGN, the input end of the switch tube MP8 is connected to the power supply VDD2, the control end of the switch tube MP8 is connected to the signal VG, and the output ends of the switch tube MP7 and the switch tube MP8 provide voltage to the dead time control unit.
[0014] Furthermore, the switch enable control circuit also includes a third level converter, an input end of the third level converter is connected to the enable signal EN, an output end of the third level converter is connected to the input end of the dead time control unit, and a reference power supply end of the third level converter is connected to the output ends of the switch tube MP7 and the switch tube MP8.
[0015] Further, the dead time control unit includes a fifth inverter, a first NOR gate, a second NOR gate, a first resistor, a first capacitor, a second resistor and a second capacitor, the enable signal EN is connected to an input end of the fifth inverter and an input end of the second NOR gate, the output end of the fifth inverter is connected to an input end of the first NOR gate, the other input end of the first NOR gate is connected to one end of the second capacitor and one end of the second resistor, the other input end of the second NOR gate is connected to one end of the first capacitor and one end of the first resistor, the other end of the first resistor is connected to the output end of the first NOR gate and connected to the enable signal ENB, and the other end of the second resistor is connected to the output end of the second NOR gate and connected to the enable signal ENBB.
[0016] Furthermore, the switch enable control circuit also includes a sixth inverter, a seventh inverter, an eighth inverter, a ninth inverter and a tenth inverter, the input end of the sixth inverter is connected to the enable signal EN, the output end of the sixth inverter is connected to the input end of the fifth inverter, the other end of the first resistor and the output end of the first NOR gate are connected to the enable signal ENB through the seventh inverter and the eighth inverter, and the other end of the second resistor and the output end of the second NOR gate are connected to the enable signal ENBB through the ninth inverter and the tenth inverter.
[0017] The utility model provides an electronic device, comprising a first power supply terminal, a second power supply terminal, a power supply output terminal and a power supply switching circuit, wherein the power supply switching circuit is a power supply switching circuit as described in any one of the embodiments of the utility model, wherein the input terminal of the power supply switching circuit is respectively connected to the first power supply terminal and the second power supply terminal, and the output terminal of the power supply switching circuit is connected to the power supply output terminal.
[0018] Different from the prior art, the above technical solution can realize the power supply VDD1 to be turned on to the output terminal VOUT or the higher voltage of the power supply VDD2 to be turned on to the output terminal VOUT through a pair of opposite enable signals ENB and ENBB, a pair of opposite signals VG and VGN, switch tubes MP1, switch tube MP2, switch tube MP3, switch tube MP4, switch tube MP5, and switch tube MP6, realizing the function that the two power supply voltages can switch outputs. Then, the switch tubes MP3, MP4, MP5, and MP6 are controlled to be turned on and off through signals VG and VGN, thereby controlling the substrate potential of each of the switch tubes MP1 and MP2, so that the power supply with a higher voltage among the two power supplies VDD1 and VDD2 is used as the gate voltage of the switch tube that needs to be turned off, solving the problem that the switch tube may not be turned off. And the utility model constructs a substrate switching function for the PMOS switch tube, and the substrate of the PMOS switch tube is automatically connected to the end with a higher voltage among the source and drain ends, solving the problem of body diode leakage caused by the fixed substrate of the switch tube in the traditional power switching circuit. The utility model has a simple implementation scheme, low power consumption, good process versatility, is particularly suitable for single-chip integration, and is also suitable for discrete device construction. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a circuit structure diagram of the power switching circuit of the utility model;
[0020] Figure 2 It is a circuit structure diagram of the switch enabling control circuit of the utility model;
[0021] Figure 3 This is a circuit structure diagram of the dead time control unit of the utility model. DETAILED DESCRIPTION
[0022] In order to explain the technical content, structural features, achieved objectives and effects of the technical solution in detail, the following is a detailed description in conjunction with specific embodiments and accompanying drawings.
[0023] Reference to "embodiment" herein means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The term "embodiment" appearing in various places in the specification does not necessarily refer to the same embodiment, nor does it particularly limit its independence or association with other embodiments. In principle, in the present application, as long as there is no technical contradiction or conflict, the various technical features mentioned in the embodiments can be combined in any way to form a corresponding implementable technical solution.
[0024] Unless otherwise defined, the technical terms used in this document have the same meanings as those generally understood by those skilled in the art to which this application belongs; the use of relevant terms in this document is only for describing specific embodiments and is not intended to limit this application.
[0025] In the description of this application, the term "and / or" is an expression used to describe the logical relationship between objects, indicating that three relationships may exist, for example, A and / or B, which means: A exists, B exists, and A and B exist at the same time. In addition, the character " / " in this article generally indicates that the objects before and after are in an "or" logical relationship.
[0026] In the present application, terms such as “first” and “second” are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship of quantity, priority or sequence between these entities or operations.
[0027] Without further limitations, in this application, the words "include", "comprises", "has" or other similar expressions used in the sentences are intended to cover non-exclusive inclusion. These expressions do not exclude the presence of additional elements in the process, method or product including the elements, so that the process, method or product including a series of elements may include not only those limited elements, but also other elements not explicitly listed, or also include elements inherent to such process, method or product.
[0028] Similar to the understanding in the Patent Examination Guidelines, in this application, expressions such as "greater than", "less than", "exceed" and the like are understood to exclude the number itself; expressions such as "above", "below", "within" and the like are understood to include the number itself. In addition, in the description of the embodiments of this application, "multiple" means more than two (including two), and similar expressions related to "multiple" are also understood in this way, such as "multiple groups", "multiple times", etc., unless otherwise clearly and specifically limited.
[0029] In the description of the embodiments of the present application, space-related expressions used, such as "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "vertical", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc., indicate the orientation or position relationship based on the orientation or position relationship shown in the specific embodiments or drawings, and are only for the convenience of describing the specific embodiments of the present application or facilitating the reader's understanding, and do not indicate or imply that the referred device or component must have a specific position, a specific orientation, or be constructed or operated in a specific orientation, and therefore cannot be understood as a limitation on the embodiments of the present application.
[0030] Unless otherwise expressly specified or limited, in the description of the embodiments of the present application, the terms such as "install", "connect", "connect", "fix", "set", etc. used should be understood in a broad sense. For example, the "connection" can be a fixed connection, a detachable connection, or an integrated setting; it can be a mechanical connection, an electrical connection, or a communication connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements. For technicians in the technical field to which the present application belongs, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.
[0031] See also Figures 1 to 3 The utility model provides a power switching circuit, including a pair of opposite enable signals ENB and ENBB, a pair of opposite signals VG and VGN, a switch tube MP1, a switch tube MP2, a switch tube MP3, a switch tube MP4, a switch tube MP5, a switch tube MP6, a power source VDD1, a power source VDD2 and an output terminal VOUT. The input terminal of the switch tube MP1 is connected to the power source VDD1 and the input terminal of the switch tube MP3, the body diode terminal of the switch tube MP1 is connected to the body diode terminal of the switch tube MP3, the output terminal of the switch tube MP3, the body diode terminal of the switch tube MP4 and the input terminal of the switch tube MP4, the control terminal of the switch tube MP1 is connected to the enable signal ENBB, the control terminal of the switch tube MP3 is connected to the signal VGN, the control terminal of the switch tube MP4 is connected to the signal VG, and the output terminal of the switch tube MP4 is connected to the output terminal VOUT.
[0032] The input end of the switch tube MP2 is connected to the power supply VDD2 and the input end of the switch tube MP5, the body diode end of the switch tube MP2 is connected to the body diode end of the switch tube MP5, the output end of the switch tube MP5, the body diode end of the switch tube MP6 and the input end of the switch tube MP6, the control end of the switch tube MP2 is connected to the enable signal ENB, the control end of the switch tube MP5 is connected to the signal VG, the control end of the switch tube MP6 is connected to the signal VGN, and the output end of the switch tube MP6 is connected to the output end VOUT. When the voltage of the power supply VDD1 is greater than the voltage of the power supply VDD2, the signal VG is the voltage of the power supply VDD1 and the signal VGN is low level; when the voltage of the power supply VDD2 is greater than the voltage of the power supply VDD1, the signal VG is low level and the signal VGN is the voltage of the power supply VDD2.
[0033] When the above circuit is working, a pair of opposite signals ENB and ENBB control the opening and closing of the two switch tubes MP1 and MP2, so as to select VOUT output power VDD1 or power VDD2. The signals ENB and ENBB can be input from the external control terminal, realizing the function that the two power supply voltages can switch outputs. Specifically, when ENB = 0, ENBB = 1, MP2 is turned on, MP1 is turned off, and VOUT = VDD2; when ENB = 1, ENBB = 0, MP2 is turned off, MP1 is turned on, and VOUT = VDD1. In addition, VG and VGN are a pair of opposite signals used to control the opening and closing of MP3, MP4, MP5, and MP6, that is, the connection method of the substrate potential of MP1 and MP2. When VG=1, VGN=0, MP3 and MP6 are turned on, MP4 and MP5 are turned off, the substrate potential of MP1 is connected to VDD1, and the substrate potential of MP2 is connected to VOUT; when VG=0, VGN=1, MP3 and MP6 are turned off, MP4 and MP5 are turned on, the substrate potential of MP1 is connected to VOUT, and the substrate potential of MP2 is connected to VDD2. In this way, the power supply with a higher voltage among the two power supplies (VDD1, VDD2) is used as the gate voltage of the PMOS switch tube that needs to be turned off. The problem that the gate-source voltage of the PMOS that needs to be turned off may be less than Vthp and the tube cannot be completely turned off is solved. In addition, the utility model constructs a substrate switching function for the PMOS switch tube, and the substrate of the PMOS switch tube is automatically connected to the end with a higher voltage between the source and drain ends, solving the problem of body diode leakage caused by the fixed substrate of the switch tube in the traditional power switching circuit. The utility model has a simple implementation scheme, low power consumption, good process versatility, and is particularly suitable for single-chip integration and also suitable for discrete device construction.
[0034] In order to implement the enable signals ENB and ENBB and the signals VG and VGN, further, as Figure 2 As shown, this embodiment also includes a switch enable control circuit and an enable signal EN. The switch enable control circuit is connected to the power supply VDD1 and the power supply VDD2 respectively and outputs a signal VG and a signal VGN. The input end of the switch enable control circuit is connected to the enable signal EN. The enable signal EN generates the opposite enable signals ENB and ENBB respectively through the switch enable control circuit. One of the opposite enable signals ENB and ENBB has the same high and low level polarity as the enable signal EN, and the other has the opposite high and low level polarity as the enable signal EN. In this way, the opposite enable signals ENB and ENBB can be output through a high level or a low level of an enable signal EN. In a simple embodiment, an inverter can be connected to the enable signal EN, and the output inverted signal is used as the signal ENBB, and the enable signal EN is output as ENB, that is, a pair of opposite signals can be obtained.
[0035] In certain embodiments, such as Figure 2 As shown, the switch enable control circuit includes a comparator COMP, a first level converter LS1, a second level converter LS2 and a first inverter G1. The two input terminals of the comparator COMP are connected to the power supply VDD1 and the power supply VDD2 respectively. The output terminal of the comparator COMP is connected to the input terminals of the first level converter LS1 and the second level converter LS2. The reference power supply terminal of the first level converter LS1 is connected to the power supply VDD1, and the reference power supply terminal of the second level converter is connected to the power supply VDD2. The output terminal of the first level converter LS1 is connected to the signal VG, the output terminal of the second level converter LS2 is connected to the input terminal of the first inverter G1, and the output terminal of the first inverter is connected to the signal VGN. Among them, the main function of the level converter is to switch the input signal from one voltage domain to another voltage domain. The voltage domain of the output signal of the level converter is based on the voltage of the reference power supply terminal. In this embodiment, the comparator COMP compares the voltages of VDD1 and VDD2, and the output of the comparator passes through the level converters LS1 and LS2 respectively to obtain the control signal VG of the power domain VDD1 and the control signal VGN of the power domain VDD2. When VDD1>VDD2: the output of the comparator is 1, at this time VG=1 (power domain is VDD1), VGN=0 (power domain VDD2), that is, VG is the voltage of VDD1 with a higher voltage. When VDD2>VDD1: the output of the comparator is 0, at this time VG=0 (power domain is VDD1), VGN=1 (power domain VDD2), that is, VGN is the voltage of VDD2 with a higher voltage. In this way, the following functions are realized: when the voltage of power supply VDD1 is greater than the voltage of power supply VDD2, the signal VG is the voltage of power supply VDD1, and the signal VGN is low level; when the voltage of power supply VDD2 is greater than the voltage of power supply VDD1, the signal VG is low level, and the signal VGN is the voltage of power supply VDD2.
[0036] In some embodiments, in order to achieve stable voltage switching, the switch enable control circuit further includes a second inverter G2, a third inverter G3 and a fourth inverter G4, the output of the comparator is connected to the input of the second inverter, and then the output of the second inverter is connected to the input of the first level converter and the second level converter, the output of the first level converter is connected to the input of the third inverter, and then the output of the third inverter is connected to the signal VG, the output of the first inverter is connected to the input of the fourth inverter, and then the output of the fourth inverter is connected to the signal VGN. Stable operation during voltage switching can be achieved through the inverter. Since an inverter is added before and after the level converter, its working process is similar to that of the above embodiment.
[0037] Furthermore, the switch enable control circuit includes a dead time control unit (DieTime Control), the input end of the dead time control unit is connected to the enable signal EN, and the dead time control unit outputs the enable signal ENB and the enable signal ENBB respectively. The function of the dead time control unit is that when the enable signal EN is switched, the enable signal ENB and the enable signal ENBB will be turned on at the same time for a period of time, at which time the switch tubes MP1 and MP2 will be turned on at the same time, ensuring that VOUT always has power output at the moment the enable signal EN is switched, avoiding the situation where VOUT has no power.
[0038] In order to obtain the higher voltage of power supply VDD1 and power supply VDD2, such as Figure 2 As shown, the switch enable control circuit also includes a switch tube MP7 and a switch tube MP8, the input end of the switch tube MP7 is connected to the power supply VDD1, the control end of the switch tube MP7 is connected to the signal VGN, the input end of the switch tube MP8 is connected to the power supply VDD2, the control end of the switch tube MP8 is connected to the signal VG, and the output ends of the switch tubes MP7 and MP8 provide voltage to the dead time control unit. When VDD1>VDD2: VG=1 (power domain is VDD1), VGN=0 (power domain VDD2), MP7 is turned on, MP8 is turned off, and the output ends Vhigher of the switch tubes MP7 and MP8 are equal to the higher voltage end. When VDD2>VDD1: VG=0 (power domain is VDD1), VGN=1 (power domain VDD2), MP8 is turned on, MP7 is turned off, and the output ends Vhigher of the switch tubes MP7 and MP8 are equal to the higher voltage end. In this way, a higher voltage can be provided to the dead time control unit as a power supply, so that the voltage of the enable signal ENB and the enable signal ENBB when they are high voltages is also a higher voltage of VDD1 and VDD2.
[0039] In some embodiments, the switch enable control circuit further includes a third level converter LS3, the input end of the third level converter LS3 is connected to the enable signal EN, the output end of the third level converter LS3 is connected to the input end of the dead time control unit, and the reference power supply end of the third level converter LS3 is connected to the output ends of the switch tube MP7 and the switch tube MP8. In this way, before the enable signal EN is input to the dead time control unit, it can be a higher voltage of the power supplies VDD1 and VDD2, thereby realizing a high voltage input to the dead time control unit.
[0040] In certain preferred embodiments, see Figure 1 and Figure 2 , its working process is as follows:
[0041] 1. When VDD1>VDD2: the comparator output is 1, VG=1 (power domain is VDD1), VGN=0 (power domain VDD2), MP7 is turned on, MP8 is turned off, Vhigher=VDD1. At this time, when the enable signal EN=1, ENB=0, ENBB=1 (power domain is VDD1). Figure 1 Circuit: MP1 is turned off, MP2 is turned on, and VOUT selects the power supply VDD2 output. MP3 is turned on, MP4 is turned off, and the substrate potential of MP1 is connected to VDD1 to prevent the larger voltage VDD1 from leaking to VOUT through the body diode of MP1; MP5 is turned off, MP6 is turned on, and the substrate potential of MP2 is connected to VOUT. When the enable signal EN=0, ENB=1, ENBB=0 (the power domain is VDD1), for Figure 1 :MP1 is turned on, MP2 is turned off, and VOUT selects the power supply VDD1 for output. MP3 is turned on, MP4 is turned off, and the substrate potential of MP1 is connected to VDD1; MP5 is turned off, MP6 is turned on, and the substrate potential of MP2 is connected to VOUT to prevent the larger voltage VOUT (VOUT = VDD1) from leaking to VDD2 through the body diode of MP2.
[0042] 2. When VDD2>VDD1: the comparator output is 0, VG=0 (power domain is VDD1), VGN=1 (power domain VDD2), MP7 is turned off, MP8 is turned on, Vhigher=VDD2. At this time, when the enable signal EN=1, ENB=0, ENBB=1 (power domain is VDD2). Figure 1 Circuit: MP1 is turned off, MP2 is turned on, and VOUT selects the power supply VDD2 output. MP3 is turned off, MP4 is turned on, and the substrate potential of MP1 is connected to VOUT to prevent the larger voltage VOUT (VOUT = VDD2) from leaking to VDD1 through the body diode of MP1; MP5 is turned on, MP6 is turned off, and the substrate potential of MP2 is connected to VDD2. When the enable signal EN = 0, ENB = 1, ENBB = 0 (the power domain is VDD2), for Figure 1 :MP1 is turned on, MP2 is turned off, and VOUT selects the power supply VDD1 output. MP3 is turned off, MP4 is turned on, and the substrate potential of MP1 is connected to VOUT; MP5 is turned on, MP6 is turned off, and the substrate potential of MP2 is connected to VDD2 to prevent the larger voltage VDD2 from leaking to VOUT through the body diode of MP2.
[0043] In certain embodiments, such as Figure 3As shown, the dead time control unit includes a fifth inverter G5, a first NOR gate L1, a second NOR gate L2, a first resistor R1, a first capacitor C1, a second resistor R2 and a second capacitor C2, the enable signal EN is connected to the input end of the fifth inverter and an input end of the second NOR gate, the output end of the fifth inverter is connected to an input end of the first NOR gate, the other input end of the first NOR gate is connected to one end of the second capacitor and one end of the second resistor, the other input end of the second NOR gate is connected to one end of the first capacitor and one end of the first resistor, the other end of the first resistor is connected to the output end of the first NOR gate and connected to the enable signal ENB, and the other end of the second resistor is connected to the output end of the second NOR gate and connected to the enable signal ENBB. When this embodiment is working, when EN is in a state at the beginning, A1=1, A2=0, and B2=0, B1=1 can be obtained from the NOR gate logic. Therefore, ENB=1, ENBB=0, the switch tube MP1 is turned on, MP2 is turned off, and VOUT=VDD1. When EN flips to another state, A1=0, A2=1. Since the voltage across the capacitor does not change suddenly, in a short time, A1=0, B1=1, so B2 is still equal to 0, ENBB maintains 0 in a short time, and the switch tube MP1 remains on; while A2=1, B2=0, so B1 will flip to 0, that is, ENB will flip to 0, and the switch tube MP2 will turn on. Therefore, in a short time, MP1 and MP2 will be turned on at the same time, ensuring that VOUT always has a power output at the moment of EN switching, and then MP1 is turned off, VOUT=VDD2, and the power switching is completed. When EN flips from 1 to 0, by the same token, VOUT always has a power output, and then MP2 is turned off, VOUT=VDD1, and the power switching is completed.
[0044] Further, in order to achieve stable voltage switching, the switch enable control circuit further includes a sixth inverter G6, a seventh inverter G7, an eighth inverter G8, a ninth inverter G9 and a tenth inverter G10, the input end of the sixth inverter is connected to the enable signal EN, the output end of the sixth inverter is connected to the input end of the fifth inverter, the other end of the first resistor and the output end of the first NOR gate are connected to the enable signal ENB through the seventh inverter and the eighth inverter, and the other end of the second resistor and the output end of the second NOR gate are connected to the enable signal ENBB through the ninth inverter and the tenth inverter. The working process of this embodiment is similar to that of the above embodiment, only at the enable signal EN, due to the sixth inverter G6, the signal is opposite, and the others are the same and will not be repeated here.
[0045] The utility model provides an electronic device, including a first power supply terminal, a second power supply terminal, a power supply output terminal and a power supply switching circuit, wherein the power supply switching circuit is a power supply switching circuit as described in any one of the embodiments of the utility model, wherein the input terminal of the power supply switching circuit is respectively connected to the first power supply terminal and the second power supply terminal, and the output terminal of the power supply switching circuit is connected to the power supply output terminal. The electronic device of the utility model solves the problem that the switch tube may not be turned off through the power supply switching circuit of the utility model. And the utility model constructs a substrate switching function for the PMOS switch tube, and the substrate of the PMOS switch tube is automatically connected to the end with a higher voltage between the source and drain terminals, solving the problem of body diode leakage caused by the fixed substrate of the switch tube in the traditional power supply switching circuit. The utility model has a simple implementation scheme, low power consumption, good process versatility, and is particularly suitable for single-chip integration, and is also suitable for discrete device construction.
[0046] It should be noted that although the above embodiments have been described in this article, this does not limit the scope of patent protection of the utility model. Therefore, based on the innovative concept of the utility model, changes and modifications to the embodiments described herein, or equivalent structural or equivalent process transformations made using the contents of the utility model specification and drawings, directly or indirectly applying the above technical solutions to other related technical fields, are all included in the scope of patent protection of the utility model.
Claims
1. A power switching circuit, characterized in that: It includes a pair of opposite enable signals ENB and ENBB, a pair of opposite signals VG and VGN, a switch tube MP1, a switch tube MP2, a switch tube MP3, a switch tube MP4, a switch tube MP5, a switch tube MP6, a power source VDD1, a power source VDD2 and an output terminal VOUT; The input end of the switch tube MP1 is connected to the power supply VDD1 and the input end of the switch tube MP3, the body diode end of the switch tube MP1 is connected to the body diode end of the switch tube MP3, the output end of the switch tube MP3, the body diode end of the switch tube MP4 and the input end of the switch tube MP4, the control end of the switch tube MP1 is connected to the enable signal ENBB, the control end of the switch tube MP3 is connected to the signal VGN, the control end of the switch tube MP4 is connected to the signal VG, and the output end of the switch tube MP4 is connected to the output end VOUT; The input end of the switch tube MP2 is connected to the power supply VDD2 and the input end of the switch tube MP5, the body diode end of the switch tube MP2 is connected to the body diode end of the switch tube MP5, the output end of the switch tube MP5, the body diode end of the switch tube MP6 and the input end of the switch tube MP6, the control end of the switch tube MP2 is connected to the enable signal ENB, the control end of the switch tube MP5 is connected to the signal VG, the control end of the switch tube MP6 is connected to the signal VGN, and the output end of the switch tube MP6 is connected to the output end VOUT.
2. A power switching circuit according to claim 1, characterized in that: It also includes a switch enable control circuit and an enable signal EN. The switch enable control circuit is respectively connected to a power supply VDD1 and a power supply VDD2 and outputs a signal VG and a signal VGN. The input end of the switch enable control circuit is connected to the enable signal EN. The enable signal EN generates the opposite enable signals ENB and ENBB respectively through the switch enable control circuit. One of the opposite enable signals ENB and ENBB has the same high and low level polarity as the enable signal EN, and the other has the opposite high and low level polarity as the enable signal EN.
3. A power switching circuit according to claim 2, characterized in that: The switch enable control circuit includes a comparator, a first level converter, a second level converter and a first inverter. The two input terminals of the comparator are respectively connected to the power supply VDD1 and the power supply VDD2, the output terminal of the comparator is connected to the input terminals of the first level converter and the second level converter, the reference power terminal of the first level converter is connected to the power supply VDD1, the reference power terminal of the second level converter is connected to the power supply VDD2, the output terminal of the first level converter is connected to the signal VG, the output terminal of the second level converter is connected to the input terminal of the first inverter, and the output terminal of the first inverter is connected to the signal VGN.
4. A power switching circuit according to claim 3, characterized in that: The switch enable control circuit also includes a second inverter, a third inverter and a fourth inverter. The output end of the comparator is connected to the input end of the second inverter, and then the output end of the second inverter is connected to the first level converter and the input end of the second level converter. The output end of the first level converter is connected to the input end of the third inverter, and then the output end of the third inverter is connected to the signal VG. The output end of the first inverter is connected to the input end of the fourth inverter, and then the output end of the fourth inverter is connected to the signal VGN.
5. A power switching circuit according to claim 2, characterized in that: The switch enable control circuit includes a dead time control unit, an input end of the dead time control unit is connected to the enable signal EN, and the dead time control unit outputs the enable signal ENB and the enable signal ENBB respectively.
6. A power switching circuit according to claim 5, characterized in that: The switch enable control circuit further includes a switch tube MP7 and a switch tube MP8, wherein an input terminal of the switch tube MP7 is connected to a power supply VDD1, and a control terminal of the switch tube MP7 is connected to a signal VGN, an input terminal of the switch tube MP8 is connected to a power supply VDD2, and a control terminal of the switch tube MP8 is connected to a signal VG, and output terminals of the switch tube MP7 and the switch tube MP8 provide voltage to the dead time control unit.
7. A power switching circuit according to claim 6, characterized in that: The switch enable control circuit further includes a third level converter, an input end of the third level converter is connected to the enable signal EN, an output end of the third level converter is connected to the input end of the dead time control unit, and a reference power supply end of the third level converter is connected to the output ends of the switch tube MP7 and the switch tube MP8.
8. The power switching circuit according to claim 5, characterized in that: The dead time control unit includes a fifth inverter, a first NOR gate, a second NOR gate, a first resistor, a first capacitor, a second resistor and a second capacitor, the enable signal EN is connected to an input end of the fifth inverter and an input end of the second NOR gate, the output end of the fifth inverter is connected to an input end of the first NOR gate, the other input end of the first NOR gate is connected to one end of the second capacitor and one end of the second resistor, the other input end of the second NOR gate is connected to one end of the first capacitor and one end of the first resistor, the other end of the first resistor is connected to the output end of the first NOR gate and connected to the enable signal ENB, and the other end of the second resistor is connected to the output end of the second NOR gate and connected to the enable signal ENBB.
9. A power switching circuit according to claim 8, characterized in that: The switch enable control circuit also includes a sixth inverter, a seventh inverter, an eighth inverter, a ninth inverter and a tenth inverter, the input end of the sixth inverter is connected to the enable signal EN, the output end of the sixth inverter is connected to the input end of the fifth inverter, the other end of the first resistor and the output end of the first NOR gate are connected to the enable signal ENB through the seventh inverter and the eighth inverter, and the other end of the second resistor and the output end of the second NOR gate are connected to the enable signal ENBB through the ninth inverter and the tenth inverter.
10. An electronic device, characterized in that: It includes a first power supply terminal, a second power supply terminal, a power supply output terminal and a power supply switching circuit, wherein the power supply switching circuit is the power supply switching circuit as described in any one of claims 1 to 9, the input terminal of the power supply switching circuit is respectively connected to the first power supply terminal and the second power supply terminal, and the output terminal of the power supply switching circuit is connected to the power supply output terminal.
