Button jitter elimination and interruption circuit

By designing button dejitter and interrupt circuits in automotive electronic and electrical systems, using components such as Schmitt triggers and diodes, the problems of button reliability and low quiescent current in the prior art are solved, and the stability of button signals is achieved and The processing of multiple interrupt input improves the security and reliability of the system.

CN222073125UActive Publication Date: 2024-11-26YANFENG VISTEON YIDONG AUTOMOTIVE METER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420604958.0
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-03-27
Publication Date
2024-11-26
Estimated Expiration
2034-03-27

AI Technical Summary

Technical Problem

In automotive electronic and electrical systems, it is difficult for the prior art to achieve reliable interruption of buttons and low quiescent currents at the same time, and high reliability and high safety requirements are difficult to meet.

Method used

A button de-shaking and interrupt circuit is designed, including a hysteresis de-shaking unit, a button signal level conversion unit and a button signal interrupt trigger unit. It uses elements such as Schmitt trigger, unidirectional diode and transistor to pass capacitors and resistors. The combination of hardware dejitter and stable conversion of interrupt signals is realized.

Benefits of technology

This circuit realizes the stability and reliability of the button signal, reduces quiescent current, has good scalability, can handle multiple interrupt inputs, and ensures high safety and reliability of button operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222073125U_ABST
    Figure CN222073125U_ABST
Patent Text Reader

Abstract

The utility model discloses a button jitter elimination and interruption circuit, which comprises a button S1, and the button S1 is sequentially provided with a hysteresis jitter elimination unit, a button signal level conversion unit and a button signal interruption trigger unit. The hysteresis jitter elimination unit comprises a Schmitt trigger, and a node c is arranged at the rear end of the Schmitt trigger; the button signal interruption triggering unit comprises an interruption port connection point and a unilateral diode D2, and the unilateral diode D2 is connected to a node c; the button signal level conversion unit comprises an input port connection point, and the input port connection point is connected to a node c. The button jitter elimination and interruption circuit has the following advantages and effects that hardware jitter elimination is realized through the button jitter elimination and interruption circuit. Meanwhile, the circuit has very good expansibility, and the purpose that one interrupt port receives a plurality of interrupt inputs can be achieved through a simple repetition button, a hysteresis jitter elimination unit and a button signal level conversion unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model patent relates to the technical field of electronic circuits, and specifically, to a button debouncing and interrupting circuit. Background Art

[0002] In automotive electronic and electrical systems, the quiescent current of the electronic and electrical systems must be low enough, and the buttons must be able to be interrupted reliably.

[0003] Automobiles are of relatively high value and have requirements for high reliability and high safety. For button processing, a small amount of circuit is added to provide them with high reliability, high safety and reduce static current.

[0004] In view of this, the present utility model is proposed. Utility Model Content

[0005] The utility model aims to provide a button debouncing and interrupting circuit with high reliability and high safety.

[0006] The above-mentioned technical purpose of the utility model is achieved through the following technical solutions: a button debouncing and interrupting circuit, including a button S1, on which a hysteresis debouncing unit, a button signal level conversion unit and a button signal interrupt triggering unit are sequentially arranged; the hysteresis debouncing unit includes a Schmitt trigger, and a node c is arranged at the rear end of the Schmitt trigger; the button signal interrupt triggering unit includes an interrupt port connection point and a unidirectional diode D2, and the unidirectional diode D2 is connected to the node c; the button signal level conversion unit includes an input port connection point, and the input port connection point is connected to the node c.

[0007] It is further configured as follows: the hysteresis debouncing unit includes a power supply VCC and a resistor R1 connected in sequence, a node a is provided at the rear end of the resistor R1, one side of the node a is connected to the button S1, and the other side is connected to the resistor R2, a node b is provided at the rear end of the resistor R2, a capacitor C1 is connected to the rear end of the node b, and the capacitor C1 is grounded; the rear end of the node b is also connected to the front end of the Schmitt trigger U1.

[0008] It is further configured as follows: the button signal level conversion unit includes a power supply VCC and a transistor Q2, the power supply VCC is respectively connected to the emitter of the transistor Q2 and the resistor R7, the rear end of the resistor R7 is connected to the base of the transistor Q2, the base of the transistor Q2 is also connected to a resistor R8, and the other end of the resistor R8 is connected to a node c; the collector of the transistor Q2 is connected to a resistor R9, a node d is provided at the rear end of the resistor R9, the node d is respectively connected to a capacitor C3 and an input port connection point, the capacitor C3 is grounded, the input port connection point is also respectively connected to button ON and a resistor R10, and the resistor R10 is grounded.

[0009] It is further configured as follows: the button signal interrupt trigger unit includes a power supply VCC and a transistor Q1, the power supply VCC is respectively connected to the emitter of the transistor Q1 and the resistor R73, the rear end of the resistor R3 is connected to the base of the transistor Q1, the base of the transistor Q1 is also connected to a resistor R4, a unidirectional diode D2 is arranged at the rear end of the resistor R4, the emitter of the transistor Q1 is connected to a resistor R5, a node e is arranged at the rear end of the resistor R5, the node d is respectively connected to the interrupt port connection point and the capacitor C2, the capacitor C2 is grounded; the input port connection point is also respectively connected to the button INT and the resistor R6, the resistor R6 is grounded; the diode D2 is connected to the node c.

[0010] It is further configured that: the button, the hysteresis debouncing unit and the button signal level conversion unit may include multiple groups.

[0011] It is further configured as follows: a TVS tube D1 is provided between the resistor R1 and the node a.

[0012] In summary, the utility model has the following beneficial effects: hardware debouncing is achieved through this button debouncing and interrupt circuit. At the same time, the circuit has very good scalability, and through simple repeating buttons, hysteresis debouncing units, and button signal level conversion units, the purpose of one interrupt port receiving multiple interrupt inputs can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 Schematic diagram of the circuit structure of the first embodiment;

[0014] Figure 2 It is a schematic diagram of the circuit structure of the second embodiment. DETAILED DESCRIPTION

[0015] The utility model is further described in detail below in conjunction with the accompanying drawings.

[0016] Embodiment 1: A button debouncing and interrupting circuit comprises a button S1, to which a hysteresis debouncing unit, a button signal level conversion unit and a button signal interrupt triggering unit are sequentially connected.

[0017] The hysteresis debouncing unit includes a power supply VCC, a resistor R1 and a TVS tube D1 which are connected in sequence. There is a node a between the resistor R1 and the TVS tube D1. One side of the node a is connected to the button S1, and the other side is connected to the resistor R2. A node b is provided at the rear end of the resistor R2. The rear end of the node b is connected to a capacitor C1, and the capacitor C1 is grounded. The rear end of the node b is also connected to the front end of the Schmitt trigger U1.

[0018] The button signal level conversion unit includes a power supply VCC, a transistor Q2, a resistor R7, a resistor R8, a resistor R9, a resistor R10, a capacitor C3, a button ON, and an input port connection point. The power supply VCC is connected to the emitter of the transistor Q2 and the resistor R7 respectively, and the rear end of the resistor R7 is connected to the base of the transistor Q2. The base of the transistor Q2 is also connected to the resistor R8, and the other end of the resistor R8 is a node c. Among them, the transistor Q2 is a PNP type transistor.

[0019] The emitter of the transistor Q2 is connected to a resistor R9, a node d is provided at the rear end of the resistor R9, a capacitor C3 and an input port connection point are respectively connected to the node d, the capacitor C3 is grounded, the input port connection point is also respectively connected to a button ON and a resistor R10, and the resistor R10 is grounded.

[0020] The button signal interrupt trigger unit includes a power supply VCC, a transistor Q1, a resistor R3, a resistor R4, a resistor R5, a resistor R6, a capacitor C2, a unidirectional diode D2, a button INT, and an interrupt port connection point. The transistor Q1 is a PNP transistor.

[0021] The power supply VCC is connected to the emitter of the transistor Q1 and the resistor R3 respectively, the rear end of the resistor R3 is connected to the base of the transistor Q1, the base of the transistor Q1 is connected to the resistor R4, a unidirectional diode D2 is provided at the other end of the resistor R4, and the other end of the unidirectional diode D2 is connected to the node c.

[0022] The emitter of transistor Q1 is connected to resistor R5, a node e is set at the rear end of resistor R5, node d is respectively connected to the interrupt port connection point and capacitor C2, and the capacitor C2 is grounded; the input port connection point is also respectively connected to button INT and resistor R6, and resistor R6 is grounded.

[0023] Embodiment 2: This embodiment is substantially the same as Embodiment 1, except that the button, hysteresis debouncing unit and button signal level conversion unit may include multiple groups, and the unidirectional diode D2 of the same button signal interrupt trigger unit is connected to the node c, so as to achieve the purpose of triggering multiple groups of circuits by a single button signal interrupt trigger unit.

[0024] Here’s how it works:

[0025] When button S1 is not pressed, because the upper resistor R1 is pulled up to the VCC power supply, the circuit network (a) is at a high level, (b) is at a high level, and (c) after passing through the Schmitt trigger is at a low level; because the base of the PNP transistor Q2 is at a low level, the transistor Q2 is turned on, and the network (d) output by the button signal level conversion unit is at a high level, which is connected to the input terminal of the microprocessor MCU as a button input.

[0026] Similarly, the button signal interrupt trigger unit output network (e) is high level, connected to the microprocessor MCU interrupt port as interrupt input.

[0027] When button S1 is pressed, network (a) is pulled to GND, low level, network (b) is low level, and (c) after passing through the Schmitt trigger is high level; because the base of PNP transistors Q1 and Q2 is high level, transistors Q1 and Q2 are cut off, and network (d) output by the button signal level conversion unit and network (e) output by the button signal interrupt trigger unit are low level.

[0028] When button S1 is released, network (a) is pulled to a high level by the pull-up resistor R1, network (b) is at a high level, and (c) after passing through the Schmitt trigger is at a low level; because the bases of PNP transistors Q1 and Q2 are at a low level, transistors Q1 and Q2 are turned on, and network (d) output by the button signal level conversion unit and network (e) output by the button signal interrupt trigger unit are at a high level.

[0029] The hysteresis and debounce part of this circuit mainly uses the hysteresis characteristics of the Schmidt trigger, which can suppress small-amplitude voltage changes caused by input signals or external interference to a certain extent, thereby avoiding false operations. It can effectively eliminate input signal jitter caused by mechanical switches, etc., and ensure the stability of the output signal.

[0030] In the actual circuit, the diode D2 increases the level difference. When a button is pressed, the button signal interrupt trigger unit will get the signal earlier than the button signal level conversion unit. When the button is released, the button signal interrupt trigger unit will get the signal later than the button signal level conversion unit. There is a level difference of a few tenths of a volt (diode voltage drop), which has a certain hardware debouncing effect. When there are multiple button inputs, the diodes (D2, D4...) have an "AND" logic effect, realizing that one interrupt port responds to multiple button inputs.

[0031] Through the above circuit, button debouncing and interruption can be achieved. If there are multiple buttons, it can also be easily expanded.

[0032] This specific embodiment is merely an explanation of the present invention and is not a limitation of the present invention. After reading this specification, those skilled in the art may make non-creative modifications to the present embodiment as needed, but such modifications are protected by patent law as long as they are within the scope of the claims of the present invention.

Claims

1. A button debouncing and interrupting circuit, characterized in that: It includes a button S1, on which a hysteresis debouncing unit, a button signal level conversion unit and a button signal interrupt triggering unit are sequentially arranged; the hysteresis debouncing unit includes a Schmitt trigger, and a node c is arranged at the rear end of the Schmitt trigger; the button signal interrupt triggering unit includes an interrupt port connection point and a unidirectional diode D2, and the unidirectional diode D2 is connected to the node c; the button signal level conversion unit includes an input port connection point, and the input port connection point is connected to the node c.

2. A button debouncing and interrupting circuit according to claim 1, characterized in that: The hysteresis debouncing unit includes a power supply VCC and a resistor R1 connected in sequence, a node a is arranged at the rear end of the resistor R1, one side of the node a is connected to the button S1, and the other side is connected to the resistor R2, a node b is arranged at the rear end of the resistor R2, a capacitor C1 is connected to the rear end of the node b, and the capacitor C1 is grounded; the rear end of the node b is also connected to the front end of the Schmitt trigger U1.

3. A button debouncing and interrupting circuit according to claim 1, characterized in that: The button signal level conversion unit includes a power supply VCC and a transistor Q2, the power supply VCC is respectively connected to the emitter of the transistor Q2 and the resistor R7, the rear end of the resistor R7 is connected to the base of the transistor Q2, the base of the transistor Q2 is also connected to a resistor R8, and the other end of the resistor R8 is connected to a node c; the collector of the transistor Q2 is connected to a resistor R9, and a node d is set at the rear end of the resistor R9, and the node d is respectively connected to a capacitor C3 and an input port connection point, the capacitor C3 is grounded, and the input port connection point is also respectively connected to button ON and a resistor R10, and the resistor R10 is grounded.

4. A button debouncing and interrupting circuit according to claim 1, characterized in that: The button signal interrupt trigger unit includes a power supply VCC and a transistor Q1, the power supply VCC is respectively connected to the emitter of the transistor Q1 and the resistor R73, the rear end of the resistor R3 is connected to the base of the transistor Q1, the base of the transistor Q1 is also connected to a resistor R4, a unidirectional diode D2 is arranged at the rear end of the resistor R4, the collector of the transistor Q1 is connected to a resistor R5, a node e is arranged at the rear end of the resistor R5, and the node d is respectively connected to the interrupt port connection point and the capacitor C2, and the capacitor C2 is grounded; the input port connection point is also respectively connected to the buttonINT and the resistor R6, and the resistor R6 is grounded; the diode D2 is connected to the node c.

5. A button debouncing and interrupting circuit according to claim 1, characterized in that: The buttons, the hysteresis debouncing unit and the button signal level conversion unit may include a plurality of groups.

6. A button debouncing and interrupting circuit according to claim 2, characterized in that: A TVS tube D1 is provided between the resistor R1 and the node a.