A power switch device and control method in a multi-power management system
By using substrate gate signal module and comparator to monitor the power supply voltage difference in the multi-power management system, the substrate parasitic PN junction conduction path of the NMOS switch is automatically cut off, which solves the NMOS switch leakage problem and improves the power efficiency and safety , and reduces production costs.
Patent Information
- Application Number
- CN202411269257.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-09-11
AI Technical Summary
In multi-power management systems, the leakage problem of NMOS switches leads to reduced power efficiency and waste of energy consumption. It is difficult for the existing technology to effectively detect and prevent leakage across power domains, affecting the working time of the chip.
Design a power switch device, including a substrate gate signal module, monitors the difference between the power supply voltage and the internal node voltage through the comparator and gate circuit, and automatically cuts off the conduction path of the substrate parasitic PN junction to ensure that the power switch is in the external power supply. No leakage when closed.
Effectively cut off the leakage circuit path, improve circuit safety and power efficiency, reduce production costs, and achieve convenient power management.
Smart Images

Figure CN118801310B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic circuits, and in particular to a power switch device and a control method in a multi-power management system. Background Art
[0002] In general circuits, PMOS is selected as the power switch because the drain-source voltage of PMOS can be made very small when the switch is turned on, while NMOS will make the voltage at the source lower than the gate voltage by a threshold voltage, which determines that only PMOS can be selected as the switch. When the gate SW is 0, the switch is turned on, and the internal voltage is equal to the power supply voltage VDDX. When the gate voltage SW is a high voltage, the switch is disconnected. If NMOS is used as the power switch, the difficulty of circuit design will be much greater than that of using PMOS as the power switch, because the turn-on voltage Vgs of NMOS = (Vg-Vs)>0, which requires the gate voltage of NMOS to be greater than the source voltage. In this way, in a system, there is often more voltage reduction, and it is not easy to find a voltage higher than the source connected to NMOS, so PMOS is often used for the turn-on voltage. NMOS power switches are not as easy to control as PMOS.
[0003] However, in the actual CMOS process, both the drain and source are P-type doped, and the substrate is an N-well, so there will be a parasitic PN junction diode from the drain to the substrate. When the power switch is turned off and the source power supply voltage is relatively low or 0, the internal voltage is powered by other power supplies, causing the drain voltage to be higher than the substrate, so that the PN junction forward conducts to the power supply VDDX and leaks. Long-term leakage will reduce the efficiency of other power supplies and waste energy. With the enrichment of application scenarios, chips will face power supply applications with multiple power supplies. Reasonable planning of power supply solutions should avoid reverse conduction leakage caused by voltage differences caused by different power supplies. Leakage across power domains will seriously reduce the effective working time of the chip. At present, many power supply management solutions are relatively complex and cannot effectively detect the differences in power domains to make effective anti-leakage control. Summary of the invention
[0004] The object of the present invention is to provide a power switch device and a control method in a multi-power management system. The method uses a low-cost control design to provide automatic detection and connection of a power substrate, cut off the conduction path of the parasitic PN junction of the substrate of the power switch, ensure that when multiple power supplies are working, the power switch can work normally when the external power supply is turned off, and cut off the leakage path.
[0005] A power switch device in a multi-power management system includes: a substrate gating signal module;
[0006] The substrate gating signal module is connected to the power module and the switch module, and is used to cut off the conduction path of the substrate parasitic PN junction in the switch module;
[0007] The substrate gating signal module includes: a first resistor, a second resistor, a first capacitor and a comparator;
[0008] One end of the first resistor is connected to VDD, and the other end is connected to the second resistor and the negative input of the comparator;
[0009] One end of the second resistor is grounded, and the other end is connected to the first resistor and the negative input of the comparator;
[0010] The first capacitor is connected in parallel to both ends of the second resistor.
[0011] Preferably, the power supply module includes a filter module and a surge protection module;
[0012] The input end of the filter module is connected to the power supply, and the output end is connected to the input end of the surge protection module;
[0013] The output end of the surge protection module is connected to the substrate gating signal module.
[0014] Preferably, the comparator is a hysteresis comparator.
[0015] Preferably, the filter module is connected to the power module and the substrate gating signal module;
[0016] The filtering module includes: a second capacitor, a first inductor and a third capacitor;
[0017] The upper plate of the second capacitor and the first end of the first inductor are both connected to the surge protection module, and the second end of the second capacitor is grounded;
[0018] The second end of the first inductor is grounded via a third capacitor, and the second end of the first inductor is connected to a substrate gating module;
[0019] The upper plate of the third capacitor is connected to the first inductor, and the lower plate is grounded.
[0020] Preferably, the surge protection module comprises: a transient suppression diode, a fourth capacitor, a second inductor, a diode, a fifth capacitor and a sixth capacitor;
[0021] The positive electrode of the transient suppression diode is grounded, and the negative electrode of the transient suppression diode is connected to the external input;
[0022] The upper plate of the fourth capacitor is connected to the negative electrode of the transient suppression diode, and the lower plate of the fourth capacitor is grounded;
[0023] The diode is connected in parallel with the second inductor, the cathode of the diode is connected with the upper plate of the fourth capacitor, and the anode of the diode is connected with the upper plate of the fifth capacitor;
[0024] A first end of the second inductor is connected to the upper plate of the fourth capacitor, and a second end of the second inductor is connected to the upper plate of the fifth capacitor;
[0025] The lower plate of the fifth capacitor is grounded, and the upper plate is connected to the filter module;
[0026] The sixth capacitor is connected in parallel with the fifth capacitor.
[0027] Preferably, the switch module comprises: PMOS.
[0028] A power switch device control method in a multi-power management system is applied to a power switch device in the multi-power management system, and is characterized by comprising:
[0029] Detect VDD and internal node voltage;
[0030] When VDD is greater than the internal node voltage, the first circuit is enabled;
[0031] When VDD is lower than the internal node voltage, the second circuit is enabled.
[0032] Preferably, when VDD is greater than the internal node voltage, turning on the first circuit includes:
[0033] VIP=0.5*VDD1, VIN=0.5*VINT, when VDD1 is greater than VINT, the positive input of the comparator is greater than the negative input;
[0034] The output voltage of the comparator is 1;
[0035] The circuit selection module selects the first circuit.
[0036] Preferably, when VDD is less than the internal node voltage, turning on the second circuit comprises:
[0037] VIP=0.5*VDD1, VIN=0.5*VINT, when VDD1 is less than VINT, the positive input of the comparator is less than the negative input;
[0038] The output voltage of the comparator is 0, and the circuit selection module selects the second circuit.
[0039] An electronic device comprises: a chip, a processor and a memory, wherein the memory is used to store computer program code, and the computer program code comprises computer instructions. When the chip executes the computer instructions, the electronic device executes a method for controlling a power switch device in a multi-power management system.
[0040] The beneficial effects of the present invention are: 1. The present invention monitors the voltage difference between the internal power supply of the circuit and the power supply voltage, and determines whether it is necessary to cut off the substrate conduction voltage according to the voltage difference between the internal power supply of the circuit and the power supply voltage; 2. The present invention can solve the problem of cutting off the leakage path in a multi-power supply voltage working scenario, can prevent circuit leakage, improve circuit safety and also improve the working efficiency of the power supply; 3. The present invention uses a comparator and a selection voltage control, so the circuit production cost is low and the implementation is convenient. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0043] Figure 1 It is a schematic diagram of a substrate gating signal circuit of the present invention;
[0044] Figure 2 It is a circuit diagram of the filter module of the present invention;
[0045] Figure 3 A circuit diagram of a surge protection module of the present invention;
[0046] Figure 4 It is a schematic diagram of the overall module connection of the present invention;
[0047] Figure 5 A schematic flow chart of a method for controlling a power switch device in a multi-power management system of the present invention;
[0048] Figure 6 The figure is a schematic diagram of the hardware structure of an electronic device of the present invention. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0051] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0052] In the actual CMOS process, both the drain and source are P-type doped, and the substrate is an N-well, so there will be a parasitic PN junction diode from the drain to the substrate. When the power switch is turned off and the power supply voltage of the source is relatively low or 0, the internal voltage is powered by other power supplies, causing the drain voltage to be higher than the substrate, so that the PN junction forward conducts to the power supply VDDX and leaks electricity. Long-term leakage will reduce the efficiency of other power supplies and waste energy. With the enrichment of application scenarios, chips will face power supply applications with multiple power supplies. Reasonable planning of power supply solutions should avoid reverse conduction leakage caused by voltage differences caused by different power supplies. Leakage across power domains will seriously reduce the effective working time of the chip. At present, many power supply management solutions are relatively complex and cannot effectively detect the differences in power domains to make effective anti-leakage control.
[0053] The present invention monitors the voltage difference between the internal power supply of the circuit and the power supply voltage, and determines whether it is necessary to cut off the substrate conduction voltage according to the voltage difference between the internal power supply of the circuit and the power supply voltage; the present invention can solve the problem of cutting off the leakage path in a multi-power supply voltage working scenario, can prevent circuit leakage, improve circuit safety and also improve the working efficiency of the power supply; the present invention uses a comparator and a selection voltage control, the circuit production cost is low, and it is easy to implement.
[0054] Example 1
[0055] A power switch device in a multi-power management system, referring to Figure 1 , including: a substrate gating signal module;
[0056] The substrate gating signal module is connected to the power module and the switch module, and is used to cut off the conduction path of the substrate parasitic PN junction in the switch module.
[0057] NMOS switches consist of three main parts: the gate, the drain, and the source. The gate is the part that controls the flow of current, while the drain and source are the entrance and exit of the current. Under normal working conditions, the NMOS switch is in the on state, and current can flow from the drain to the source. When a positive voltage is applied to the gate, an electric field is formed between the gate and the drain, causing the charge of the insulating layer between the gate and the drain to be released, thereby forming a conductive channel. Current can flow through this channel to achieve the on state of the switch. Initial state: When a low voltage is applied to the gate, the charge of the insulating layer between the drain and the source accumulates, forming a high resistance state, and the NMOS switch is not conducting. Turn-on process: When a positive voltage is applied to the gate, the electric field causes the charge of the insulating layer to be released, forming a conductive channel, and the current flows from the drain to the source, and the NMOS switch is turned on. Turn-off process: When a low voltage is applied to the gate, the charge of the insulating layer accumulates again, the conductive channel is cut off, the current cannot flow, and the NMOS switch is not conducting.
[0058] The NMOS switch has a fast conduction speed and can realize high-frequency circuit operation. In the non-conducting state, the NMOS switch consumes almost no power, so it has advantages in occasions with strict power supply requirements. The NMOS switch works stably and reliably, has a long life, and is suitable for electronic equipment that operates stably for a long time. NMOS switches are widely used in electronic circuits, for example: Logic gate circuit: NMOS switches can be used to build logic gate circuits, such as AND gates, OR gates, and NOT gates. By controlling the conduction state of the NMOS switch, different logical operations can be achieved. Amplifier circuit: NMOS switches can be used to build amplifier circuits. By controlling the conduction and non-conduction states of the NMOS switch, signal amplification and processing can be achieved. Clock and timing circuit: NMOS switches can be used to build clock and timing circuits. By controlling the conduction and non-conduction states of the NMOS switch, the timing control and timing functions of the circuit can be achieved.
[0059] Because NMOS makes the voltage at the source lower than the gate voltage by a threshold voltage, the drain-source voltage of PMOS can be made very small when the switch is turned on. Therefore, in the embodiment of the present invention, PMOS is selected as the power switch.
[0060] Preferably, the substrate gating signal module comprises: a first resistor, a second resistor, a first capacitor and a comparator;
[0061] One end of the first resistor is connected to VDD, and the other end is connected to the second resistor and the negative input of the comparator;
[0062] One end of the second resistor is grounded, and the other end is connected to the first resistor and the negative input of the comparator;
[0063] The first capacitor is connected in parallel to both ends of the second resistor.
[0064] The substrate gating circuit is an electronic component that automatically controls the switching state of the circuit. It can automatically select the circuit connection mode according to the difference in forward and reverse voltages. The substrate gating circuit can be used in the design of switching circuits, analog circuits and some special circuits. The working principle of the substrate gating circuit is based on the difference in forward voltage and reverse voltage. The forward voltage refers to the voltage from the P pole to the N pole, and the reverse voltage refers to the voltage from the N pole to the P pole. When the forward voltage is large enough, the PN junction is forward biased, the carriers begin to move, and the circuit is in the on state; when the reverse voltage is large enough, the PN junction is reverse biased, and basically no current passes through, and the circuit is in the off state. In the substrate gating circuit, if the positive pole of the input signal is connected to the P end of the PN junction and the reverse pole is connected to the N end of the PN junction, the PN junction is forward biased and the circuit is turned on. Conversely, if the positive pole of the input signal is connected to the N end of the PN junction and the reverse pole is connected to the P end of the PN junction, the PN junction is reverse biased and the circuit is turned off. The working principle of the substrate gating circuit is to use the input signal to control the forward and reverse bias of the PN junction, so that it automatically switches the connection mode between forward and reverse, thereby realizing automatic selection of the circuit.
[0065] Preferably, the comparator is a hysteresis comparator.
[0066] A comparator is a commonly used electronic component, mainly used to compare two voltages and output the corresponding logic level. It can convert an analog voltage into a digital signal and is often used in analog signal processing, voltage comparison, voltage judgment and other application scenarios. A comparator usually consists of a differential amplifier and an output stage. The differential amplifier is responsible for amplifying the input differential voltage, while the output stage processes the amplified signal and outputs the corresponding logic level. The differential amplifier is the core part of the comparator, which consists of at least two input pins and one output pin. One of the input pins is called the non-inverting input terminal (+IN), and the other input pin is called the inverting input terminal (-IN). The comparator calls the voltage difference between +IN and -IN the input differential voltage (Vdiff). When the input differential voltage is greater than a certain threshold (usually OV), the output pin of the comparator will output a high level (usually VCC). When the input differential voltage is less than the threshold, the output pin will output a low level (usually GND).
[0067] The differential amplifier consists of an input stage, an intermediate stage, and an output stage. The input stage usually consists of a differential pair to amplify the input current to enhance the stability and anti-interference ability of the input differential voltage. The intermediate stage is responsible for further amplifying the amplified differential voltage and converting it into a current signal. The output stage converts the current signal into a corresponding logic level. The input stage usually consists of a differential pair, each of which consists of an NPN and a PNP transistor. When the input differential voltage Vdiff increases, the PNP transistor with current will turn on, and the NPN transistor with current will turn off, thereby providing forward amplification. The intermediate stage usually consists of a differential amplifier circuit to further amplify the input differential voltage. The differential amplifier circuit usually consists of multiple transistors in cascade to provide a larger amplification factor. The output stage usually consists of a comparator circuit to convert the amplified differential voltage into a logic level. The comparator circuit usually consists of a transistor and several resistors. When the input differential voltage is greater than the threshold, the transistor is turned on and the output is high level; when the input differential voltage is less than the threshold, the transistor is turned off and the output is low level. The delay time of the comparator refers to the time when the output changes after the input changes. The delay time is mainly determined by factors such as the rise time and fall time of the input voltage and the response speed of the internal circuit of the comparator. The sensitivity of the comparator refers to the degree of change of the output level when the input voltage changes. The sensitivity is related to the amplification factor of the differential amplifier. The larger the amplification factor, the higher the sensitivity. The noise suppression ability of the comparator refers to the ability of the output level to remain stable when there is noise in the input voltage. The noise suppression ability is mainly related to the design of the input stage and the intermediate stage of the comparator. Comparators are widely used in voltage comparison, voltage judgment, analog signal processing and other fields. Common applications include voltage comparators, analog switches, voltage detectors, voltage reference sources, etc.
[0068] The hysteresis comparator is a comparator with hysteresis loop transmission characteristics. It introduces a positive feedback network on the basis of the inverting input single threshold voltage comparator, thus forming an inverting input hysteresis comparator with dual threshold values. The threshold voltage of this comparator changes with the output voltage, so although its sensitivity is lower, its anti-interference ability is greatly improved. The function of the hysteresis comparator is to overcome the jitter (fluctuation) problem of the output voltage of the single-limit comparator when the input signal has a small interference near the threshold value by introducing positive feedback, thereby improving the stability and anti-interference of the circuit. The working principle of the hysteresis comparator can be understood through circuit analysis. For example, a comparator mentioned in a circuit has a reference voltage Vref, which is added to the non-inverting terminal of the operational amplifier through a resistor and a positive feedback network. When the input voltage at the inverting terminal exceeds a certain value, the comparator outputs a low level; when the input voltage drops to another lower value, the comparator flips and outputs a high level. This change in output voltage in turn affects the threshold voltage, forming a hysteresis characteristic. The application of hysteresis comparators is in circuits that require anti-interference, such as power management, temperature control, etc. By setting the appropriate threshold value, the hysteresis comparator can keep the output stable when the input signal fluctuates to avoid malfunction. In addition, the hysteresis comparator is also used to improve the noise immunity of the circuit to ensure that the circuit can work normally in a noisy environment.
[0069] refer to Figure 2 , the power module includes a filter module and a surge protection module;
[0070] The input end of the filter module is connected to the power supply, and the output end is connected to the input end of the surge protection module;
[0071] The output end of the surge protection module is connected to the substrate strobe signal module.
[0072] Preferably, the filter module is connected to the power module and the substrate gating signal module;
[0073] The filtering module includes: a second capacitor, a first inductor and a third capacitor;
[0074] The upper plate of the second capacitor and the first end of the first inductor are both connected to the surge protection module, and the second end of the second capacitor is grounded;
[0075] The second end of the first inductor is grounded through the third capacitor, and the second end of the first inductor is connected to the substrate gating module;
[0076] The upper plate of the third capacitor is connected to the first inductor, and the lower plate is grounded.
[0077] The filter module is a filter circuit composed of capacitors, inductors and resistors. The purpose of using the filter module is to suppress the noise interference generated by the switching power supply, prevent external electromagnetic noise from interfering with the working state of the switching power supply itself, and prevent external electromagnetic noise from interfering with the working state of the output device of the switching power supply. At the same time, it also suppresses the problem of electromagnetic noise generated by other devices. The switching power supply noise is divided into differential mode interference and common mode interference according to its coupling mode. Differential mode interference is defined as symmetrical interference between lines, while common mode interference is defined as interference between lines and reference points. Common mode interference has symmetrical common mode interference and asymmetrical common mode interference. Asymmetrical common mode interference is often converted into differential mode interference. The filter module should filter out both differential mode interference and common mode interference. In fact, the filter module is a differential / common mode hybrid filter. The filter module can ensure the stability and reliability of circuit operation, save energy and reduce environmental pollution.
[0078] Preferably, reference Figure 3 , the surge protection module includes: a transient suppression diode, a fourth capacitor, a second inductor, a diode, a fifth capacitor and a sixth capacitor;
[0079] The positive electrode of the transient suppression diode is grounded, and the negative electrode of the transient suppression diode is connected to the external input;
[0080] The upper plate of the fourth capacitor is connected to the negative electrode of the transient suppression diode, and the lower plate of the fourth capacitor is grounded;
[0081] Transient voltage suppressor diode is an overvoltage protection device with bidirectional voltage stabilization characteristics and bidirectional negative resistance characteristics. It is mainly used to suppress instantaneous overvoltage and protect components in the circuit from damage by surge pulse voltage. When a surge pulse voltage appears in the protected circuit, the transient voltage suppressor diode can quickly change from a high resistance state to a low resistance state, shunt and clamp the surge voltage, thereby protecting the components in the circuit. The working principle of the transient voltage suppressor diode is similar to that of the common voltage zener diode, but it has a higher current conduction capacity. It can change the high impedance between the two poles into a low impedance in a very short time, while absorbing up to several kilowatts of surge power, so that the voltage between the two poles is clamped at a safe value, effectively protecting the precision components in the electronic circuit. The transient voltage suppressor diode can be connected in parallel to the circuit to be protected. When the voltage exceeds its breakdown voltage, the transient voltage suppressor diode will directly shunt the excessive current and suppress the excessive voltage that exceeds its breakdown voltage. TVS diodes are divided into unidirectional and bidirectional types. Unidirectional TVS diodes are similar to rectifiers when operating in the forward direction, while bidirectional TVS diodes can be regarded as two avalanche diodes with opposite polarity connected in series and then connected in parallel with the circuit to be protected. TVS diodes react faster than other overvoltage protection components, with an actual clamping time of only about one picosecond, making them very suitable for protecting circuits from fast and destructive voltage surges.
[0082] In practical applications, the connection method of the TVS diode needs to be determined according to the specific circuit requirements, and can be unidirectional connection, parallel connection or cascade connection, etc. For example, the TVS diode 30CA is an electronic component used to protect other electronic components from overvoltage damage. Its rated voltage is 30V and the maximum peak pulse current is 10A. It is usually used in electronic equipment such as computers, communication equipment, power supplies, etc. to extend the service life of the equipment.
[0083] The diode is connected in parallel with the second inductor, the cathode of the diode is connected with the upper plate of the fourth capacitor, and the anode of the diode is connected with the upper plate of the fifth capacitor;
[0084] A first end of the second inductor is connected to the upper plate of the fourth capacitor, and a second end of the second inductor is connected to the upper plate of the fifth capacitor;
[0085] The lower plate of the fifth capacitor is grounded, and the upper plate is connected to the filter module;
[0086] The sixth capacitor is connected in parallel with the fifth capacitor.
[0087] Surge protection modules can smooth the voltage when transient high-voltage spikes appear on the main application electrical appliances. At this time, they form a fast short-circuit loop to protect the electrical equipment on the main AC power supply. Surge current is caused by voltage mutation. When the electronic equipment is first powered on, the initial current inrush caused by the charging of the large-capacity power capacitor causes the startup surge current; such as the transient current lightning surge current generated by the sudden voltage of the switching power supply when the direct lightning or induction lightning enters the power line. The surge current rise time is very fast, the duration is very short, and the destructive effect is very large. To prevent or reduce the damage of surge current, set up surge current suppression or transfer surge current to the ground line to protect the switching power supply from surge current damage.
[0088] The working principle of the surge protection module is to protect electronic equipment from overvoltage damage by limiting, absorbing or decomposing overvoltage surges on the power line. The surge protection module includes: capacitors and inductors, which are used to remove high-frequency surge signals and reduce the impact of overvoltage on the equipment. Transient suppression diodes are used to quickly respond to and absorb transient overvoltages in the circuit to protect electronic equipment from damage. Isolation devices are used to cut off the power line when voltage is high to prevent overvoltage from propagating to the equipment.
[0089] Preferably, the switch module comprises: a PMOS.
[0090] The PMOS switch is a switch based on a p-type metal oxide semiconductor field effect transistor (PMOSFET). It consists of a p-type gate, a pair of n-type diffusion regions, and a p-type substrate. When the gate voltage is low, the PMOS switch is in the on state; when the gate voltage is high, the PMOS switch is in the off state. When the gate voltage is low, the potential difference between the gate and the source is less than the threshold voltage (Vth), and the PN junction between the gate and the source is reverse biased, forming a reverse biased diode. Since the PN junction between the p-type gate and the p-type substrate is forward biased, a forward biased diode is formed. The two diodes together form a current path connecting the source and the drain, so that the PMOS switch is in the on state. When the gate voltage is high, the potential difference between the gate and the source is greater than or equal to the threshold voltage (Vth), and the PN junction between the gate and the source is forward biased, forming a forward biased diode. Since the PN junction between the p-type gate and the p-type substrate is reverse biased, a reverse biased diode is formed. Together, the two diodes form a barrier that blocks the current path between the source and drain, keeping the PMOS switch in the off state.
[0091] Since the PMOS switch is one of the most commonly used field effect transistors, it has the characteristics of good current control performance. By changing the gate voltage, the current between the source and the drain can be accurately controlled. The working principle of the PMOS switch determines that it has a strong noise immunity. When the gate voltage is high, the PMOS switch is in the cut-off state, and at this time it has a good shielding effect on external noise signals. The gate voltage of the PMOS switch is opposite to that of the usual switch, that is, when the gate voltage is high, the switch is in the cut-off state; when the gate voltage is low, the switch is in the on state. This voltage logic inversion characteristic makes the PMOS switch have good current control performance and noise immunity in some specific circuit designs. It is widely used in various electronic devices. It is often used in the design of components such as logic gates, memories, and triggers in digital circuits, as well as the design of components such as amplifiers, filters, and switching power supplies in analog circuits.
[0092] Example 2
[0093] A method for controlling a power switch device in a multi-power management system, referring to Figure 5 , applied to a power switch device in a multi-power management system, characterized by comprising:
[0094] S100, detecting VDD and internal node voltages;
[0095] Because the internal voltage is higher than the external voltage, a judgment circuit is needed to compare the internal voltage with the power supply voltage of one of the channels.
[0096] S200A, when VDD is greater than the internal node voltage, the first circuit is enabled;
[0097] S200B, when VDD is lower than the internal node voltage, the second circuit is enabled.
[0098] The present invention can use a simple control design to provide automatic detection and connection of the power substrate, cut off the conduction path of the substrate parasitic PN junction of the power switch, ensure that when multiple power supplies are working, the power switch can work normally when the external power supply is turned off, and cut off the leakage path.
[0099] Preferably, when VDD is greater than the internal node voltage, enabling the first circuit includes:
[0100] VIP=0.5*VDD1, VIN=0.5*VINT, when VDD1 is greater than VINT, the positive input of the comparator is greater than the negative input;
[0101] The output voltage of the comparator is 1;
[0102] The circuit selection module selects the first circuit.
[0103] Assume that VDD1 is greater than the internal node voltage, VIP=0.5*VDD1, VIN=0.5*VINT, when VDD1>VINT, VIP>VIN (i.e. the positive input of the comparator is greater than the negative input), and the output voltage of the comparator is 1, i.e. SEL=1. In order to reduce the influence of power supply noise, the comparator selects a comparator with hysteresis function to reduce the misjudgment caused by power supply noise. Because SEL=1, the voltage two-selection circuit will select P0, making the voltage value of N P0, because P1 is INT less than VDD1, so the voltage value of PI is less than the substrate voltage P0, and the parasitic PN junction will not be turned on.
[0104] Preferably, when VDD is less than the internal node voltage, enabling the second circuit includes:
[0105] VIP=0.5*VDD1, VIN=0.5*VINT, when VDD1 is less than VINT, the positive input of the comparator is less than the negative input;
[0106] The output voltage of the comparator is 0, and the circuit selection module selects the second circuit.
[0107] When VDD1 is less than the internal node voltage, VIP = 0.5 * VDD1 and VIN = 0.5 * VINT. When VDD1 < VINT, VIP < VIN (i.e., the positive input of the comparator is less than the negative input), and at this time, the output voltage of the comparator is 0, that is, SEL = 0. To reduce the influence of power supply noise, a comparator with hysteresis function is selected for the comparator to reduce misjudgment caused by power supply noise. Since SEL = 0, as Figure 4 shown, the voltage selector circuit will select P1, making the voltage value of N equal to P1. In this way, the voltage across the parasitic PN diode is the same at both ends, and the parasitic PN junction will not conduct.
[0108] This cuts off the leakage path and ensures the normal operation of the power switch.
[0109] Embodiment 3
[0110] An electronic device includes: a chip, a processor, and a memory. The memory is used to store computer program code, and the computer program code includes computer instructions. When the chip executes the computer instructions, the electronic device executes a power switch device control method in a multi - power management system.
[0111] Referring to Figure 6 , the electronic device 2 includes a processor 21, a memory 22, an input device 23, and an output device 24. The processor 21, the memory 22, the input device 23, and the output device 24 are coupled through a connector, and the connector includes various interfaces, transmission lines, or buses, etc., which are not limited in the embodiments of the present invention. It should be understood that in various embodiments of the present invention, coupling means being interconnected in a specific manner, including being directly connected or indirectly connected through other devices. For example, they can be connected through various interfaces, transmission lines, buses, etc.
[0112] The processor 21 can be one or more graphics processing units (GPUs). When the processor 21 is a single - core GPU, it can be a single - core GPU or a multi - core GPU. Optionally, the processor 21 can be a processor group composed of multiple GPUs, and multiple processors are coupled to each other through one or more buses. Optionally, the processor can also be other types of processors, etc., which are not limited in the embodiments of the present invention.
[0113] The memory 22 can be used to store computer program instructions and various computer program codes including program codes for executing the scheme of the present invention. Optionally, the memory includes but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM), or portable read only memory (CD-ROM), which is used for related instructions and data.
[0114] The input device 23 is used to input data and / or signals, and the output device 24 is used to output data and / or signals. The output device 24 and the input device 23 may be independent devices or an integrated device.
[0115] The present invention monitors the voltage difference between the internal power supply of the circuit and the power supply voltage, and determines whether it is necessary to cut off the substrate conduction voltage according to the voltage difference between the internal power supply of the circuit and the power supply voltage; the present invention can solve the problem of cutting off the leakage path in a multi-power supply voltage working scenario, can prevent circuit leakage, improve circuit safety and also improve the working efficiency of the power supply; the present invention uses a comparator and a selection voltage control, the circuit production cost is low, and it is easy to implement.
[0116] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A power switch device in a multi-power management system, It is characterized in that include: Substrate gating signal module; The substrate gating signal module is connected to the power module and the switch module, and is used to cut off the conduction path of the substrate parasitic PN junction in the switch module; The substrate gating signal module includes: a first resistor, a second resistor, a first capacitor and a comparator; One end of the first resistor is connected to VDD, and the other end is connected to the second resistor and the negative input of the comparator; One end of the second resistor is grounded, and the other end is connected to the first resistor and the negative input of the comparator; The first capacitor is connected in parallel to both ends of the second resistor; The VDD represents a power supply voltage.
2. A power switch device in a multi-power management system according to claim 1, It is characterized in that The power supply module includes a filter module and a surge protection module; The input end of the filter module is connected to the surge protection module, and the output end is connected to the input end of the substrate selection signal module; The input end of the surge protection module is connected to an external input module.
3. A power switch device in a multi-power management system according to claim 1, It is characterized in that The comparator is a hysteresis comparator.
4. A power switch device in a multi-power management system according to claim 2, It is characterized in that The filter module is connected to the substrate gating signal module; The filtering module includes: a second capacitor, a first inductor and a third capacitor; The upper plate of the second capacitor and the first end of the first inductor are both connected to the surge protection module, and the second end of the second capacitor is grounded; The second end of the first inductor is grounded via a third capacitor, and the second end of the first inductor is connected to a substrate gating module; The upper plate of the third capacitor is connected to the first inductor, and the lower plate is grounded.
5. A power switch device in a multi-power management system according to claim 2, It is characterized in that The surge protection module includes: a transient suppression diode, a fourth capacitor, a second inductor, a diode, a fifth capacitor and a sixth capacitor; The positive electrode of the transient suppression diode is grounded, and the negative electrode of the transient suppression diode is connected to the external input; The upper plate of the fourth capacitor is connected to the negative electrode of the transient suppression diode, and the lower plate of the fourth capacitor is grounded; The diode is connected in parallel with the second inductor, the cathode of the diode is connected with the upper plate of the fourth capacitor, and the anode of the diode is connected with the upper plate of the fifth capacitor; A first end of the second inductor is connected to the upper plate of the fourth capacitor, and a second end of the second inductor is connected to the upper plate of the fifth capacitor; The lower plate of the fifth capacitor is grounded, and the upper plate is connected to the filter module; The sixth capacitor is connected in parallel with the fifth capacitor.
6. A power switch device in a multi-power management system according to claim 1, It is characterized in that The switch module includes: PMOS.
7. A method for controlling a power switch device in a multi-power management system, applied to a power switch device in a multi-power management system as claimed in any one of claims 1 to 6, It is characterized in that include: Detect VDD and internal node voltage; When VDD is greater than the internal node voltage, the first circuit is enabled; When VDD is less than the internal node voltage, the second circuit is enabled.
8. An electronic device, It is characterized in that include: A chip, a processor and a memory, wherein the memory is used to store computer program code, wherein the computer program code includes computer instructions. When the chip executes the computer instructions, the electronic device executes a method for controlling a power switch device in a multi-power management system as described in claim 7.
