摘要
针对现有键盘电路拓展性不强、扫描识别时间延迟较大问题,优化设计了一种基于51单片机的键盘电路,分析了优化后键盘电路的硬件结构和软件识别方法,给出了扫描式键盘与优化后键盘电路的识别时间对比。优化后的键盘电路在增加了电路扩展性的同时,相比于扫描式按键识别方式,大大减少了软件识别时间,适用于按键数量较多且单个控制的工程应用。
A keyboard circuit based on 51 single chip microcomputer was optimized to solve the problems of low expansion of existing keyboard circuit and great time delay of scanning recognition.This paper analyzes the hardware structure and software identification method of the optimized keyboard circuit,and provides the comparison of the recognition time between the scanning keyboard and the optimized keyboard circuit.The optimized keyboard circuit not only increases the circuit expansion,but also greatly reduces the software recognition time compared with the scan key recognition method.It is suitable for the engineering application with more keys and single control.
作者
郭弘泽
李敏
陈丽霞
杨建利
王虹
Guo Hongze;Li Min;Chen Lixia;Yang Jianli;Wang Hong(College of Electrical Information and Engineering,Hebei University,Baoding 071002,China;Virtual Simulation Experiment Teaching Center of Photovoltaic Technology,Hebei University,Baoding 071002,China;Key Laboratory of Hebei Digital Medical Engineering, Hebei University, Baoding 071002, China)
出处
《黑龙江科学》
2022年第8期54-56,59,共4页
Heilongjiang Science
基金
国家自然科学基金资助项目(62006067)
2021年教育部第二批产学研项目“新工科背景下模拟电路实验课程内容建设与教学实践”
河北大学第三批“精品实验项目”(2021-BZ-JPSY26,2021-BZ-JPSY27,2021-BZ-JPSY28)
项目名称:基于模糊控制的智能新风系统设计(202151001010544)。
关键词
单片机
键盘
电路优化
二极管
延迟
扫描
扩展
显示
端口
Single chip microcomputer
Keyboard
Circuit optimization
Diode
Delay
Scanning
Extension
Display
Port