A key switch circuit

By designing a key switch circuit that includes a self-elastic key switch and an MCU control unit in a video display device, the energy saving problem caused by the MCU control switch and the polarization problem of the LCD panel are solved, and the execution of delayed shutdown and power-off sequence is realized. , reducing system power consumption and improving circuit stability.

CN109739156BActive Publication Date: 2024-10-15SWIT ELECTRONICS
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN201910137975.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-02-25
Publication Date
2024-10-15
Estimated Expiration
2039-02-25

AI Technical Summary

Technical Problem

The MCU-controlled switch in existing video display equipment causes the drive circuit to be charged in advance, which is not conducive to energy saving, and lacks a shutdown delay function, resulting in polarization of the LCD panel and screen shaking.

Method used

Design a key switch circuit including a self-elastic key switch, MCU control unit, switch detection arbitration circuit, voltage protection circuit, power switch circuit and signal level conversion circuit. The power enable signal is output through the switch detection arbitration circuit to delay shutdown. And execute the power-off sequence when shutting down to ensure the normal power-off of the LCD panel.

Benefits of technology

It achieves energy-saving control, avoids LCD panel polarization and screen shake problems, reduces system power consumption, and ensures circuit stability and safety through voltage protection and signal conversion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109739156B_ABST
    Figure CN109739156B_ABST
Patent Text Reader

Abstract

The present invention discloses a key switch circuit, including a self-flying key switch, an MCU control unit, a switch detection arbitration circuit, a voltage protection circuit, a power switch circuit, and a signal level conversion circuit; the self-flying key switch and the MCU control unit are respectively connected to the switch detection arbitration circuit, the switch detection arbitration circuit is respectively connected to the voltage protection circuit and the signal level conversion circuit, the voltage protection circuit is connected to the power switch circuit, and the signal level conversion circuit is connected to the MCU control unit. The present invention solves the problem in the prior art that the video display device requires the driving circuit of the display device to be charged in advance because the MCU is used to control the switch, which is not conducive to energy saving.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of display device control, and more specifically, relates to a key switch circuit. Background Art

[0002] In video display electronic devices, mechanical key switches or self-flying key switches are generally used to control the power switch of the electronic device using an MCU (Microcontroller Unit). For example, the Chinese patent with application number 2009101050187 and patent name "A mandatory delayed shutdown circuit" discloses a method of using a mechanical switch and a delay circuit to solve the problem of delayed shutdown of electronic devices. However, the mechanical switch is large in size and is prone to misoperation during use; and the MCU control switch requires that the MCU is already in a working state before the key is triggered, that is, the display device is required to have a driving circuit that is energized before the power-on action, which is obviously not conducive to energy-saving control of the display device. In addition, most of the display devices on the market, including monitors, televisions, instrumentation liquid crystal display screens, etc., do not have a shutdown delay function, that is, when the shutdown button is pressed, the power circuit inside the display device system stops working, which will cause the liquid crystal panel, which has high requirements for the power-off timing, to be powered off without executing the power-off timing, and the liquid crystal panel polarization phenomenon is prone to occur. The external manifestation is that when the display device is turned on again, the liquid crystal panel will have a shaking screen phenomenon. Summary of the invention

[0003] 1. Problem to be solved

[0004] Aiming at the problem that in the prior art, a video display device uses an MCU to control a switch, which requires a driving circuit of the display device to be powered in advance, which is not conducive to energy saving, the present invention provides a key switch circuit.

[0005] 2. Technical solution

[0006] In order to solve the above problems, the technical solution adopted by the present invention is as follows: a key switch circuit, including a self-flying key switch, an MCU control unit, a switch detection arbitration circuit, a voltage protection circuit, a power switch circuit, and a signal level conversion circuit; the self-flying key switch and the MCU control unit are respectively connected to the switch detection arbitration circuit, the switch detection arbitration circuit is respectively connected to the voltage protection circuit and the signal level conversion circuit, the voltage protection circuit is connected to the power switch circuit, and the signal level conversion circuit is connected to the MCU control unit;

[0007] When the device is turned on, the switch detection arbitration circuit outputs a power enable signal EN1 according to the switch state signal output by the self-flying push button switch. The power enable signal EN1 is input into the power switch circuit via the voltage protection circuit, so that the power switch circuit supplies power to the MCU control unit. After the MCU control unit is powered on, the power-on signal is output to the switch detection arbitration circuit, so that the switch detection arbitration circuit continuously outputs the power enable signal EN1. The voltage protection circuit filters the power enable signal EN1.

[0008] When shutting down, the switch detection arbitration circuit outputs a power-off signal OFF according to the switch state signal output by the self-pop-up push button switch. The power-off signal OFF is output to the MCU control unit via the signal level conversion circuit. The MCU control unit outputs a shutdown signal to the switch detection arbitration circuit. The switch detection arbitration circuit stops outputting the power enable signal EN1, and the power switch circuit stops supplying power. The signal level conversion circuit converts the power-off signal OFF into a signal that can be processed by the MCU control unit.

[0009] The signal level conversion circuit converts the level of the OFF signal to a 0-3.3V level that can be processed by the MCU control unit. When the switch button is pressed, the switch control circuit powers on the system at the moment the self-flying key switch is pressed, and locks the system in the power-on state through the key switch circuit before the self-flying key switch pops up, so it is very energy-saving.

[0010] Furthermore, a power level conversion circuit is included, which converts the voltage output by the power switch circuit and supplies power to the MCU control unit. The operating voltage of the MCU control unit is generally 3.3V, and the input power is 12V under normal circumstances, so the power level conversion circuit is required to perform level conversion and supply power to the MCU control unit.

[0011] When shutting down, the MCU control unit first executes the power-off sequence after receiving the power-off signal OFF, and then outputs the shutdown signal after the power-off sequence is completed. In the power-on state of the present invention, when the self-flying key switch is triggered, the MCU control unit detects the key trigger signal, starts the shutdown program, and delays the shutdown, effectively solving the problem of liquid crystal screen polarization in the display device.

[0012] Furthermore, the switch detection arbitration circuit includes a transistor Q5, diodes D1 and D2, resistors R5, R6, R7, R13 and R14, and a capacitor C1; the collector of the transistor Q5 is connected to the power supply VIN through the resistor R5, the base of the transistor Q5 is connected to the resistor R13, the other end of the resistor R13 is connected to one end of the resistor R14, the emitter of the transistor Q5 is connected to the other end of the resistor R14, the emitter of the transistor Q5 is also grounded, and the resistors R13 and R14 are connected to the MCU control unit. One end of the self-pop-up push button switch is grounded, and the other end is respectively connected to one end of the capacitor C1, the cathode of the diode D1, and the cathode of the diode D2. The other end of the capacitor C1 is grounded, the anode of the diode D1 is connected to the resistor R6, and the other end of the resistor R6 is connected to the voltage protection circuit 3. The anode of the diode D2 is connected to the resistor R7, and the other end of the resistor R7 is connected to the voltage protection circuit 3. The collector of the transistor Q5 is also connected to the anode of the diode D1; the anode of the diode D2 is also connected to the signal level conversion circuit.

[0013] Furthermore, the voltage protection circuit includes transistors Q1, Q2, Q6, Q7, and resistors R1, R2, R3, R17, R19, R20, R21, and R23; the emitter of the transistor Q1 is connected to the power supply VIN, the base of the transistor Q1 is connected to the switch detection arbitration circuit, and its collector is respectively connected to one end of the resistor R2 and the switch detection arbitration circuit, the other end of the resistor R2 is respectively connected to one end of the resistor R3 and the base of the transistor Q2, and the emitter of the transistor Q2 and the other end of the resistor R3 are respectively connected to each other. One end is grounded, the collector of the transistor Q2 is connected to the base of the transistor Q6 and the power supply VIN via the resistor R20 and the resistor R1 respectively, the emitter of the transistor Q6 is connected to the power supply VIN via the resistor R17, and its collector is connected to one end of the resistor R23 and the base of the transistor Q7 via the resistor R21 respectively, the other end of the resistor R23 and the emitter of the transistor Q7 are grounded, the collector of the transistor Q7 is connected to the power supply VIN via the resistor R19, and the collector of the transistor Q7 is also connected to the power switch circuit.

[0014] Furthermore, the power switch circuit includes a PMOS tube U2, resistors R15, R16, R18, and a capacitor C2; the two ends of the resistor R16 and the capacitor C2 connected in parallel and the two ends of the resistor R15 and R18 connected in series are respectively connected to the source and gate of the PMOS tube U2; the connection between the resistors R15 and R18 is connected to the voltage protection circuit, the source of the PMOS tube U2 is connected to the power supply VIN through the magnetic bead L1, and the drain of the PMOS tube U2 outputs the power supply.

[0015] Furthermore, capacitors EC1 and C3 are included, the drain of the PMOS tube U2 is connected to one end of the capacitors EC1 and C3 respectively, and the other ends of the capacitors EC1 and C3 are grounded. The capacitors EC1 and C3 filter the power supply.

[0016] Furthermore, the signal level conversion circuit includes transistors Q3 and Q4, resistors R4, R8, R9, R10, R11 and R12; the collector of the transistor Q3 is connected to the MCU control unit, the collector of the transistor Q3 is also connected to the power supply VCC via the resistor R4, the base of the transistor Q3 is connected to the collector of the transistor Q4 via the resistor R9, the base of the transistor Q3 is also grounded via the resistor R10, and the emitter of the transistor Q3 is grounded; the collector of the transistor Q4 is connected to the power supply VCC via the resistor R8, the base of the transistor Q4 is connected to the switch detection arbitration circuit via the resistor R11, the base of the transistor Q4 is also grounded via the resistor R12, and the emitter of the transistor Q4 is grounded.

[0017] 3. Beneficial effects

[0018] Compared with the prior art, the present invention has the following beneficial effects:

[0019] (1) The switch control circuit of the present invention is constructed using discrete components, which is low-cost and occupies little PCB board space;

[0020] (2) The present invention solves the screen shaking problem caused by the polarization of liquid crystal molecules inside the LCD screen due to the direct shutdown of the display device and the failure of the LCD screen to execute the power-off sequence;

[0021] (3) The present invention solves the problem that display devices on the market that use self-pop-up buttons to control the on / off of the device through an MCU require that the power circuit and the MCU control unit inside the display device must be powered on in advance before the device is turned on, thereby reducing system power consumption and being more energy-efficient. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a circuit principle block diagram of the present invention;

[0023] Figure 2 It is the overall circuit diagram of the present invention.

[0024] In the figure: 1: self-spring push button switch; 2: switch detection arbitration circuit; 3: voltage protection circuit; 4: power switch circuit; 5-1: signal level conversion circuit; 5-2: power level conversion circuit; 6: MCU control unit. DETAILED DESCRIPTION

[0025] The present invention is further described below in conjunction with specific embodiments.

[0026] like Figure 1As shown, the present invention mainly includes: a self-popping key switch 1, a switch detection arbitration circuit 2, a voltage protection circuit 3, a power switch circuit 4, a signal level conversion circuit 5-1 and an MCU control unit 6. The self-popping key switch and the MCU control unit are electrically connected to the switch detection arbitration circuit respectively, the self-popping key switch and the MCU control unit are connected to the switch detection arbitration circuit respectively, the switch detection arbitration circuit is connected to the voltage protection circuit and the signal level conversion circuit respectively, the voltage protection circuit is connected to the power switch circuit, and the signal level conversion circuit is connected to the MCU control unit. The self-popping key switch outputs a switch state signal to the switch detection arbitration circuit, and the MCU control unit outputs a signal PowerOn to the switch detection arbitration circuit; the switch detection arbitration circuit generates a power enable signal EN1 and a power off signal OFF and outputs them to the voltage protection circuit and the signal level conversion circuit respectively, the voltage protection circuit outputs an enable signal EN2 to the power switch circuit, the power switch circuit outputs power according to the enable signal EN2, and supplies power to the MCU control unit; the signal level conversion circuit converts the level of the OFF signal into a level that the MCU control unit can handle, and outputs it to the MCU control unit. In addition, Figure 1 What is not shown is that it also includes a power level conversion circuit 5-2, which is used to convert the input 12V power supply into a 3.3V power supply for use by the MCU control unit, that is, the power output by the power switch circuit is converted and then output to the MCU control unit.

[0027] When the self-flying push button switch is pressed, overshoot and static electricity will be generated, which will impact the PMOS tube of the power switch circuit, which may cause damage to it. After buffering by the voltage protection circuit, the push button switch and the PMOS tube can be isolated and protected to eliminate overshoot and static electricity, thereby protecting the PMOS. The voltage protection circuit filters the input 0-Vin power enable signal EN1 level, filters out overshoot and static electricity, and obtains the power enable signal EN2 to achieve buffering and protect the MOS tube from the switch level impact; the signal level conversion circuit is used to convert the 0-VIN of the OFF signal into a 0-3.3V level that the MCU can handle.

[0028] When the present invention is turned on in the shutdown state, the self-flying key switch is pressed, the self-flying key switch is closed, and the switch detection arbitration circuit outputs a power enable signal EN1 according to the switch state signal output by the self-flying key switch. The power enable signal EN1 is input into the power switch circuit via the voltage protection circuit, so that the power switch circuit supplies power to the MCU control unit. After the MCU control unit is powered on, it outputs a power-on signal (PowerOn shown in the figure) to the switch detection arbitration circuit, so that the switch detection arbitration circuit continues to output the power enable signal EN1. In this way, after the self-flying key switch is released, although the self-flying key switch is in the disconnected state, the entire system still remains in the powered state, so that the system is turned on and maintained in the powered-on state.

[0029] When shutting down in the power-on state, the self-flying key switch is pressed, the self-flying key switch is closed, and the switch detection arbitration circuit outputs the power off signal OFF according to the switch state signal output by the self-flying key switch. The power off signal OFF is output to the MCU control unit through the signal level conversion circuit. The MCU control unit outputs a shutdown signal (PowerOn shown in the figure, the shutdown signal and the power-on signal are two states, the shutdown signal is low level, and the power-on signal is high level) to the switch detection arbitration circuit. The switch detection arbitration circuit stops outputting the power enable signal EN1, and the power switch circuit stops supplying power. If a delayed shutdown is required, then before the MCU control unit outputs the shutdown signal, the MCU control unit first executes the power-off sequence. After the power-off sequence is executed, the MCU control unit outputs the shutdown signal.

[0030] like Figure 2 As shown in the figure, it is a specific circuit structure of the self-flying key switch circuit of the present invention. VIN is a DC power supply for powering the display device, which can be 5V, 9V, 12V, 15V, 19V, 24V, etc. provided by a power adapter, or 6.5V-8.4V, 10.8V-16.8V, etc. powered by a battery; the power supply VIN is respectively connected to the voltage protection circuit, the switch detection arbitration circuit, and the power switch circuit to power the latter circuits. The power supply VIN is connected to the collector of the transistor Q2 through the resistor R1, connected to the collector of the transistor Q5 through the resistor R5, connected to the emitter of the transistor Q6 through the resistor R17, connected to the collector of the transistor Q7 through the resistor R19, connected to the source of the PMOS tube U2 through the magnetic bead L1, and also connected to the emitter of the transistor Q1.

[0031] The switch detection arbitration circuit includes a transistor Q5, diodes D1 and D2, resistors R5, R6, R7, R13 and R14, and a capacitor C1; the collector of the transistor Q5 is connected to the power supply VIN through the resistor R5, the base of the transistor Q5 is connected to the resistor R13, the other end of the resistor R13 is connected to one end of the resistor R14, the emitter of the transistor Q5 is connected to the other end of the resistor R14, the emitter of the transistor Q5 is also grounded, and the resistors R13 and R14 are connected to the MCU control unit; one end of the self-flipping key switch is grounded, and the other end is respectively connected to one end of the capacitor C1, the cathode of the diode D1, The cathode of diode D2 and the other end of capacitor C1 are grounded, the anode of diode D1 is connected to resistor R6, the other end of resistor R6 is connected to voltage protection circuit 3, specifically, the other end of resistor R6 is connected to the base of transistor Q1, the anode of diode D2 is connected to resistor R7, the other end of resistor R7 is connected to voltage protection circuit 3, specifically, the other end of resistor R7 is connected to the collector of transistor Q1; the collector of transistor Q5 is also connected to the anode of diode D1; the anode of diode D2 is also connected to signal level conversion circuit 5-1, specifically, the anode of diode D2 is connected to resistor R11.

[0032] The voltage protection circuit includes transistors Q1, Q2, Q6, Q7, and resistors R1, R2, R3, R17, R19, R20, R21, and R23. The emitter of transistor Q1 is connected to the power supply VIN, the base of transistor Q1 is connected to the switch detection arbitration circuit, specifically connected to the resistor R6 in the switch detection arbitration circuit, and its collector is respectively connected to one end of the resistor R2 and the switch detection arbitration circuit, specifically connected to the resistor R7 in the switch detection arbitration circuit, the other end of the resistor R2 is respectively connected to one end of the resistor R3 and the base of transistor Q2, the emitter of transistor Q2 and the other end of resistor R3 are grounded, and the collector of transistor Q2 is respectively connected to the transistor R20, the resistor R1 and the transistor R7 through the resistor ... The base of transistor Q6 is connected to the power supply VIN, the emitter of transistor Q6 is connected to the power supply VIN via resistor R17, the collector thereof is respectively connected to one end of resistor R23 and the base of transistor Q7 via resistor R21, the other end of resistor R23 is grounded, the emitter of transistor Q7 is grounded, the collector thereof is connected to the power supply VIN via resistor R19 on the one hand, and is connected to the power switch circuit on the other hand, that is, outputs enable signal EN2 to the power switch circuit, specifically, the collector of transistor Q7 is connected between resistors R15 and R18.

[0033] The power switch circuit includes a PMOS tube U2, resistors R15, R16, R18, and a capacitor C2. Resistors R15 and R18 are connected in series and then connected in parallel with resistor R16, and resistor R16 is connected in parallel with capacitor C2. The two ends of the parallel structure formed by resistors R15, R18, R16, and capacitor C2 are respectively connected to the source and gate of the PMOS tube U2. Specifically, the two ends of resistor R16 and capacitor C2 are respectively connected to the source and gate of the PMOS tube U2, and one end of resistor R15 (the end not connected to resistor R18) and one end of resistor R18 (the end not connected to resistor R16) are respectively connected to the source and gate of the PMOS tube U2. The connection between resistors R15 and R18 is connected to the voltage protection circuit, specifically, the collector of the transistor Q7 in the voltage protection circuit. The source of the PMOS tube U2 is also connected to the power supply VIN through a magnetic bead L1, and the drain of the PMOS tube U2 outputs the power supply. The drain of the PMOS tube U2 is connected to capacitors EC1 and C3 respectively, and the capacitors EC1 and C3 are grounded. The capacitors EC1 and C3 filter the power supply to make the output DC power supply VCC smoother.

[0034] The signal level conversion circuit includes transistors Q3 and Q4, resistors R4, R8, R9, R10, R11 and R12. The collector of the transistor Q3 is connected to the MCU control unit, specifically, it outputs the PowerOff_Detect signal to the MCU control unit. At the same time, the collector of the transistor Q3 is also connected to the power level conversion circuit through the resistor R4, and receives its 3.3V VCC power supply. The base of the transistor Q3 is connected to the collector of the transistor Q4 through the resistor R9, and is also grounded through the resistor R10; the emitter of the transistor Q3 is connected to the ground; the collector of the transistor Q4 is connected to the power level conversion circuit through the resistor R8, and receives its 3.3V VCC power supply. The base of the transistor Q4 is connected to the switch detection arbitration circuit through the resistor R11, specifically, it is connected to the positive electrode of the diode D2 of the switch detection arbitration circuit. At the same time, the base of the transistor Q4 is also grounded through the resistor R12, and the emitter of the transistor Q4 is grounded.

[0035] The power level conversion circuit U3 is a 12V to 3.3V DC-DC power conversion circuit, which is a conventional circuit. The power level conversion circuit converts the 12V power output by the power switch circuit into 3.3V to power the MCU control unit.

[0036] In specific implementation, the MCU control unit can be a single-chip microcomputer, ARM or other control circuit; the filter capacitors EC1 and C3 can be omitted, and the resistor R13 can also be omitted, that is, the base of the transistor Q5 is directly connected to the resistor R14, and the capacitance of the capacitor C1 can be appropriately adjusted according to the actual application requirements, and the resistance values ​​of each resistor can be appropriately adjusted or deleted according to the application to achieve the best application effect.

[0037] When the device is turned on, at the moment the self-pop-up switch button SW1 is pressed, PowerKeyDetect is at a low level, the anode of diode D1 is at a low level, the base of transistor Q1 is at a low level, transistor Q1 is turned on, transistor Q2 is turned on, Power_En is at a low level, the base of transistor Q6 is at a low level, transistor Q6 is turned on, the collector of transistor Q6 is at a high level, transistor Q7 is turned on, the collector of transistor Q7 is at a low level, the gate of PMOS tube U2 is at a low level, and PMOS tube U2 is turned on. The VCC12V supplies power to the entire display device system, and the power level conversion circuit U5 works to generate a VCC3.3V voltage to supply power to the MCU control unit U1. The input and output interface PowerOn of the MCU control unit U1 is immediately set to a high level; the transistor Q5 is turned on, the collector of the transistor Q5 is at a low level, and the base of the transistor Q1 is at a low level, maintaining the on state of the transistor Q1; at this time, after the self-pop-up button SW1 is pressed and popped up, the power switch circuit can maintain the display device system in the on state;

[0038] When the device needs to be shut down, when the display device system is in the normal boot state, press the self-pop-up button SW1, PowerKeyDetect is low level, the anode of diode D2 is low level, the base of transistor Q4 is low level, transistor Q4 is cut off, the base of transistor Q3 is high level, transistor Q3 is turned on, and the collector of transistor Q3 is low level, that is, PowerOff_Detect is low level. After the MCU control unit U1 detects that PowerOff_Detect is low level, it executes the command to set PowerOn to low level. The base of transistor Q5 is at a low level, transistor Q5 is cut off, and the collector of transistor Q5 is at a high level. The base of transistor Q1 is at a high level, transistor Q1 is cut off, the base of transistor Q2 is at a low level, transistor Q2 is cut off, and the collector of transistor Q2 is at a high level. Power_En is at a high level. The base of transistor Q6 is at a high level, transistor Q6 is cut off, the base of transistor Q7 is at a low level, transistor Q7 is cut off, and the collector of transistor Q7 is at a high level. The gate of PMOS tube U2 is at a high level, PMOS tube U2 is cut off, VCC12V is at a low level, and the power switch circuit of the display device system does not work, and the device is shut down.

[0039] When the device requires a shutdown delay, the shutdown delay function can be implemented through the MCU control unit.

[0040] When the display device system is in the normal power-on state, press the self-pop-up button SW1, PowerKeyDetect is low level, the anode of diode D2 is low level, the base of transistor Q4 is low level, transistor Q4 is cut off, the base of transistor Q3 is high level, transistor Q3 is turned on, and the collector of transistor Q3 is low level, that is, PowerOff_Detect is low level. After the MCU control unit detects that PowerOff_Detect is low level, it executes the power-off sequence for the display unit LCD panel with power-off sequence requirements in the display device system. After the power-off sequence is completed, the MCU control unit executes the command to set PowerOn to a low level. The base of transistor Q5 is at a low level, transistor Q5 is cut off, and the collector of transistor Q5 is at a high level. The base of transistor Q1 is at a high level, transistor Q1 is cut off, the base of transistor Q2 is at a low level, transistor Q2 is cut off, and the collector of transistor Q2 is at a high level. Power_En is at a high level. The base of transistor Q6 is at a high level, transistor Q6 is cut off, the base of transistor Q7 is at a low level, transistor Q7 is cut off, and the collector of transistor Q7 is at a high level. The gate of PMOS tube U2 is at a high level, PMOS tube U2 is cut off, VCC12V is at a low level, and the power switch circuit of the display device system does not work, and the device is shut down.

[0041] The voltage values ​​such as 12V and 3.3V mentioned in this embodiment do not constitute a limitation on the protection range. Those skilled in the art can adjust the voltage value based on this embodiment to meet the needs of actual equipment.

[0042] The above schematically describes the invention and its implementation methods. The description is not restrictive. Without departing from the spirit or basic features of the invention, the invention can be implemented in other specific forms. What is shown in the accompanying drawings is only one of the implementation methods of the invention. The actual structure is not limited to this. Any figure mark in the claims should not limit the claims involved. Therefore, if a person of ordinary skill in the art is inspired by it, without departing from the purpose of the invention, a structural method and an embodiment similar to the technical solution are designed without creativity, which should all fall within the scope of protection of this patent. In addition, the word "including" does not exclude other elements or steps, and the word "one" before the element does not exclude the inclusion of "multiple" elements. The multiple elements stated in the product claim can also be implemented by one element through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any specific order.

Claims

1. A key switch circuit, characterized in that: It includes a self-flying key switch, an MCU control unit, a switch detection arbitration circuit, a voltage protection circuit, a power switch circuit, and a signal level conversion circuit; the self-flying key switch and the MCU control unit are respectively connected to the switch detection arbitration circuit, the switch detection arbitration circuit is respectively connected to the voltage protection circuit and the signal level conversion circuit, the voltage protection circuit is connected to the power switch circuit, and the signal level conversion circuit is connected to the MCU control unit; When the device is turned on, the switch detection arbitration circuit outputs a power enable signal EN1 according to the switch state signal output by the self-flying push button switch. The power enable signal EN1 is input into the power switch circuit via the voltage protection circuit, so that the power switch circuit supplies power to the MCU control unit. After the MCU control unit is powered on, the power-on signal is output to the switch detection arbitration circuit, so that the switch detection arbitration circuit continuously outputs the power enable signal EN1. The voltage protection circuit filters the power enable signal EN1. When shutting down, the switch detection arbitration circuit outputs a power off signal OFF according to the switch state signal output by the self-flying push button switch, and the power off signal OFF is output to the MCU control unit through the signal level conversion circuit. The MCU control unit outputs a shutdown signal to the switch detection arbitration circuit, and the switch detection arbitration circuit stops outputting the power enable signal EN1, and the power switch circuit stops supplying power; the signal level conversion circuit converts the power off signal OFF into a signal that can be processed by the MCU control unit; the switch detection arbitration circuit includes a transistor Q5, diodes D1 and D2, resistors R5, R6, R7, R13 and R14, and a capacitor C1; the collector of the transistor Q5 is connected to the power supply VIN through the resistor R5, and the base of the transistor Q5 is connected to the power supply VIN through the resistor R5. Resistor R13 is connected, the other end of resistor R13 is connected to one end of resistor R14, the emitter of transistor Q5 is connected to the other end of resistor R14, the emitter of transistor Q5 is also grounded, and resistors R13 and R14 are connected to the MCU control unit; one end of the self-pop-up key switch is grounded, and the other end is respectively connected to one end of capacitor C1, the cathode of diode D1, and the cathode of diode D2, the other end of capacitor C1 is grounded, the anode of diode D1 is connected to resistor R6, the other end of resistor R6 is connected to the voltage protection circuit, the anode of diode D2 is connected to resistor R7, the other end of resistor R7 is connected to the voltage protection circuit, the collector of transistor Q5 is also connected to the anode of diode D1; the anode of diode D2 is also connected to the signal level conversion circuit.

2. The key switch circuit according to claim 1, characterized in that: It also includes a power level conversion circuit, which converts the voltage output by the power switch circuit and then supplies power to the MCU control unit.

3. The key switch circuit according to claim 1, characterized in that: When shutting down, after the MCU control unit receives the power off signal OFF, it first executes the power-off sequence, and after the power-off sequence is completed, it outputs a shutdown signal.

4. The key switch circuit according to claim 1, 2 or 3, characterized in that: The voltage protection circuit includes transistors Q1, Q2, Q6, Q7, and resistors R1, R2, R3, R17, R19, R20, R21, and R23; the emitter of the transistor Q1 is connected to the power supply VIN, the base of the transistor Q1 is connected to the switch detection arbitration circuit, and its collector is respectively connected to one end of the resistor R2 and the switch detection arbitration circuit, the other end of the resistor R2 is respectively connected to one end of the resistor R3 and the base of the transistor Q2, and the emitter of the transistor Q2 and the other end of the resistor R3 are connected The collector of the transistor Q2 is connected to the base of the transistor Q6 and the power supply VIN via the resistor R20 and the resistor R1 respectively. The emitter of the transistor Q6 is connected to the power supply VIN via the resistor R17. Its collector is connected to one end of the resistor R23 and the base of the transistor Q7 via the resistor R21 respectively. The other end of the resistor R23 and the emitter of the transistor Q7 are grounded. The collector of the transistor Q7 is connected to the power supply VIN via the resistor R19. The collector of the transistor Q7 is also connected to the power switch circuit.

5. The key switch circuit according to claim 1, 2 or 3, characterized in that: The power switch circuit includes a PMOS tube U2, resistors R15, R16, R18, and a capacitor C2; the two ends of the resistor R16 connected in parallel with the capacitor C2 and the two ends of the resistor R15 and R18 connected in series are respectively connected to the source and gate of the PMOS tube U2; the connection between the resistor R15 and R18 is connected to the voltage protection circuit, the source of the PMOS tube U2 is connected to the power supply VIN through the magnetic bead L1, and the drain of the PMOS tube U2 outputs the power supply.

6. The key switch circuit according to claim 5, characterized in that: The PMOS tube U2 also includes capacitors EC1 and C3. The drain of the PMOS tube U2 is connected to one end of the capacitors EC1 and C3 respectively, and the other ends of the capacitors EC1 and C3 are grounded.

7. The key switch circuit according to claim 1, 2 or 3, characterized in that: The signal level conversion circuit includes transistors Q3 and Q4, resistors R4, R8, R9, R10, R11 and R12; the collector of the transistor Q3 is connected to the MCU control unit, the collector of the transistor Q3 is also connected to the power supply VCC via the resistor R4, the base of the transistor Q3 is connected to the collector of the transistor Q4 via the resistor R9, the base of the transistor Q3 is also grounded via the resistor R10, and the emitter of the transistor Q3 is grounded; the collector of the transistor Q4 is connected to the power supply VCC via the resistor R8, the base of the transistor Q4 is connected to the switch detection arbitration circuit via the resistor R11, the base of the transistor Q4 is also grounded via the resistor R12, and the emitter of the transistor Q4 is grounded.

Citation Information

Patent Citations

  • Electromechanical way of automatic ejection formula key switch

    CN206833202U

  • Key switch circuit

    CN209388159U

  • Start-up and shut-down circuit

    WO2017202304A1