On-off circuit and electronic equipment

By using the switch control switch tube in the charge and discharge circuit in the switch circuit, the problems of high cost and poor flexibility in the existing technology are solved, and the switch control of a pure hardware structure is realized, which reduces the cost and improves the flexibility.

CN221828900UActive Publication Date: 2024-10-11SINOCARE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202322892866.5
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-10-27
Publication Date
2024-10-11
Estimated Expiration
2033-10-27

Smart Images

  • Figure CN221828900U_ABST
    Figure CN221828900U_ABST
Patent Text Reader

Abstract

The utility model discloses a startup and shutdown circuit and electronic equipment, which are applied to the field of circuit startup and shutdown control. The circuit provided by the utility model comprises a switching tube and a charging and discharging circuit, and the charging and discharging circuit comprises a switch. Wherein the input end of the charging and discharging circuit is connected with the first power supply and the first end of the switching tube, and the output end of the charging and discharging circuit is connected with the control end of the switching tube; the control module is used for controlling the switch-on and switch-off of the switch tube when the switch state is changed; the second end of the switch tube is connected with a load. Therefore, the on / off of the switch tube is controlled through the state of the switch in the charging and discharging circuit, namely, the on / off of the circuit is realized. On the whole, the circuit adopts a pure hardware structure to realize the startup and shutdown of the circuit, an additional control chip and corresponding software are not needed to control the whole circuit, the investment cost is relatively low, and the startup and shutdown process of the circuit is relatively flexible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the field of circuit switch control, in particular to a switch circuit and electronic equipment. Background Art

[0002] In recent years, the key switch control circuit usually uses a combination of software and hardware to realize the switch of the circuit. The specific connection method is that the key switch control circuit includes a switch tube, a fast recovery diode, a first resistor, a second resistor, a third resistor, a transistor and a touch switch. Among them, the first end of the first resistor is connected to the input end of the circuit and the gate of the switch tube, and the second end of the first resistor is connected to the source of the switch tube; the drain of the switch tube is connected to the output end of the circuit; the first end of the second resistor is connected to the drain of the switch tube and the output end of the circuit, and the second end of the second resistor is connected to the first end of the fast recovery diode and the first output end of the control chip; the second end of the fast recovery diode is connected to the second end of the first resistor and the source of the switch tube, and the third end of the fast recovery diode is connected to the first end of the touch switch; the first end of the third resistor is connected to the second output end of the control chip, the second end of the third resistor is connected to the base of the transistor, the collector of the transistor is connected to the second end of the first resistor, the source of the switch tube and the second end of the fast recovery diode, and the emitter of the transistor is connected to the second end of the touch switch and grounded. When the circuit needs to be turned on or off, the high and low level signals transmitted by the first and second terminals of the control chip are used to control the conduction or shutdown of the switch tube, thereby indirectly controlling the circuit's on and off. As a whole, an additional control chip and corresponding software are required to control the entire circuit, which has a high investment cost and is inflexible in the process of turning the circuit on and off.

[0003] In view of the above technology, finding a pure hardware structure of the power on / off circuit is an urgent problem to be solved by those skilled in the art. Utility Model Content

[0004] The purpose of the utility model is to provide a power on / off circuit and electronic equipment, which can solve the problems in the prior art that the circuit as a whole requires an additional control chip and corresponding software to control the entire circuit, the investment cost is high, and the circuit is inflexible in the process of powering on and off.

[0005] In order to solve the above technical problems, the utility model provides a switch circuit, comprising: a switch tube and a charge-discharge circuit, wherein the charge-discharge circuit comprises a switch;

[0006] The input end of the charge-discharge circuit is connected to the first power supply and the first end of the switch tube, and the output end of the charge-discharge circuit is connected to the control end of the switch tube; it is used to control the conduction and cutoff of the switch tube when the switch state changes;

[0007] The second end of the switch tube is connected to the load.

[0008] Preferably, the switch tube is a MOS tube, wherein the source of the MOS tube is the first end of the switch tube, the gate of the MOS tube is the control end of the switch tube, and the drain of the MOS tube is the second end of the switch tube.

[0009] Preferably, the charge and discharge circuit further comprises: a first resistor, a second resistor and a first capacitor;

[0010] The first end of the first resistor is connected to the source of the MOS tube and the first power supply, and the second end of the first resistor is connected to the gate of the MOS tube and the first end of the second resistor; wherein the first end of the first resistor is the input end of the charge and discharge circuit;

[0011] The second end of the second resistor is connected to the first end of the first capacitor;

[0012] The second terminal of the first capacitor is grounded.

[0013] Preferably, the charge and discharge circuit further comprises: a first diode and a first transistor;

[0014] The first end of the first diode is connected to the first end of the second resistor, the second end of the first resistor and the gate of the MOS tube, and the second end of the first diode is connected to the second end of the second resistor, the first end of the switch and the first end of the first capacitor;

[0015] The second end of the switch is connected to the base of the first transistor;

[0016] The collector of the first transistor is connected to the first end of the second resistor, the second end of the first resistor and the gate of the MOS transistor, and the emitter of the first transistor is grounded; wherein the collector of the first transistor is the output end of the charge and discharge circuit.

[0017] Preferably, it further comprises: a third resistor;

[0018] Wherein, a first end of the third resistor is connected to the drain of the MOS tube and the load, and a second end of the third resistor is connected to the second end of the switch and the base of the first transistor.

[0019] Preferably, it also includes: a software shutdown circuit;

[0020] Among them, the first end of the software shutdown circuit is connected to the power supply and the input end of the charging and discharging circuit, the second end of the software shutdown circuit is connected to the second power supply, and the third end of the software shutdown circuit is connected to the second end of the switch tube and the load.

[0021] Preferably, the software shutdown circuit comprises: a fourth resistor, a fifth resistor and a second transistor;

[0022] The first end of the fourth resistor is connected to the first power supply and the input end of the charge-discharge circuit, and the second end of the fourth resistor is connected to the collector of the second transistor; wherein the first end of the fourth resistor is the first end of the software shutdown circuit;

[0023] The first end of the fifth resistor is connected to the second power supply, and the second end of the fifth resistor is connected to the base of the second transistor; wherein the first end of the fifth resistor is the second end of the software shutdown circuit;

[0024] The emitter of the second transistor is grounded.

[0025] Preferably, the software shutdown circuit further includes: a second capacitor and a second diode;

[0026] Wherein, the first end of the second capacitor is connected to the second end of the fourth resistor and the collector of the second transistor, and the second end of the second capacitor is connected to the first end of the second diode;

[0027] A second terminal of the second diode is grounded.

[0028] Preferably, the software shutdown circuit further comprises: a sixth resistor and a third triode;

[0029] A first end of the sixth resistor is connected to the second end of the second capacitor and the first end of the second diode, and a second end of the sixth resistor is connected to the base of the third transistor;

[0030] The collector of the third triode is connected to the second end of the switch tube and the load, and the emitter of the third triode is grounded; wherein the collector of the third triode is the third end of the software shutdown circuit.

[0031] In order to solve the above technical problems, the present application also provides an electronic device, including the above-mentioned power on / off circuit.

[0032] The utility model provides a switching circuit, including: a switch tube and a charge-discharge circuit, the charge-discharge circuit including a switch; wherein the input end of the charge-discharge circuit is connected to a first power source and the first end of the switch tube, and the output end of the charge-discharge circuit is connected to the control end of the switch tube; it is used to control the on and off of the switch tube when the switch state changes; the second end of the switch tube is connected to the load. It can be seen that the present application controls the on or off of the switch tube by the state of the switch in the charge-discharge circuit, that is, to realize the switching of the circuit. On the whole, the circuit adopts a pure hardware structure to realize the switching of the circuit, and does not require an additional control chip and corresponding software to control the entire circuit. The investment cost is relatively low, and the circuit is more flexible in the process of realizing the switching. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of the present utility model, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0034] Figure 1 A circuit diagram of a power on / off circuit in the prior art provided by this application;

[0035] Figure 2 A circuit diagram of a power on / off circuit provided in an embodiment of the present application;

[0036] Figure 3 A circuit diagram of a specific power on / off circuit provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of them. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of the utility model.

[0038] The core of the utility model is to provide a switch circuit and an electronic device.

[0039] In order to enable those skilled in the art to better understand the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0040] In recent years, the key switch control circuit usually uses a combination of software and hardware to realize the circuit switch. The specific implementation method is as follows Figure 1As shown, the key switch control circuit includes a switch tube Q11, a fast recovery diode D11, a first resistor R11, a second resistor R12, a third resistor R13, a transistor Q11 and a touch switch K1. Among them, the first end of the first resistor R11 is connected to the input end (5V-IN) of the circuit and the gate of the switch tube Q11, the second end of the first resistor R11 is connected to the source of the switch tube Q11; the drain of the switch tube Q11 is connected to the output end (5V-OUT) of the circuit; the first end of the second resistor R12 is connected to the drain of the switch tube Q11 and the output end (5V-OUT) of the circuit, the second end of the second resistor R12 is connected to the first end of the fast recovery diode D11 and the first output end (Contral1) of the control chip; the first end of the fast recovery diode D11 is connected to the output end (5V-OUT) of the circuit; ... second end of the fast recovery diode D11 is connected to the output end (5V-OUT) of the circuit. The two ends are connected to the second end of the first resistor R11 and the source of the switch tube Q11, and the third end of the fast recovery diode D11 is connected to the first end of the touch switch K11; the first end of the third resistor R13 is connected to the second output end (Contral2) of the control chip, the second end of the third resistor R13 is connected to the base of the transistor Q12, the collector of the transistor Q12 is connected to the second end of the first resistor R11, the source of the switch tube Q11 and the second end of the fast recovery diode D11, and the emitter of the transistor Q12 is connected to the second end of the touch switch K11 and grounded. When the circuit needs to be turned on and off, the high and low level signals transmitted by the first end (Contral1) and the second end (Contral2) of the control chip control the conduction or shutdown of the switch tube, and indirectly control the circuit's on and off. Overall, an additional control chip and corresponding software are required to control the entire circuit, the investment cost is high, and the circuit is not flexible in the process of realizing the on and off of the circuit.

[0041] Therefore, in order to solve the problems of the prior art, the present application provides a switch circuit, comprising: a switch tube and a charge-discharge circuit, wherein the charge-discharge circuit comprises a switch;

[0042] The input end of the charge-discharge circuit is connected to the first power supply and the first end of the switch tube, and the output end of the charge-discharge circuit is connected to the control end of the switch tube; it is used to control the conduction and cutoff of the switch tube when the switch state changes;

[0043] The second end of the switch tube is connected to the load.

[0044] In a specific embodiment, Figure 2As shown, the overall switch circuit includes a first power supply 1, a load 2, a charge and discharge circuit 3, a switch tube Q1 and a switch K1 in the charge and discharge circuit. Among them, the input end of the charge and discharge circuit 3 is connected to the first power supply 1 and the first end of the switch tube Q1, and the output end of the charge and discharge circuit 3 is connected to the control end of the switch tube Q1; it is used to control the on and off of the switch tube Q1 when the state of the switch K1 changes; the second end of the switch tube Q1 is connected to the load 2. The overall way to realize the switch is: when the switch K1 is pressed, the overall circuit is turned on, the switch tube Q1 is turned on, the voltage supplied from the first power supply 1 can flow through the load 2 from the second end of the switch tube Q1, and the circuit is in the on state as a whole; when the switch K1 is pressed again, the overall circuit is turned off, the switch tube Q1 is turned off, the voltage supplied from the first power supply 1 cannot flow through the second end of the switch tube Q1 through the load 2, and the circuit is in the off state as a whole.

[0045] It should be noted that the specific structure of the charging and discharging circuit is not limited in this application and can be set according to the needs of the user, as long as the specific structure includes a switch.

[0046] In a specific embodiment, the switch tube may be a MOS tube, wherein the source of the MOS tube is the first end of the switch tube, the gate of the MOS tube is the control end of the switch tube, and the drain of the MOS tube is the second end of the switch tube. However, it should be noted that the present application is not limited, and the type of the switch tube can be set according to the needs of the user.

[0047] The utility model provides a switching circuit, including: a switch tube and a charge-discharge circuit, the charge-discharge circuit including a switch; wherein the input end of the charge-discharge circuit is connected to a first power source and the first end of the switch tube, and the output end of the charge-discharge circuit is connected to the control end of the switch tube; it is used to control the on and off of the switch tube when the switch state changes; the second end of the switch tube is connected to the load. It can be seen that the present application controls the on or off of the switch tube by the state of the switch in the charge-discharge circuit, that is, to realize the switching of the circuit. On the whole, the circuit adopts a pure hardware structure to realize the switching of the circuit, and does not require an additional control chip and corresponding software to control the entire circuit. The investment cost is relatively low, and the circuit is more flexible in the process of realizing the switching.

[0048] On the basis of the above embodiment, as a preferred embodiment, the charging and discharging circuit further includes: a first resistor, a second resistor, a first capacitor, a first diode and a first triode; and when the switch tube is a MOS tube, the source of the MOS tube is the first end of the switch tube, the gate of the MOS tube is the control end of the switch tube, and the drain of the MOS tube is the second end of the switch tube. At this time, the connection relationship of the specific components in the charging circuit is as follows:

[0049] The first end of the first resistor is connected to the source of the MOS tube and the first power supply, and the second end of the first resistor is connected to the gate of the MOS tube and the first end of the second resistor; wherein the first end of the first resistor is the input end of the charge and discharge circuit;

[0050] The second end of the second resistor is connected to the first end of the first capacitor;

[0051] The second terminal of the first capacitor is grounded;

[0052] The first end of the first diode is connected to the first end of the second resistor, the second end of the first resistor and the gate of the MOS tube, and the second end of the first diode is connected to the second end of the second resistor, the first end of the switch and the first end of the first capacitor;

[0053] The second end of the switch is connected to the base of the first transistor;

[0054] The collector of the first transistor is connected to the first end of the second resistor, the second end of the first resistor and the gate of the MOS transistor, and the emitter of the first transistor is grounded; wherein the collector of the first transistor is the output end of the charge and discharge circuit.

[0055] In a specific embodiment, Figure 3 As shown, the charging and discharging circuit further includes: a first resistor R1, a second resistor R2, a first capacitor C1, a first diode D1 and a first triode Q2; and when the switch tube Q1 is a MOS tube, the source of the MOS tube Q1 is the first end of the switch tube, the gate of the MOS tube is the control end of the switch tube, and the drain of the MOS tube is the second end of the switch tube. At this time, the connection relationship of the specific components in the charging circuit is as follows: the first end of the first resistor R1 is connected to the source of the MOS tube Q1 and the first power supply 1 (5V-IN), and the second end of the first resistor R1 is connected to the gate of the MOS tube Q1 and the first end of the second resistor R2; wherein the first end of the first resistor R1 is the input end of the charging and discharging circuit 3; the second capacitor C1 is connected to the gate of the MOS tube Q1 and the first end of the second resistor R2; The second end of the resistor R2 is connected to the first end of the first capacitor C1; the second end of the first capacitor C1 is grounded; the first end of the first diode D1 is connected to the first end of the second resistor R2, the second end of the first resistor R1 and the gate of the MOS tube Q1, the second end of the first diode D1 is connected to the second end of the second resistor R2, the first end of the switch K1 and the first end of the first capacitor C1; the second end of the switch K1 is connected to the base of the first triode Q2; the collector of the first triode Q2 is connected to the first end of the second resistor R2, the second end of the first resistor R1 and the gate of the MOS tube Q1, and the emitter of the first triode Q2 is grounded; wherein the collector of the first triode Q2 is the output end of the charge and discharge circuit 3.

[0056] The specific implementation of the circuit switch is as follows: in the shutdown state, the first power supply 1 (5V-IN) is powered on, the first capacitor C1 is charged through the first resistor R1 and the second resistor R2, the switch K1 is not pressed, the base of the first transistor Q2 is at a low level, so the first transistor Q2 is in a cut-off state, the base of the MOS tube Q1 is at a high level, the switch tube Q1 is in a disconnected state, and the load 2 (5V_OUT) outputs 0V. Short press the switch K1, the first capacitor C1 discharges the base of the first transistor Q2, the first transistor Q2 is turned on, the base of the MOS tube Q1 becomes low level, so the MOS tube Q1 is turned on, and the load 2 (5V_OUT) outputs 5V, realizing the circuit startup. In the power-on state, short press the switch K1 to realize hardware shutdown. After the touch switch K1 is pressed, the base of the first transistor Q2 is discharged to the ground through the switch K1, the first diode D1 and the first transistor Q2 and becomes a low level. The first transistor Q2 is turned off, and the base of the MOS tube Q1 becomes a high level, so the MOS tube Q1 is turned off, and the load 2 (5V_OUT) outputs 0V, realizing the shutdown of the circuit.

[0057] It should be noted that the charging and discharging circuit provided in the present application is only one possible implementation method, but is not limited to only this implementation method and can be set according to the needs of the user.

[0058] At the same time, in order to ensure the power on and off of the circuit, the circuit provided by the present application further includes: a third resistor R3; Figure 3 As shown, the first end of the third resistor R3 is connected to the drain of the MOS transistor Q1 and the load 2, and the second end of the third resistor R3 is connected to the second end of the switch K1 and the base of the first transistor Q2. The function of the third resistor R3 is: when the switch K1 is short-pressed, the first capacitor C1 discharges the base of the first transistor Q2, the first transistor Q2 is turned on, the base of the MOS transistor Q1 becomes low level, so the MOS transistor Q1 is turned on, and the load 2 (5V_OUT) outputs 5V, and the base voltage of the first transistor Q2 is kept at a high level through the third resistor R3, so the first transistor Q2 is continuously turned on, and the switch K1 can also be released to keep the load 2 (5V_OUT) continuously output to power the system.

[0059] Among them, according to the above content, it can be known that the power on and off circuit provided in the present application uses a pure hardware method to realize the power on and off of the circuit, the investment cost is relatively low, and the process of realizing the power on and off of the circuit is relatively flexible.

[0060] Based on the above embodiment, as a preferred embodiment, the power on / off circuit further includes: a software power off circuit;

[0061] Among them, the first end of the software shutdown circuit is connected to the power supply and the input end of the charging and discharging circuit, the second end of the software shutdown circuit is connected to the second power supply, and the third end of the software shutdown circuit is connected to the second end of the switch tube and the load.

[0062] Specifically, as a preferred embodiment, the software shutdown circuit includes: a fourth resistor, a fifth resistor and a second transistor;

[0063] The first end of the fourth resistor is connected to the first power supply and the input end of the charge-discharge circuit, and the second end of the fourth resistor is connected to the collector of the second transistor; wherein the first end of the fourth resistor is the first end of the software shutdown circuit;

[0064] The first end of the fifth resistor is connected to the second power supply, and the second end of the fifth resistor is connected to the base of the second transistor; wherein the first end of the fifth resistor is the second end of the software shutdown circuit;

[0065] The emitter of the second transistor is grounded.

[0066] The software shutdown circuit also includes: a second capacitor and a second diode;

[0067] Wherein, the first end of the second capacitor is connected to the second end of the fourth resistor and the collector of the second transistor, and the second end of the second capacitor is connected to the first end of the second diode;

[0068] A second terminal of the second diode is grounded.

[0069] The software shutdown circuit also includes: a sixth resistor and a third triode;

[0070] A first end of the sixth resistor is connected to the second end of the second capacitor and the first end of the second diode, and a second end of the sixth resistor is connected to the base of the third transistor;

[0071] The collector of the third triode is connected to the second end of the switch tube and the load, and the emitter of the third triode is grounded; wherein the collector of the third triode is the third end of the software shutdown circuit.

[0072] In a specific embodiment, the circuit provided by the present application further includes: a software shutdown circuit, wherein, for example Figure 3As shown, the software shutdown circuit includes: a fourth resistor R4, a fifth resistor R5, a second transistor Q3, a second capacitor C2, a second diode D2, a sixth resistor R6 and a third transistor Q4. The specific connection relationship is as follows: the first end of the fourth resistor R4 is connected to the first power supply 1 (5V-IN) and the input end of the charge and discharge circuit 3, that is, the first end of the first resistor R1, and the second end of the fourth resistor R4 is connected to the collector of the second transistor Q3; the first end of the fifth resistor R5 is connected to the second power supply (VCC), and the second end of the fifth resistor R5 is connected to the base of the second transistor Q3; the emitter of the second transistor Q3 is grounded; the first end of the second capacitor C2 is connected to the second end of the fourth resistor R4 and the collector of the second transistor Q3, and the second end of the second capacitor C2 is connected to the first end of the second diode D2; the second end of the second diode D2 is grounded; the first end of the sixth resistor R6 is connected to the second end of the second capacitor C2 and the first end of the second diode D2, and the second end of the sixth resistor R6 is connected to the base of the third transistor Q4; the collector of the third transistor Q4 is connected to the second end of the switch tube Q1 and the load 2, and the emitter of the third transistor Q4 is grounded; wherein, the collector of the third transistor Q4 is the third end of the software shutdown circuit.

[0073] Among them, the function of the software shutdown circuit is: to realize software shutdown in the power-on state, there is no need to press the touch switch K1, and it needs to be used in conjunction with the display screen. Touch the shutdown icon on the display screen, that is, the second power supply (VCC) voltage first changes from high to low, the second transistor Q3 changes from on to off, the collector voltage of the second transistor Q3 changes from low to high, and the voltage on the left side of the second capacitor C2 changes from low to high. According to the principle that the voltage across the capacitor cannot change suddenly, the voltage on the right side of the second capacitor C2 will also change from low to high, and then the third transistor Q4 is turned on, the base voltage of the first transistor Q2 is pulled down through the third transistor Q4, the first transistor Q2 is turned off, and the base of the MOS tube Q1 becomes a high level, so the MSO tube Q1 is turned off, and the output of the load 2 (5V_OUT) is 0V, which realizes shutdown.

[0074] In summary, the present application Figure 3The circuit diagram provided specifically implements the circuit switch function as follows: in the shutdown state, the first power supply 1 (5V-IN) is powered on, the first capacitor C1 is charged through the first resistor R1 and the second resistor R2, the switch K1 is not pressed, the base of the first transistor Q2 is at a low level, so the first transistor Q2 is in the cut-off state, the base of the MOS tube Q1 is at a high level, the switch tube Q1 is in the disconnected state, and the load 2 (5V_OUT) output is 0V. The second power supply (VCC) is the output of the lower power supply chip of the load 2 (5V_OUT), which is also 0V at this time, so the second transistor Q3 is in the cut-off state. Due to the isolation effect of the second capacitor C2, the first power supply 1 (5V_IN) cannot reach the base of the third transistor Q4 after passing through the fourth resistor R4, so the third transistor Q4 is also in the cut-off state. When the switch K1 is short pressed, the first capacitor C1 discharges the base of the first transistor Q2, the first transistor Q2 is turned on, the base of the MOS tube Q1 becomes low level, so the MOS tube Q1 is turned on, and the load 2 (5V_OUT) outputs 5V. The base voltage of the first transistor Q2 is kept at a high level through the third resistor R3, so the first transistor Q2 is continuously turned on. The switch K1 is released and the load 2 (5V_OUT) can continue to output power to the system. The second power supply (VCC) is the output of the lower power supply chip of the load 2 (5V_OUT). After the system works normally, the second power supply (VC C) becomes a high level, the second transistor Q3 is turned on, and the collector level of the second transistor Q3 changes from high to low. Since the voltage across the capacitor cannot change suddenly, the voltage on the right side of the second capacitor C2 will also change from high to low. The level on the right side of the second capacitor C2 is originally a low level, and if it becomes lower, negative pressure will appear. The second diode D2 can provide a fast discharge channel for negative pressure, so the voltage on the right side of the second capacitor C2 will quickly approach 0V, so the base of the third transistor Q4 will still be maintained at a low level, and the third transistor Q4 is in a cut-off state, which will not affect the continuous output of load 2 (5V_OUT).

[0075] In the power-on state, short press the switch K1 to realize hardware shutdown. After the touch switch K1 is pressed, the base of the second transistor Q2 is discharged to the ground through the switch K1, the first diode D1 and the first transistor Q2 and becomes a low level. The first transistor Q2 is turned off, and the base of the MOS tube Q1 becomes a high level, so the MOS tube Q1 is turned off, and the load 2 (5V_OUT) outputs 0V.

[0076] To realize software shutdown in the power-on state, there is no need to press the touch switch K1. It needs to be used in conjunction with the display screen. Touch the shutdown icon on the display screen, that is, the voltage of the second power supply (VCC) changes from high to low first, and the second transistor Q3 changes from on to off, and the collector voltage of the second transistor Q3 changes from low to high. The voltage on the left side of the second capacitor C2 changes from low to high. According to the principle that the voltage across the capacitor cannot change suddenly, the voltage on the right side of the second capacitor C2 will also change from low to high. Then the third transistor Q4 is turned on, and the base voltage of the first transistor Q2 is pulled down through the third transistor Q4. The first transistor Q2 is turned off, and the base of the MOS tube Q1 becomes a high level, so the MSO tube Q1 is turned off, and the output of the load 2 (5V_OUT) is 0V, which realizes shutdown.

[0077] The utility model provides a switching circuit, including: a switch tube and a charge-discharge circuit, the charge-discharge circuit including a switch; wherein the input end of the charge-discharge circuit is connected to a first power source and the first end of the switch tube, and the output end of the charge-discharge circuit is connected to the control end of the switch tube; it is used to control the on and off of the switch tube when the switch state changes; the second end of the switch tube is connected to the load. It can be seen that the present application controls the on or off of the switch tube by the state of the switch in the charge-discharge circuit, that is, to realize the switching of the circuit. On the whole, the circuit adopts a pure hardware structure to realize the switching of the circuit, and does not require an additional control chip and corresponding software to control the entire circuit. The investment cost is relatively low, and the circuit is more flexible in the process of realizing the switching.

[0078] In order to solve the above technical problems, the present application also provides an electronic device, which includes the power on / off circuit described in the above embodiment and has the functions of the above power on / off circuit. The specific embodiment is the same as the above embodiment and will not be elaborated in this application.

[0079] The above is a detailed introduction to a switch circuit and an electronic device provided by the utility model. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the utility model, the utility model can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the claims of the utility model.

[0080] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A power on / off circuit, characterized in that: include: A switch tube and a charge-discharge circuit, wherein the charge-discharge circuit includes a switch; The input end of the charge-discharge circuit is connected to the first power supply and the first end of the switch tube, and the output end of the charge-discharge circuit is connected to the control end of the switch tube; and is used to control the on and off of the switch tube when the state of the switch changes; The second end of the switch tube is connected to the load.

2. The switch circuit according to claim 1, characterized in that: The switch tube is a MOS tube, wherein the source of the MOS tube is the first end of the switch tube, the gate of the MOS tube is the control end of the switch tube, and the drain of the MOS tube is the second end of the switch tube.

3. The switch circuit according to claim 2, characterized in that: The charging and discharging circuit further includes: a first resistor, a second resistor and a first capacitor; The first end of the first resistor is connected to the source of the MOS tube and the first power supply, and the second end of the first resistor is connected to the gate of the MOS tube and the first end of the second resistor; wherein the first end of the first resistor is the input end of the charge and discharge circuit; The second end of the second resistor is connected to the first end of the first capacitor; The second terminal of the first capacitor is grounded.

4. The switch circuit according to claim 3, characterized in that: The charging and discharging circuit further includes: a first diode and a first transistor; The first end of the first diode is connected to the first end of the second resistor, the second end of the first resistor and the gate of the MOS tube, and the second end of the first diode is connected to the second end of the second resistor, the first end of the switch and the first end of the first capacitor; The second end of the switch is connected to the base of the first transistor; The collector of the first transistor is connected to the first end of the second resistor, the second end of the first resistor and the gate of the MOS tube, and the emitter of the first transistor is grounded; wherein the collector of the first transistor is the output end of the charging and discharging circuit.

5. The switch circuit according to claim 4, characterized in that: Also includes: The third resistor; Wherein, a first end of the third resistor is connected to the drain of the MOS tube and the load, and a second end of the third resistor is connected to the second end of the switch and the base of the first transistor.

6. The switch circuit according to claim 1, characterized in that: Also includes: Software shutdown circuit; Among them, the first end of the software shutdown circuit is connected to the power supply and the input end of the charging and discharging circuit, the second end of the software shutdown circuit is connected to the second power supply, and the third end of the software shutdown circuit is connected to the second end of the switch tube and the load.

7. The switch circuit according to claim 6, characterized in that: The software shutdown circuit comprises: a fourth resistor, a fifth resistor and a second triode; The first end of the fourth resistor is connected to the first power supply and the input end of the charge-discharge circuit, and the second end of the fourth resistor is connected to the collector of the second transistor; wherein the first end of the fourth resistor is the first end of the software shutdown circuit; The first end of the fifth resistor is connected to the second power supply, and the second end of the fifth resistor is connected to the base of the second transistor; wherein the first end of the fifth resistor is the second end of the software shutdown circuit; The emitter of the second transistor is grounded.

8. The switch circuit according to claim 7, characterized in that: The software shutdown circuit further includes: a second capacitor and a second diode; Wherein, the first end of the second capacitor is connected to the second end of the fourth resistor and the collector of the second transistor, and the second end of the second capacitor is connected to the first end of the second diode; A second terminal of the second diode is grounded.

9. The switch circuit according to claim 8, characterized in that: The software shutdown circuit also includes: a sixth resistor and a third triode; The first end of the sixth resistor is connected to the second end of the second capacitor and the first end of the second diode, and the second end of the sixth resistor is connected to the base of the third transistor; The collector of the third transistor is connected to the second end of the switch tube and the load, and the emitter of the third transistor is grounded; wherein the collector of the third transistor is the third end of the software shutdown circuit.

10. An electronic device, characterized in that: The invention comprises a switch circuit as claimed in any one of claims 1 to 9.