Switch and input signal overshoot correction circuit thereof

By connecting series resistors and parallel filter capacitors in the mechanical key circuit, the problem of voltage overshoot when the mechanical key is pressed is solved, protecting the integrated IC and maintaining signal stability.

CN221767592UActive Publication Date: 2024-09-24ULTIMATE IOT (HENAN) TECHNOLOGY LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202320122892.7
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-02-06
Publication Date
2024-09-24
Estimated Expiration
2033-02-06

AI Technical Summary

Technical Problem

When a mechanical button is pressed, it may cause the voltage of the integrated IC input to overshoot, damaging the device.

Method used

When the key switch is closed, eliminate the problem by connecting a resistor of appropriate size (100-200Ω) in series between the signal input terminal and the output terminal, setting a pull-up resistor between the signal output terminal and the circuit power supply, and connecting the filter capacitor in parallel. Overshoot voltage generated by LC oscillator circuit.

Benefits of technology

It effectively reduces the overshoot amplitude, keeps the input voltage of the integrated IC within the allowable range, protects the integrated IC from being damaged, and ensures the stability of the key signal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221767592U
    Figure CN221767592U
Patent Text Reader

Abstract

The utility model relates to the field of mechanical key input signal detection, and discloses a switch and an input signal overshoot correction circuit thereof, which comprise a key switch and a signal output end used for being connected with a sampling pin of a processor so as to output a key trigger signal to the processor, the first end of the key switch is connected with a circuit power supply, and the second end is grounded; the signal output end is arranged between the first end of the key switch and the circuit power supply so as to pull down the potential of the signal output end when the key switch is closed; and a resistor is connected in series between the first end of the key switch and the signal output end. According to the scheme, a resistor with a proper size is connected in series in an existing key circuit, so that overshoot voltage generated by an LC oscillation circuit in the existing circuit is eliminated, the overshoot amplitude is reduced, the input voltage of an integrated circuit (IC) is enabled to be within an allowable range, and the integrated circuit is protected from being damaged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model belongs to the field of mechanical key input signal detection, and in particular relates to a switch and an input signal overshoot correction circuit thereof. Background Art

[0002] As IoT devices are gradually widely used, more and more integrated ICs are emerging, and the precision of integrated ICs is getting higher and higher. The requirements of integrated ICs for peripheral devices also vary due to differences in process technology; the minimum input voltage of integrated ICs is currently widely recognized to be -0.3V, and devices will be damaged if it is lower than -0.3V.

[0003] The following situations exist when testing the mechanical buttons of integrated ICs: Figure 1 The key detection principle circuit diagram of the prior art shown in the figure includes an MCU, an I / O pin, and a key switch (mechanical key); the key switch includes two pairs of contacts 1-4 and 2-3, one end of the key switch is connected to the chip power supply and the I / O pin, and the other end of the key switch is grounded. Since the mechanical key is a non-ideal device, there is a certain equivalent inductance and equivalent capacitance, plus the equivalent capacitance and inductance of the signal line, an LC oscillation circuit is formed inside the mechanical key. The equivalent circuit diagram is shown in FIG. Figure 2 As shown, L01 is the equivalent inductance of the key switch, R01 is the equivalent internal resistance of the key switch, R02 is the equivalent resistance of the line, and R03 is the equivalent internal resistance of the MCU; the key switch is equivalent to a circuit composed of the equivalent inductance L01 and the equivalent internal resistance R01.

[0004] When a mechanical button is pressed, an oscillating signal may appear on the signal, and the signal voltage may also be lower than -0.3V, resulting in a significant voltage overshoot output to the integrated IC, causing damage to the device. Utility Model Content

[0005] The utility model provides a switch and an input signal overshoot correction circuit thereof, which are used to solve the problem that when the existing mechanical key is pressed, the external output voltage overshoots significantly.

[0006] In order to solve the above technical problems, the technical solutions included in the present utility model and the beneficial effects corresponding to the technical solutions are as follows:

[0007] The utility model provides a solution for a switch input signal overshoot correction circuit, comprising a signal input end for connecting contacts at both ends of a key switch and a signal output end for connecting a processor sampling pin to output a key trigger signal to the processor; a first end of the signal input end is connected to a circuit power supply, and a second end is grounded; the signal output end is arranged between the first end of the signal input end and the circuit power supply to realize lowering the potential of the signal output end when the key switch is closed; and a resistor is also arranged in series between the first end of the signal input end and the signal output end.

[0008] The beneficial effect of the above technical solution is: this solution is to connect a resistor of appropriate size in series in the existing key circuit to eliminate the overshoot voltage generated by the LC oscillation circuit in the existing circuit, reduce the overshoot amplitude, make the input voltage of the integrated IC within the allowable range, and protect the integrated IC from being damaged.

[0009] Furthermore, a pull-up resistor is arranged in series between the signal output terminal and the circuit power supply.

[0010] Furthermore, a filter capacitor is also arranged in parallel in the branch formed by the signal input terminal and the series resistor.

[0011] Furthermore, the resistance value of the resistor is in the range of 100-200Ω.

[0012] The resistance value cannot be too large, otherwise the integrated IC will not be recognized; the resistance value cannot be too small, otherwise the overshoot voltage cannot be eliminated, causing damage to the integrated IC.

[0013] The utility model also provides a switch solution, including a key switch and a signal output end for connecting to a processor sampling pin to output a key trigger signal to the processor; the first end of the key switch is connected to a circuit power supply, and the second end is grounded; the signal output end is arranged between the first end of the key switch and the circuit power supply to lower the potential of the signal output end when the key switch is closed; a resistor is also arranged in series between the first end of the key switch and the signal output end.

[0014] The beneficial effect of the above technical solution is: this solution is to connect a resistor of appropriate size in series in the existing key circuit to eliminate the overshoot voltage generated by the LC oscillation circuit in the existing circuit, reduce the overshoot amplitude, make the input voltage of the integrated IC within the allowable range, and protect the integrated IC from being damaged.

[0015] Furthermore, a pull-up resistor is connected in series between the key switch and the circuit power supply.

[0016] Furthermore, a filter capacitor is also arranged in parallel in the branch formed by the key switch and the series resistor.

[0017] Furthermore, the resistance value of the resistor is in the range of 100-200Ω.

[0018] The resistance value cannot be too large, otherwise the integrated IC will not be recognized; the resistance value cannot be too small, otherwise the overshoot voltage cannot be eliminated, causing damage to the integrated IC. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a schematic diagram of a mechanical key detection circuit in the prior art;

[0020] Figure 2 It is a schematic diagram of an equivalent circuit of a mechanical key detection circuit in the prior art;

[0021] Figure 3 It is a schematic diagram of the current flow direction and the positive and negative directions of the equivalent inductance voltage at the time T0 when the mechanical button is pressed in the prior art;

[0022] Figure 4 It is a schematic diagram of the current flow direction and the positive and negative directions of the equivalent inductance voltage at the moment T1 when the mechanical button is pressed in the prior art;

[0023] Figure 5 It is a schematic diagram of an equivalent circuit after a mechanical key is pressed in the prior art;

[0024] Figure 6 This is a schematic diagram of a mechanical key detection circuit in the utility model;

[0025] Figure 7 It is a schematic diagram of an equivalent circuit after the mechanical button in the utility model is pressed;

[0026] Figure 8 It is the measured waveform diagram of the overshoot voltage at time T1 in the prior art;

[0027] Fig. 9 This is a measured waveform diagram of the overshoot voltage at time T1 after the series resistor is connected in the utility model. DETAILED DESCRIPTION

[0028] The specific implementation of the utility model will be further described below in conjunction with the accompanying drawings.

[0029] Circuit Example:

[0030] When the mechanical button is pressed, the button detection equivalent circuit is as follows Figure 2 As shown, it includes a signal input terminal for connecting the contacts at both ends of the key switch, and a signal output terminal for connecting the processor sampling pin to output a key trigger signal to the processor; a key equivalent inductor L01 and a key equivalent internal resistance R01 are connected in series on the branch between the signal input terminal and the signal output terminal; a filter capacitor C1 is connected in parallel with the branch; a pull-up resistor R1 is connected in series between the signal input terminal and the power supply VCC; and a line equivalent resistor R02 is connected in series between the signal output terminal and the IO port of the MCU.

[0031] When the button is pressed, the signal voltage of the IO port will quickly drop to 0 voltage. At this time, the equivalent inductance energy storage of the button reaches the maximum, and the inductance will hinder the reduction of the inductance charging current. At this time, the voltage of the IO port is negative relative to the initial state. The specific voltage is directly related to the voltage division, oscillation frequency and equivalent resistance of the filter capacitor C1.

[0032] When the mechanical button is pressed T0, the current flow direction of the button detection circuit and the positive and negative directions of the equivalent inductance induced voltage are as follows Figure 3 shown.

[0033] After the equivalent inductor is fully charged at time T1, due to the inductor induction effect, the current direction remains unchanged, but for the voltage direction of the MCU equivalent internal resistance R03, the positive and negative poles of the voltage are reversed. The current flow direction of the key detection circuit and the positive and negative directions of the equivalent inductor induction voltage are as follows: Figure 4 shown.

[0034] The capacitance value of the conventionally designed filter capacitor C1 is generally 0.1uF. After testing, the frequency f of the oscillation waveform generated by pressing the button is about 5MHz. The capacitive reactance R of the filter capacitor C1 is: RC1=1 / 2πfc, which is about 0.32Ω; the filter capacitor C1 is in parallel with the line equivalent resistance R02 and the MCU equivalent internal resistance R03. The parallel resistance R0 is R0=C1*(R02+R03) / (C1+R02+R03). Since R02 and R03 are in series, the voltage UR03 across the MCU equivalent internal resistance R03 must be less than the voltage UC1 across the filter capacitor C1. The equivalent circuit at this time is as follows Figure 5 shown.

[0035] The voltage across the parallel resistor R0 is UR0 = R0 / (R0+R01)*UL01, where UL01 is the voltage across the key equivalent inductance L01. The calculation and analysis are performed in sequence. The larger R01 is, the smaller UR0 is, and the smaller UR03, that is, the voltage at the IO port is. Since the key equivalent resistance is relatively small, generally in the milliohm level, which is equivalent to R0, the voltage overshoot at UR03 is obvious. Therefore, an additional series circuit R100 is connected between the first end of the key switch and the signal output end to reduce the overshoot amplitude. At this time, the key detection circuit is as follows: Figure 6 shown.

[0036] At the same time, the equivalent circuit after the key detection circuit is stable is as follows Figure 7 As shown, at this time, the voltage at IO = R100 / (R100+R1)*VCC, so the value of R100 cannot be too large, otherwise the MCU cannot recognize the high and low levels; R100 / (R100+R1)*VCC should be less than the highest recognition voltage of the MCU IO low level, which is taken as the maximum value of R100.

[0037] For example, the maximum failure voltage of the low level is 1.8V, VCC is 3.3V, and the pull-up resistor R1 is 10K, then R100≤12K. In general, in order to avoid misidentification caused by power supply voltage fluctuations, the actual series R100 value is generally 100-200Ω. At this time, the voltage at the key detection port is 0.03-0.06V after the circuit stabilizes.

[0038] When the pull-up resistor R1 = 4.7K and the filter capacitor C1 = 0.1uF, the maximum overshoot is -0.6V. The actual overshoot waveform is as follows: Figure 8 shown.

[0039] When the series resistance R100 = 200Ω, according to the above formula, the overshoot voltage at time T1 during key operation is about -0.005V, and the lowest voltage after the key is stable is about 0.134V. The measured waveform is as follows Fig. 9 As shown, the falling speed of the signal voltage will be affected, and the final voltage value will not reach 0V due to the newly added resistance, but the signal will no longer oscillate or overshoot.

[0040] The utility model increases the series resistance of the key to "increase" the equivalent internal resistance of the key, reduce the charging current and speed of the inductor, and reduce the probability of oscillation as much as possible. Even if oscillation occurs, the voltage at the signal end can be reduced to an acceptable range through equivalent voltage division.

[0041] Switch Example:

[0042] The hardware structure and specific implementation method of a switch of the present invention have been clearly introduced in the detection circuit embodiment and will not be described again here.

[0043] The above is a specific implementation method of the utility model, but the utility model is not limited to the described implementation methods. Under the idea given by the utility model, the technical means in the above embodiments are transformed, replaced, and modified in a way that is easy for a person skilled in the art to think of, and the effect is basically the same as the corresponding technical means in the utility model, and the purpose of the utility model is basically the same. The technical solution formed in this way is formed by fine-tuning the above embodiments, and this technical solution still falls within the protection scope of the utility model.

Claims

1. A switching input signal overshoot correction circuit, It is characterized in that It comprises a signal input end for connecting contacts at both ends of a key switch and a signal output end for connecting a processor sampling pin to output a key trigger signal to the processor; the first end of the signal input end is connected to a circuit power supply, and the second end is grounded; the signal output end is arranged between the first end of the signal input end and the circuit power supply to lower the potential of the signal output end when the key switch is closed; a resistor is also arranged in series between the first end of the signal input end and the signal output end, and the resistance value of the resistor is set to a size that can eliminate the overshoot voltage generated by the LC oscillation circuit in the existing circuit.

2. The switch input signal overshoot correction circuit according to claim 1, It is characterized in that A pull-up resistor is also arranged in series between the signal output terminal and the circuit power supply.

3. The switch input signal overshoot correction circuit according to claim 2, It is characterized in that The branch formed by the signal input terminal and the series resistor is also provided with a filter capacitor in parallel.

4. The switch input signal overshoot correction circuit according to claim 3, It is characterized in that The resistance value of the resistor is in the range of 100-200Ω.

5. A switch, It is characterized in that It comprises a key switch and a signal output end for connecting to a processor sampling pin to output a key trigger signal to the processor; the first end of the key switch is connected to a circuit power supply, and the second end is grounded; the signal output end is arranged between the first end of the key switch and the circuit power supply to lower the potential of the signal output end when the key switch is closed; a resistor is also arranged in series between the first end of the key switch and the signal output end, and the resistance value of the resistor is set to a size that can eliminate the overshoot voltage generated by the LC oscillation circuit in the existing circuit.

6. The switch according to claim 5, It is characterized in that A pull-up resistor is also arranged in series between the key switch and the circuit power supply.

7. The switch according to claim 6, It is characterized in that The branch formed by the key switch and the series resistor is also provided with a filter capacitor in parallel.

8. The switch according to claim 7, It is characterized in that The resistance value of the resistor is in the range of 100-200Ω.