Unlock instant, AI-driven research and patent intelligence for your innovation.

De-jittering button detection method capable of avoiding omission of events

A detection method and button technology, applied in the direction of dynamic coding, etc., can solve problems such as omissions, and achieve the effect of avoiding omissions and reducing omissions

Inactive Publication Date: 2014-12-03
山东神戎电子股份有限公司
View PDF2 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method will introduce a delay of 5ms ~ 10ms. If other events occur during this period, it will be missed.

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
  • De-jittering button detection method capable of avoiding omission of events
  • De-jittering button detection method capable of avoiding omission of events
  • De-jittering button detection method capable of avoiding omission of events

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0012] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0013] When the button is pressed or released, it will vibrate for a certain period of time, set it to ms~ ms, usually 5ms ~ 10ms, in order to avoid the occurrence of misoperation caused by key vibration, hardware or software will be used to eliminate the key vibration. When using software to delay and eliminate jitter, the current general method is to execute a 5ms~10ms delay subroutine when the state of the button is detected to change, but if an important time occurs during the delay period, It may be missed, such as the sending and receiving of serial port data, which may cause the omission of important events.

[0014] In addition to the key detection subroutine, a main program also includes other subroutines. If the execution cycles of the key detection subroutine and other subroutines are respectively ms, ms, the shaking time period of th...

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 provides a de-jittering button detection method capable of avoiding omission of events. The jittering time of a button ranges from A to B ms, a main program comprises a button detection subprogram and another subprogram, and the execution periods of the button detection subprogram and the other subprogram are respectively t1 and t2 ms. The method is characterized in that time delay of a button state in the button detection subprogram is realized by executing the button detection subprogram and the other subprogram for n times, and n satisfies that A / (t1+t2)<n<B / (t1+t2). The button detection subprogram and the other subprogram are simultaneously executed for n times to reach the aim of time delay according to the execution periods of the detection subprogram and the other subprogram and under the condition that switch de-jittering time delay is satisfied, thereby avoiding the defect that no operation is executed in traditional button de-jittering time delay, and avoiding omission of significant events in the button de-jittering period.

Description

technical field [0001] The present invention relates to a key debounce detection method capable of avoiding event omission, and more specifically, to a key debounce detection method capable of avoiding event omission by continuously executing key detection subroutines and other subroutines to realize delay . Background technique [0002] The moment when the mechanical contact of the key is opened and closed is accompanied by a series of vibrations. In order to avoid the misoperation of the equipment, it is necessary to take measures to eliminate the vibration of the key. There are two methods of hardware or software. [0003] The hardware debounce method will increase the cost of the equipment. The commonly used software debounce method is to execute a delay program after detecting a key action, usually a delay of 5ms to 10ms, so that the state of the key is detected again after the jitter disappears. If the states of the two keys before and after are consistent, it is cons...

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): H03M11/20
Inventor 刘明单洪朋赵莹陈乃澍
Owner 山东神戎电子股份有限公司