Power switching and delayed power-off control circuit and electronic equipment
The power switching and delayed power-down control circuit, composed of purely hardware discrete components, solves the shortcomings of timing chips and MCU main controllers in delayed power-down control, achieving accurate delayed power-down and low power consumption, and is suitable for industrial control electronic systems.
Patent Information
- Application Number
- CN202210669302.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-14
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2042-06-14
AI Technical Summary
In existing technologies, the delay power-down control time of timing chips is short and the power consumption is high, while the delay power-down control of MCU main controllers is costly and has low stability, making it difficult to meet the requirements of long-term delay control and low power consumption.
The power switching and delayed power-down control circuit is composed of purely hardware discrete components. When the main power supply is normal, the power switching control module connects to the main power supply. When the power is interrupted, it switches to the UPS backup power supply. The delayed power-down control module stores energy to control the power switching time, realizing the switching between the main power supply and the backup power supply and the delayed power-down for a predetermined time.
It achieves accurate setting of delay power-off time, has low power consumption and low cost, is suitable for mass production, and is applicable to various industrial control electronic systems.
Smart Images

Figure CN114844202B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic technology, and in particular to a power switching and delayed power-off control circuit and electronic equipment. Background Art
[0002] When an electronic system needs to be equipped with an external input power supply and a UPS power supply, it will be powered by the external power supply when it is powered on, and will quickly switch to the UPS power supply when the external power supply is powered off. The UPS power supply will enter the power-off state after a set delay.
[0003] When the hardware circuit design needs a delayed power-off control function, a timing chip is usually selected to generate a set delay time or a controller such as an MCU outputs a delayed power-off signal according to the set time to control the hardware circuit. The main disadvantage of the timing chip is that it is generally only suitable for short-term delay control, such as a delay of a few seconds. In addition, the static power consumption of the timing chip is relatively high, and the power consumption will increase when the UPS power supply is used in standby mode. If a main controller such as an MCU is used to generate a delayed power-off function, software and hardware cooperation is required, and a main controller with control function is required, which has a high production cost and is not conducive to mass production. Summary of the invention
[0004] The present invention provides a power switching and delayed power-off control circuit and an electronic device to solve the problems of short control time and high power consumption of delayed power-off control using a timing chip, and high cost and low stability of delayed power-off control using an MCU main controller.
[0005] According to one aspect of the present invention, there is provided a power switching and delayed power-off control circuit, comprising: a power switching control module, a delayed power-off control module and an output module;
[0006] The first input end of the power switching control module is connected to the main power supply, the second input end of the power switching control module is connected to the UPS backup power supply, the third input end of the power switching control module is connected to the output end of the delayed power-off control module, and the output end of the power switching control module is connected to the input end of the output module; the power switching control module is used to connect the main power supply to power the output module when the main power supply is normal, and control the connection of the UPS backup power supply to power the output module when the main power supply is off;
[0007] The input end of the delayed power-off control module is connected to the main power supply through a diode; the delayed power-off control module is used to store electric energy, and control the time when the power switching control module connects to the UPS backup power supply to supply power to the output module through the stored electric energy;
[0008] The output end of the output module is used as a power output end to supply power to subsequent circuits.
[0009] Optionally, it also includes: a current discharge module;
[0010] The input end of the current discharge module is connected to the output end of the delayed power-off control module, and the output end of the current discharge module is connected to the input end of the delayed power-off control module; the current discharge module is used to discharge the stored electric energy of the delayed power-off control module and control the delayed power-off control module to control the time of connecting to the UPS backup power supply.
[0011] Optionally, the power switching control module includes: a first diode and a first MOS tube;
[0012] The anode of the first diode is connected to the main power supply, and the cathode of the first diode is connected to the source of the first MOS tube; the first diode is used to control the unidirectional conduction of the main power supply, and when the first diode is turned on, the main power supply supplies power to the output module;
[0013] The drain of the first MOS tube is connected to the UPS backup power supply, and the gate of the first MOS tube is connected to the delayed power-off control module; when the main power supply is normal, the voltage difference between the gate and the source of the first MOS tube is less than Vgs, and the first MOS tube is cut off; when the main power supply is cut off, the voltage difference between the gate and the source of the first MOS tube is greater than Vgs, and the first MOS tube is turned on.
[0014] Optionally, the delayed power-off control module includes a second MOS tube, a first capacitor and a first resistor;
[0015] The drain of the second MOS tube is connected to the gate of the first MOS tube, the gate of the second MOS tube is connected to the first end of the first capacitor, and the source of the second MOS tube is grounded; the second MOS tube is used to supply power to the first MOS tube and control the on and off of the first MOS tube;
[0016] The second end of the first capacitor is grounded, the first end of the first capacitor is also connected to the cathode of the second diode, and the anode of the second diode is connected to the main power supply; the first end of the first capacitor is also connected to the first end of the first resistor, and the second end of the first resistor is grounded; the first capacitor is used to supply power to the second MOS tube, and the first capacitor releases stored electric energy through the first resistor to control the conduction time of the second MOS tube.
[0017] Optionally, the current discharge module includes a third MOS tube and a second resistor;
[0018] The first end of the second resistor is connected to the input end of the delayed power-off control module, the second end of the second resistor is connected to the drain of the third MOS tube, the gate of the third MOS tube is connected to the output end of the delayed power-off control module, and the source of the third MOS tube is grounded as the output end of the current discharge module.
[0019] Optionally, it also includes: a first switch and a third resistor; the first end of the first switch is connected to the input end of the delayed power-off control module, and the first switch is connected in series with the third resistor and then grounded; after the first switch is closed, the stored electrical energy of the delayed power-off control module is released through the third resistor.
[0020] Optionally, the power switching control module further includes: a second capacitor, a fourth resistor and a fifth resistor;
[0021] The second capacitor and the fourth resistor are connected in parallel, and a first end formed by the parallel connection is connected to the UPS backup power supply, and a second end formed by the parallel connection is connected to the gate of the first MOS tube; and are used to slow down the conduction time of the first MOS tube;
[0022] A first end of the fifth resistor is connected to the gate of the first MOS tube, and a second end of the fifth resistor serves as a third input end of the power switching control module.
[0023] Optionally, it further includes: a sixth resistor and a seventh resistor;
[0024] The sixth resistor and the seventh resistor are connected in series, the first end of the series connection is connected to the main power supply, and the second end of the series connection is grounded; the second end of the sixth resistor and the first end of the seventh resistor are connected and a voltage dividing point is set, and the anode of the second diode is connected to the voltage dividing point.
[0025] Optionally, the output module includes a fourth MOS tube, a fifth MOS tube, a third capacitor, a fourth capacitor, an eighth resistor, a ninth resistor and a tenth resistor;
[0026] The source of the fourth MOS tube is connected to the input end of the output module, the drain of the fourth MOS tube is connected to the output end of the output module, the gate of the fourth MOS tube is connected to the drain of the fifth MOS tube after being connected in series with the eighth resistor, the source of the fifth MOS tube is grounded, and the gate of the fifth MOS tube is connected to the input end of the output module; one end of the ninth resistor is connected to the input end of the output module, and the other end is grounded; the third capacitor and the tenth resistor are connected in parallel, and the first end formed by the parallel connection is connected to the gate of the fourth MOS tube, and the second end formed by the parallel connection is connected to the output end of the output module; one end of the fourth capacitor is connected to the output end of the output module, and the other end is grounded;
[0027] The fourth MOS tube is used to buffer the output power supply; when the main power supply is normally supplied, when the voltage difference between the gate and the source of the fifth MOS tube is greater than Vgs, the fifth MOS tube is turned on, and the fourth MOS tube is also in the on state; when the main power supply is powered off, the fifth MOS tube is in the off state, and the fourth MOS tube is also in the off state to prevent current backflow in the subsequent circuit.
[0028] According to another aspect of the present invention, an electronic device is provided, comprising the power switching and delayed power-off control circuit described in any one of the first aspects.
[0029] The technical solution of the embodiment of the present invention is a power switching and delayed power-off control circuit, including: a power switching control module, a delayed power-off control module and an output module; the first input end of the power switching control module is connected to the main power supply, the second input end of the power switching control module is connected to the UPS backup power supply, the third input end of the power switching control module is connected to the output end of the delayed power-off control module, and the output end of the power switching control module is connected to the input end of the output module; the power switching control module is used to connect the main power supply to power the output module when the main power supply is normal, and control the connection of the UPS backup power supply to power the output module when the main power supply is off; the input end of the delayed power-off control module is connected to the main power supply through a diode; the delayed power-off control module is used to store electric energy, and control the time when the power switching control module connects to the UPS backup power supply to power the output module through the stored electric energy; the output end of the output module is used as a power output end to power the subsequent circuit. The problem of short control time and high power consumption of delayed power-off control using a timing chip, and the problem of high cost and low stability of delayed power-off control using an MCU main controller are solved. The power switching and delayed power-off control circuit composed of pure hardware discrete components realizes the switching of the main power supply and the backup power supply and the delayed power-off control of a predetermined time length. The delayed power-off time is accurately set, the power consumption is low, the cost is low, the size is small, and it is suitable for batch production.
[0030] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0032] Figure 1 A schematic diagram of the structure of a power switching and delayed power-off control circuit is provided for the first embodiment of the present invention;
[0033] Figure 2 A structural schematic diagram of another power switching and delayed power-off control circuit is provided for the first embodiment of the present invention;
[0034] Figure 3 A circuit diagram of a power switching and delayed power-off control circuit is provided for Embodiment 1 of the present invention. DETAILED DESCRIPTION
[0035] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.
[0036] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0037] Embodiment 1
[0038] Figure 1 A schematic diagram of the structure of a power switching and delayed power-off control circuit is provided for the first embodiment of the present invention. This embodiment is applicable to situations where switching between a main power source and a backup power source and delayed power-off control are required.
[0039] like Figure 1 As shown, a power switching and delayed power-off control circuit comprises: a power switching control module 100, a delayed power-off control module 200 and an output module 300;
[0040] The first input terminal A1 of the power switching control module 100 is connected to the main power supply 400, the second input terminal A2 of the power switching control module 100 is connected to the UPS backup power supply 500, the third input terminal A3 of the power switching control module 100 is connected to the output terminal B1 of the delayed power-off control module 200, and the output terminal B2 of the power switching control module 100 is connected to the input terminal A4 of the output module 300; the power switching control module 100 is used to connect the main power supply 400 to supply power to the output module 300 when the main power supply 400 is normal, and control the connection of the UPS backup power supply 500 to supply power to the output module 300 when the main power supply 400 is powered off;
[0041] The input terminal A5 of the delayed power-off control module 200 is connected to the main power supply 400 through a Schottky diode; the delayed power-off control module 200 is used to store electric energy, and control the time for the power switching control module 100 to access the UPS backup power supply 500 to supply power to the output module 300 through the stored electric energy;
[0042] The output end of the output module 300 is used as a power output end to supply power to subsequent circuits.
[0043] In the prior art, a set delay time is generated by a timing chip, or a controller such as an MCU outputs a delayed power-off signal according to the set time to control the hardware circuit to implement the delayed power-off control function. The timing chip delay control time is short and the power consumption is large. The MCU delay control requires the coordination of software and hardware, and the cost is high.
[0044] The power switching and delayed power-off control circuit provided in this embodiment is composed of pure hardware discrete components. The main power supply 400 connected to the power switching and delayed power-off control circuit is a DC power supply, the UPS backup power supply 500 is a UPS backup DC power supply, and the output end of the output module 300 is connected to the circuit system that needs to be powered. When the main power supply 400 normally supplies power to the loop, the power switching control module 100 controls the access to the main power supply 400. When the main power supply 400 is powered off, in order to ensure the normal power supply of the loop, the power switching control module 100 controls the access to the UPS backup power supply 500, and the UPS backup power supply 500 supplies power to the loop; the delayed power-off control module 200 controls the time for the UPS backup power supply 500 to access the circuit, and disconnects the UPS backup power supply 500 after the preset time is reached, thereby realizing the switching of the main power supply 400 and the UPS backup power supply 500 and the delayed power-off function of the preset time.
[0045] like Figure 2 As shown, optionally, it also includes: a current discharge module 600;
[0046] The input terminal A6 of the current discharge module 600 is connected to the output terminal B1 of the delayed power-off control module 200, and the output terminal B3 of the current discharge module 600 is connected to the input terminal A5 of the delayed power-off control module 200; the current discharge module 600 is used to discharge the stored electric energy of the delayed power-off control module 200, and control the delayed power-off control module 200 to control the time of accessing the UPS backup power supply 500.
[0047] The delayed power-off control module 200 stores electric energy. When the main power supply 400 loses power, the power switching control module 100 is controlled by the stored electric energy to connect to the UPS backup power supply 500. The stored electric energy is continuously released through the current discharge module 600. When the electric energy is released to a certain extent, the voltage of the electric energy stored in the delayed power-off control module 200 is insufficient to control the power switching control module 100 to connect to the UPS backup power supply 500. The UPS backup power supply 500 is disconnected to realize the delayed power-off function.
[0048] like Figure 3 As shown, optionally, the power switching control module 100 includes: a first diode D1 and a first MOS transistor Q1;
[0049] The anode of the first diode D1 is connected to the main power source VIN, and the cathode of the first diode D1 is connected to the source S of the first MOS transistor Q1; the first diode D1 is used to control the unidirectional conduction of the main power source VIN. When the first diode D1 is turned on, the main power source VIN supplies power to the output module 300;
[0050] The drain D of the first MOS tube Q1 is connected to the UPS backup power supply VIN_BAT, and the gate G of the first MOS tube Q1 is connected to the delayed power-off control module 200; when the main power supply VIN is normal, the voltage difference between the gate G and the source S of the first MOS tube Q1 is less than Vgs, and the first MOS tube Q1 is turned off; when the main power supply VIN is powered off, the voltage difference between the gate G and the source S of the first MOS tube Q1 is greater than Vgs, and the first MOS tube Q1 is turned on.
[0051] When the main power source VIN is normal, the main power source VIN provides a voltage for the source of the first MOS transistor Q1, and the electric energy stored in the delayed power-off control module 200 provides a voltage for the gate G of the first MOS transistor Q1. At this time, the voltage difference between the gate G and the source S of the first MOS transistor Q1 is less than Vgs, so the first MOS transistor Q1 is cut off, and only the main power source VIN is connected to the output module 300; when the main power source VIN is powered off, the gate G of the first MOS transistor Q1 is connected to the delayed power-off control module 200, and the electric energy stored in the delayed power-off control module 200 provides a voltage for the gate G of the first MOS transistor Q1, and the source voltage of the first MOS transistor Q1 approaches 0, then at this time, the voltage difference between the gate G and the source S of the first MOS transistor Q1 is greater than Vgs, and the first MOS transistor Q1 is turned on, so that the UPS backup power source VIN_BAT connected to the drain D of the first MOS transistor Q1 is connected to the loop to supply power to the output module 300.
[0052] The first diode D1 is a Schottky diode, and the first MOS tube Q1 is selected as a high voltage and high current model to reduce the possibility of loss.
[0053] Continue to refer to Figure 3 As shown, optionally, the delayed power-off control module 200 includes a second MOS tube Q2, a first capacitor C1 and a first resistor R1;
[0054] The drain D of the second MOS transistor Q2 is connected to the gate G of the first MOS transistor Q1, the gate G of the second MOS transistor Q2 is connected to the first end of the first capacitor C1, and the source S of the second MOS transistor Q2 is grounded; the second MOS transistor Q2 is used to supply power to the first MOS transistor Q1 and control the on and off of the first MOS transistor Q1;
[0055] The second end of the first capacitor C1 is grounded, the first end of the first capacitor C1 is also connected to the cathode of the second diode D2, and the anode of the second diode D2 is connected to the main power supply VIN; the first end of the first capacitor C1 is also connected to the first end of the first resistor R1, and the second end of the first resistor R1 is grounded; the first capacitor C1 is used to supply power to the second MOS tube Q2, and the first capacitor C1 releases the stored electric energy through the first resistor R1, so as to control the conduction time of the second MOS tube Q2.
[0056] The second MOS transistor Q2 supplies power to the first MOS transistor Q1 and controls the on and off of the first MOS transistor Q1. After the external power source VIN is powered off, the Vgs voltage of the second MOS transistor Q2 is mainly maintained by the voltage of the first capacitor C1. When the first capacitor C1 maintains a relatively high voltage difference, the second MOS transistor Q2 is in a conductive state and supplies power to the first MOS transistor Q1. The voltage difference between the gate G and the source S of the first MOS transistor Q1 is greater than Vgs, and the first MOS transistor Q1 is also turned on. After the electric energy of the first capacitor C1 is slowly released through the first resistor R1, the gate G voltage of the second MOS transistor Q2 is also slowly reduced. When the gate G voltage is reduced to the Vgs turn-on voltage of the second MOS transistor Q2, the second MOS transistor Q2 enters a cut-off state. At the same time, the first MOS transistor Q1 is also turned off to achieve a delayed power-off function.
[0057] The delay time calculation formula is T=R*C*Ln[(V1-V0) / (V1-Vt)]. R represents the parallel connection of R1 and other invisible impedances, C represents the capacitance of capacitor C1, V1 represents the starting stable voltage value of capacitor C1, V0 represents the steady-state voltage value when C1 stops discharging, and Vt represents the set threshold voltage value. In this embodiment, Vt=Vth voltage value of Q2. By referring to the SI2300 device manual, Vt is about 0.8V. According to the delay time to be set, adjust the values of resistors R1 and C1.
[0058] The second diode D2 is a Schottky diode; due to the Rgs of the second MOS tube Q2 and the reverse resistance Rvr of the second diode D2, in order to ensure the accuracy of the preset delay time, the second diode D2 cannot use a conventional Schottky diode, and should use a signal diode with a small reverse leakage current, such as 1N4148, which has a reverse leakage current of less than 1nA, which can meet the circuit requirements. The selection of the second MOS tube Q2 also needs to choose a model with a small Igs leakage current and a small Vth conduction voltage fluctuation, such as SI2300.
[0059] Continue to refer to Figure 3 As shown, optionally, the current discharge module 600 includes a third MOS tube Q3 and a second resistor R2;
[0060] A first end of the second resistor R2 is connected to an input end A5 of the delayed power-off control module 200, a second end of the second resistor R2 is connected to a drain D of the third MOS transistor Q3, a gate G of the third MOS transistor Q3 is connected to an output end B1 of the delayed power-off control module 200, and a source S of the third MOS transistor Q3 is grounded as an output end of the current discharge module 600.
[0061] The first end of the second resistor R2 is connected to the first end of the first capacitor C1 , and the electric energy of the first capacitor C1 is released through the source S of the third MOS tube Q3 after passing through the second resistor R2 .
[0062] When the delay time is set to be long, such as 1 hour, the voltage drop of C1 is also relatively slow, and the time for the second MOS tube Q2 to transition from conduction to cutoff also changes slowly. Similarly, the first MOS tube Q1 is also slowly conducted from conduction to cutoff. Too slow conduction will cause excessive power loss of Q1, which may damage the first MOS tube Q1. Therefore, the circuit plays a role of current discharge through the third MOS tube Q3. When the voltage of the drain electrode D of the second MOS tube Q2 rises to exceed the voltage difference Vgs between the gate electrode G and the source electrode S of the third MOS tube Q3, the faster conduction of the third MOS tube Q3 can release the charge stored in C1 as soon as possible through the second resistor R2 and the third MOS tube Q3, so that the third MOS tube Q3 and the first MOS tube Q1 can reduce the transition time from conduction to cutoff, and avoid the problem of damage to the first MOS tube Q1.
[0063] Continue to refer to Figure 3 As shown, optionally, it also includes: the first switch is connected to the third resistor R3; the first end 1 of the first switch S1 is connected to the input end A5 of the delayed power-off control module 200, and the second end 2 of the first switch S1 is connected in series with the third resistor R3 and then grounded; after the first switch is closed, the stored electrical energy of the delayed power-off control module is released through the third resistor.
[0064] The first switch S1 is a light-touch key switch. When the first switch S1 is manually pressed, the third resistor R3 is connected to the first capacitor C1, and the charge stored on the first capacitor C1 in the delayed power-off control module 200 is released through the third resistor R3. It plays the role of manual power-off and works when manual intervention of the power switch is required.
[0065] Continue to refer to Figure 3 As shown, optionally, the power switching control module 100 further includes: a second capacitor C2, a fourth resistor R4 and a fifth resistor R5;
[0066] The second capacitor C2 and the fourth resistor R4 are connected in parallel, and a first end formed by the parallel connection is connected to the UPS backup power supply VIN_BAT, and a second end formed by the parallel connection is connected to the gate G of the first MOS transistor Q1; used to slow down the conduction time of the first MOS transistor Q1;
[0067] A first end of the fifth resistor R5 is connected to the gate G of the first MOS transistor Q1 , and a second end of the fifth resistor R5 serves as a third input end A3 of the power switching control module 100 .
[0068] Due to the existence of the Miller effect, the first MOS tube Q1 should not be turned on too quickly, otherwise the first MOS tube Q1 may be damaged due to excessive instantaneous power exceeding the MOS tube limit. Because the voltage between the source and drain changes rapidly at this time, the internal capacitor of the MOS tube is charged and discharged rapidly accordingly, and these current pulses will cause the MOS parasitic inductance to produce a large inductive reactance. Adding the second capacitor C2 to the gate G of the first MOS tube Q1 can slow down the turn-on time of the first MOS tube Q1, help reduce Miller oscillation, and prevent the first MOS tube Q1 from burning out.
[0069] Continue to refer to Figure 3 As shown, optionally, it also includes: a sixth resistor R6 and a seventh resistor R7;
[0070] The sixth resistor R6 and the seventh resistor R7 are connected in series, the first end of the series connection is connected to the main power supply VIN, and the second end of the series connection is grounded; the second end of the sixth resistor R6 and the first end of the seventh resistor R7 are connected and a voltage dividing point T is set, and the anode of the second diode D2 is connected to the voltage dividing point T.
[0071] After the main power source VIN is divided by the sixth resistor R6 and the seventh resistor R7, the first capacitor C1 is charged through the second diode D2, thereby reducing the charging voltage and current of the first capacitor C1 and protecting the first capacitor C1.
[0072] Continue to refer to Figure 3 As shown, optionally, the output module includes a fourth MOS transistor Q4, a fifth MOS transistor Q5, a third capacitor C3, a fourth capacitor C4, an eighth resistor R8, a ninth resistor R9 and a tenth resistor R10;
[0073] The source S of the fourth MOS transistor Q4 is connected to the input terminal A4 of the output module 300, the drain D of the fourth MOS transistor Q4 is connected to the output terminal VCC_OUT of the output module 300, the gate G of the fourth MOS transistor Q4 is connected in series with the eighth resistor R8 and then connected to the drain D of the fifth MOS transistor Q5, the source S of the fifth MOS transistor Q5 is grounded, and the gate G of the fifth MOS transistor Q5 is connected to the input terminal A4 of the output module 300; one end of the ninth resistor R9 is connected to the input terminal A4 of the output module 300, and the other end is grounded; the third capacitor C3 and the tenth resistor R10 are connected in parallel, and the first end formed by the parallel connection is connected to the gate G of the fourth MOS transistor Q4, and the second end formed by the parallel connection is connected to the output terminal VCC_OUT of the output module 300; one end of the fourth capacitor C4 is connected to the output terminal VCC_OUT of the output module 300, and the other end is grounded;
[0074] The fourth MOS transistor Q4 is used to buffer the output power supply; when the main power supply VIN is supplying power normally, when the voltage difference between the gate G and the source S of the fifth MOS transistor Q5 is greater than Vgs, the fifth MOS transistor Q5 is turned on, and the fourth MOS transistor Q4 is also in the on state; when the main power supply VIN is powered off, the fifth MOS transistor Q5 is in the off state, and the fourth MOS transistor Q4 is also in the off state to prevent current backflow in subsequent circuits.
[0075] The output module also has the function of preventing current backflow output, ensuring that in abnormal special circumstances such as input power failure, the subsequent circuit will not cause damage to the power switching and delayed power failure control circuit and power supply.
[0076] The technical solution of this embodiment is a power switching and delayed power-off control circuit, including: a power switching control module, a delayed power-off control module and an output module; the first input end of the power switching control module is connected to the main power supply, the second input end of the power switching control module is connected to the UPS backup power supply, the third input end of the power switching control module is connected to the output end of the delayed power-off control module, and the output end of the power switching control module is connected to the input end of the output module; the power switching control module is used to connect the main power supply to power the output module when the main power supply is normal, and control the connection of the UPS backup power supply to power the output module when the main power supply is off; the input end of the delayed power-off control module is connected to the main power supply through a diode; the delayed power-off control module is used to store electric energy, and control the time when the power switching control module connects to the UPS backup power supply to power the output module through the stored electric energy; the output end of the output module is used as a power output end to power the subsequent circuit. The first diode of the power switching control module is used to realize the unidirectional conduction of the main power supply. The first MOS tube controls the connection of the UPS backup power supply when the main power supply is powered off. The first capacitor of the delayed power-off control module controls the on-off state of the second MOS tube, and the second MOS tube controls the on-off state of the first MOS tube, so that the delayed power-off control module controls the connection time of the UPS backup power supply, thereby realizing the power switching and delayed power-off functions. The power switching and delayed power-off control circuit composed of pure hardware discrete components only requires separated components, and does not require load ICs. The overall hardware cost is low and the volume is small. No redundant software and hardware interaction design is required, and the plug-and-play effect is achieved, so it can be flexibly applied to various industrial control electronic systems. The problem of short control time and high power consumption of delayed power-off control using a timing chip is solved, and the problem of high cost and low stability of delayed power-off control using an MCU main controller is solved, and the switching of the main power supply and the backup power supply and the delayed power-off control of a predetermined time length are realized. The delayed power-off time is accurately set, the power consumption is low, the cost is low, the volume is small, and it is suitable for the beneficial effects of batch generation.
[0077] Embodiment 2
[0078] This embodiment provides an electronic device, including: the power switching and delayed power-off control circuit provided by any of the above embodiments.
[0079] The power switching and delayed power-off control circuit in the above embodiment is adopted to achieve a plug-and-play effect and reduce production and application costs.
[0080] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A power switching and delayed power-off control circuit, characterized in that: include: Power switching control module, delayed power-off control module and output module; The first input end of the power switching control module is connected to the main power supply, the second input end of the power switching control module is connected to the UPS backup power supply, the third input end of the power switching control module is connected to the output end of the delayed power-off control module, and the output end of the power switching control module is connected to the input end of the output module; the power switching control module is used to connect the main power supply to power the output module when the main power supply is normal, and control the connection of the UPS backup power supply to power the output module when the main power supply is off; The input end of the delayed power-off control module is connected to the main power supply through a diode; the delayed power-off control module is used to store electric energy, and control the time when the power switching control module connects to the UPS backup power supply to supply power to the output module through the stored electric energy; The output end of the output module is used as a power output end to supply power to subsequent circuits; Also included: a current discharge module; The input end of the current discharge module is connected to the output end of the delayed power-off control module, and the output end of the current discharge module is connected to the input end of the delayed power-off control module; the current discharge module is used to discharge the stored electric energy of the delayed power-off control module and control the delayed power-off control module to control the time of connecting to the UPS backup power supply.
2. The circuit according to claim 1, characterized in that The power switching control module includes: a first diode and a first MOS tube; The anode of the first diode is connected to the main power supply, and the cathode of the first diode is connected to the source of the first MOS tube; the first diode is used to control the unidirectional conduction of the main power supply, and when the first diode is turned on, the main power supply supplies power to the output module; The drain of the first MOS tube is connected to the UPS backup power supply, and the gate of the first MOS tube is connected to the delayed power-off control module; when the main power supply is normal, the voltage difference between the gate and the source of the first MOS tube is less than Vgs, and the first MOS tube is cut off; when the main power supply is cut off, the voltage difference between the gate and the source of the first MOS tube is greater than Vgs, and the first MOS tube is turned on.
3. The circuit according to claim 2, characterized in that The delayed power-off control module includes a second MOS tube, a first capacitor and a first resistor; The drain of the second MOS tube is connected to the gate of the first MOS tube, the gate of the second MOS tube is connected to the first end of the first capacitor, and the source of the second MOS tube is grounded; the second MOS tube is used to supply power to the first MOS tube and control the on and off of the first MOS tube; The second end of the first capacitor is grounded, the first end of the first capacitor is also connected to the cathode of the second diode, and the anode of the second diode is connected to the main power supply; the first end of the first capacitor is also connected to the first end of the first resistor, and the second end of the first resistor is grounded; the first capacitor is used to supply power to the second MOS tube, and the first capacitor releases stored electric energy through the first resistor to control the conduction time of the second MOS tube.
4. The circuit according to claim 1, characterized in that The current discharge module includes a third MOS tube and a second resistor; The first end of the second resistor is connected to the input end of the delayed power-off control module, the second end of the second resistor is connected to the drain of the third MOS tube, the gate of the third MOS tube is connected to the output end of the delayed power-off control module, and the source of the third MOS tube is grounded as the output end of the current discharge module.
5. The circuit according to claim 1, characterized in that Also includes: A first switch and a third resistor; the first end of the first switch is connected to the input end of the delayed power-off control module, and the first switch is connected in series with the third resistor and then grounded; after the first switch is closed, the stored electrical energy of the delayed power-off control module is released through the third resistor.
6. The circuit according to claim 2, characterized in that The power switching control module further includes: a second capacitor, a fourth resistor and a fifth resistor; The second capacitor and the fourth resistor are connected in parallel, and a first end formed by the parallel connection is connected to the UPS backup power supply, and a second end formed by the parallel connection is connected to the gate of the first MOS tube; and are used to slow down the conduction time of the first MOS tube; A first end of the fifth resistor is connected to the gate of the first MOS tube, and a second end of the fifth resistor serves as a third input end of the power switching control module.
7. The circuit according to claim 3, characterized in that Also includes: a sixth resistor and a seventh resistor; The sixth resistor and the seventh resistor are connected in series, the first end of the series connection is connected to the main power supply, and the second end of the series connection is grounded; the second end of the sixth resistor and the first end of the seventh resistor are connected and a voltage dividing point is set, and the anode of the second diode is connected to the voltage dividing point.
8. The circuit according to claim 1, characterized in that The output module includes a fourth MOS tube, a fifth MOS tube, a third capacitor, a fourth capacitor, an eighth resistor, a ninth resistor and a tenth resistor; The source of the fourth MOS tube is connected to the input end of the output module, the drain of the fourth MOS tube is connected to the output end of the output module, the gate of the fourth MOS tube is connected to the drain of the fifth MOS tube after being connected in series with the eighth resistor, the source of the fifth MOS tube is grounded, and the gate of the fifth MOS tube is connected to the input end of the output module; one end of the ninth resistor is connected to the input end of the output module, and the other end is grounded; the third capacitor and the tenth resistor are connected in parallel, and the first end formed by the parallel connection is connected to the gate of the fourth MOS tube, and the second end formed by the parallel connection is connected to the output end of the output module; one end of the fourth capacitor is connected to the output end of the output module, and the other end is grounded; The fourth MOS tube is used for buffering the output power; When the main power supply is normally supplied, when the voltage difference between the gate and the source of the fifth MOS tube is greater than Vgs, the fifth MOS tube is turned on, and the fourth MOS tube is also in the on state; when the main power supply is powered off, the fifth MOS tube is in the off state, and the fourth MOS tube is also in the off state to prevent current backflow of the subsequent circuit.
9. An electronic device, characterized in that: include: The power switching and delayed power-off control circuit according to any one of claims 1 to 8.
