首页 | 本学科首页   官方微博 | 高级检索  
     

基于MCU和CPLD的HID类自定义键盘研究与实现
引用本文:吕文发,蔡欣荣,吕卫国.基于MCU和CPLD的HID类自定义键盘研究与实现[J].仪表技术,2010(7):67-71.
作者姓名:吕文发  蔡欣荣  吕卫国
作者单位:中国船舶重工集团公司江苏自动化研究所,江苏连云港,222006
摘    要:在一些特殊应用场合,需要设计一种满足USB接口HID类协议的自定义按键功能的键盘,按照应用场合可扩充或裁剪按键数目,系统应用程序根据接收的按键码调用相应的功能子函数。文章研究的是基于带有USB接口控制器的单片机和CPLD组合设计实现的HID类自定义按键功能键盘操控模块,通过编写单片机固件驱动程序和CPLD控制程序,把操控模块映射为windows系统标准HID类设备,windows应用程序接收按键码,回复并发送控制信息给控制模块。实验结果表明,设计合理、系统适应性强、硬件构造模块化,可扩展至其他应用场合如工业现场控制环境使用。

关 键 词:单片机  复杂可编程逻辑芯片  USB  HID类

Research and Realization of User-defined Function Keyboard Based on MCU and CPLD with HID Class
LV Wen-fa,CAI Xin-rong,LV Wei-guo.Research and Realization of User-defined Function Keyboard Based on MCU and CPLD with HID Class[J].Instrumentation Technology,2010(7):67-71.
Authors:LV Wen-fa  CAI Xin-rong  LV Wei-guo
Affiliation:(Jiangsu Automation Research Institute of CSIC,Lianyungang 222006,China)
Abstract:In some special application situations,a kind of user-defined key function keyboard with USB interface and HID class protocol is required.According to application situation,it can enlarge or cut key numbers.Application programs of the system execute sub-function according to the received key code.This research is to design a HID of user-defined key function keyboard operation module according to the LPC2478 chip with USB control interface.The control procedure of the chip is programmed.The operation module is reflected to a standard HID equipment of the windows system.The key code is received by windows application procedure,then control information is replied and sent to operation module.Experiment results show the design is reasonable and the system adaptability is strong.It can expand to other application situations such as industry spot control.
Keywords:USB
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号