Switching circuit for realizing startup and shutdown and CMOS (complementary metal oxide semiconductor) removal functions and mainboard

By designing switching circuits for function selection units, protection units and push-button switch units, the complex operation of clearing CMOS function is solved, and the simple operation and functional diversity of power switch and clearing CMOS functions are realized, which improves the user experience.

CN118963521APending Publication Date: 2024-11-15SHENZHEN JIEHE TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411030111.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In the prior art, the CMOS clearance function is complex and has a single function. Especially in compact chassis and standard chassis, it is necessary to manually remove the chassis or graphics card to clear the CMOS, which makes it inconvenient for the user to operate.

Method used

A switching circuit including a function selection unit, a protection unit and a push button switch unit is designed. The function selection unit is disconnected and cleared when the external power supply is connected to the external power supply, and the power switch circuit is turned on, and the external power supply is disconnected. The power switch circuit is turned on and clear CMOS circuit, the protection unit is used for electrostatic protection, and the push button switch unit is used to trigger the corresponding function.

Benefits of technology

It realizes simple operation of powering on and off and clearing CMOS functions, improving functional diversity, and users can easily switch between two functions by pressing buttons, enhancing operation convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118963521A_ABST
    Figure CN118963521A_ABST
Patent Text Reader

Abstract

The invention discloses a switching circuit for realizing startup and shutdown and CMOS (complementary metal oxide semiconductor) removal functions and a mainboard. The switching circuit comprises a function selection unit, a protection unit and a button switch unit, the first end of the function selection unit is connected with one end of the protection unit, and the other end is connected with the button switch unit; when the second end of the function selection unit is connected with an external power supply, the third end is disconnected with the external clearing CMOS circuit, and the fourth end is connected with the external on-off circuit. When the second end of the function selection unit is not connected with the external power supply, the third end is conducted with the external clearing CMOS circuit, and the fourth end is disconnected with the external startup and shutdown circuit; the protection unit is used for protecting the button switch unit from being interfered by electrostatic discharge; the button switch unit is used for triggering the clearing function of the external clearing CMOS circuit or triggering the on-off function of the external on-off circuit. The on-off function and the CMOS removing function are combined into a whole, the functional diversity is improved, and meanwhile operation is easy and convenient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of computer control, and in particular to a switching circuit and a mainboard for realizing the functions of powering on and off and clearing CMOS. Background Art

[0002] CMOS is the abbreviation of Complementary Metal Oxide Semiconductor. It refers to a technology used to manufacture large-scale integrated circuit chips or chips manufactured using this technology. It is a readable and writable RAM chip on the computer motherboard, which is mainly used to save the current system hardware configuration and the operator's settings for certain parameters. In life, it is inevitable that the computer cannot be turned on, or it cannot be started due to CPU or memory overclocking. At this time, it is necessary to clear the CMOS settings to restore the factory settings.

[0003] In the prior art, the CMOS clearing function is generally achieved by placing a small button on the rear IO of the motherboard or placing a pin on the motherboard without leading it out of the chassis. However, this method only has the CMOS clearing function, resulting in a relatively single function. For a compact chassis (i.e., an ITX chassis), the chassis must be manually dismantled to clear the CMOS; for a standard chassis, if the user chooses to install the graphics card vertically, the graphics card must also be manually dismantled to find the CMOS clearing pin. In addition, there are many pins on the motherboard, and it is not easy to find the CMOS clearing pin, which makes it inconvenient for users to clear the CMOS. Summary of the invention

[0004] The invention provides a switching circuit for realizing the functions of powering on and off and clearing CMOS, aiming to solve the problem that the operation of clearing CMOS is complicated and the function is relatively single in the prior art.

[0005] In a first aspect, the present invention proposes a switching circuit for realizing power on / off and clearing CMOS functions, which is applied to a mainboard, and comprises: a function selection unit, a protection unit and a button switch unit; a first end of the function selection unit is connected to one end of the protection unit, and the other end of the protection unit is connected to the button switch unit;

[0006] Wherein, when the second end of the function selection unit is connected to an external power supply, the third end of the function selection unit is disconnected from the external clear CMOS circuit, and the fourth end of the function selection unit is connected to the external power on / off circuit; when the second end of the function selection unit is not connected to an external power supply, the third end of the function selection unit is connected to the external clear CMOS circuit, and the fourth end of the function selection unit is disconnected from the external power on / off circuit;

[0007] The protection unit is used to provide electrostatic protection and anti-interference to the button switch unit;

[0008] The button switch unit is used to trigger the clearing function of the external clearing CMOS circuit connected to the third end of the function selection unit, or to trigger the power on / off function of the external power on / off circuit connected to the fourth end of the function selection unit.

[0009] Further, the function selection unit includes a first switch subcircuit, a second switch subcircuit and a third switch subcircuit, the second end of the first switch subcircuit is grounded, the third end of the first switch subcircuit is connected to the first end of the second switch subcircuit, the first end of the second switch subcircuit is also connected to the mainboard button battery, and the second end of the second switch subcircuit is connected to the second end of the third switch subcircuit;

[0010] When the first end of the first switch subcircuit and the first end of the third switch subcircuit are connected to an external power supply, the first switch subcircuit and the third switch subcircuit are turned on, and the second switch subcircuit is turned off, so that the third end of the second switch subcircuit is disconnected from the external clear CMOS circuit, and the third end of the third switch subcircuit is connected to the external switch circuit;

[0011] When the first end of the first switch subcircuit and the first end of the third switch subcircuit are not connected to an external power supply, the first switch subcircuit and the third switch subcircuit are closed, and the second switch subcircuit is opened, so that the third end of the second switch subcircuit is connected to the external clear CMOS circuit, and the third end of the third switch subcircuit is disconnected from the external switch circuit.

[0012] Furthermore, the first switch sub-circuit includes a first resistor and a first NMOS tube, one end of the first resistor is used to connect or disconnect with an external power supply, the other end of the first resistor is connected to the gate of the first NMOS tube, the source of the first NMOS tube is grounded, and the drain of the first NMOS tube is connected to the second switch sub-circuit.

[0013] Furthermore, the second switch sub-circuit includes a second resistor and a second NMOS tube, one end of the second resistor is connected to the mainboard button battery, the other end of the second resistor is connected to the gate of the second NMOS tube, and is also connected to the drain of the first NMOS tube, the source of the second NMOS tube is connected to the protection unit, and is also connected to the third switch sub-circuit, and the drain of the second NMOS tube is used to connect to an external clear CMOS circuit.

[0014] Furthermore, the third switch subcircuit includes a third resistor and a third NMOS tube, one end of the third resistor is used to connect or disconnect with an external power supply, the other end of the third resistor is connected to the gate of the third NMOS tube, the source of the third NMOS tube is connected to the source of the second NMOS tube, and the drain of the third NMOS tube is used to connect to an external switch circuit.

[0015] Furthermore, the third switch subcircuit also includes a first diode, a cathode of the first diode is connected to the source of the second NMOS tube and is also connected to the protection unit, and an anode of the first diode is connected to the source of the third NMOS tube.

[0016] Furthermore, the protection unit comprises an ESD diode, a first end of the ESD diode is connected to the source of the second NMOS tube, to the cathode of the first diode, and to the button switch unit, and a second end of the ESD diode is grounded.

[0017] Furthermore, the protection unit further includes a capacitor, a first end of the capacitor is connected to the first end of the ESD diode and is also connected to the button switch unit, and a second end of the capacitor is grounded.

[0018] Furthermore, the protection unit also includes a fourth resistor, a first end of the fourth resistor is connected to the cathode of the first diode and to the source of the second NMOS tube, and a second end of the fourth resistor is respectively connected to the first end of the ESD diode, the first end of the capacitor and the button switch unit.

[0019] In a second aspect, the present invention further proposes a mainboard, comprising the switching circuit for realizing the power on / off and CMOS clearing functions as described in the first aspect.

[0020] Compared with the prior art, the present invention provides a switching circuit and a mainboard for realizing the functions of power on and off and clearing CMOS, including a function selection unit, a protection unit and a button switch unit; the first end of the function selection unit is connected to one end of the protection unit, and the other end is connected to the button switch unit; when the second end of the function selection unit is connected to an external power supply, the third end is disconnected from the external clearing CMOS circuit, and the fourth end is connected to the external power on and off circuit; when the second end of the function selection unit is not connected to an external power supply, the third end is connected to the external clearing CMOS circuit, and the fourth end is disconnected from the external power on and off circuit; the protection unit is used to protect the button switch unit from interference from electrostatic discharge; the button switch unit is used to trigger the clearing function of the external clearing CMOS circuit or to trigger the power on and off function of the external power on and off circuit. The present invention combines the power on and off and clearing CMOS functions into one, and while improving the functional diversity, the operation is simple and convenient. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0022] Figure 1 A schematic block diagram of a switching circuit for realizing power on / off and clearing CMOS functions provided by an embodiment of the present invention;

[0023] Figure 2 A circuit schematic diagram of a switching circuit for realizing power on / off and clearing CMOS functions provided in one embodiment of the present invention. DETAILED DESCRIPTION

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

[0025] The directional terms mentioned in the present invention, such as "upper", "lower", "front", "back", "left", "right", "inner", "outer", "side", etc., are only referenced to the directions of the attached drawings. Therefore, the directional terms used are used to illustrate and understand the present invention, but are not used to limit the present invention. In addition, in the drawings, structures with similar or identical structures are represented by the same reference numerals.

[0026] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0027] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0028] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0029] See also Figure 1 and Figure 2 , Figure 1 A schematic block diagram of a switching circuit for realizing power on / off and clearing CMOS functions provided by an embodiment of the present invention; Figure 2 A circuit schematic diagram of a switching circuit for realizing power on / off and clearing CMOS functions provided in one embodiment of the present invention.

[0030] The embodiment of the present invention provides a switching circuit for realizing power on / off and clearing CMOS functions, which is applied to a mainboard and includes: a function selection unit 10, a protection unit 20 and a button switch unit 30; the first end of the function selection unit 10 is connected to one end of the protection unit 20, and the other end of the protection unit 20 is connected to the button switch unit 30; wherein, when the second end of the function selection unit 10 is connected to an external power supply, the third end of the function selection unit 10 is disconnected from the external clearing CMOS circuit, and the fourth end of the function selection unit 10 is connected to the external power on / off circuit; when the second end of the function selection unit 10 is not connected to an external power supply, the third end of the function selection unit 10 is connected to the external clearing CMOS circuit, and the fourth end of the function selection unit 10 is disconnected from the external power on / off circuit; the protection unit 20 is used to perform electrostatic protection and anti-interference on the button switch unit 30; the button switch unit 30 is used to trigger the clearing function of the external clearing CMOS circuit connected to the third end of the function selection unit 10, or to trigger the power on / off function of the external power on / off circuit connected to the fourth end of the function selection unit 10.

[0031] In this embodiment, see Figure 1 and Figure 2The switching circuit for realizing the power on / off and clearing CMOS functions in the embodiment of the present invention is composed of a function selection unit 10, a protection unit 20 and a button switch unit 30. The first end of the function selection unit 10 is connected to one end of the protection unit 20, and the other end of the protection unit 20 is connected to the button switch unit 30. In a specific application process, the switching circuit for realizing the power on / off and clearing CMOS functions is applied to a motherboard. Furthermore, when the second end of the function selection unit 10 is connected to (i.e., inserted into) the external power supply VCC3V3_SYS, the third end of the function selection unit 10 is disconnected from the external clear CMOS circuit, and the fourth end of the function selection unit 10 is connected to the external switch circuit; at this time, the button switch unit 30 is connected to the external switch circuit connected to the fourth end of the function selection unit 10, so that the external switch circuit can be triggered by pressing the button switch unit 30, thereby realizing the switch function of the external switch circuit; and when the second end of the function selection unit 10 is not connected to (i.e., removed from) the external power supply VCC3V3_SYS, the third end of the function selection unit 10 is connected to the external clear CMOS circuit, and the fourth end of the function selection unit 10 is disconnected from the external switch circuit; at this time, the button switch unit 30 is connected to the external clear CMOS circuit connected to the third end of the function selection unit 10, so that the external clear CMOS circuit can be triggered by pressing the button switch unit 30, thereby realizing the clear function of the external clear CMOS circuit. Wherein, the external power supply is the motherboard standby voltage. In addition, when the external clear CMOS circuit connected to the third end of the button switch unit 30 and the function selection unit 10 is turned on or the external power on / off circuit connected to the fourth end of the function selection unit 10 is turned on, the button switch unit 30 is also protected from electrostatic discharge and interference by the protection circuit, so as to improve the service life of the button switch unit 30 and ensure that the trigger signal generated by the button switch unit 30 can be accurately sent to the corresponding external circuit. Therefore, the switching circuit for realizing the power on / off and clear CMOS functions in this embodiment can realize the switching of the power on / off function and the clear CMOS function.

[0032] In one embodiment, if Figure 1 and 2As shown, the function selection unit 10 includes a first switch subcircuit 11, a second switch subcircuit 12 and a third switch subcircuit 13, the second end of the first switch subcircuit 11 is grounded, the third end of the first switch subcircuit 11 is connected to the first end of the second switch subcircuit 12, the first end of the second switch subcircuit 12 is also connected to the mainboard button battery, and the second end of the second switch subcircuit 12 is connected to the second end of the third switch subcircuit 13; when the first end of the first switch subcircuit 11 and the first end of the third switch subcircuit 13 are connected to the external power supply, the first switch subcircuit 11 and the third switch subcircuit When the first switch subcircuit 11 and the first end of the third switch subcircuit 13 are not connected to the external power supply, the first switch subcircuit 11 and the third switch subcircuit 13 are closed, and the second switch subcircuit 12 is opened, so that the third end of the second switch subcircuit 12 is disconnected from the external clear CMOS circuit, and the third end of the third switch subcircuit 13 is connected to the external switch circuit; when the first end of the first switch subcircuit 11 and the first end of the third switch subcircuit 13 are not connected to the external power supply, the first switch subcircuit 11 and the third switch subcircuit 13 are closed, and the second switch subcircuit 12 is opened, so that the third end of the second switch subcircuit 12 is connected to the external clear CMOS circuit, and the third end of the third switch subcircuit 13 is disconnected from the external switch circuit.

[0033] In this embodiment, in order to realize the function switching of the power on / off function and the clear CMOS function, the function selection unit 10 specifically includes a first switch subcircuit 11, a second switch subcircuit 12 and a third switch subcircuit 13; wherein, the second end of the first switch subcircuit 11 is grounded, the third end of the first switch subcircuit 11 is connected to the first end of the second switch subcircuit 12, the first end of the second switch subcircuit 12 is also connected to the mainboard button battery VBAT, and the second end of the second switch subcircuit 12 is connected to the second end of the third switch subcircuit 13. Specifically, when the first end of the first switch subcircuit 11 and the first end of the third switch subcircuit 13 are connected to the external power supply VCC3V3_SYS, the first switch subcircuit 11 and the third switch subcircuit 13 are turned on, and the voltage on the first end of the second switch subcircuit 12 is pulled down to a low level of 0V under the action of the first switch subcircuit 11. At this time, the second switch subcircuit 12 is disconnected, so that the third end of the second switch subcircuit 12 is disconnected from the external clear CMOS circuit, and the third end of the external switch circuit of the third switch subcircuit 13 is turned on, thereby connecting the button switch unit 30 connected to the protection unit 20 to the external switch circuit; at this time, the switch function of the external switch circuit can be realized by pressing the button switch unit 30. When the first end of the first switch subcircuit 11 and the first end of the third switch subcircuit 13 are not connected to the external power supply VCC3V3_SYS, the first switch subcircuit 11 and the third switch subcircuit 13 are disconnected, and the first end of the second switch subcircuit 12 is pulled up to a high level under the action of the mainboard button battery VBAT. At this time, the second switch subcircuit 12 is turned on, so that the third end of the second switch subcircuit 12 is connected to the external clear CMOS circuit, and the third end of the third switch subcircuit 13 is disconnected from the external switch circuit, thereby connecting the button switch unit 30 connected to the protection unit 20 to the external clear CMOS circuit; at this time, the clearing function of the external clear CMOS circuit can be realized by pressing the button switch unit 30.

[0034] In one embodiment, if Figure 1 and 2 As shown, the first switch sub-circuit 11 includes a first resistor R1 and a first NMOS transistor Q1, one end of the first resistor R1 is used to connect or disconnect with an external power supply, the other end of the first resistor R1 is connected to the gate of the first NMOS transistor Q1, the source of the first NMOS transistor Q1 is grounded, and the drain of the first NMOS transistor Q1 is connected to the second switch sub-circuit 12.

[0035] In this embodiment, the first switch sub-circuit 11 is composed of a first resistor R1 and a first NMOS transistor Q1. One end of the first resistor R1 is used to connect or disconnect with the external power supply VCC3V3_SYS, the other end of the first resistor R1 is connected to the gate of the first NMOS transistor Q1, the source of the first NMOS transistor Q1 is grounded, and the drain of the first NMOS transistor Q1 is connected to the second switch sub-circuit 12; the model of the first NMOS transistor Q1 is preferably BSS138SOT-23 in this embodiment; when one end of the first resistor R1 is connected to the external power supply VCC3V3_SYS, the first NMOS transistor Q1 is turned on; the model of the first resistor R1 is preferably 10K / 4 / 5% in this embodiment, so that by setting the first resistor R1 between the external power supply and the first NMOS transistor Q1, the first NMOS transistor Q1 can be prevented from abnormal working state and false triggering, and the switching speed of the first NMOS transistor Q1 can be increased, thereby improving the circuit performance.

[0036] In one embodiment, if Figure 1 and 2 As shown, the second switch sub-circuit 12 includes a second resistor R2 and a second NMOS tube Q2, one end of the second resistor R2 is connected to the mainboard button battery, the other end of the second resistor R2 is connected to the gate of the second NMOS tube Q2, and is also connected to the drain of the first NMOS tube Q1, the source of the second NMOS tube Q2 is connected to the protection unit 20, and is also connected to the third switch sub-circuit 13, and the drain of the second NMOS tube Q2 is used to connect to an external clear CMOS circuit.

[0037] In this embodiment, the second switch subcircuit 12 is composed of a second resistor R2 and a second NMOS tube Q2. One end of the second resistor R2 is always connected to the motherboard button battery VBAT unless the motherboard button battery VBAT is removed. In addition, the other end of the second resistor R2 is connected to the gate of the second NMOS tube Q2 and the drain of the first NMOS tube Q1. The source of the second NMOS tube Q2 is connected to the protection unit 20 and the third switch subcircuit 13; and the drain of the second NMOS tube Q2 is used to connect to the external clear CMOS circuit; the model of the second NMOS tube Q2 is preferably BSS138 SOT-23 in this embodiment. In a specific implementation, when one end of the first resistor R1 and the third switch sub-circuit 13 are not connected to the external power supply VCC3V3_SYS, the first NMOS tube Q1 and the third switch sub-circuit 13 are turned off, and the voltage of the gate of the second NMOS tube Q2 is pulled up to a high level by the mainboard button battery VBAT through the second resistor R2, so that the second NMOS tube Q2 is turned on, and at this time the drain of the second NMOS tube Q2 is connected to the external clear CMOS circuit; when one end of the first resistor R1 and the third switch sub-circuit 13 are connected to the external power supply VCC3V3_SYS, the first NMOS tube Q1 and the third switch sub-circuit 13 are turned on, and the voltage of the gate of the second NMOS tube Q2 is pulled down to 0V, so that the second NMOS tube Q2 is turned off, and at this time the drain of the second NMOS tube Q2 is disconnected from the external clear CMOS circuit.

[0038] In one embodiment, if Figure 1 and 2 As shown, the third switch sub-circuit 13 includes a third resistor R3 and a third NMOS tube Q3, one end of the third resistor R3 is used to connect or disconnect with an external power supply, the other end of the third resistor R3 is connected to the gate of the third NMOS tube Q3, the source of the third NMOS tube Q3 is connected to the source of the second NMOS tube Q2, and the drain of the third NMOS tube Q3 is used to connect to an external switch circuit.

[0039] In this embodiment, the third switch subcircuit 13 is composed of a third resistor R3 and a third NMOS transistor Q3. One end of the third resistor R3 is used to connect or disconnect with an external power supply, the other end of the third resistor R3 is connected to the gate of the third NMOS transistor Q3, and the source of the third NMOS transistor Q3 is connected to the source of the second NMOS transistor Q2; the drain of the third NMOS transistor Q3 is used to connect with an external switch circuit; the model of the third NMOS transistor Q3 is preferably BSS138 SOT-23 in this embodiment; and the third resistor R3 in this embodiment has the same function as the first resistor R1. In a specific implementation, when one end of the first resistor R1 and one end of the third resistor R3 are connected to the external power supply VCC3V3_SYS, the first NMOS tube Q1 and the third NMOS tube Q3 are turned on, and the voltage of the gate of the second NMOS tube Q2 is pulled down to 0V, so that the second NMOS tube Q2 is turned off, and at this time, the drain of the second NMOS tube Q2 is disconnected from the external clear CMOS circuit, and the drain of the third NMOS tube Q3 is connected to the external switch circuit; when one end of the first resistor R1 and one end of the third resistor R3 are not connected to the external power supply VCC3V3_SYS, the first NMOS tube Q1 and the third NMOS tube Q3 are turned off, and the voltage of the gate of the second NMOS tube Q2 is pulled up to a high level by the mainboard button battery VBAT through the second resistor R2, so that the second NMOS tube Q2 is turned on, and at this time, the drain of the second NMOS tube Q2 is connected to the external clear CMOS circuit, and the drain of the third NMOS tube Q3 is disconnected from the external switch circuit.

[0040] In one embodiment, if Figure 1 and 2 As shown, the third switch subcircuit 13 further includes a first diode D1, a cathode of the first diode D1 is connected to the source of the second NMOS transistor Q2 and is also connected to the protection unit 20, and an anode of the first diode D1 is connected to the source of the third NMOS transistor Q3.

[0041] In this embodiment, in the case where one end of the first resistor R1 and one end of the third resistor R3 are not connected to the external power supply (i.e., the external power supply is removed), the second NMOS tube Q2 is turned on. At this time, in order to prevent the mainboard button battery VBAT from discharging the body diode of the third NMOS tube Q3 through the second NMOS tube Q2, a first diode D1 is further provided in the third switch sub-circuit 13, wherein the cathode of the first diode D1 is connected to the source of the second NMOS tube Q2 and is also connected to the protection unit 20, and the anode of the first diode D1 is connected to the source of the third NMOS tube Q3; thereby, the first diode D1 can prevent the mainboard button battery from discharging through the body diode in the third NMOS tube Q3, causing the mainboard button battery to consume power too quickly.

[0042] In one embodiment, if Figure 1 and 2 As shown, the protection unit 20 includes an ESD diode D2, a first end of which is connected to the source of the second NMOS tube Q2, to the cathode of the first diode D1, and to the button switch unit 30, and a second end of the ESD diode D2 is grounded.

[0043] In this embodiment, in order to perform electrostatic protection on the button switch unit 30, an ESD diode D2 is provided in the protection unit 20, wherein the first end of the ESD diode D2 is connected to the source of the second NMOS tube Q2, to the cathode of the first diode D1, and to the button switch unit 30, and the second end of the ESD diode D2 is grounded; wherein the model of the ESD diode D2 is preferably 15KV / 4 / 10PF in this embodiment; therefore, in this embodiment, the ESD diode D2 can prevent the button switch unit 30 from being damaged by static electricity.

[0044] In one embodiment, if Figure 1 and 2 As shown, the protection unit 20 further includes a capacitor C1, a first end of the capacitor C1 is connected to a first end of the ESD diode D2 and is also connected to the button switch unit 30, and a second end of the capacitor C1 is grounded.

[0045] In this embodiment, in order to isolate external interference information and avoid the influence of external interference information on the button switch unit 30, a capacitor C1 is further provided in the protection unit 20; wherein the first end of the capacitor C1 is connected to the first end of the ESD diode D2 and is also connected to the button switch unit 30, and the second end of the capacitor C1 is grounded. Therefore, this embodiment can prevent interference to the button switch unit 30 through the capacitor C1.

[0046] In one embodiment, if Figure 1 and 2 As shown, the protection unit 20 also includes a fourth resistor R4, a first end of the fourth resistor R4 is connected to the cathode of the first diode D1, and is also connected to the source of the second NMOS tube Q2, and a second end of the fourth resistor R4 is respectively connected to the first end of the ESD diode D2, the first end of the capacitor C1 and the button switch unit 30.

[0047] In this embodiment, in order to stabilize the current and protect the ESD diode D2, a fourth resistor R4 is further provided in the protection unit 20, wherein the first end of the fourth resistor R4 is connected to the cathode of the first diode D1 and the source of the second NMOS tube Q2; and the second end of the fourth resistor R4 is connected to the first end of the ESD diode D2, the first end of the capacitor C1, and the button switch unit 30. The button switch unit 30 is provided with a first pin, a second pin, a third pin and a fourth pin, wherein the first pin is connected to the first end of the capacitor C1, the first end of the ESD diode D2, and the second end of the fourth resistor R4, and the second pin, the third pin and the fourth pin are grounded. Therefore, in this embodiment, the fourth resistor R4 is used to stabilize the current and protect the ESD diode D2.

[0048] See also Figure 1 and 2 The present invention also provides a mainboard, including the switching circuit for realizing the power on / off and CMOS clearing functions described in the above embodiments.

[0049] In this embodiment, the motherboard in the embodiment of the present invention includes a switching circuit for realizing the power on / off and clearing CMOS functions, wherein the switching circuit for realizing the power on / off and clearing CMOS functions can refer to the above embodiments. And because the motherboard includes the technical solutions of all embodiments in the switching circuit for realizing the power on / off and clearing CMOS functions, the motherboard at least has all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described in detail here.

[0050] The present invention provides a switching circuit and a mainboard for realizing the functions of power on and off and clearing CMOS, including a function selection unit, a protection unit and a button switch unit; the first end of the function selection unit is connected to one end of the protection unit, and the other end is connected to the button switch unit; when the second end of the function selection unit is connected to an external power supply, the third end is disconnected from the external clearing CMOS circuit, and the fourth end is connected to the external power on and off circuit; when the second end of the function selection unit is not connected to an external power supply, the third end is connected to the external clearing CMOS circuit, and the fourth end is disconnected from the external power on and off circuit; the protection unit is used to protect the button switch unit from interference from electrostatic discharge; the button switch unit is used to trigger the clearing function of the external clearing CMOS circuit or to trigger the power on and off function of the external power on and off circuit. The present invention combines the power on and off and clearing CMOS functions into one, and while improving the functional diversity, the operation is simple and convenient.

[0051] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A switching circuit that realizes the functions of power on / off and clearing CMOS, applied to the motherboard, It is characterized in that include: Function selection unit, protection unit and push button switch unit; A first end of the function selection unit is connected to one end of the protection unit, and the other end of the protection unit is connected to the button switch unit; Wherein, when the second end of the function selection unit is connected to an external power supply, the third end of the function selection unit is disconnected from the external clear CMOS circuit, and the fourth end of the function selection unit is connected to the external power on / off circuit; when the second end of the function selection unit is not connected to an external power supply, the third end of the function selection unit is connected to the external clear CMOS circuit, and the fourth end of the function selection unit is disconnected from the external power on / off circuit; The protection unit is used to provide electrostatic protection and anti-interference to the button switch unit; The button switch unit is used to trigger the clearing function of the external clearing CMOS circuit connected to the third end of the function selection unit, or to trigger the power on / off function of the external power on / off circuit connected to the fourth end of the function selection unit.

2. The switching circuit for realizing the power on / off and clearing CMOS functions according to claim 1, It is characterized in that The function selection unit includes a first switch subcircuit, a second switch subcircuit and a third switch subcircuit, the second end of the first switch subcircuit is grounded, the third end of the first switch subcircuit is connected to the first end of the second switch subcircuit, the first end of the second switch subcircuit is also connected to the mainboard button battery, and the second end of the second switch subcircuit is connected to the second end of the third switch subcircuit; When the first end of the first switch subcircuit and the first end of the third switch subcircuit are connected to an external power supply, the first switch subcircuit and the third switch subcircuit are turned on, and the second switch subcircuit is turned off, so that the third end of the second switch subcircuit is disconnected from the external clear CMOS circuit, and the third end of the third switch subcircuit is connected to the external switch circuit; When the first end of the first switch subcircuit and the first end of the third switch subcircuit are not connected to an external power supply, the first switch subcircuit and the third switch subcircuit are closed, and the second switch subcircuit is opened, so that the third end of the second switch subcircuit is connected to the external clear CMOS circuit, and the third end of the third switch subcircuit is disconnected from the external switch circuit.

3. The switching circuit for realizing the power on / off and clearing CMOS functions according to claim 2, It is characterized in that The first switch sub-circuit includes a first resistor and a first NMOS tube, one end of the first resistor is used to connect or disconnect with an external power supply, the other end of the first resistor is connected to the gate of the first NMOS tube, the source of the first NMOS tube is grounded, and the drain of the first NMOS tube is connected to the second switch sub-circuit.

4. The switching circuit for realizing the power on / off and clearing CMOS functions according to claim 3, It is characterized in that The second switch sub-circuit includes a second resistor and a second NMOS tube, one end of the second resistor is connected to the mainboard button battery, the other end of the second resistor is connected to the gate of the second NMOS tube and also to the drain of the first NMOS tube, the source of the second NMOS tube is connected to the protection unit and also to the third switch sub-circuit, and the drain of the second NMOS tube is used to connect to an external clear CMOS circuit.

5. The switching circuit for realizing the power on / off and clearing CMOS functions according to claim 4, It is characterized in that The third switch subcircuit includes a third resistor and a third NMOS tube, one end of the third resistor is used to connect or disconnect with an external power supply, the other end of the third resistor is connected to the gate of the third NMOS tube, the source of the third NMOS tube is connected to the source of the second NMOS tube, and the drain of the third NMOS tube is used to connect to an external switch circuit.

6. The switching circuit for realizing the power on / off and clearing CMOS functions according to claim 5, It is characterized in that The third switch subcircuit also includes a first diode, a cathode of the first diode is connected to the source of the second NMOS tube and is also connected to the protection unit, and an anode of the first diode is connected to the source of the third NMOS tube.

7. The switching circuit for realizing the power on / off and clearing CMOS functions according to claim 6, It is characterized in that The protection unit comprises an ESD diode, a first end of the ESD diode is connected to the source of the second NMOS tube, to the cathode of the first diode, and to the button switch unit, and a second end of the ESD diode is grounded.

8. The switching circuit for realizing the power on / off and clearing CMOS functions according to claim 7, It is characterized in that The protection unit further includes a capacitor, a first end of the capacitor is connected to the first end of the ESD diode and is also connected to the button switch unit, and a second end of the capacitor is grounded.

9. The switching circuit for realizing the power on / off and clearing CMOS functions according to claim 8, It is characterized in that The protection unit also includes a fourth resistor, a first end of the fourth resistor is connected to the cathode of the first diode and to the source of the second NMOS tube, and a second end of the fourth resistor is respectively connected to the first end of the ESD diode, the first end of the capacitor and the button switch unit.

10. A motherboard, It is characterized in that The invention comprises a switching circuit realizing the functions of power on / off and clearing CMOS as claimed in any one of claims 1 to 9.