摘要
矩阵式键盘乃是当今使用最为广泛的键盘模式,该系统以N个端口连接控制N*N个按键,及时在LED数码管上,单片机控制的是键盘显示系统,该系统可以对不同的按键进行实时显示,其核心是单片机和键盘矩阵电路部分,主要对按键与显示电路的关系、矩阵式技术及设备系统的硬件、软件等各个部分进行实现。掌握单片机的基础和实际应用来说意义重大,此外单片机具有性能高、速度快、体积小、价格低、稳定可靠、应用广泛、通用性强等突出优点。
4*4矩阵式键盘采用AT89C51单片机为核心,主要由矩阵式键盘电路、译码电路、显示电路等组成,软件选用C语言编程。单片机将检测到的按键信号转换成数字量,显示于LED显示器上。该系统灵活性强,易于操作,可靠性高,将会有更广阔的开发前景。
关键字:AT89C51芯片;矩阵式;LED数码管;键盘。
Abstract
Matrix keyboard is today the most widely used keyboard mode, the system is connected to the N port control N*N keys, and in the LED digital tube, MCU control of the keyboard display system, this system can real-time display of the different key, its core is the single chip machine and a keyboard matrix circuit part, mainly the buttons and display circuit, the relationship between matrix technology and equipment system hardware, software and other parts of the. In addition, SCM has the advantages of high performance, high speed, small size, low price, stable and reliable, wide application, high versatility.
4*4 matrix keyboard AT89C51 microcontroller as the core, mainly composed of circuit matrix keyboard circuit, decoding circuit, display, the software uses C language programming. SCM will push the detected signal is converted into digital quantity, shown on the LED display. The system is flexible, easy operation, high reliability; there will be more broad prospects of development.
Keywords: AT89C51 chip; matrix; LED digital tube; keyboard。
目录
摘要 I
Abstract II
第一章、绪论 1
1.1国内外现状和发展趋势 1
1.2需求分析 2
1.3本章小结 3
第二章、矩阵键盘 4
2.1矩阵键盘的定义和概述 4
2.2矩阵键盘的主要元器件介绍以及选择 4
2.3矩阵键盘的编码 11
2.4矩阵键盘按键的分类 12
2.5矩阵键盘按键输入原理 12
2.6矩阵键盘按键结构与特点 12
2.7键盘的工作方式 13
2.8本章小结 15
第三章、矩阵键盘的概要设计 16
3.1设计目的 16
3.2设计要求 16
3.3设计任务 17
3.4实验原理 17
3.5实验步骤 18
3.6本章小结 18
第四章、矩阵键盘的硬件设计 19
4.1设计思想 19
4.2设计结构与工作原理 20
4.3识别方法 20
4.4原理图及功能电路介绍 22
4.5仿真结果及分析 23
4.6本章小结 23
第五章、矩阵键盘的软件设计 24
5.1设计思想 24
5.2软件流程图 24
5.3源程序 25
5.4本章小结 27
第六章、调试运行 28
6.1指标测试 28
6.2本章小结 30
第七章、结束语 32
7.1全文总结 32
7.2展望 32
7.3心得体会 33
致谢 34
参考文献 35


