Processing method for preventing shaking and blocking of mechanical key
A processing method and anti-vibration technology, which is applied in the direction of electrical components, electronic switches, electric switches, etc., can solve the problems affecting the real-time performance of products, mechanical button vibration, waiting and delay occupying too much MCU, etc., to achieve good application prospects, The method is reliable and solves the effect of not responding in time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0028] The present invention will be further described below in conjunction with the accompanying drawings.
[0029] Such as figure 2 As shown, the processing method for mechanical key anti-shake and blocking of the present invention comprises the following steps,
[0030] Step (A), the main function scans the key state flags of each key in the main loop to determine whether the key condition is met, and if the key condition is met, the operation of the key is executed, and the flag bit of the key is cleared after the key operation is completed It is in the normal lifting state;
[0031] In step (B), the timer regularly scans each button and judges the status flag of the button, so as to set a new button flag, and repeats step (A) to complete the operation of each button. The timer is a 10ms timer. It is established to regularly scan each button and judge the status flag of the button. It is also used to record and consider the process time of the button, and will not cause...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


