Single-key startup and shutdown system and electronic product
By adopting a single-button switch system in electronic products and using electronic switches and microcontroller units to manage the on-off of the power interface, the overheating and arc ablation of mechanical switches in large current scenarios is solved, and a safe, reliable and low-cost power management is achieved.
Patent Information
- Application Number
- CN202411999540.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-03-04
AI Technical Summary
Existing mechanical switches are prone to overheating in large current scenarios, arc ablation of contacts, increasing costs, and direct power outage in embedded devices may lead to data loss, system errors and other problems.
A single-key power switch system is adopted, including an input power interface, an output power interface, an electronic switch, a resistor and a microcontroller unit. The electronic switch and a microcontroller unit are controlled by pressing the buttons to manage the on-off of the power interface to avoid arc formation.
It realizes safe and reliable power management, avoids arc ablation problems, reduces costs, improves service life, and reserves time for data storage and mechanical relocation during shutdown to prevent data loss and system errors.
Smart Images

Figure CN119561532A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of on / off circuits, and in particular to a single-button on / off system and an electronic product. Background Art
[0002] Electronic products all require power on / off circuits. The most common approach is to use a self-locking mechanical switch to control the power supply of the entire system, but this method has obvious flaws.
[0003] For example, ordinary mechanical switches are prone to overheating when used in high current scenarios, and the arc generated when the power is turned off can easily burn the contacts, often requiring the use of larger and more expensive mechanical switches with silver-plated contacts, which increases costs. In addition, for embedded devices, if the power is turned off directly without the hardware and software being ready, data loss, system errors, etc. may occur, and even danger may occur. Summary of the invention
[0004] In order to solve the problems existing in the prior art, one of the purposes of the present invention is to provide a single-key on / off system.
[0005] The present invention provides the following technical solutions:
[0006] A single-button on / off system includes an input power interface, an output power interface, a first electronic switch, a first resistor, a second electronic switch, a third electronic switch, a button body, a power circuit module and a micro control unit;
[0007] A first end of the first electronic switch is electrically connected to the input power interface, and a second end of the first electronic switch is electrically connected to the output power interface;
[0008] One end of the first resistor is electrically connected to the first end of the first electronic switch, and the other end of the first resistor is electrically connected to the third end of the first electronic switch, the second end of the second electronic switch, and the second end of the third electronic switch;
[0009] The third end of the second electronic switch and the third end of the third electronic switch are grounded;
[0010] When the key body is pressed, the second electronic switch is controlled to be turned on, and when the key body is released, the second electronic switch is controlled to be turned off;
[0011] The input end of the power circuit module is electrically connected to the output power interface, and the output end of the power circuit module is electrically connected to the power supply pin of the micro control unit;
[0012] The micro control unit is used to control the third electronic switch to be turned on after being powered on, and to control the third electronic switch to be turned off when it is detected that the key body is pressed again during operation.
[0013] As a further optional solution for the single-key power on / off system, the single-key power on / off system also includes a second resistor, one end of the second resistor is electrically connected to the first resistor and the third end of the first electronic switch, and the other end of the second resistor is electrically connected to the second end of the second electronic switch and the second end of the third electronic switch.
[0014] As a further optional solution to the single-key on / off system, the single-key on / off system further includes a third resistor;
[0015] The button body includes a first conductive part and a second conductive part, the first conductive part is electrically connected to the input power interface, and the second conductive part is electrically connected to the first end of the second electronic switch through the third resistor.
[0016] As a further optional solution for the single-key power on / off system, the single-key power on / off system also includes a fourth resistor, one end of the fourth resistor is electrically connected to the third resistor and the first end of the second electronic switch, and the other end of the fourth resistor is grounded.
[0017] As a further optional solution to the single-key on / off system, the single-key on / off system further includes a fifth resistor;
[0018] The micro control unit includes a first input / output port and a second input / output port, the first input / output port is electrically connected to the first end of the third electronic switch through the fifth resistor, and the second input / output port is electrically connected to the second conductive portion.
[0019] As a further optional solution for the single-key power on / off system, the single-key power on / off system further includes a sixth resistor, and the second input / output port is electrically connected to the second conductive portion via the sixth resistor.
[0020] As a further optional solution for the single-key power on / off system, the single-key power on / off system also includes a seventh resistor, one end of the seventh resistor is electrically connected to the sixth resistor and the second input / output port at the same time, and the other end of the seventh resistor is grounded.
[0021] As a further optional solution for the single-key power on / off system, the single-key power on / off system also includes an eighth resistor, one end of the eighth resistor is electrically connected to the first end of the third electronic switch and the fifth resistor at the same time, and the other end of the eighth resistor is grounded.
[0022] Another object of the present invention is to provide an electronic product.
[0023] The present invention provides the following technical solutions:
[0024] An electronic product comprises the above-mentioned single-key on / off system.
[0025] The embodiments of the present invention have the following beneficial effects:
[0026] In the initial state, the first electronic switch, the second electronic switch and the third electronic switch are all turned off, the input power interface is disconnected from the output power interface, the power circuit module that supplies power to the micro control unit has no output voltage, and the micro control unit does not work. When the user presses the key body, the second electronic switch is turned on, and the current flows through the input power interface, the first resistor and the second electronic switch in sequence. At this time, a voltage difference is formed across the first resistor, that is, a voltage difference is formed between the first end and the third end of the first electronic switch, and the voltage difference reaches the threshold voltage for the first electronic switch to turn on, so that the first end and the second end of the first electronic switch are turned on, and then the input power interface and the output power interface are connected to achieve startup. At the same time, the power circuit module outputs a voltage to energize the micro control unit. The micro control unit can work within a very short time after being powered on, and controls the third electronic switch to be turned on, and the current can flow through the input power interface, the first resistor and the third electronic switch in sequence. Even if the key body is released, so that the second electronic switch is turned off, there is still current flowing through the first resistor, so that the first electronic switch continues to be turned on. In the working process after the power is turned on, when the user presses the key body again, the micro control unit detects that the key body is pressed and controls the third electronic switch to be turned off. At the same time, as the button body is released, the second electronic switch is also turned off, so that no current flows through the first resistor, and the voltage difference between the two ends of the first resistor is zero, that is, the voltage difference between the first end and the third end of the first electronic switch is zero. At this time, the first end and the second end of the first electronic switch are turned off, so that the input power interface and the output power interface are disconnected to achieve shutdown. Therefore, the user can change the state of the first electronic switch by manipulating a single button body, and then use the first electronic switch to control the on and off of the circuit between the input power interface and the output power interface. Compared with the mechanical switch, the first electronic switch is used to control the power supply, there is no arc ablation problem, better safety, longer service life, and lower cost. In addition, during the shutdown process, the microcontroller responds to the state change of the button body to control the third electronic switch to turn off. Before controlling the third electronic switch to turn off, it can reserve enough time to prepare for shutdown, such as saving data, returning the machine to its original position, etc., to avoid the situation where the power is directly cut off when the software and hardware are not ready, and it is not easy to lose data and make system errors, and the reliability and safety are improved.
[0027] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and understandable, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0029] Figure 1 The overall structural diagram of a single-key power on / off system provided by an embodiment of the present invention is shown.
[0030] Description of main component symbols:
[0031] 100-input power interface; 200-output power interface; 300-first electronic switch; 400-first resistor; 500-second electronic switch; 600-third electronic switch; 700-button body; 710-first conductive part; 720-second conductive part; 800-power circuit module; 900-micro control unit; 910-first input and output port; 920-second input and output port; 1000-second resistor; 1100-third resistor; 1200-fourth resistor; 1300-fifth resistor; 1400-sixth resistor; 1500-seventh resistor; 1600-eighth resistor. DETAILED DESCRIPTION
[0032] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0033] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. In contrast, when an element is referred to as being "directly on" another element, there is no intermediate element. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.
[0034] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0035] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0036] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of the template are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0037] Example
[0038] See also Figure 1 The present embodiment provides a single-key on / off system, which is applied to electronic products, especially embedded products. The single-key on / off system includes an input power interface 100, an output power interface 200, a first electronic switch 300 (positive channel Metal Oxide Semiconductor, P-channel Metal Oxide Semiconductor Field Effect Transistor), a first resistor 400, a second electronic switch 500, a third electronic switch 600, a key body 700, a power circuit module 800 and a micro control unit 900.
[0039] Among them, the first end of the first electronic switch 300 is electrically connected to the input power interface 100, and the second end of the first electronic switch 300 is electrically connected to the output power interface 200. One end of the first resistor 400 is electrically connected to the first end of the first electronic switch 300, and the other end of the first resistor 400 is electrically connected to the third end of the first electronic switch 300, the second end of the second electronic switch 500, and the second end of the third electronic switch 600. The third end of the second electronic switch 500 and the third end of the third electronic switch 600 are grounded. When the key body 700 is pressed, the second electronic switch 500 is controlled to be turned on, and when the key body 700 is released, the second electronic switch 500 is controlled to be turned off. The input end of the power circuit module 800 is electrically connected to the output power interface 200, and the output end of the power circuit module 800 is electrically connected to the power supply pin of the micro control unit 900. The micro control unit 900 is used to control the third electronic switch 600 to be turned on after power is obtained, and to control the third electronic switch 600 to be turned off when it is detected that the key body 700 is pressed again during operation.
[0040] In the initial state, the first electronic switch 300, the second electronic switch 500 and the third electronic switch 600 are all turned off, the input power interface 100 is disconnected from the output power interface 200, the power circuit module 800 that supplies power to the micro control unit 900 has no output voltage, and the micro control unit 900 does not work.
[0041] When the user presses the button body 700, the second electronic switch 500 is turned on, and the current flows through the input power interface 100, the first resistor 400, and the second electronic switch 500 in sequence. At this time, a voltage difference is formed across the first resistor 400, that is, a voltage difference is formed between the first end and the third end of the first electronic switch 300, and the voltage difference reaches the threshold voltage for turning on the first electronic switch 300, so that the first end and the second end of the first electronic switch 300 are turned on, and then the input power interface 100 is connected to the output power interface 200, and the power is turned on.
[0042] It can be understood that the operation of the first electronic switch 300 is controlled by the voltage difference Vgs between the third terminal and the first terminal. Assuming that the threshold voltage for turning on the first electronic switch 300 is Vgs(th), when the voltage at the third terminal is lower than the voltage at the first terminal and |Vgs|≥|Vgs(th)|, the first electronic switch 300 is turned on. When |Vgs|<|Vgs(th)|, the first electronic switch 300 is turned off.
[0043] At the same time, the power circuit module 800 outputs a voltage to power up the micro control unit 900. The micro control unit 900 can work within a very short time (usually several ms or tens of ms) after powering up, and controls the third electronic switch 600 to be turned on, so that current can flow through the input power interface 100, the first resistor 400 and the third electronic switch 600 in sequence. Even if the key body 700 is released, so that the second electronic switch 500 is turned off, current still flows through the first resistor 400, so that the first electronic switch 300 is continuously turned on.
[0044] During operation after powering on, when the user presses the button body 700 again, the microcontroller unit 900 detects that the button body 700 is pressed, and controls the third electronic switch 600 to be turned off. At the same time, as the button body 700 is released, the second electronic switch 500 is also turned off, so that no current flows through the first resistor 400, and the voltage difference between the two ends of the first resistor 400 is zero, that is, the voltage difference between the first end and the third end of the first electronic switch 300 is zero. At this time, the first end and the second end of the first electronic switch 300 are turned off, thereby disconnecting the input power interface 100 from the output power interface 200, and shutting down the device.
[0045] Thus, the user can change the state of the first electronic switch 300 by manipulating the single button body 700, and then use the first electronic switch 300 to control the on and off of the circuit between the input power interface 100 and the output power interface 200. Compared with a mechanical switch, the use of the first electronic switch 300 to control power supply does not have arc erosion problems, is safer, has a longer service life, and is less expensive.
[0046] In addition, during the shutdown process, the microcontroller unit 900 responds to the state change of the button body 700 to control the third electronic switch 600 to be turned off. Before controlling the third electronic switch 600 to be turned off, it can reserve sufficient time to prepare for shutdown, such as saving data, returning the machine to its original position, etc., to avoid direct power off when the software and hardware are not ready, and it is less likely to cause data loss and system errors, thereby improving reliability and safety.
[0047] Furthermore, the single-key on / off system further includes a second resistor 1000. One end of the second resistor 1000 is electrically connected to the first resistor 400 and the third end of the first electronic switch 300, and the other end of the second resistor 1000 is electrically connected to the second end of the second electronic switch 500 and the second end of the third electronic switch 600.
[0048] When in use, the current flows through the input power interface 100, the first resistor 400 and the second resistor 1000 in sequence, and then flows through the second electronic switch 500 and / or the third electronic switch 600. As a result, the first resistor 400 and the second resistor 1000 form a voltage divider circuit, and Vgs is always equal to the voltage difference across the first resistor 400. On this basis, by adjusting the resistance values of the first resistor 400 and the second resistor 1000, Vgs can be kept in a reasonable range, which can ensure that the first electronic switch 300 is reliably turned on, and prevent Vgs from being over-voltage and damaging the first electronic switch 300.
[0049] In some embodiments, the single-key switch system further includes a third resistor 1100. In addition, the key body 700 includes a first conductive portion 710 and a second conductive portion 720. The first conductive portion 710 is electrically connected to the input power interface 100, and the second conductive portion 720 is electrically connected to the first end of the second electronic switch 500 through the third resistor 1100.
[0050] When the user presses the button body 700, the first conductive part 710 and the second conductive part 720 are connected, so that the input power interface 100 is connected to the first end of the second electronic switch 500. At this time, the first end of the second electronic switch 500 is at a high potential, so the second end and the third end of the second electronic switch 500 are connected.
[0051] It is understandable that the voltage that the first end of the second electronic switch 500 can withstand is usually low. When current flows through the third resistor 1100, there is a voltage difference between the two ends of the third resistor 1100, so that the voltage at the first end of the second electronic switch 500 can be appropriately reduced to protect the second electronic switch 500.
[0052] On the contrary, when the button body 700 is released, the first conductive part 710 and the second conductive part 720 are disconnected, so that the input power interface 100 is disconnected from the first end of the second electronic switch 500. At this time, the first end of the second electronic switch 500 is at a low potential, so the second end and the third end of the second electronic switch 500 are cut off.
[0053] Furthermore, the single-key on / off system further includes a fourth resistor 1200. One end of the fourth resistor 1200 is electrically connected to the third resistor 1100 and the first end of the second electronic switch 500, and the other end of the fourth resistor 1200 is grounded. The second conductive portion 720 is grounded through the third resistor 1100 and the fourth resistor 1200.
[0054] When the user presses the button body 700, the first conductive part 710 and the second conductive part 720 are connected, and the current flows through the input power interface 100, the first conductive part 710, the second conductive part 720, the third resistor 1100 and the fourth resistor 1200 in sequence. As a result, the third resistor 1100 and the fourth resistor 1200 form a voltage divider circuit, and the potential of the first end of the second electronic switch 500 is always equal to the voltage difference across the fourth resistor 1200. On this basis, by adjusting the resistance values of the third resistor 1100 and the fourth resistor 1200, the potential of the first end of the second electronic switch 500 can be maintained in a reasonable range, which can not only ensure that the second electronic switch 500 is reliably turned on, but also prevent the potential of the first end of the second electronic switch 500 from being too high and damaging the second electronic switch 500.
[0055] On the contrary, when the key body 700 is released, the first conductive part 710 and the second conductive part 720 are disconnected, no current flows through the fourth resistor 1200, and the voltage difference across the fourth resistor 1200 is zero. At this time, both ends of the fourth resistor 1200 and the first end of the second electronic switch 500 are at zero potential.
[0056] In some embodiments, the single-key on / off system further includes a fifth resistor 1300. In addition, the micro control unit 900 includes a first input / output port 910 and a second input / output port 920. The first input / output port 910 is electrically connected to the first end of the third electronic switch 600 through the fifth resistor 1300, and the second input / output port 920 is electrically connected to the second conductive portion 720.
[0057] On the one hand, the micro control unit 900 controls the first input / output port 910 to output a signal to the first end of the third electronic switch 600, thereby controlling the third electronic switch 600 to be turned on or off. When the first input / output port 910 outputs a high level signal to the first end of the third electronic switch 600, the second end and the third end of the third electronic switch 600 are turned on. When the first input / output port 910 outputs a low level signal to the first end of the third electronic switch 600, the second end and the third end of the third electronic switch 600 are turned off.
[0058] Similar to the reason for setting the third resistor 1100, the voltage that the first end of the third electronic switch 600 can withstand is usually low. When current flows through the fifth resistor 1300, there is a voltage difference between the two ends of the fifth resistor 1300, so that the voltage at the first end of the third electronic switch 600 can be appropriately reduced to protect the third electronic switch 600.
[0059] It can be understood that after the micro control unit 900 is powered on, the internal software controls the first input / output port 910 to output a high level signal to the first end of the third electronic switch 600 to turn on the third electronic switch 600 .
[0060] On the other hand, by electrically connecting the second input / output port 920 to the second conductive portion 720 , the micro control unit 900 can detect the state change of the key body 700 .
[0061] Specifically, when the user presses the button body 700 , the first conductive portion 710 and the second conductive portion 720 are connected, and the micro control unit 900 detects a high level signal through the second input / output port 920 .
[0062] On the contrary, when the key body 700 is released, the first conductive part 710 and the second conductive part 720 are disconnected. At this time, the second input / output port 920 is at zero potential, and the micro control unit 900 detects a low level signal through the second input / output port 920 .
[0063] It can be understood that after the microcontroller unit 900 is powered on, the internal software will continue to detect the signal level state of the second input / output port 920. When the key body 700 is not pressed, the signal is at a low level and is in a normal working state. When the user presses the key body 700 again, the internal software detects that the signal becomes a high level and determines that the user is about to shut down. At this time, the microcontroller unit 900 prepares for shutdown, such as saving data, returning the machine to its original position, etc., and then controls the first input / output port 910 to output a low level signal to the first end of the third electronic switch 600, so that the third electronic switch 600 is turned off.
[0064] Furthermore, the single-key on / off system further includes a sixth resistor 1400 and a seventh resistor 1500. The second input / output port 920 is electrically connected to the second conductive portion 720 via the sixth resistor 1400. One end of the seventh resistor 1500 is electrically connected to the sixth resistor 1400 and the second input / output port 920, and the other end of the seventh resistor 1500 is grounded. The second conductive portion 720 of the key body 700 is grounded via the sixth resistor 1400 and the seventh resistor 1500.
[0065] Similar to the reason for setting the third resistor 1100 and the fifth resistor 1300, the voltage that the second input / output port 920 can withstand may be lower than the voltage input at the input power interface 100. When current flows through the sixth resistor 1400, there is a voltage difference across the sixth resistor 1400, so that the voltage at the second input / output port 920 can be appropriately reduced to protect the micro control unit 900.
[0066] When in use, the seventh resistor 1500 and the sixth resistor 1400 form a voltage divider circuit, and the potential of the second input / output port 920 is always equal to the voltage difference across the seventh resistor 1500. On this basis, by adjusting the resistance values of the seventh resistor 1500 and the sixth resistor 1400, the potential of the second input / output port 920 can be kept in a reasonable range, which can ensure that the micro control unit 900 can reliably detect the state change of the key body 700, and prevent the potential of the second input / output port 920 from being too high and damaging the micro control unit 900.
[0067] Furthermore, the single-key on / off system further includes an eighth resistor 1600. One end of the eighth resistor 1600 is electrically connected to the first end of the third electronic switch 600 and the fifth resistor 1300, and the other end of the eighth resistor 1600 is grounded.
[0068] When the first input / output port 910 outputs a high level signal to the first end of the third electronic switch 600, the current flows sequentially through the first input / output port 910, the fifth resistor 1300, and the eighth resistor 1600. Thus, the fifth resistor 1300 and the eighth resistor 1600 form a voltage divider circuit, and the potential of the first end of the third electronic switch 600 is always equal to the voltage difference across the eighth resistor 1600. On this basis, by adjusting the resistance values of the fifth resistor 1300 and the eighth resistor 1600, the potential of the first end of the third electronic switch 600 can be maintained in a reasonable range, which can ensure that the third electronic switch 600 is reliably turned on, and prevent the potential of the first end of the third electronic switch 600 from being too high and damaging the third electronic switch 600.
[0069] In summary, when using an electronic product including the above-mentioned single-key on / off system, the user can change the state of the first electronic switch 300 by manipulating a single key body 700, and then use the first electronic switch 300 to control the on / off of the circuit between the input power interface 100 and the output power interface 200. Compared with a mechanical switch, the use of the first electronic switch 300 to control the power supply does not have the problem of arc erosion, has better safety, longer service life, and lower cost. In addition, during the shutdown process, the microcontroller unit 900 responds to the state change of the key body 700 to control the third electronic switch 600 to be turned off. Before controlling the third electronic switch 600 to be turned off, it can reserve enough time to prepare for the shutdown, such as saving data, returning the machine to its original position, etc., to avoid the situation where the power is directly cut off when the software and hardware are not ready, and it is not easy to cause data loss and system errors, and the reliability and safety are improved.
[0070] Thus, the above-mentioned single-key on / off system realizes the control of the power switch of the whole machine with a small key signal, and the internal software of the microcontroller unit 900 can detect the state of the key body 700 so as to execute the shutdown action after preparation, which is safer and more reliable. Among them, the key body 700 can be a light touch key, which is often used in the control panel of electronic products. It has the advantages of being light, reliable and low-priced, and is widely popular in embedded electronic products. In addition, the light touch key combined with the software and hardware design can realize that one key has both the power on and power off functions.
[0071] In particular, the single-button on / off system has a small number of components, simple circuit and software design, high reliability and low cost. The circuit is hidden inside, and only the button body 700 is exposed, making the product design more beautiful and elegant, and full of high-end feeling.
[0072] In addition, it should be noted that when the user releases the button body 700, the microcontroller unit 900 detects that the button body 700 is released, and can determine whether the shutdown process needs to be executed through some parameters. For example, if the button body 700 is pressed for too short a time, it can be determined as a wrong operation and ignored; and when the button body 700 is pressed for a preset time, it is determined that the user wants to shut down, so the shutdown process is executed, first performing the preparatory work before shutdown, such as saving data, and then executing the shutdown action.
[0073] This embodiment also provides an electronic product, including the above-mentioned single-key power on / off system.
[0074] In this case, the first electronic switch 300 is a PMOS transistor (positive channel Metal Oxide Semiconductor, P-channel Metal Oxide Semiconductor Field Effect Transistor), and the first end, the second end and the third end of the first electronic switch 300 correspond to the source, the drain and the gate of the PMOS transistor respectively. The second electronic switch 500 is an NPN transistor, and the first end, the second end and the third end of the second electronic switch 500 correspond to the base, the collector and the emitter of the NPN transistor respectively. The third electronic switch 600 is an NPN transistor, and the first end, the second end and the third end of the third electronic switch 600 correspond to the base, the collector and the emitter of the NPN transistor respectively.
[0075] In all examples shown and described herein, any specific values should be interpreted as merely exemplary and not as limiting, and thus other examples of the exemplary embodiments may have different values.
[0076] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0077] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. A single-button power on / off system, characterized in that: It includes an input power interface, an output power interface, a first electronic switch, a first resistor, a second electronic switch, a third electronic switch, a key body, a power circuit module and a micro control unit; A first end of the first electronic switch is electrically connected to the input power interface, and a second end of the first electronic switch is electrically connected to the output power interface; One end of the first resistor is electrically connected to the first end of the first electronic switch, and the other end of the first resistor is electrically connected to the third end of the first electronic switch, the second end of the second electronic switch, and the second end of the third electronic switch; The third end of the second electronic switch and the third end of the third electronic switch are grounded; When the key body is pressed, the second electronic switch is controlled to be turned on, and when the key body is released, the second electronic switch is controlled to be turned off; The input end of the power circuit module is electrically connected to the output power interface, and the output end of the power circuit module is electrically connected to the power supply pin of the micro control unit; The micro control unit is used to control the third electronic switch to be turned on after being powered on, and to control the third electronic switch to be turned off when it is detected that the key body is pressed again during operation.
2. The one-button on / off system according to claim 1, characterized in that: The single-key switch system also includes a second resistor, one end of which is electrically connected to the first resistor and the third end of the first electronic switch, and the other end of the second resistor is electrically connected to the second end of the second electronic switch and the second end of the third electronic switch.
3. The single-button on / off system according to claim 1 or 2, characterized in that: The single-button on / off system further includes a third resistor; The button body includes a first conductive part and a second conductive part, the first conductive part is electrically connected to the input power interface, and the second conductive part is electrically connected to the first end of the second electronic switch through the third resistor.
4. The one-button on / off system according to claim 3, characterized in that: The single-key on / off system further includes a fourth resistor, one end of which is electrically connected to the third resistor and the first end of the second electronic switch, and the other end of the fourth resistor is grounded.
5. The one-button on / off system according to claim 3, characterized in that: The single-button on / off system further includes a fifth resistor; The micro control unit includes a first input / output port and a second input / output port, the first input / output port is electrically connected to the first end of the third electronic switch through the fifth resistor, and the second input / output port is electrically connected to the second conductive portion.
6. The one-button on / off system according to claim 5, characterized in that: The single-button on / off system further includes a sixth resistor, and the second input / output port is electrically connected to the second conductive portion via the sixth resistor.
7. The one-button on / off system according to claim 6, characterized in that: The single-key on / off system further includes a seventh resistor, one end of which is electrically connected to the sixth resistor and the second input / output port, and the other end of which is grounded.
8. The one-button on / off system according to claim 5, characterized in that: The single-key on / off system further includes an eighth resistor, one end of which is electrically connected to the first end of the third electronic switch and the fifth resistor, and the other end of the eighth resistor is grounded.
9. An electronic product, characterized in that: A single-button on / off system comprising any one of claims 1-8.