CN213027988U - Switching on and shutting down circuit and electronic equipment - Google Patents
Switching on and shutting down circuit and electronic equipment Download PDFInfo
- Publication number
- CN213027988U CN213027988U CN202022043821.7U CN202022043821U CN213027988U CN 213027988 U CN213027988 U CN 213027988U CN 202022043821 U CN202022043821 U CN 202022043821U CN 213027988 U CN213027988 U CN 213027988U
- Authority
- CN
- China
- Prior art keywords
- voltage
- circuit
- control
- switching
- switch
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Electronic Switches (AREA)
Abstract
The present disclosure provides a switching circuit and an electronic apparatus. This switching on and shutting down circuit includes: the switching tube comprises an input end, an output end and a control end, wherein the input end is configured to be connected with an external power supply, the output end is configured to be connected with the electronic equipment, and the external power supply supplies power to the electronic equipment through the switching tube; the switch control is connected with the control end of the switch tube to control the switch tube to be switched on or switched off; the detection circuit is configured to detect a first working state of the switch control; the voltage maintaining circuit is connected with the control end of the switching tube; and the controller is connected with the detection circuit and the voltage maintaining circuit and is configured for controlling the switching tube to be kept on or off through the voltage maintaining circuit based on the first working state of the switch control.
Description
Technical Field
The utility model relates to a circuit design field, in particular to switching on and shutting down circuit and electronic equipment.
Background
At present, the on/off control circuit of the control circuit path in the electronic product mainly adopts the form of an integrated chip, such as a power management unit chip. However, most circuits adopting this method require a programmable device (such as a single chip) to perform software programming to realize the startup and shutdown process, resulting in higher cost of the whole circuit.
The structures described in this section are not necessarily ones that have been previously conceived or pursued. Unless otherwise indicated, it should not be assumed that any of the structures described in this section qualify as prior art merely by virtue of their inclusion in this section. Similarly, unless otherwise indicated, the problems mentioned in this section should not be considered as having been acknowledged in any prior art.
SUMMERY OF THE UTILITY MODEL
According to an aspect of the present disclosure, there is provided a power on/off circuit, including: the switching tube comprises an input end, an output end and a control end, wherein the input end is configured to be connected with an external power supply, the output end is configured to be connected with the electronic equipment, and the external power supply supplies power to the electronic equipment through the switching tube; the switch control is connected with the control end of the switch tube to control the switch tube to be switched on or switched off; the detection circuit is configured to detect a first working state of the switch control; the voltage maintaining circuit is connected with the control end of the switching tube; and the controller is connected with the detection circuit and the voltage maintaining circuit and is configured for controlling the switching tube to be kept on or off through the voltage maintaining circuit based on the first working state of the switch control.
In some embodiments, the detection circuit includes a first diode and a pull-up resistor, a positive terminal of the first diode is connected to the power output interface of the electronic device through the pull-up resistor, and a negative terminal of the first diode is connected to one terminal of the switch control.
In some embodiments, the first operating state of the switch control includes a connection duration, wherein the controller is configured to control the switch tube to be kept on by the voltage maintaining circuit based on the connection duration of the switch control reaching a first preset duration in the power-off state of the electronic device, and to be kept off by the voltage maintaining circuit based on the connection duration of the switch control reaching a second preset duration in the power-on state of the electronic device.
In some embodiments, the detection circuit is further configured to detect a second operating state of the switch control, and the controller is further connected to other devices of the electronic apparatus, and the controller is further configured to control the other devices to perform corresponding operations based on the second operating state of the switch control.
In some embodiments, the second operational state of the switch control includes a single click and a double click.
In some embodiments, further comprising: and one end of the switch control is connected with the input end of the switch tube sequentially through the second diode and the voltage division circuit, the positive end of the second diode is connected with the input end of the switch tube through the voltage division circuit, the negative end of the second diode is connected with the switch control, and the output end of the voltage division circuit is connected with the control end of the switch tube.
In some embodiments, the first diode and the second diode are both schottky diodes.
In some embodiments, the voltage dividing circuit includes a first voltage dividing resistor and a second voltage dividing resistor, wherein one end of the switch control is connected to the input end of the switching tube through the second diode, the second voltage dividing resistor and the first voltage dividing resistor in sequence, and one end of the second voltage dividing resistor connected to the first voltage dividing resistor is further connected to the control end of the switching tube.
In some embodiments, the voltage maintaining circuit includes a transistor connected to the switching tube, wherein the controller is connected to the transistor, and the controller is configured to control the switching tube to be turned on or turned off through the transistor.
According to another aspect of the present disclosure, there is provided an electronic device including: in the switching circuit of any of the above, the external power supply supplies power to the electronic device through the switching circuit.
These and other aspects of the disclosure will be apparent from and elucidated with reference to the embodiments described hereinafter.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments of the embodiments and, together with the description, serve to explain the exemplary implementations of the embodiments. The illustrated embodiments are for purposes of illustration only and do not limit the scope of the claims. Throughout the drawings, identical reference numbers designate similar, but not necessarily identical, elements.
Fig. 1 is a schematic configuration diagram showing a switch circuit of an exemplary embodiment; and
fig. 2 is a schematic diagram illustrating a structure of a switching circuit including a voltage conversion unit of an exemplary embodiment.
Detailed Description
In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, the timing relationship, or the importance relationship of the elements, and such terms are used only to distinguish one element from another. In some examples, a first element and a second element may refer to the same instance of the element, and in some cases, based on the context, they may also refer to different instances.
The terminology used in the description of the various described examples in this disclosure is for the purpose of describing particular examples only and is not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the elements may be one or more. Furthermore, the term "and/or" as used in this disclosure is intended to encompass any and all possible combinations of the listed items.
At present, the on/off control circuit of the control circuit path in the electronic product mainly adopts the form of an integrated chip, for example, a dedicated PMU (power management unit) chip is used to complete the on/off function. However, these chips are generally expensive, which not only increases the cost, but also increases the standby power consumption.
In order to solve the above technical problem, the present disclosure provides a switching circuit, which implements a switching function by combining software and hardware. The startup and shutdown circuit comprises a switching tube, a switching control piece, a detection circuit, a voltage maintaining circuit and a controller. The switch function of the switch circuit is realized through a switch tube, and the switch control is used for controlling the switch tube to be switched on or switched off. The detection circuit is used for detecting the working state of the switch control. The controller is used for controlling the switch tube to be kept on or off through the voltage maintaining circuit based on the working state of the switch control. Therefore, the startup and shutdown time can be controlled through the controller, the startup and shutdown time can be set randomly, the operation is more flexible, and compared with a pure hardware mode, the startup and shutdown function is realized, the cost can be reduced, and the power consumption is reduced.
It is understood that the power on/off circuit of the present disclosure may also be applied to other application scenarios requiring on/off, and is not limited to the power on/off application scenario.
The switching circuit of the present disclosure will be further described with reference to the accompanying drawings.
Fig. 1 is a schematic configuration diagram showing a switch circuit of an exemplary embodiment. As shown in fig. 1, the switching circuit may include: a switch tube Q1, including an input end (pin 3), an output end (pin 2) and a control end (pin 1), the input end is configured for connecting with an external power supply (VBAT), the output end is configured for connecting with an electronic device (VSYS), the external power supply (VBAT) supplies power for the electronic device (VSYS) through the switch tube Q1; the switch control SW1 is connected with the control end (pin 1) of the switch tube Q1 to control the switch tube Q1 to be switched on or off; a detection circuit a configured to detect a first operating state of the switch control SW 1; a voltage maintaining circuit B connected with the control end (pin 1) of the switching tube Q1; and the controller is connected with the detection circuit A and the voltage maintaining circuit B and is used for controlling the switch tube Q1 to be kept on or off through the voltage maintaining circuit B based on the first working state of the switch control SW 1. Therefore, the working state of the switch control can be detected through software, and the on-off operation of the electronic equipment is further realized.
The switching transistor Q1 may be a PMOS transistor, for example. In this case, the switching tube Q1 can be controlled to be turned on by controlling the voltage of the control terminal to be smaller than that of the input terminal; the switching tube Q1 can be controlled to be turned off by controlling the voltage at the control terminal not to be less than the voltage at the input terminal. It will be understood that the switching tube Q1 may be other types of transistors, and is not limited herein.
According to some embodiments, the switch control SW1 may be, for example, a tact switch, enabling tact on and hands off. Thereby enabling control of the on duration of switch control SW 1. According to some embodiments, the controller may control the switch tube to be kept on (or kept off) based on that the connection duration of the tact switch of the electronic device in the power-off state (or the power-on state) reaches a preset duration, so that free setting of the key duration of the switch control during power-on and power-off can be achieved. The controller can also implement other arbitrary functions based on different key forms.
In an example, the switch control SW1 may include at least two parallel tact switches as a backup to prevent the problem of failure to power on and off due to damage to one of the tact switches.
In an example, switch control SW1 may be connected in parallel with a capacitor to prevent jitter.
It should be noted that the switch control SW1 may be other switch types, such as a virtual touch switch.
Taking the switching tube Q1 as a PMOS transistor as an example, the voltage of the switching tube Q1 can be controlled by the switching control SW1 to be smaller than the voltage of the input end to control the switching tube Q1 to be turned on, and the voltage of the control end of the switching tube Q1 can be controlled by the switching control SW1 to be not smaller than the voltage of the input end to control the switching tube Q1 to be turned off. Specific principles will be described in the following.
According to some embodiments, the switch control SW1 may include a first operating state for controlling the switching tube Q1 to remain on or off. Switch control SW1 may also include other operating states to achieve other control objectives. Therefore, the controller can detect different working states of the switch control to realize other arbitrary functions.
According to some embodiments, the first operating state of switch control SW1 may include a duration of the on time. In this case, the controller is configured to control the switch Q1 to remain on through the voltage maintaining circuit B based on the on-duration of the switch control SW1 reaching a first preset duration in the off state of the electronic device, and to control the switch Q1 to remain off through the voltage maintaining circuit B based on the on-duration of the switch control SW1 reaching a second preset duration in the on state of the electronic device.
According to some embodiments, the detection circuit a may be further configured to detect the second operation state of the switch control SW1, and the controller may be further connected to other devices of the electronic device to control the other devices to perform corresponding operations based on the second operation state of the switch control SW 1.
According to some embodiments, the second operational state of switch control SW1 may include, for example, single and double clicks.
According to some embodiments, the detection circuit a may include a first diode D1 and a pull-up resistor R4, the positive terminal (pin 5) of the first diode D1 is connected to the power output interface (VDD) of the electronic device through the pull-up resistor R4, and the negative terminal (pin 4) of the first diode (D1) is connected to one terminal of the switch control SW 1. The other end of the light switch control SW1 may be grounded. The positive terminal (pin 5) of the first diode D1 may be connected as an output interface of the detection circuit a to an input interface (GPIO _ IN terminal) of the controller, and the controller detects a level change of the SYS _ SW terminal, that is, an operating state of the switch control SW1, through a level change of the GPIO _ IN terminal. The specific principle is as follows:
when the switch control SW1 is pressed, the detection circuit a is turned on, and since one end of the switch control SW1 is grounded, the SYS _ SW connected to the switch control SW1 is at a low level. Since the voltage drop of the first diode D1 is small, it is equivalent to the state of the positive terminal of the first diode D1 and the level of the SYS _ SW terminal are the same, that is, the positive terminal of the first diode D1 is at a high level when the SYS _ SW terminal is at a high level, and the positive terminal of the first diode D1 is at a low level when the SYS _ SW terminal is at a low level. The controller is thus able to detect the operating state of the switch control SW1, including whether it is pressed, the length of time it is pressed, etc., through the positive terminal of the first diode D1.
The pull-up resistor R4 can play a role in limiting current and prevent damage of instantaneous current to other devices. For example, pull-up resistor R4 may have a value of 4.7K-10K, such as 10K.
According to some embodiments, the first diode D1 may be a schottky diode. Because the forward conduction voltage drop of the Schottky diode is low and is only about 0.4V, the influence on a circuit is low, and the reverse recovery time is extremely short (can be as small as a few nanoseconds), the controller can detect the state of the switch control more sensitively. According to some embodiments, the controller may be configured to control the switching tube to remain on by the voltage maintaining circuit based on the electronic device determining that the SYS _ SW terminal is maintained at the low level for the first preset time period in the off state, and to remain off by the voltage maintaining circuit based on the electronic device determining that the SYS _ SW terminal is pulled down to the low level and maintained for the second preset time period in the on state.
Through the detection circuit, the controller can quickly detect the state change of the switch control and the key duration of the switch control. And through the arrangement of the first diode, the detection circuit and other parts of the switching circuit are not interfered with each other, and the switching operation is controlled through software according to the state of the switching control.
It should be noted that the above is only an example of the operation principle of the detection circuit a, and the detection circuit a of the present disclosure is not limited to the above one implementation structure.
According to some embodiments, the switch circuit may further include a voltage dividing circuit C. One end of the switch control SW1 may be connected to the input end (pin 3) of the switching tube Q1 sequentially through the second diode D2 and the voltage dividing circuit C. The positive terminal (pin 7) of the second diode D2 is connected with the input terminal (pin 3) of the switching tube Q1 through a voltage dividing circuit C, the negative terminal (pin 6) of the second diode D2 is connected with the switch control SW1, and the output terminal of the voltage dividing circuit C is connected with the control terminal (pin 1) of the switching tube Q1. Therefore, the switch control SW1 can be used for controlling the switch tube Q1 to be switched on or off, and the specific principle is as follows:
when the switch control SW1 is pressed, the switch control SW1, the second diode D2, the voltage dividing circuit C and the external power supply (VBAT) form a path, the voltage dividing circuit C divides the voltage of the external power supply (VBAT), and a voltage difference is formed between the input end (pin 3) and the control end (pin 1) of the switch tube Q1, so that the switch tube Q1 can be controlled to be turned on. When the switch control SW1 is not pressed, there is no voltage difference between the input terminal (pin 3) and the control terminal (pin 1) of the switch Q1, so that the switch Q1 can be controlled to be turned off. Therefore, the switch control SW1 can control the voltage difference or no voltage difference between the input end (pin 3) and the control end (pin 1) of the switching tube Q1 by controlling the voltage division loop to be connected or disconnected, and further can control the switching tube Q1 to be connected or disconnected.
According to some embodiments, the first diode D1 and the second diode D2 may both be schottky diodes. The forward conduction voltage drop of the Schottky diode is low, only about 0.4V, the influence on a circuit is low, the reverse recovery time is extremely short (can be as small as a few nanoseconds), and the controller can detect the state of the switch control more sensitively; and the first diode and the second diode enable the detection circuit and the circuit on one side of the switching tube not to interfere with each other.
As an exemplary embodiment, the voltage dividing circuit C may include a first voltage dividing resistor R1 and a second voltage dividing resistor R2. In this case, one end of the switch control SW1 may be connected to the input end (pin 3) of the switching tube Q1 sequentially through the second diode D2, the second voltage-dividing resistor R2 and the first voltage-dividing resistor R1, and one end of the second voltage-dividing resistor R2 connected to the first voltage-dividing resistor R1 is further connected to the control end (pin 1) of the switching tube Q1. Therefore, when the switch control SW1 is pressed, the switch control SW1, the second diode D2, the first voltage-dividing resistor R1, the second voltage-dividing resistor R2 and the external power supply (VBAT) form a path, and the voltage-dividing circuit C composed of the first voltage-dividing resistor R1 and the second voltage-dividing resistor R2 divides the voltage of the external power supply (VBAT) to form a voltage difference between the input terminal (pin 3) and the control terminal (pin 1) of the switch tube Q1. Therefore, the switch control SW1 can control the voltage difference between the input end (pin 3) and the control end (pin 1) of the switching tube Q1 or not by controlling the voltage division loop to be connected or disconnected, and further can control the switching tube Q1 to be connected or disconnected.
According to some embodiments, in the case that the switching transistor Q1 is a PMOS transistor, the resistance of the second voltage-dividing resistor R2 in the voltage-dividing circuit is smaller than the resistance of the first voltage-dividing resistor R1. Therefore, when the switch control SW1 is pressed, the switch control SW1, the second diode D2, the first divider resistor R1, the second divider resistor R2 and the external power supply (VBAT) form a path, and since the resistance value of the second divider resistor R2 is smaller than the resistance value of the first divider resistor R1, the divided voltage of the second divider resistor is smaller, the divided voltage of the first divider resistor is larger, and a sufficient voltage difference can be formed between the control end of the switch tube Q1 and the input end (pin 3), so that the switch tube Q1 is controlled to be turned on.
In some examples, the resistance of the first divider resistor R1 may be, for example, 10K, and the resistance of the second divider resistor R2 may be, for example, 1K. Of course, it should be understood that other resistance settings are possible consistent with the present disclosure and are not limited thereto.
According to the technical scheme, the voltage difference between the input end and the control end of the switch tube is established through the voltage division circuit, so that the switch tube can be controlled to be switched on and off. It is to be understood that the above is only one exemplary implementation structure of the voltage divider circuit, and the voltage divider circuit is not limited to the above structure, as long as it is capable of forming a voltage difference between the input terminal and the control terminal of the switching tube.
After the switch control SW1 controls the switching tube Q1 to be turned on or off, the controller may detect the switching tube Q1 to be turned on or off based on the operation state of the detection switch control SW1, and then may control the switching tube Q1 to be turned on or off through the voltage maintaining circuit B. Therefore, the on-off time can be set arbitrarily by combining software.
According to some embodiments, the voltage maintaining circuit B may include a transistor Q2, a transistor Q2 connected to the switching transistor Q1, wherein the controller is connected to the transistor Q2, and the controller may be configured to control the switching transistor Q1 to remain on or off by controlling the transistor Q2 to be on or off. For example, the controller may control the transistor Q1 to remain on by controlling the transistor Q2 to be on, and the transistor Q1 to remain off by controlling the transistor Q2 to be off.
According to some embodiments, the first terminal of the transistor Q2 may be connected to the control terminal of the switching transistor Q1 through a third voltage dividing resistor R3, the control terminal of the transistor Q2 is connected to the output interface of the controller, and the second terminal of the transistor Q2 is connected to ground. The first end of the triode Q2 is further connected to the input end of the switching tube Q1 through the third voltage dividing resistor R3 and the first voltage dividing resistor R1 in sequence. Therefore, the triode Q2 can be controlled to be switched on or switched off by the controller, and the control end and the input end of the switching tube Q1 are controlled to have differential pressure or not to have differential pressure so as to control the switching tube Q1 to be switched on or switched off, and the on-off time can be set at will.
Taking the transistor Q2 as an NPN transistor as an example, in this case, the collector (i.e., the first end) of the transistor Q2 may be connected to the control terminal (pin 1) of the switching transistor Q1 through the third voltage-dividing resistor R3, the base (i.e., the control terminal) of the transistor Q2 may be connected to the output interface of the controller, and the emitter (i.e., the second end) of the transistor Q2 may be grounded. The collector of the transistor Q2 may be further connected to the input terminal (pin 3) of the switching tube Q1 through the third voltage dividing resistor R3 and the first voltage dividing resistor R1 in sequence.
Taking the transistor Q2 as an NPN transistor as an example, the specific principle that the controller controls the switching transistor Q1 to be turned on or off through the voltage maintaining circuit may be as follows:
when the controller detects that the SYS _ SW terminal is at a low level and maintains the first preset duration, the output interface GPIO _ OUT of the controller outputs a high level to the base of the transistor Q2, so that the transistor Q2 is turned on. After the transistor Q2 is turned on, the external power source (VBAT), the first voltage-dividing resistor R1, the third voltage-dividing resistor R3 and the transistor Q2 form a path, and a voltage difference is formed between the input end (pin 3) and the control end (pin 1) of the switch tube Q1 by the voltage-dividing action of the first voltage-dividing resistor R1 and the third voltage-dividing resistor R3, so that the switch tube Q1 is controlled to be kept on. When the controller detects that the SYS _ SW terminal is at a low level and maintains the second preset duration, the output interface GPIO _ OUT of the controller outputs a low level to the base of the transistor Q2, so that the transistor Q2 is turned off. After the transistor Q2 is turned off, the external power source (VBAT), the first voltage-dividing resistor R1, the third voltage-dividing resistor R3, and the transistor Q2 form an open circuit, and a voltage difference cannot be formed between the input end (pin 3) and the control end (pin 1) of the switching tube Q1, so that the switching tube Q1 is controlled to be kept off.
According to some embodiments, for example, the switch transistor is a PMOS transistor, the third divider resistor R3 may have a smaller resistance than the first divider resistor R1. Therefore, when the transistor Q2 is turned on, a sufficient voltage difference is formed between the input terminal (pin 3) and the control terminal (pin 1) of the switching tube Q1, so that the switching tube Q1 is kept on.
In some examples, the resistance of the first voltage dividing resistor R1 may be, for example, 10K, and the resistance of the third voltage dividing resistor R3 may be, for example, 1K. Of course, it should be understood that other resistance settings are possible consistent with the present disclosure and are not limited thereto. In the above technical scheme, a voltage difference between the input end and the control end of the switching tube is established by the third voltage-dividing resistor and the first voltage-dividing resistor when the triode is switched on, so that the switching tube can be controlled to be switched on or switched off. It will be understood that the structure of the voltage maintaining circuit is not limited to the above-mentioned one, as long as it can establish the voltage difference between the input terminal and the control terminal of the switch tube when the triode is conducted, and control the switch tube to be kept on or off.
According to some embodiments, the output interface GPIO _ OUT of the controller may be connected to the base of the transistor Q2 through a fourth voltage-dividing resistor R5, and the emitter of the transistor Q2 may be further connected to the base of the transistor Q2 through a fifth voltage-dividing resistor R6. Therefore, a voltage difference can be formed between the base electrode and the emitter electrode of the triode Q2 through the voltage dividing action of the fourth voltage dividing resistor R5 and the fifth voltage dividing resistor R6, and the conduction of the triode Q2 is controlled.
Taking the transistor Q2 as an NPN transistor as an example, the resistance of the fourth voltage-dividing resistor R5 may be set to be smaller than the resistance of the fifth voltage-dividing resistor R6, so that a sufficient voltage difference can be formed between the base and the emitter of the transistor Q2 to control the conduction of the transistor Q2. In some examples, the transistor Q2 may also be a PNP transistor, and the connection manner thereof may be modified.
In some examples, the fourth voltage dividing resistor R1 may have a resistance of 2K, and the third voltage dividing resistor R6 may have a resistance of 10K. Of course, it should be understood that other resistance settings are possible consistent with the present disclosure and are not limited thereto.
The starting-up process of the switching circuit according to the present disclosure may be:
when the switch control SW1 is pressed, an external power supply (VBAT) is turned on through a path between the voltage dividing circuit C and the second diode D2, a voltage difference between an input end (pin 3) and a control end (pin 1) of the switching tube Q1 is formed by voltages at two ends of the first voltage dividing resistor R1, so that the switching tube Q1 is turned on, the electronic device is powered on, and an interface (GPIO _ IN end) connected with the controller is at a low level. When the controller detects that the electronic device is powered on and detects that the GPIO _ IN terminal maintains the low level for a first preset duration, the controller turns on the transistor Q2 by pulling up the GPIO _ OUT2 terminal, so that the external power source (VBAT) is turned on through a path of the first voltage-dividing resistor R1, the third voltage-dividing resistor R3, and the transistor Q2, and the switching tube Q1 continues to be turned on. At this time, even if the switch control SW1 is released, the switch Q1 can be controlled to remain on, and the electronic device is maintained in the power-on state. When the switch control SW1 is released, the GPIO _ IN terminal goes high.
The shutdown process of the switching circuit according to the present disclosure may be:
IN the working process of the electronic equipment, after the switch control SW1 is pressed, the SYS _ SW end is pulled low, and the controller detects that the GPIO _ IN end changes from a high level to a low level; when the controller detects that the level of the GPIO _ IN end becomes low for a second preset time, the GPIO _ OUT end is pulled down, the triode Q2 is disconnected, and after the switch control SW1 is released, the switch tube Q1 is disconnected, so that the electronic equipment is powered off. At this time, the switch control SW1 may also control the switch Q1 to remain off, and the electronic device may be maintained in the off state.
According to some embodiments, the switching circuit may further include a first voltage-stabilizing capacitor C1, wherein one end of the first voltage-stabilizing capacitor C1 is connected to the input terminal of the switching tube Q1, and the other end is grounded.
According to some embodiments, the switching circuit may further include a second voltage-stabilizing capacitor C2, wherein one end of the second voltage-stabilizing capacitor C2 is connected to the output terminal of the switching tube Q1, and the other end is grounded.
According to some embodiments, as shown in fig. 2, the power on/off circuit may further include: the input end of the voltage conversion unit is connected with the output end of a switching tube Q1 of the on-off circuit, and the output end of the voltage conversion unit is connected with a detection circuit A of the on-off circuit so as to supply power to the detection circuit A and simplify the circuit structure of the electronic equipment. IN this case, according to some embodiments, when the switch control SW1 is pressed, the switch Q1 is turned on, so that the electronic device is powered on, the VDD terminal is powered on, and the GPIO _ IN terminal goes low. At this time. The controller starts timing after detecting that the electronic equipment is powered on, and controls the switch tube Q1 to be kept conducted through the voltage maintaining circuit B after the GPIO _ IN end maintains the low level and reaches a first preset time. At this time, even if the switch control SW1 is released, the switch tube Q1 can be kept on; when the electronic device is IN the on state, the GPIO _ IN terminal is at a high level, and when the switch control SW1 is pressed, the GPIO _ IN terminal has a transition from the high level to the low level. And the controller starts timing after detecting the jump, controls the disconnection of the triode Q2 through the voltage maintaining circuit B when the low level maintained by the GPIO _ IN end reaches a second preset time length, and switches off the switching tube Q1 after the switching control SW1 is released. At this time, the switch control SW1 is released, and the switching tube Q1 can be kept off, so that the electronic device is kept in the off state.
It is understood that an independent power supply can be added to supply power to the detection circuit.
According to some embodiments, in a case where the detection circuit of the switching circuit includes a first diode and a pull-up resistor, the output terminal of the voltage conversion unit may be connected to the positive terminal of the first diode through the pull-up resistor, the negative terminal of the first diode may be connected to one terminal of the switching control, and the other terminal of the switching control may be grounded.
According to another aspect of the present disclosure, there is also provided an electronic device, which may include the above-mentioned switch circuit, through which an external power supply may supply power to the electronic device. Therefore, the startup and shutdown of the electronic equipment can be realized by combining software and hardware, the startup and shutdown time can be set randomly through the software, the cost can be reduced, and the power consumption can be reduced.
In the present disclosure, the "electronic device" may be any type of terminal device, for example, but not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle-mounted terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like.
Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it is to be understood that the above-described structures are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but is only limited by the claims and their equivalents as issued. Various elements in the embodiments or examples may be omitted or may be replaced with equivalents thereof. Further, the circuit may be implemented by devices other than those described in this disclosure. Further, various elements in the embodiments or examples may be combined in various ways. It is important that as technology evolves, many of the elements described herein may be replaced with equivalent elements that appear after the present disclosure.
Some exemplary aspects of the disclosure are described below.
the switch tube comprises an input end, an output end and a control end, wherein the input end is configured to be connected with an external power supply, the output end is configured to be connected with an electronic device, and the external power supply supplies power to the electronic device through the switch tube;
the switch control is connected with the control end of the switch tube to control the switch tube to be switched on or switched off;
a detection circuit configured to detect a first operating state of the switch control;
the voltage maintaining circuit is connected with the control end of the switching tube;
and the controller is connected with the detection circuit and the voltage maintaining circuit and is configured for controlling the switching tube to be kept on or off through the voltage maintaining circuit based on the first working state of the switch control.
The switch circuit of aspect 1, wherein the detection circuit includes a first diode and a pull-up resistor, a positive terminal of the first diode is connected to the power output interface of the electronic device through the pull-up resistor, and a negative terminal of the first diode is connected to one terminal of the switch control.
the controller is configured to control the switching tube to be kept on through the voltage maintaining circuit based on that the connection duration of the switching control reaches a first preset duration in the shutdown state of the electronic device, and control the switching tube to be kept off through the voltage maintaining circuit based on that the connection duration of the switching control reaches a second preset duration in the startup state of the electronic device.
Aspect 4. the switch circuit of aspect 1 or 2, wherein the detection circuit is further configured to detect a second operating state of the switch control, and the controller is further connected to other devices of the electronic apparatus, and the controller is further configured to control the other devices to perform corresponding operations based on the second operating state of the switch control.
Aspect 5 the switch circuit of aspect 4, wherein the second operational state of the switch control includes a single click and a double click.
one end of the switch control is connected with the input end of the switch tube sequentially through a second diode and a voltage division circuit, wherein the positive end of the second diode is connected with the input end of the switch tube through the voltage division circuit, the negative end of the second diode is connected with the switch control, and the output end of the voltage division circuit is connected with the control end of the switch tube.
Aspect 8 the switching circuit of aspect 6, wherein the voltage divider circuit includes a first voltage divider resistor and a second voltage divider resistor,
one end of the switch control is connected with the input end of the switch tube sequentially through a second diode, a second voltage-dividing resistor and a first voltage-dividing resistor, and one end of the second voltage-dividing resistor connected with the first voltage-dividing resistor is also connected with the control end of the switch tube.
Aspect 9 is the switching circuit according to aspect 8, wherein the switching transistor is a PMOS transistor, and the resistance of the second voltage dividing resistor is smaller than that of the first voltage dividing resistor.
Aspect 10 the switching circuit of aspect 8, wherein the voltage sustaining circuit includes a transistor connected to the switching tube,
wherein the controller is connected with the triode, and the controller is configured to control the switch tube to be kept on or off through the triode.
Aspect 11 is the power on/off circuit according to aspect 10, wherein a first terminal of the transistor is connected to the control terminal of the switching tube through a third voltage dividing resistor, a control terminal of the transistor is connected to the output interface of the controller, a second terminal of the transistor is grounded,
the first end of the triode is also connected with the input end of the switching tube sequentially through the third voltage dividing resistor and the first voltage dividing resistor.
Aspect 12 is the power on/off circuit according to aspect 11, wherein the switching transistor is a PMOS transistor, and the resistance of the third voltage dividing resistor is smaller than the resistance of the first voltage dividing resistor.
Aspect 13 is the power on/off circuit according to aspect 10, wherein the output interface of the controller is connected to the control terminal of the transistor through a fourth voltage-dividing resistor, and the second terminal of the transistor is further connected to the base of the transistor through a fifth voltage-dividing resistor.
Aspect 14 is the switching circuit according to aspect 13, wherein the transistor is an NPN transistor, and the resistance of the fourth voltage-dividing resistor is smaller than the resistance of the fifth voltage-dividing resistor.
Aspect 15 the switch circuit of aspect 3, wherein the switch control is a tact switch.
Aspect 16 is the power on/off circuit according to aspect 6, further including a first voltage stabilizing capacitor, where one end of the first voltage stabilizing capacitor is connected to the input end of the switching tube, and the other end of the first voltage stabilizing capacitor is grounded.
Aspect 17 the power on/off circuit according to aspect 6, further comprising a second voltage stabilizing capacitor, wherein one end of the second voltage stabilizing capacitor is connected to the output end of the switching tube, and the other end of the second voltage stabilizing capacitor is grounded.
Aspect 18 is the power on/off circuit according to aspect 1, further including a voltage converting unit, wherein an input terminal of the voltage converting unit is connected to an output terminal of the switching tube, and an output terminal of the voltage converting unit is connected to the detecting circuit to supply power to the detecting circuit.
Aspect 19 an electronic device, comprising:
the switch-on/switch-off circuit of any of aspects 1-18, an external power source powering the electronic device through the switch-on/switch-off circuit.
Claims (19)
1. A power on/off circuit, comprising:
the switch tube comprises an input end, an output end and a control end, wherein the input end is configured to be connected with an external power supply, the output end is configured to be connected with an electronic device, and the external power supply supplies power to the electronic device through the switch tube;
the switch control is connected with the control end of the switch tube to control the switch tube to be switched on or switched off;
a detection circuit configured to detect a first operating state of the switch control;
the voltage maintaining circuit is connected with the control end of the switching tube;
and the controller is connected with the detection circuit and the voltage maintaining circuit and is configured for controlling the switching tube to be kept on or off through the voltage maintaining circuit based on the first working state of the switch control.
2. The switching circuit according to claim 1, wherein the detection circuit comprises a first diode and a pull-up resistor, a positive terminal of the first diode is connected to the power output interface of the electronic device through the pull-up resistor, and a negative terminal of the first diode is connected to one terminal of the switching control.
3. The power on/off circuit as claimed in claim 1 or 2, wherein the first operating state of the switch control comprises a duration of on,
the controller is configured to control the switching tube to be kept on through the voltage maintaining circuit based on that the connection duration of the switching control reaches a first preset duration in the shutdown state of the electronic device, and control the switching tube to be kept off through the voltage maintaining circuit based on that the connection duration of the switching control reaches a second preset duration in the startup state of the electronic device.
4. The switching circuit according to claim 1 or 2, wherein the detection circuit is further configured to detect a second operating state of the switch control, the controller is further connected to other devices of the electronic apparatus, and the controller is further configured to control the other devices to perform corresponding operations based on the second operating state of the switch control.
5. The switch circuit of claim 4, wherein the second operational state of the switch control includes a single click and a double click.
6. The switching power on and off circuit of claim 2, further comprising: a voltage-dividing circuit for dividing the voltage of the power supply,
one end of the switch control is connected with the input end of the switch tube sequentially through a second diode and a voltage division circuit, wherein the positive end of the second diode is connected with the input end of the switch tube through the voltage division circuit, the negative end of the second diode is connected with the switch control, and the output end of the voltage division circuit is connected with the control end of the switch tube.
7. The switching power on and off circuit of claim 6, wherein the first diode and the second diode are each schottky diodes.
8. The switching circuit of claim 6, wherein the voltage divider circuit comprises a first voltage divider resistor and a second voltage divider resistor,
one end of the switch control is connected with the input end of the switch tube sequentially through a second diode, a second voltage-dividing resistor and a first voltage-dividing resistor, and one end of the second voltage-dividing resistor connected with the first voltage-dividing resistor is also connected with the control end of the switch tube.
9. The switching circuit according to claim 8, wherein the switching transistor is a PMOS transistor, and the second voltage dividing resistor has a smaller resistance than the first voltage dividing resistor.
10. The switching circuit according to claim 8, wherein the voltage sustaining circuit includes a transistor coupled to the switching tube,
wherein the controller is connected with the triode, and the controller is configured to control the switch tube to be kept on or off through the triode.
11. The switching circuit according to claim 10, wherein a first terminal of the transistor is connected to the control terminal of the switching tube through a third voltage dividing resistor, a control terminal of the transistor is connected to the output interface of the controller, a second terminal of the transistor is grounded,
the first end of the triode is also connected with the input end of the switching tube sequentially through the third voltage dividing resistor and the first voltage dividing resistor.
12. The switching device circuit according to claim 11, wherein the switching device is a PMOS device, and the third voltage dividing resistor has a smaller resistance than the first voltage dividing resistor.
13. The switching circuit according to claim 10, wherein the output interface of the controller is connected to the control terminal of the transistor through a fourth voltage-dividing resistor, and the second terminal of the transistor is further connected to the base of the transistor through a fifth voltage-dividing resistor.
14. The switching device of claim 13, wherein the transistor is an NPN transistor, and the fourth voltage-dividing resistor has a resistance value smaller than that of the fifth voltage-dividing resistor.
15. The switch circuit of claim 3, wherein the switch control is a tact switch.
16. The switching device circuit according to claim 6, further comprising a first voltage stabilizing capacitor, wherein one end of the first voltage stabilizing capacitor is connected to the input terminal of the switching tube, and the other end of the first voltage stabilizing capacitor is grounded.
17. The switching device circuit according to claim 6, further comprising a second voltage stabilizing capacitor, wherein one end of the second voltage stabilizing capacitor is connected to the output terminal of the switching tube, and the other end of the second voltage stabilizing capacitor is grounded.
18. The switching circuit according to claim 1, further comprising a voltage converting unit, wherein an input terminal of the voltage converting unit is connected to an output terminal of the switching tube, and an output terminal of the voltage converting unit is connected to the detecting circuit to supply power to the detecting circuit.
19. An electronic device, comprising:
a switching power supply circuit as claimed in any one of claims 1 to 18, an external power supply supplying power to said electronic device via said switching power supply circuit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202022043821.7U CN213027988U (en) | 2020-09-17 | 2020-09-17 | Switching on and shutting down circuit and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202022043821.7U CN213027988U (en) | 2020-09-17 | 2020-09-17 | Switching on and shutting down circuit and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN213027988U true CN213027988U (en) | 2021-04-20 |
Family
ID=75476766
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202022043821.7U Active CN213027988U (en) | 2020-09-17 | 2020-09-17 | Switching on and shutting down circuit and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN213027988U (en) |
-
2020
- 2020-09-17 CN CN202022043821.7U patent/CN213027988U/en active Active
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8147138B2 (en) | Power supply circuit for motherboard | |
US7750504B2 (en) | Power supply apparatus to selectively output one of a plurality of input powers | |
CN109494120B (en) | Relay control circuit | |
US8324945B2 (en) | Electronic device with reset circuit | |
CN108540115B (en) | Low power consumption circuit and electronic device | |
US20120235715A1 (en) | Reset circuit and method of portable terminal | |
CN108736563B (en) | Electronic device and power supply method therefor | |
CN101727159A (en) | Power supply control circuit | |
TWI463797B (en) | Power switching circuit | |
TWI461897B (en) | Power control device and electronic device using the same | |
CN213027988U (en) | Switching on and shutting down circuit and electronic equipment | |
CN222073142U (en) | Interface multiplexing circuit | |
CN207588827U (en) | A kind of self-locking power switch device | |
US9703345B2 (en) | Electronic device and power management control method | |
US20160190804A1 (en) | Power supply system and power control circuit thereof | |
TW201415318A (en) | A power management device of a touchable control system | |
US20100244911A1 (en) | Supply circuitry for sleep mode | |
TW201301013A (en) | Electrical device | |
CN215817607U (en) | Power supply circuit and remote control device | |
CN216851930U (en) | Starting circuit and electronic equipment | |
CN113282159A (en) | Switch control system for zero current standby of embedded controller | |
KR101920282B1 (en) | Power reset device, display device and electric device having the same | |
US20200366303A1 (en) | Circuit having analog-to-digital conversion function and electronic device | |
CN106655465B (en) | System clock power supply device, method and electric appliance | |
CN222301795U (en) | Switch circuits, circuit boards and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant |