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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


