课程设计论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

[毕业论文] 基于嵌入式单片机的PC机键盘PS/2接口解码设计 [复制链接]

楼主
文件格式:word
文件大小:791.17KB
适用专业:电气工程及其自动化
适用年级:大学
下载次数:10 次
我要下载:点击联系下载
论文编号:199004

资料简介:
毕业论文-基于嵌入式单片机的PC机键盘PS/2接口解码设计,共35页,11713字

摘 要

标准键盘在微机中广泛使用, 其性能优异、使用方便、价格低廉。由于此键盘接口通信协议简洁、在系统中占用软硬件资源少、可靠性高、表达信息量大, 因而同样适合于要求按键较多的嵌入式系统。目前,在嵌入式智能仪器仪表中,常用LCD 加键盘实现人机接口,在实际应用中人机界面需要显示汉字,如果用简单的控制键盘实现英文甚至汉字的输入,则程序较复杂,考虑到PC 上用的标准PSP2 键盘,可通过简单的接口实现与MCU 的连接,利用成熟且普及的PC键盘,可实现复杂的输入,对于MCU 并不占用很多口线,甚至口线复用,可仅在需要输入时再接上键盘,是一种廉价的键盘解决方案。

本设计是基于单片机的PS/2键盘接口的设计,主要包括信号的发生,信号的检测,信号的采集,信号的处理,信号的反馈以及处理后数据的显示。本设计主要用到的中心芯片是STC89C52RC,数据串行转换芯片MAX232,信号显示芯片LCD1602。

关键词:PS/2键盘;单片机;STC89C52RC;LCD1602

ABSTRACT

The standard keyboard is extensive to use in the Microcomputer, its function is excellent, use convenience, the price is cheap.Because this keyboard interface communication protocal simple and direct, take up little and high reliability of soft hardware resources and express an information to have great capacity in the system, as a result equally suited for to request the key more embedded system.Currently, at embedded intelligence instrument, in common use LCD adds a keyboard to realize man-machine interface, is physically applying a man-machine interface to need to show Chinese characters, if realize English with the simple control keyboard the importation of Chinese characters even, the procedure then is more complicated, in consideration of standard PS/2 keyboardses used on the PC, can pass to in brief connect gossip now and MCU conjunction, make use of a mature and universal PC keyboard, can realize a complicated importation, don't take up a lot of lines to MCU, even the line replies to use, can just while needing input again mount a keyboard, is a kind of cheap keyboard solution.

This design is of PS/2 keyboard interface based on microcontroller, mainly include the occurrence of signal, the examination of signal, collecting of signal, the processing of signal, feedback and processing of signal after data's showing.This design mainly uses of the center chip is a STC89C52RC, serial data communication converts the chip MAX232, the signal indication the chip LCD1602.

Keywords:Keyboard;MCU ;STC89C52RC;LCD1602

目 录

目 录 0

1 绪 论 1

2 方案论证 3

2.1 研究现状 3

2.1.1 PS/2键盘与USB键盘 3

2.1.2 PS/2键盘在单片机系统中的优势 3

2.2 拟解决的主要问题 3

3 总体设计 4

3.1 总体设计的系统框图 4

4 系统的硬件电路设计 5

4.1 系统组成结构及工作原理 5

4.1.1 系统的供电 5

4.2.1 系统组成结构及工作原理 5

4.2 用到的单片机以及外围芯片 7

4.2.1 STC89C52RC单片机 7

4.2.2 PL2303芯片 9

4.2.3 MAX232芯片 11

4.2.4 液晶LCD1602模块 13

4.3 晶振和复位电路 15

4.4 单片机在线编程接口电路 15

4.5 信号处理模块 18

4.6 显示模块 19

4.7 总电路原理图 20

5 系统的软件程序设计 22

5.1 数据格式 22

5.2 键盘返回值 22

5.3 软件总体结构设计 23

5.4 模块电路程序设计 24

5.4.1 键盘到系统通信程序模块流程图 24

5.4.2 系统到键盘通信程序流程图 25

5.4.3 PS/2转USB接口电路 25

6.1 调试方法及步骤 26

结束语 27

致谢 28

参考文献 29

附录 30


资料文件预览:
共1文件夹,1个文件,文件总大小:791.17KB,压缩后大小:530.43KB

  • 毕业论文-基于嵌入式单片机的PC机键盘PS/2接口解码设计
  • doc毕业论文-基于嵌入式单片机的PC机键盘PS/2接口解码设计.doc  [791.17KB]

我要下载:基于嵌入式单片机的PC机键盘PS/2接口解码设计
分享 转发
TOP
沙发

不错哦的哈...................
TOP
板凳

好资料,马上就要交了,真得好好改下了
TOP
地板

好啊

好啊
TOP
5#

很有见解呀!
TOP
6#

太好了

谢谢了哦
TOP
7#

不错的哈
TOP
8#

哎,怎么都是要钱的啊

有没有不要钱 的
TOP
9#

我想要积分

我想要积分 我想要积分
TOP
10#

好啊

好啊
TOP
发新话题 回复该主题