基于嵌入式微控制器的一种新型GPIO扩展键盘技术
PDF下载 (347)赵鹏飞,俞建定.基于嵌入式微控制器的一种新型GPIO扩展键盘技术[J].宁波大学学报(理工版),2013,26(02):59-63.DOI:
ZHAO Peng-fei,YU Jian-ding.A New GPIO Extending Scheme Based on Embedded Microcontroller[J].Journal of Ningbo University(Natural Science & Engineering Edition),2013,26(02):59-63.DOI:
| Title: | A New GPIO Extending Scheme Based on Embedded Microcontroller |
| 作者: | 赵鹏飞, 俞建定 |
| Author(s): | ZHAO Peng-fei, YU Jian-ding |
| 关键词: | IO口; 按键; 单片机; 电容 |
| Keywords: | I/O interface; button; MCU; capacitance |
| 分类号: | TP344.2 |
| 文献标识码: | A |
| 摘要: | 提出了一种利用单片机GPIO口结构、二极管单向导电性以及电容充放电原理进行按键扩展的方案, 详细叙述了其原理及整体设计, 并给出主要软件程序. 这种方案扩展了8个按键, 但仅占用了MCU的2个GPIO口, 大大节省了硬件资源. 经实际验证, 此按键扩展方案简单实用, 特别适用于引脚较少功能且比较强大的MCU开发系统. |
| Abstract: | In this paper, a new interface extending scheme is proposed based on one-way electric conductivity of diode, capacitance charge-discharge principle and the structure of GPIO interface of MCU. Its principles and applications are described and the program is given. In this scheme extending 8 buttons only take 2 GPIO interface of MCU. Thus the hardware resources are saved greatly. Practice shows that this scheme is simple, practical and especially suitable for the MCU system which is powerful but has fewer pins. |
| 参考文献 /References: | [1] 黄菁, 刘青春. ARM嵌入式系统GPIO扩展键盘设计[J]. 自动化应用, 2011(7):1-2. [2] 李运兵. 微控制器中按键处理技巧及应用[J]. 计算机应用, 2010, 19(2):195-197. [3] 王大庆. 扩展键盘电路及其编程. 国外电子元器件[J]. 2000(2):35-38. [4] 邹久朋, 张礼鸣, 林瑶瑶. 一种节省单片机I/O口的双矩阵键盘[J]. 单片机与嵌入式系统应用, 2008(3):70- 71. [5] 方献良. 基于A/D的电容触摸按键电路设计[J]. 宁波大学学报: 理工版, 2010, 23(3):122-125. [6] 王曙光, 张宏升. 使用ADC作为单片机键盘接口[J]. 现代电子技术, 2004(9):62-63 |
| 备注/Memo: | 收稿日期: 2012-10-19 . 第一作者: 赵鹏飞(1985-), 男, 河南安阳人, 在读硕士研究生, 主要研究方向: 嵌入式系统. E-mail: zhpf_nbu@sina.com *通信作者: 俞建定(1968-), 男, 浙江宁波人, 高级实验师, 主要研究方向: 嵌入式系统. E-mail: yujianding@nbu.edu.cn 宁波大学学报(理工版)网址:http://journallg.nbu.edu.cn/ |