Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Key switch buffeting elimination circuit used for GPIO interface

A debounce circuit and button technology, which is applied in keyboard coding, pulse shaping, etc., can solve the problems of complex steady-state circuit structure, general debounce effect of RC filter circuit, resource occupation, etc., and achieve good debounce effect, reliable work, The effect of simple structure

Inactive Publication Date: 2018-02-13
CIG SHANGHAI
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The technical problem to be solved by the present invention is to overcome that the software debounce program in the prior art needs to occupy resources, while the RC filter circuit in the hardware debounce circuit has a simple structure but the debounce effect is general, and the steady state circuit has a good debounce effect but the structure Complicated defects, providing a key switch debounce circuit for GPIO interface

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Key switch buffeting elimination circuit used for GPIO interface
  • Key switch buffeting elimination circuit used for GPIO interface
  • Key switch buffeting elimination circuit used for GPIO interface

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The present invention is further illustrated below by means of examples, but the present invention is not limited to the scope of the examples.

[0024] Such as figure 2 As shown, this embodiment relates to a key switch debounce circuit for a GPIO interface, the debounce circuit includes a charging circuit 1, a discharging circuit 2, a buffer U1 plus a shaping circuit 3 composed of a first resistor R1 and a capacitor C1 , wherein the charging circuit 1 includes a second resistor R2 and a diode D1, the two ends of the second resistor R2 are respectively used as the input terminal A and the control terminal B of the charging circuit 1, and the cathode of the diode D1 is used as The output terminal C of the charging circuit 1, the input terminal A of the charging circuit 1 is connected to the first working power supply VCC1, the anode of the diode D1 is connected to the control terminal B of the charging circuit 1, and the discharging circuit 2 includes a first Three res...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a key switch buffeting elimination circuit used for a GPIO interface. The buffeting elimination circuit comprises a charge circuit, a discharge circuit and a capacitor. When akey switch is in an un-pressed state, the discharge circuit is in an off state, and the charge circuit charges the capacitor; when the key switch is in a pressed state, the discharge circuit signallydischarges electric quantity of the capacitor through the key switch, and the charge circuit is bypassed to the signal through the key switch; besides, the buffeting elimination circuit further comprises a buffer which is used as a reshaping circuit, and the buffer is used for reshaping voltage waveforms at the two ends of the capacitor, and therefore, the GPIO interface obtains a switch signal with good waveform quality. The buffeting elimination treatment disclosed by the invention does not need to occupy processor or controller resources, and the buffeting elimination circuit is simple in structure, is stable and reliable in work, and has a very good buffeting elimination effect.

Description

technical field [0001] The invention relates to a key switch debounce circuit for a GPIO interface. Background technique [0002] In the circuit design and development of embedded systems, the GPIO (General Purpose Input Output) interface of the processor or controller is often used to detect external input switch signals such as key switch signals as reset (reset) signals, recovery The factory setting signal, mode switching signal, etc. realize related functions. Such as figure 1 As shown, at the moment of pressing the mechanical key switch, several millisecond-level jitter signals will be generated due to mechanical jitter (see figure 1 The jitter signal of the middle button), when the hardware debounce processing is not performed, the jitter signal becomes several switch signals after passing through the GPIO interface with digital circuit characteristics (see figure 1 In this case, if such a switching signal is directly used to perform subsequent operations, multiple ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H03K5/02H03M11/02
CPCH03K5/02H03M11/02
Inventor 李云
Owner CIG SHANGHAI
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products