There will be switching jitter during the use of key switches. How can these problems be solved? Today we will teach you these methods. Please pay attention to these problems and ensure the normal use of key switches.
Reasons for severe jitter of key switch:
The scanning frequency of dynamic display can't be less than 25Hz in theory, but in practice it usually needs more than 30Hz to have better display effect. It's normal to display when you don't press the button. The display jitters when you press the button because the scanning frequency can meet the display requirement when you don't press the button. After pressing, the scanning frequency can't meet the requirement because of the increase of program and a lot of delay, so the phenomenon of "jitter" appears.
Solutions to the severe jitter of key switch:
The key to solve the problem is how to reduce the running time of the key program to ensure that the scanning program can scan on time.
It is suggested that the program of the scanning display part should be placed in the interrupt processing part of the timer so as to ensure the scanning frequency. In addition, the delay in the program of the key processing part should be changed to a timing interrupt.
Above is the key switch in the use of jitter problems can be used to solve this method, please understand and learn in detail.