Method and circuit for detecting press key
A detection method and detection circuit technology, applied in the direction of dynamic coding, etc., can solve the problems of multi-single-chip microcomputer IO port resources, high cost and occupation of single-chip microcomputers, and achieve the effects of simple circuit structure, improved reliability, and reduced cost
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0025] figure 1 It is a flowchart of the button detection method of the present invention, and the method includes the following steps:
[0026] a) Set the button detection circuit: ground one end of multiple buttons, connect the other ends of the buttons through voltage divider resistors of different resistances to form a voltage signal detection terminal, and pass the voltage signal detection terminal through a resistor Then connect it to the power supply, and connect the interrupt input IO port and A / D conversion input IO port of the single-chip microcomputer to the voltage signal detection terminal;
[0027] b) Detect whether there is a key press: set the interrupt input IO port as a falling edge trigger interrupt, and use the interrupt input IO port of the microcontroller to detect the voltage at the voltage signal detection terminal. If no key is pressed, the interrupt input IO port of the microcontroller The detected voltage is equal to the power supply voltage, and the sing...
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