您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 电子设计/PCB > 51单片机的矩阵键盘协处理器设计
I摘要各种数字系统的终端设备都需要对十进制信息进行数码显示,而LED是最常用的显示器件。在大规模可编程逻辑器件CPLD的硬件基础上,根据显示译码器原理运用VHDL硬件描述语言对LED的通用七段显示译码器进行了设计,同时使用ISE开发软件对设计电路进行了时序仿真和功能验证。此设计在大规模数字电路的数码显示中更为实用,具有设计简单使用灵活和工作可靠等优点。通过本次设计,可以体现出可编程逻辑器件CPLD等在电子设计领域的广泛应用,设计者可以方便的设计出符合要求的芯片或应用系统。相对于普通键盘,矩阵键盘有效的提高按键操作的效率,它可以提高系统的准确行,有利于资源的节约。对操作者的要求也比较低。能够准时、时实、高效的显示按键信息。4*4矩阵键盘式键盘采用AT89S51单片机作为核心控制器件,以按键信号作为简单的输入信息,利用8段数码管和VHDL语言编程,单片机将检测到的按键信号转换成数字量。最种在数码管显示了0-F,并且在程序设计中利用按键扫描技术来对按键进行消抖。该设计实现了对矩阵键盘简单的信息输入的识别。关键词:VHDL;LED显示;CPLD;矩阵键盘IIAbstractTerminalequipmentdigitalsystemneedstodecimalinformationdigitaldisplay,whileLEDarethemostcommondisplaydevices.Inthehardwarefoundationoflarge-scaleprogrammablelogicdeviceCPLD,accordingtotheprincipleofdisplaydecoderusingVHDLhardwaredescriptionlanguageforgeneralLEDsevensegmentdisplaydecoderisdesigned,andthecircuitsaresimulatedtovalidatetheuseofISEsoftware.Thisdesigninlargescaledigitalcircuitdigitaldisplaymorepractical,hastheadvantagesofsimpledesign,flexibleandreliable.Throughthisdesign,itcanseethatCPLDhasawidelyapplicationinelectronicarea.Thedesignachiporasystemexpediently.Comparedtoordinarykeyboard,matrixkeyboard,effectivelyimprovetheefficiencyofthekeyoperation,itcanimprovetheaccuracyforthesystem,isconducivetoresourcesaving.Theoperator'srequirementsarerelativelylow.ontime,whentherealandefficientdisplaykeyinformation.4*4matrixkeyboardkeyboardusingAT89S51singlechipasthecorecontroldevice,asasimpleinformationinputtokeysignal,theuseof8digitaltubeandVHDLlanguageprogramming.SCMwillpushthedetectedsignalintodigitalquantity.Thetotalinthedigitaltubedisplay0-F.Thedesignandimplementationoftherecognitionofinformationinputmatrixkeyboardsimple.Keywords:VHD;LEDdisplay;CPLD;matrixkeyboardIII目录1绪论....................................................................................................................................11.1课题背景....................................................................................................................11.2EDA的历史及发展...................................................................................................21.3课题意义....................................................................................................................42硬件介绍..............................................................................................................................52.151单片机简介...........................................................................................................52.1.151单片机的功能及引脚.................................................................................52.1.251单片机在课题中的运用.............................................................................72.2CPLD简介...............................................................................................................102.2.1CPLD的基本结构及特点.............................................................................102.2.2应用及发展趋势..........................................................................................112.2.3CPLD在本课题中的运用.............................................................................123VHDL语言及相关软件介绍............................................................................................153.1VHDL简介..............................................................................................................153.2ISE简介及工程设计流程.......................................................................................163.3KeilC51简介及HEX格式文件创建....................................................................183.3.1KeilC51简介.................................................................................................183.3.2HEX格式文件创建.......................................................................................203.4Easy51Pro简介.......................................................................................................20451单片机的显示协处理器设计.......................................................................................234.1课题任务..................................................................................................................234.2相关原理..................................................................................................................234.351单片机的显示协处理器的VHD代码设计......................................................244.4操作步骤..................................................................................................................32551单片机的矩阵键盘协处理器设计...............................................................................365.1课题任务..................................................................................................................365.2相关原理..................................................................................................................365.351单片机的矩阵键盘协处理器VHDL代码设计................................................37IV6结论..................................................................................................................................426.1单片机的显示协处理器设计结果..........................................................................426
本文标题:51单片机的矩阵键盘协处理器设计
链接地址:https://www.777doc.com/doc-4005770 .html