On-off circuit with double-color LED display and application method

By designing a power switch circuit with two-color LED display, using power plugs, power switch circuits and switch control circuits, the problem of software damage caused by power outage of ship switches is solved, and the normal shutdown and operating status display of the system is realized.

CN119028266APending Publication Date: 2024-11-26SHENZHEN MAITUOSI ELECTRONIC INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410950895.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

Existing electronic products may cause software programs to be damaged when the ship switch is powered off, resulting in failure in startup.

Method used

Design a power switch circuit with a two-color LED display, including a power plug, a first power switch circuit, a second power switch circuit and a switch control circuit, display the status through a two-color LED and a switch button, and send a shutdown signal during power shutdown to save Software program.

Benefits of technology

It effectively avoids the problem of software program corruption, ensures that the system saves the program normally when shutdown, and displays the status through two-color LEDs to ensure the normal operation and shutdown status of the system circuit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119028266A_ABST
    Figure CN119028266A_ABST
Patent Text Reader

Abstract

The invention relates to a switching-on and switching-off circuit with double-color LED display and an application method. The switching-on and switching-off circuit comprises a power plug, a first power switching circuit, a second power switching circuit, a ship-shaped switch and a switching control circuit. The switch control circuit is electrically connected with a double-color LED and a switch button, the first power switch circuit is electrically connected with a power plug through a ship-shaped switch, and the output end of the set voltage is in power supply connection with the switch control circuit and the double-color LED; the switch control circuit is electrically connected with the power plug through the ship-shaped switch; the second power switch circuit is electrically connected with the power plug and the switch control circuit; according to the invention, the function of a ship-shaped switch is reserved, the switch button is additionally arranged on the basis, the switch button can be normally turned on and turned off, the problem of software program damage can be well avoided when the switch is turned off through the switch button, and the problem encountered by a current traditional switch mechanism frame can be well solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power on / off circuits, and more particularly to a power on / off circuit with a dual-color LED display and an application method thereof. Background Art

[0002] Many electronic products on the market currently have only one boat-shaped power switch. Figure 1 As shown in the figure, when the rocker switch is closed, the machine power is turned on and the machine circuit system starts to work; when the rocker switch is opened, the machine power is cut off and the machine system circuit stops working. This design has a problem: because the power outage is random, sudden power outage may damage the software program running in the electronic product, resulting in that when the rocker switch is closed again, although the power of the entire circuit system is turned on, the software program in the integrated circuit in the machine circuit system is damaged, resulting in startup failure and the machine cannot work normally. A new system architecture is needed to solve the above problems. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a power on / off circuit with a dual-color LED display and an application method of the power on / off circuit with a dual-color LED display in view of the above-mentioned defects of the prior art.

[0004] The technical solution adopted by the present invention to solve its technical problem is:

[0005] Construct a switch circuit with a two-color LED display, which includes a power plug, a first power switch circuit, a second power switch circuit, a rocker switch and a switch control circuit;

[0006] The switch control circuit is electrically connected to a dual-color LED and a switch button, wherein the dual-color LED is used for status display, and the switch button is used for inputting a switch control signal to the switch control circuit;

[0007] The first power switch circuit is electrically connected to the power plug through the rocker switch, and is used to convert the input voltage into a set voltage, and the output end of the set voltage is connected to the switch control circuit and the two-color LED power supply;

[0008] The switch control circuit is electrically connected to the power plug through the rocker switch, and is used to receive the operating state of the rocker switch and control the output signal according to the operating state;

[0009] The second power switch circuit is electrically connected to the power plug and the switch control circuit, and is used to control the voltage output of an externally connected power system according to a control signal of the switch control circuit.

[0010] The power switch circuit with dual-color LED display of the present invention, wherein the first power switch circuit comprises a first NPN transistor, a PMOS1 transistor and a power chip;

[0011] The B pole of the first NPN transistor is electrically connected to the boat-shaped switch, the E pole is grounded, and the C pole is electrically connected to the G pole of the PMOS1 tube; the S pole of the PMOS1 tube is electrically connected to the power plug, and the D pole is electrically connected to the VIN pin of the power chip; the SW pin of the power chip is electrically connected to the first power output terminal.

[0012] The power switch circuit with a two-color LED display described in the present invention, wherein the SW pin of the power chip is electrically connected to an inductor, and the other end of the inductor is electrically connected to the first power output terminal; the BST pin of the power chip is electrically connected to a first capacitor, and the other end of the first capacitor is electrically connected to the SW pin of the power chip; the FB pin of the power chip is grounded and electrically connected to a first resistor and a fifth capacitor, the first resistor and the fifth capacitor are connected in parallel, and the other end of the first resistor and the other end of the fifth capacitor are both electrically connected to the other end of the inductor.

[0013] In the power on / off circuit with dual-color LED display described in the present invention, a filter is electrically connected to the power plug.

[0014] In the power on / off circuit with dual-color LED display described in the present invention, an ESD device is electrically connected to the power plug.

[0015] The switch circuit with dual-color LED display of the present invention, wherein the switch control circuit includes a power management device and a signal processing circuit;

[0016] The PWRON pin of the power management device is electrically connected to the switch button, the EXT_EN pin is electrically connected to a signal input terminal of the signal processing circuit, and the VCC_RTC pin and the VDC pin are electrically connected to the first power output terminal.

[0017] The power on / off circuit with dual-color LED display of the present invention, wherein the signal processing circuit includes a second NPN transistor, a PMOS3 transistor and a logic device;

[0018] The B pole of the second NPN transistor is electrically connected to the boat-type switch, the E pole is grounded, and the C pole is electrically connected to the first pin of the PMOS3 tube; the second pin of the PMOS3 tube is electrically connected to the first power output terminal, and the third pin is electrically connected to the A pin of the logic device; the B pin of the logic device is electrically connected to the EXT_EN pin of the power management device, the VCC pin is electrically connected to the first power output terminal, and the Y pin is electrically connected to the second power switch circuit.

[0019] The power switch circuit with dual-color LED display of the present invention, wherein the second power switch circuit includes a third NPN transistor and a PMOS2 transistor;

[0020] The B pole of the third NPN transistor is electrically connected to the Y pin of the logic device, the E pole is grounded, and the C pole is connected to the G pole of the PMOS2 tube; the S pole of the PMOS2 tube is electrically connected to the power plug, and the D pole is electrically connected to the second power output terminal; the second power output terminal is electrically connected to the power system.

[0021] The power on / off circuit with a dual-color LED display of the present invention, wherein the dual-color LED comprises a fourth NPN transistor, a fifth NPN transistor and an LED element;

[0022] The B pole of the fourth NPN transistor is electrically connected to the EXT_EN pin of the power management device, the E pole is grounded, and the C pole is electrically connected to the green light pin of the LED element and the first power output terminal; the B pole of the fifth NPN transistor is electrically connected to the EXT_EN pin of the power management device, the C pole is grounded, and the E pole is electrically connected to the red light pin of the LED element and the first power output terminal; the LED element includes a red light LED and a green light LED, the cathode of the red light LED is electrically connected to the red light pin and the anode of the green light LED, and the cathode of the green light LED is electrically connected to the green light pin and the anode of the red light LED.

[0023] A method for applying a power on / off circuit with a dual-color LED display, using the power on / off circuit with a dual-color LED display as described above, wherein the method comprises the steps of:

[0024] Under the condition that the power plug is inserted into the machine, when the rocker switch is turned on, the first power switch circuit is not conducting, and the first power output terminal has no output; correspondingly, the switch control circuit does not work, the second power output terminal has no output, the circuit system has no power input, the circuit system circuit does not work, and the two-color LED does not display;

[0025] When the rocker switch is closed, the first power switch circuit is turned on, and the first power output terminal outputs normally; correspondingly, the switch control circuit starts to work, so that the second power switch circuit is turned on, and the second power output terminal outputs normally, and the circuit system is powered normally, the circuit system starts to work, and the two-color LED displays green;

[0026] When the circuit system works normally: when the switch button is long pressed, the switch control circuit system enters the shutdown process, and the integrated circuit saves the running software program; the switch control circuit controls the second power switch circuit to turn off, the second power output end has no output, and the circuit system stops working; the boat switch is still in the closed state, the first power output end outputs normally, the switch control circuit works normally, and the dual-color LED displays red;

[0027] When the switch button is short pressed again, the switch control circuit controls the second power switch circuit to be turned on, the second power output terminal outputs normally, the integrated circuit starts normally, the system circuit starts working, and the dual-color LED displays green.

[0028] The beneficial effects of the present invention are: when the power on / off circuit of the present invention is applied, when the machine is working normally, the two-color LED displays green, indicating that the whole system circuit is operating normally. When shutting down, a shutdown signal will be sent to the integrated circuit of the electronic product, so that the integrated circuit in the system enters the normal shutdown program and saves the software; then the two-color LED displays red, indicating that the whole system circuit is in the shutdown state; the present invention retains the function of the boat switch, and at the same time, an additional switch button is added on this basis. While the switch button can be used for normal power on / off operation, the problem of software program damage can be avoided when shutting down by the switch button, which can well solve the problem encountered by the current traditional switch mechanism architecture. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the present invention will be further described below in conjunction with the accompanying drawings and embodiments. The drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work:

[0030] Figure 1 It is an existing ship-type power switch frame;

[0031] Figure 2 This is a schematic diagram of a power on / off circuit with a dual-color LED display according to a preferred embodiment of the present invention;

[0032] Figure 3 This is a circuit diagram of a power plug and a rocker switch connection circuit with a dual-color LED display in a preferred embodiment of the present invention;

[0033] Figure 4 This is a circuit diagram of a first power switch circuit of a power switch circuit with a dual-color LED display in a preferred embodiment of the present invention;

[0034] Figure 5 This is a circuit diagram of the second power switch circuit of the power on / off circuit with a dual-color LED display in a preferred embodiment of the present invention;

[0035] Figure 6 This is a circuit diagram of a signal processing circuit of a power on / off circuit with a dual-color LED display according to a preferred embodiment of the present invention;

[0036] Figure 7 This is a circuit diagram of a power management device for a power on / off circuit with a dual-color LED display according to a preferred embodiment of the present invention;

[0037] Figure 8 The present invention is a preferred embodiment of the invention with a dual-color LED display of the power on / off circuit dual-color LED circuit diagram. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the following will be described clearly and completely in combination with the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are partial embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the protection scope of the present invention.

[0039] The preferred embodiment of the present invention has a power on / off circuit with a dual-color LED display, such as Figure 2 See also Figure 3-Figure 8 , comprising a power plug 1, a first power switch circuit 2, a second power switch circuit 3, a rocker switch 4 and a switch control circuit 5;

[0040] The switch control circuit 5 is electrically connected to a bicolor LED 6 and a switch button 7. The bicolor LED 6 is used for status display, and the switch button 7 is used for inputting a switch control signal to the switch control circuit 5.

[0041] The first power switch circuit 2 is electrically connected to the power plug 1 through the rocker switch 4, and is used to convert the input voltage into a set voltage, and the output end of the set voltage is connected to the switch control circuit 5 and the two-color LED 6 for power supply;

[0042] The switch control circuit 5 is electrically connected to the power plug 1 through the rocker switch 4, and is used to receive the operating state of the rocker switch 4 and control the output signal according to the operating state;

[0043] The second power switch circuit 3 is electrically connected to the power plug 1 and the switch control circuit 5, and is used to control the voltage output of the externally connected power system 8 according to the control signal of the switch control circuit 5;

[0044] Under the condition that the power plug 1 is inserted into the machine, when the rocker switch 4 is turned on, the first power switch circuit 2 is not conducting, and the first power output terminal 20 has no output; correspondingly, the switch control circuit 5 does not work, the second power switch circuit 3 is also not conducting, the second power output terminal 30 has no output, the circuit system 8 has no power input, the circuit system 8 does not work, and the two-color LED 6 does not display;

[0045] When the rocker switch 4 is closed, the first power switch circuit 2 is turned on, and the first power output terminal 20 outputs normally; correspondingly, the switch control circuit 5 starts to work, so that the second power switch circuit 3 is turned on, and the second power output terminal 30 outputs normally, and the circuit system 8 is powered normally, and the circuit system 8 starts to work, and the two-color LED 6 displays green;

[0046] When the circuit system 8 works normally: when the switch button 7 is long pressed, the switch control circuit 5 controls the circuit system 8 to enter the shutdown process, and the integrated circuit saves the running software program; the switch control circuit 5 controls the second power switch circuit 3 to turn off, the second power output terminal 30 has no output, and the circuit system 8 stops working; the rocker switch 4 is still in the closed state, the first power output terminal 20 outputs normally, the switch control circuit 5 works normally, and the two-color LED 6 displays red;

[0047] When the switch button 7 is short pressed again, the switch control circuit 5 controls the second power switch circuit 3 to be turned on, the second power output terminal 30 outputs normally, the integrated circuit 8 starts normally, the system circuit starts to work, and the two-color LED 6 displays green;

[0048] By using the power on / off circuit of the present invention, when the machine is operating normally, the two-color LED 6 displays green, indicating that the entire system circuit is operating normally. When shutting down, a shutdown signal will be sent to the integrated circuit of the electronic product, so that the integrated circuit in the system enters the normal shutdown program and saves the software; then the two-color LED 6 displays red, indicating that the entire system circuit is in the shutdown state; the present invention retains the function of the boat switch, and at the same time, an additional switch button is added on this basis. While the switch button can be used for normal power on / off operation, the problem of software program damage can be avoided when shutting down by the switch button, which can well solve the problem encountered by the current traditional switch mechanism architecture.

[0049] In conjunction with the instruction manual Figure 3-Figure 8 The working principle is as follows:

[0050] Power-on instructions:

[0051] 1. Keep the main power switch function of the ship switch 4 (SHIP SWITCH):

[0052] When the rocker switch 4 is closed, the machine can be turned on normally when the 12V power adapter (POWER IN) is inserted for the first time.

[0053] When the 12V power adapter is plugged in, the machine can be turned on normally by changing the rocker switch 4 from the open state to the closed state for the first time.

[0054] Principle: When the rocker switch 4 is turned on for the first time, PW_EN1 in the schematic diagram is high, which turns on the NPN transistor Q2, and then the base of the PMOS1 tube Q1 is pulled low, the PMOS1 tube Q1 is turned on, the V_12V power supply is 12V, and then the power chip U1 is input and outputs the V_5V level normally. This V_5V will be used in four places:

[0055] 1): PW_EN1 controls the NPN transistor Q6 to turn on, and then turns on the PMOS3 tube Q4, outputs 5V_N normally, and gives the logic device U2 an input level A.

[0056] 2): Provide a working power supply to the logic device U2. The logic device U2 needs both input pins A and B to be high level before the output pin Y will output high level.

[0057] 3): Provide working power to the power management device U3.

[0058] 4): Provide working power to the LED dual-color lamp.

[0059] Therefore, as long as the 12V power adapter is plugged in and the boat switch is closed, PMOS1 tube Q1 and PMOS3 tube Q4 are always in the on state, V_5V always has power, and the power management device U3 is always working, and the two-color LED light will always display red or green.

[0060] 2. After the power management device U3 is powered on for the first time, the EXT_EN pin will output a high level of 5V, which is directly transmitted to the pin B of the logic device U2. As mentioned above, the A and B pins of the logic device U2 are both high, so the PW_EN2 output by the Y pin is also high.

[0061] 3. The output PW_EN2 is high level, which turns on the NPN transistor Q5, and then turns on the PMOS2 tube Q3, and outputs VIN (12V) normally. This VIN power supply is the main power supply for the back-end system. The entire switch circuit is to control the main power supply VIN of the back-end system circuit.

[0062] 4. Bi-color LED part: The 5V high level output by the EXT_EN pin of the power management device U3 above will turn on the NPN transistor Q8, making the C pole of Q8 at a low level; at the same time, the 5V high level output by the EXT_EN pin of the power management device U3 will turn off the PNP transistor Q7, making the E pole of Q7 at a high level; at this time, the GREEN pin of the bi-color LED (connected to the C pole of Q8) is at a low level, the RED pin (connected to the E pole of Q7) is at a high level, and the bi-color LED is green.

[0063] 5. Therefore, when the machine is working normally, PMOS1, PMOS2 and PMOS3 are all in the on state, EXT_EN output by the power management device U3 is high level, the main power supply VIN of the back-end system circuit is 12V; the two-color LED displays green.

[0064] 6. Shutdown process: When the PWRON pin of the power management device U3 is in normal working state, it is in high level state. When the power button SW1 is pressed, the PWRON pin and GND are short-circuited, and the PWRON pin of the power management device U3 will be detected as low level. And to prevent misoperation, in normal working conditions, short pressing the power button SW1 will not have any response.

[0065] Therefore, under normal working conditions, if the power button SW1 is pressed for a long time (5 seconds to 10 seconds), the power management device U3 will enter the shutdown process: the running program is saved, and the EXT_EN output is 0, which becomes a low level.

[0066] 7. The low level output by the EXT_EN pin causes the PW_EN2 signal output by the Y pin of the logic device U2 to also become a low level, and then the transistor Q5 is cut off and the PMOS2 tube Q3 is turned off, so that the output VIN changes from 12V to 0V, and the back-end system circuit has no power supply and stops working.

[0067] 8. The EXT_EN pin outputs a low level, which will cut off the NPN transistor Q8 and make the C pole of Q8 a high level; at the same time, the PNP transistor Q7 is turned on and the E pole of Q7 is a low level; at this time, the GREEN pin of the bi-color LED (connected to the C pole of Q8) is a high level, the RED pin (connected to the E pole of Q7) is a low level, and the bi-color LED is red.

[0068] 9. So at this time: the power management device U3 enters low power mode and keeps monitoring whether the PWRON pin has voltage changes; the EXT_EN pin is low level, the PMOS2 tube Q3 is turned off, and the main power supply VIN of the back-end system circuit has no power. The dual-color LED light shows red.

[0069] 10. Power-on process: In the above situation, short press the power button SW1, the power management device U3 detects a low level on the PWRON pin, and switches from a low power state to a working state, and the EXT_EN pin outputs a 5V high level.

[0070] The 5V high level of the EXT_EN pin makes the PW_EN2 output of the logic device U2 also high level; the transistor Q5 is turned on, the PMOS2 tube Q3 is turned on, the main power supply VIN also has a 12V voltage, and the back-end system circuit starts to work.

[0071] The 5V high level of the EXT_EN pin also turns on transistor Q8 and turns off transistor Q7, and the bi-color LED lights up green.

[0072] 11. In addition, the power supply voltage of POWER_IN supports 9V---24V power adapter. The 12V voltage in the drawing is just an example and is not intended to be limiting.

[0073] In addition, compared with the 3 pins of the traditional two-color LED, the two-color LED used in this circuit has only 2 pins. When the voltage of the pin 1 of the two-color LED is higher than that of the pin 2 and exceeds a certain threshold (usually 2V), the LED displays red; conversely, when the voltage of the pin 2 is higher than that of the pin 1 and exceeds a certain threshold (usually 3V), the LED displays green.

[0074] A method for applying a power on / off circuit with a dual-color LED display, using the power on / off circuit with a dual-color LED display as described above, the method comprising the steps of:

[0075] Under the condition that the power plug is inserted into the machine, when the rocker switch is turned on, the first power switch circuit is not conducting, and the first power output terminal has no output; correspondingly, the switch control circuit does not work, the second power output terminal has no output, the circuit system has no power input, the circuit system circuit does not work, and the two-color LED does not display;

[0076] When the rocker switch is closed, the first power switch circuit is turned on, and the first power output terminal outputs normally; correspondingly, the switch control circuit starts to work, so that the second power switch circuit is turned on, and the second power output terminal outputs normally, and the circuit system is powered normally, the circuit system starts to work, and the two-color LED displays green;

[0077] When the circuit system works normally: when the switch button is long pressed, the switch control circuit system enters the shutdown process, and the integrated circuit saves the running software program; the switch control circuit controls the second power switch circuit to turn off, the second power output end has no output, and the circuit system stops working; the boat switch is still in the closed state, the first power output end outputs normally, the switch control circuit works normally, and the dual-color LED displays red;

[0078] When the switch button is short pressed again, the switch control circuit controls the second power switch circuit to be turned on, the second power output terminal outputs normally, the integrated circuit starts normally, the system circuit starts working, and the dual-color LED displays green;

[0079] By using the switch circuit structure of the present invention, when the machine is working normally, the two-color LED displays green, indicating that the entire system circuit is operating normally. When shutting down, a shutdown signal will be sent to the integrated circuit of the electronic product, allowing the integrated circuit in the system to enter the normal shutdown program and save the software; then the two-color LED displays red, indicating that the entire system circuit is in the shutdown state; the present invention retains the function of the boat switch, and at the same time, an additional switch button is added on this basis. While the switch button can be used for normal switch operation, the problem of software program damage can be avoided when shutting down by the switch button, which can well solve the problem encountered by the current traditional switch mechanism structure.

[0080] It should be understood that those skilled in the art can make improvements or changes based on the above description, and all these improvements and changes should fall within the scope of protection of the appended claims of the present invention.

Claims

1. A power on / off circuit with dual-color LED display. It is characterized in that It includes a power plug, a first power switch circuit, a second power switch circuit, a rocker switch and a switch control circuit; The switch control circuit is electrically connected to a dual-color LED and a switch button, wherein the dual-color LED is used for status display, and the switch button is used for inputting a switch control signal to the switch control circuit; The first power switch circuit is electrically connected to the power plug through the rocker switch, and is used to convert the input voltage into a set voltage, and the output end of the set voltage is connected to the switch control circuit and the two-color LED power supply; The switch control circuit is electrically connected to the power plug through the rocker switch, and is used to receive the operating state of the rocker switch and control the output signal according to the operating state; The second power switch circuit is electrically connected to the power plug and the switch control circuit, and is used to control the voltage output of an externally connected power system according to a control signal of the switch control circuit.

2. The power on / off circuit with dual-color LED display according to claim 1, It is characterized in that The first power switch circuit includes a first NPN transistor, a PMOS1 transistor and a power chip; The B pole of the first NPN transistor is electrically connected to the boat-shaped switch, the E pole is grounded, and the C pole is electrically connected to the G pole of the PMOS1 tube; the S pole of the PMOS1 tube is electrically connected to the power plug, and the D pole is electrically connected to the VIN pin of the power chip; the SW pin of the power chip is electrically connected to the first power output terminal.

3. The power on / off circuit with dual-color LED display according to claim 2, It is characterized in that The SW pin of the power chip is electrically connected to an inductor, and the other end of the inductor is electrically connected to the first power output terminal; the BST pin of the power chip is electrically connected to a first capacitor, and the other end of the first capacitor is electrically connected to the SW pin of the power chip; the FB pin of the power chip is grounded and electrically connected to a first resistor and a fifth capacitor, the first resistor and the fifth capacitor are connected in parallel, and the other end of the first resistor and the other end of the fifth capacitor are both electrically connected to the other end of the inductor.

4. The power on / off circuit with dual-color LED display according to claim 2, It is characterized in that The power plug is electrically connected with a filter.

5. The power on / off circuit with dual-color LED display according to claim 2, It is characterized in that The power plug is electrically connected to an ESD device.

6. The power on / off circuit with dual-color LED display according to any one of claims 2 to 5, It is characterized in that The switch control circuit includes a power management device and a signal processing circuit; The PWRON pin of the power management device is electrically connected to the switch button, the EXT_EN pin is electrically connected to a signal input terminal of the signal processing circuit, and the VCC_RTC pin and the VDC pin are electrically connected to the first power output terminal.

7. The power on / off circuit with dual-color LED display according to claim 6, It is characterized in that The signal processing circuit includes a second NPN transistor, a PMOS3 transistor and a logic device; The B pole of the second NPN transistor is electrically connected to the boat-type switch, the E pole is grounded, and the C pole is electrically connected to the first pin of the PMOS3 tube; the second pin of the PMOS3 tube is electrically connected to the first power output terminal, and the third pin is electrically connected to the A pin of the logic device; the B pin of the logic device is electrically connected to the EXT_EN pin of the power management device, the VCC pin is electrically connected to the first power output terminal, and the Y pin is electrically connected to the second power switch circuit.

8. The power on / off circuit with dual-color LED display according to claim 7, It is characterized in that The second power switch circuit includes a third NPN transistor and a PMOS2 transistor; The B pole of the third NPN transistor is electrically connected to the Y pin of the logic device, the E pole is grounded, and the C pole is connected to the G pole of the PMOS2 tube; the S pole of the PMOS2 tube is electrically connected to the power plug, and the D pole is electrically connected to the second power output terminal; the second power output terminal is electrically connected to the power system.

9. The power on / off circuit with dual-color LED display according to claim 6, It is characterized in that The bicolor LED includes a fourth NPN transistor, a fifth NPN transistor and an LED element; The B pole of the fourth NPN transistor is electrically connected to the EXT_EN pin of the power management device, the E pole is grounded, and the C pole is electrically connected to the green light pin of the LED element and the first power output terminal; the B pole of the fifth NPN transistor is electrically connected to the EXT_EN pin of the power management device, the C pole is grounded, and the E pole is electrically connected to the red light pin of the LED element and the first power output terminal; the LED element includes a red light LED and a green light LED, the cathode of the red light LED is electrically connected to the red light pin and the anode of the green light LED, and the cathode of the green light LED is electrically connected to the green light pin and the anode of the red light LED.

10. An application method of a power on / off circuit with a dual-color LED display, using the power on / off circuit with a dual-color LED display as claimed in any one of claims 1 to 9, It is characterized in that The method comprises the steps of: Under the condition that the power plug is inserted into the machine, when the rocker switch is turned on, the first power switch circuit is not conducting, and the first power output terminal has no output; correspondingly, the switch control circuit does not work, the second power output terminal has no output, the circuit system has no power input, the circuit system circuit does not work, and the two-color LED does not display; When the rocker switch is closed, the first power switch circuit is turned on, and the first power output terminal outputs normally; correspondingly, the switch control circuit starts to work, so that the second power switch circuit is turned on, and the second power output terminal outputs normally, and the circuit system is powered normally, the circuit system starts to work, and the two-color LED displays green; When the circuit system works normally: when the switch button is long pressed, the switch control circuit system enters the shutdown process, and the integrated circuit saves the running software program; the switch control circuit controls the second power switch circuit to turn off, the second power output end has no output, and the circuit system stops working; the boat switch is still in the closed state, the first power output end outputs normally, the switch control circuit works normally, and the dual-color LED displays red; When the switch button is short pressed again, the switch control circuit controls the second power switch circuit to be turned on, the second power output terminal outputs normally, the integrated circuit starts normally, the system circuit starts working, and the dual-color LED displays green.