摘要
采用EDA的设计思想,设计单片机控制的基于FPGA的键盘扫描模块。用VHDL语言设计FPGA内部的分频模块SCAN_GEN、键盘扫描计数器模块SCAN_COUNT、按键检测模块KEY_SCAN、按键抖动消除模块DEBOUNCE、键盘编码模块CODE_TRAN以及扩展的I/O口。键盘中断子程序由AT89C51单片机的/INT1完成。
According to the design idea of EDA , the keyboard scanning module based on FPGA, which is controlled by single chip is designed. The VHDL language is adopted in this FPGA core logic-control component, which includes frequency module-SCAN_GEN、keyboard scanning counter module-SCAN_COUNT、key scan module-KEY_SCAN、key debounce module-DEBOUNCE、key coding module-CODE_TRAN and extended I/O port. The interrupt service routine is completed by /INT1 of AT89C51 single chip.
出处
《微计算机信息》
2011年第11期64-65,78,共3页
Control & Automation