CN219834113U - Circuit for realizing different functions of long and short presses of single key through hardware - Google Patents

Circuit for realizing different functions of long and short presses of single key through hardware Download PDF

Info

Publication number
CN219834113U
CN219834113U CN202321046720.2U CN202321046720U CN219834113U CN 219834113 U CN219834113 U CN 219834113U CN 202321046720 U CN202321046720 U CN 202321046720U CN 219834113 U CN219834113 U CN 219834113U
Authority
CN
China
Prior art keywords
circuit
triode
switch circuit
resistor
pin
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202321046720.2U
Other languages
Chinese (zh)
Inventor
李超弟
卢俊杰
陈泓霖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wenzhou Beck Electronic Co ltd
Original Assignee
Wenzhou Beck Electronic Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wenzhou Beck Electronic Co ltd filed Critical Wenzhou Beck Electronic Co ltd
Priority to CN202321046720.2U priority Critical patent/CN219834113U/en
Application granted granted Critical
Publication of CN219834113U publication Critical patent/CN219834113U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The utility model relates to a circuit for realizing different functions of long and short pressing of a single key through hardware, wherein a main control chip comprises a WAKE_UP pin and a RESET pin; the switching circuit comprises a triode switching circuit 1, a time-delay voltage stabilizing circuit and a triode switching circuit 2; the isolation circuit is used for isolating the WAKE_UP pin and the RESET pin; the power supply provides high level for the WAKE_UP and RESET pins, the triode switch circuit 1 and the triode switch circuit 2, and the RESET pin signals sequentially pass through the triode switch circuit 2, the time-delay voltage-stabilizing circuit, the triode switch circuit 1, the resistor R5, the isolation circuit and the single-pole single-throw tact switch circuit; in the off state of the single-pole single-throw tact switch circuit, the triode switch circuit 1 is in an on state, and the triode switch circuit 2 is in an off state; in the closed state of the single-pole single-throw tact switch circuit, the triode switch circuit 1 is turned off, the delay voltage stabilizing circuit is turned on in a delay manner, and the triode switch circuit 2 is turned on.

Description

Circuit for realizing different functions of long and short presses of single key through hardware
Technical Field
The utility model relates to the technical field of circuits, in particular to a circuit for realizing different functions of pressing a single key in a long and short way through hardware.
Background
In the prior art, one switch realizes functions (such as on and off for sending a remote instruction), the other switch realizes resetting, and the circuit uses two keys to realize two functions. In some application scenarios, only one key can be allowed to realize functions, how to realize different functions by realizing a single key long and short press through hardware, and the problem that the MCU reset pin cannot be configured as other functional keys is a problem to be solved in the present day.
Disclosure of Invention
In summary, to overcome the defects of the prior art, the utility model provides a circuit for realizing different functions of pressing a single key in a long or short way through hardware.
In order to achieve the above purpose, the present utility model provides the following technical solutions: a circuit for realizing different functions of long and short presses of a single key through hardware comprises a main control chip, a power supply, a switch circuit, an isolation circuit and a single-pole single-throw light touch switch circuit; the main control chip comprises a WAKE_UP pin and a RESET pin; the switching circuit comprises a triode switching circuit 1, a time-delay voltage stabilizing circuit and a triode switching circuit 2; the isolation circuit is used for isolating the WAKE_UP pin and the RESET pin; the isolating circuit is arranged between the main control chip and the single-pole single-throw light touch switch circuit, the power supply provides high level for WAKE_UP and RESET pins, the triode switch circuit 1 and the triode switch circuit 2, and the RESET pin signals sequentially pass through the triode switch circuit 2, the delay voltage stabilizing circuit, the triode switch circuit 1, the resistor R5, the isolating circuit and the single-pole single-throw light touch switch circuit; in the off state of the single-pole single-throw tact switch circuit, the triode switch circuit 1 is in an on state, and the triode switch circuit 2 is in an off state; in the closed state of the single-pole single-throw tact switch circuit, the triode switch circuit 1 is in a cut-off state, the delay voltage stabilizing circuit is in a delayed conduction state, and the triode switch circuit 2 is in a conduction state.
The utility model further provides that: the triode switch circuit 1 comprises a triode Q2, a pull-up resistor R2 and a resistor R3, wherein the base electrode of the triode Q2 is connected with a resistor R5, the collector electrode is connected with the resistor R3, the emitter electrode is grounded, one end of the pull-up resistor R2 is connected with 3.3V voltage, and the other end of the pull-up resistor R2 is connected with the base electrode of the triode Q2.
The utility model further provides that: the delay voltage stabilizing circuit comprises a capacitor C1, a voltage stabilizing diode D2 and a resistor R7, wherein one end of the capacitor C1 is connected with the collector of the triode Q2, the other end of the capacitor C1 is grounded, the negative electrode of the voltage stabilizing diode D2 is connected with the collector of the triode Q2, and the positive electrode of the voltage stabilizing diode D is connected with the resistor R7.
The utility model further provides that: the triode switch circuit 2 comprises a triode Q1, a resistor R4 and a pull-down resistor R6, wherein the base electrode of the triode Q1 is connected with the time-delay voltage stabilizing circuit, the collector electrode is connected with the resistor R4, the emitter electrode is grounded, one end of the pull-down resistor R6 is grounded, the other end of the pull-down resistor R6 is connected with the base electrode of the triode Q1, and the RESET pin is connected with the collector electrode of the triode Q1.
The utility model further provides that: a filter capacitor C2 is arranged between the RESET pin and the triode Q1, one end of the filter capacitor C2 is grounded, and the other end of the filter capacitor C2 is connected with the RESET pin.
By adopting the technical scheme, the filter capacitor is arranged, so that the working performance of the electronic circuit is more stable.
The utility model further provides that: the isolation circuit comprises a Schottky diode D1 and a Schottky diode D3, one end of the Schottky diode D1 is connected with a WAKE_UP pin, the other end of the Schottky diode D1 is connected with a single-pole single-throw tact switch circuit, one end of the Schottky diode D3 is connected with a resistor R5, and the other end of the Schottky diode D3 is connected with the single-pole single-throw tact switch circuit.
By adopting the technical scheme, the diode D1 and the diode D3 can adopt the Schottky diode 1N5819, and the diode has the characteristics of voltage reduction and fast switching.
The utility model further provides that: and a pull-UP resistor R1 is arranged between the isolation circuit and the WAKE_UP pin, one end of the pull-UP resistor R1 is connected with a power supply, and the other end of the pull-UP resistor R1 is connected with the WAKE_UP pin.
By adopting the technical scheme, the WAKE_UP pin is in a stable high-level state by the pull-UP resistor R1, so that the identification and judgment are more accurate.
Compared with the prior art, the utility model has the beneficial effects that: the circuit can solve the problem that the MCU reset pin cannot be configured into other functional keys by software, and can utilize the time delay of hardware to select whether a channel is a reset signal or another functional signal so as to realize two functions including reset of a main control chip by one single-pole single-throw key; the problem that most reset pins of a main control chip cannot be configured with other functions and only one key is required to realize two functions is solved; taking the field of intelligent locks as an example, the scheme can enable the intelligent lock to save the key space of the front panel, and simultaneously perform hardware reset of program running and another expansion function, such as awakening, doorbell, remote instruction sending and the like.
The following describes specific embodiments of the present utility model with reference to the drawings and examples.
Drawings
FIG. 1 is a circuit diagram of an embodiment of the present utility model;
FIG. 2 is a schematic block diagram of an embodiment of the present utility model;
Detailed Description
The present embodiment is only for explanation of the present utility model and is not to be construed as limiting the present utility model, and modifications to the present embodiment, which may not creatively contribute to the present utility model as required by those skilled in the art after reading the present specification, are all protected by patent laws within the scope of claims of the present utility model.
Referring to fig. 1-2, the circuit for realizing different functions of pressing a single key in a long and short way through hardware comprises a main control chip, a power supply, a switch circuit, an isolation circuit and a single-pole single-throw light touch switch circuit; the main control chip comprises a WAKE_UP pin and a RESET pin; the switching circuit comprises a triode switching circuit 1, a time-delay voltage stabilizing circuit and a triode switching circuit 2; the isolation circuit is used for isolating the WAKE_UP pin and the RESET pin; the isolating circuit is arranged between the main control chip and the single-pole single-throw light touch switch circuit, the power supply provides high level for WAKE_UP and RESET pins, the triode switch circuit 1 and the triode switch circuit 2, and the RESET pin signals sequentially pass through the triode switch circuit 2, the delay voltage stabilizing circuit, the triode switch circuit 1, the resistor R5, the isolating circuit and the single-pole single-throw light touch switch circuit; in the off state of the single-pole single-throw tact switch circuit, the triode switch circuit 1 is in an on state, and the triode switch circuit 2 is in an off state; in the closed state of the single-pole single-throw tact switch circuit, the triode switch circuit 1 is in a cut-off state, the delay voltage stabilizing circuit is in a delayed conduction state, and the triode switch circuit 2 is in a conduction state.
In the technical scheme of the utility model, the main control chip is applicable to all mcus with reset pins and is further set as a 32-bit ARM chip, and in the embodiment, the main control chip is STM32L07X, but is only an exemplary example and is not limited to the example.
The present embodiment further provides: the triode switch circuit 1 comprises a triode Q2, a pull-up resistor R2 and a resistor R3, wherein the base electrode of the triode Q2 is connected with a resistor R5, the collector electrode is connected with the resistor R3, the emitter electrode is grounded, one end of the pull-up resistor R2 is connected with 3.3V voltage, and the other end of the pull-up resistor R2 is connected with the base electrode of the triode Q2.
The present embodiment further provides: the delay voltage stabilizing circuit comprises a capacitor C1, a voltage stabilizing diode D2 and a resistor R7, wherein one end of the capacitor C1 is connected with the collector of the triode Q2, the other end of the capacitor C1 is grounded, the negative electrode of the voltage stabilizing diode D2 is connected with the collector of the triode Q2, and the positive electrode of the voltage stabilizing diode D is connected with the resistor R7.
The present embodiment further provides: the triode switch circuit 2 comprises a triode Q1, a resistor R4 and a pull-down resistor R6, wherein the base electrode of the triode Q1 is connected with the time-delay voltage stabilizing circuit, the collector electrode is connected with the resistor R4, the emitter electrode is grounded, one end of the pull-down resistor R6 is grounded, the other end of the pull-down resistor R6 is connected with the base electrode of the triode Q1, and the RESET pin is connected with the collector electrode of the triode Q1.
The present embodiment further provides: a filter capacitor C2 is arranged between the RESET pin and the triode Q1, one end of the filter capacitor C2 is grounded, and the other end of the filter capacitor C2 is connected with the RESET pin.
The present embodiment further provides: the isolation circuit comprises a Schottky diode D1 and a Schottky diode D3, one end of the Schottky diode D1 is connected with a WAKE_UP pin, the other end of the Schottky diode D1 is connected with a single-pole single-throw tact switch circuit, one end of the Schottky diode D3 is connected with a resistor R5, and the other end of the Schottky diode D3 is connected with the single-pole single-throw tact switch circuit.
The present embodiment further provides: and a pull-UP resistor R1 is arranged between the isolation circuit and the WAKE_UP pin, one end of the pull-UP resistor R1 is connected with a power supply, and the other end of the pull-UP resistor R1 is connected with the WAKE_UP pin.
The working principle of the utility model is as follows: the triode switch circuit 1 is in a conducting state due to the fact that the pull-up resistor R2 is in a conducting state, namely the zener diode D2 is short-circuited, and no potential difference exists at two ends of the zener diode at the moment, because the triode switch circuit 2 is in a pull-down cut-off state due to the fact that R6 is in a high-level state at the moment, the RESET pin is in a high-level state; when the single-pole single-throw switch S1 is pressed down, the triode Q2 is cut off, the current charges C1 (approximately 4-5S) to 3.3V through R3, at the moment, the voltage stabilizing diode is reversely broken down to stabilize the voltage at 3V due to the fact that the anode is pulled down to the ground, the base electrode of the triode Q1 is in a high level state, the triode switch circuit 2 is turned on from the original cut-off state, at the moment, the RESET pin is pulled down, and the main control chip is RESET successfully; the WAKE UP pin may configure the short press function via software.
The operation process of the utility model is as follows: the short-time WAKE_UP pin is pulled down, the function of the pin is processed, and when the short-time WAKE_UP pin is pressed for more than 4-5s (the time is influenced by R3 and C1), the RESET pin is pulled down, and the main control chip RESETs.
The resistance value and the capacitance of each resistor in this embodiment can be adjusted according to the requirements, and the drawings are only exemplary references.
The term "between" is not intended to mean between not only orientations and positions, but also interactions between different parts.
It will be evident to those skilled in the art that the utility model is not limited to the details of the foregoing illustrative embodiments, and that the present utility model may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the utility model being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (7)

1. A circuit for realizing different functions of long and short presses of a single key through hardware is characterized in that: the device comprises a main control chip, a power supply, a switch circuit, an isolation circuit and a single-pole single-throw tact switch circuit; the main control chip comprises a WAKE_UP pin and a RESET pin; the switching circuit comprises a triode switching circuit 1, a time-delay voltage stabilizing circuit and a triode switching circuit 2; the isolation circuit is used for isolating the WAKE_UP pin and the RESET pin; the isolating circuit is arranged between the main control chip and the single-pole single-throw light touch switch circuit, the power supply provides high level for WAKE_UP and RESET pins, the triode switch circuit 1 and the triode switch circuit 2, and the RESET pin signals sequentially pass through the triode switch circuit 2, the delay voltage stabilizing circuit, the triode switch circuit 1, the resistor R5, the isolating circuit and the single-pole single-throw light touch switch circuit; in the off state of the single-pole single-throw tact switch circuit, the triode switch circuit 1 is in an on state, and the triode switch circuit 2 is in an off state; in the closed state of the single-pole single-throw tact switch circuit, the triode switch circuit 1 is in a cut-off state, the delay voltage stabilizing circuit is in a delayed conduction state, and the triode switch circuit 2 is in a conduction state.
2. A circuit for implementing different functions of a single key long and short press by hardware according to claim 1, wherein: the triode switch circuit 1 comprises a triode Q2, a pull-up resistor R2 and a resistor R3, wherein the base electrode of the triode Q2 is connected with a resistor R5, the collector electrode is connected with the resistor R3, the emitter electrode is grounded, one end of the pull-up resistor R2 is connected with 3.3V voltage, and the other end of the pull-up resistor R2 is connected with the base electrode of the triode Q2.
3. A circuit for implementing different functions of a single key long and short press by hardware according to claim 2, wherein: the delay voltage stabilizing circuit comprises a capacitor C1, a voltage stabilizing diode D2 and a resistor R7, wherein one end of the capacitor C1 is connected with the collector of the triode Q2, the other end of the capacitor C1 is grounded, the negative electrode of the voltage stabilizing diode D2 is connected with the collector of the triode Q2, and the positive electrode of the voltage stabilizing diode D is connected with the resistor R7.
4. A circuit for implementing different functions of a single key long and short press by hardware according to claim 1, wherein: the triode switch circuit 2 comprises a triode Q1, a resistor R4 and a pull-down resistor R6, wherein the base electrode of the triode Q1 is connected with the time-delay voltage stabilizing circuit, the collector electrode is connected with the resistor R4, the emitter electrode is grounded, one end of the pull-down resistor R6 is grounded, the other end of the pull-down resistor R6 is connected with the base electrode of the triode Q1, and the RESET pin is connected with the collector electrode of the triode Q1.
5. The circuit for realizing different functions of single-key long-short pressing through hardware according to claim 4, wherein: a filter capacitor C2 is arranged between the RESET pin and the triode Q1, one end of the filter capacitor C2 is grounded, and the other end of the filter capacitor C2 is connected with the RESET pin.
6. A circuit for implementing different functions of a single key long and short press by hardware according to claim 1, wherein: the isolation circuit comprises a Schottky diode D1 and a Schottky diode D3, one end of the Schottky diode D1 is connected with a WAKE_UP pin, the other end of the Schottky diode D1 is connected with a single-pole single-throw tact switch circuit, one end of the Schottky diode D3 is connected with a resistor R5, and the other end of the Schottky diode D3 is connected with the single-pole single-throw tact switch circuit.
7. A circuit for implementing different functions of a single key long and short press by hardware according to claim 1, wherein: and a pull-UP resistor R1 is arranged between the isolation circuit and the WAKE_UP pin, one end of the pull-UP resistor R1 is connected with a power supply, and the other end of the pull-UP resistor R1 is connected with the WAKE_UP pin.
CN202321046720.2U 2023-04-26 2023-04-26 Circuit for realizing different functions of long and short presses of single key through hardware Active CN219834113U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202321046720.2U CN219834113U (en) 2023-04-26 2023-04-26 Circuit for realizing different functions of long and short presses of single key through hardware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202321046720.2U CN219834113U (en) 2023-04-26 2023-04-26 Circuit for realizing different functions of long and short presses of single key through hardware

Publications (1)

Publication Number Publication Date
CN219834113U true CN219834113U (en) 2023-10-13

Family

ID=88284699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202321046720.2U Active CN219834113U (en) 2023-04-26 2023-04-26 Circuit for realizing different functions of long and short presses of single key through hardware

Country Status (1)

Country Link
CN (1) CN219834113U (en)

Similar Documents

Publication Publication Date Title
CN103941597B (en) Power control circuit and there is the electronic installation of this power control circuit
CN101673136B (en) Power control unit and on/off method
CN219834113U (en) Circuit for realizing different functions of long and short presses of single key through hardware
CN210578476U (en) Circuit for realizing two-bonding one function
CN201995065U (en) Wake-up circuit and digital television receiving terminal
CN204947900U (en) Power management circuit of electronic lock
CN105182833A (en) Double-power-supply power supply and power-off sequential control device and method
CN203537357U (en) Simple time delay switching circuit
CN205015670U (en) Dual power supply and outage time schedule control device
CN112543017A (en) Long-connection circuit without influence on power consumption
CN210157162U (en) Key combined circuit for realizing hardware reset
CN211478984U (en) Low-power consumption monostable circuit capable of being triggered repeatedly
CN216356662U (en) Pulse self-locking key circuit
CN112527133A (en) Touch control pen
CN112596448B (en) Control circuit and electronic device
CN204883861U (en) Camera detachable vehicle event data recorder
CN216313067U (en) Router switching circuit based on D trigger
CN220492974U (en) Circuit for realizing multiple control functions by single key
CN220105549U (en) Singlechip button multiplexing circuit
CN203445851U (en) Reset circuit
CN210295030U (en) Power-on self-starting circuit for mainboard
CN202870722U (en) Complementary metal oxide semiconductor (CMOS) data eliminating circuit
CN210745101U (en) Power supply control circuit
CN219498950U (en) Battery low voltage protection circuit and PCB board
CN211979649U (en) Hard-line wake-up circuit

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant