Key jitter-removing method, device and storage medium
A storage medium and button technology, applied in the field of communication, can solve problems such as button signal glitches, and achieve the effect of solving glitches
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0029] like figure 1 As shown, a preferred embodiment of the present invention provides a button debounce method, the shown method includes steps:
[0030] Step 110, receiving a first key signal.
[0031] Specifically, when the user presses the mechanical key and the pressing operation is an effective operation, the circuit where the mechanical key is located is triggered to generate a first key signal and receive the first key signal.
[0032] Further, according to the voltage condition of the circuit, the first button signal may be at a high level or at a low level.
[0033] Further, according to the first key signal, the device may respond to an operation corresponding to the first key signal.
[0034] Step 120, when it is detected that the first key signal is at a high level, the timer is reset and starts counting.
[0035] Specifically, when it is detected that the first button signal is at a high level, the timer is reset to 0 and starts counting.
[0036] Step 130, ...
no. 2 example
[0053] like Figure 4 As shown, another preferred embodiment of the present application provides a button debounce device, which includes:
[0054] The receiving module 410 is configured to receive the first key signal.
[0055] Specifically, when the user presses the mechanical key, and the pressing operation is an effective operation, the circuit where the mechanical key is located is triggered to generate a first key signal, and the receiving module 410 receives the first key signal.
[0056] Further, according to the voltage condition of the circuit, the first button signal may be at a high level or at a low level.
[0057] Further, according to the first key signal, the device may respond to an operation corresponding to the first key signal.
[0058]The timing module 420 starts timing when it detects that the first button signal is at a high level.
[0059] Specifically, when it is detected that the first button signal is at a high level, the timing module 420 resets ...
no. 3 example
[0070] Another embodiment of the present application provides a device. Based on the foregoing embodiments, the device includes a button, a timer, a processor, and a memory. Wherein, the button is used to conduct with the button circuit and generate a button signal, the timer is used to detect the button signal and time the button signal, and the processor is used to execute the button debounce program stored in the memory to achieve the following steps:
[0071] receiving the first button signal;
[0072] When detecting that the first button signal is at a high level, the timer is reset and starts counting;
[0073] Judging whether the time counted by the timer reaches a preset time threshold; if yes, the key trigger condition is met; if not, the key trigger condition is not met.
[0074] Specifically, when the user presses the mechanical key and the pressing operation is an effective operation, the circuit where the mechanical key is located is triggered to generate a first...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com