资源描述:
《基于fpga的矩阵键盘控制接口设计》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、摘要如今键盘的应用在我们的日常生活中随处都可以见到,例如,电脑键盘,手机,计算器等等。20世纪90年代,国际上电子和计算机技术较先进的国家,一直在积极探索新的电子电路设计方法,并在设计方法、工具等方面进行了彻底的变革,取得了巨大成功。在电子技术设计领域,可编程逻辑器件(如CPLD、FPGA)的应用,已得到广泛的普及,这些器件为数字系统的设计带来了极大的灵活性。这一切极大地改变了传统的数字系统设计方法、设计过程和设计观念,促进了EDA技术的迅速发展。本次设计在EDA开发平台QUARTUSⅡ7.2上利用VHDL语
2、言设计矩阵键盘控制接口电路。要求设计一个4×8矩阵键盘接口控制器,含有时序产生电路,键盘扫描电路,弹跳消除电路,键盘译码电路,键盘码存储电路,显示电路。但按一下某键时,在数码管上显示改键对应的键值。一共有三个模块,分别为:扫描电路模块、时钟产生模块、键盘译码电路和按键标志位产生电路。扫描模块中是为了产生扫描信号,来利用扫描信号来扫描键盘中是否有按键按下。键盘译码电路和按键标志位产生电路也是为了配合扫描模块来扫描电路中是否有按键按下,而且还要求它来产生按键标志信号,以便和外部电路握手。时钟产生电路是为了产生不同
3、频率的信号,来驱动上面两个电路的运转。关键词:FPGA/CPLD;矩阵键盘;VHDLAbstractNowkeyboardapplicationinourdaliylifecanbeseeneverywhere,forexample,thecomputerkeyboard,cellphone,calculator,etc.MorecountrieswhichhaveadvancedelectronicandcomputertechnologyamongtheInternationalfieldhavebeen
4、activelyexploringnewelectroniccircuitdesignmethodanddesignmethod.Andtheymadesomecompletelyreformationinthedesignmethodsandthetools,thathasachievedahugesuccesssincethe1990s.IntheElectricalTechnologyDesignfield,programmablelogicdevicesuchas:CPLD,FPGA’sadhibit
5、ionhavebeenalreadypopularized.Allthosedevicesmadeagreatflexibilitytothedesignofthedigitalsystem.Andalsochangedthetraditionaldigitalsystem’designmethods,designprocedureandthedesignconceptimmensely.AnditisgreatlyenhancedthedevelopmentoftheEDA.Circuitdesigning
6、thatQUARTUSⅡdevelopingplatforminEDAmakesuseofVHDLlanguagedesignMatrixkeyboardinterfacecircuiton7.2originallytime.Requirementistodesignamatrixkeyboard4×9,atotalofthreemodules,namely:scanningcircuitmodule,clockgenerationmodule,thekeyboarddecodercircuitandthek
7、eyflaggenerationcircuit.Scannermoduleistogeneratescanningsignalstothescanningsignaltoscanthekeyboardbuttonpresswhetherthere.Keyboarddecodingcircuitandbuttonflaggeneratingcircuitisconnectedtothescanningmoduletoscanthecircuitiftherearekeypressed,butalsorequir
8、esittogeneratekeysignsandsignals,andexternalcircuittoshakehands.Clockgeneratingcircuitistogeneratesignalsofdifferentfrequency,todrivetheoperationoftheabovetwocircuits.Keywords:FPGA/CPLD;Matrixkeyboard;