特级做A爰片毛片免费69,永久免费AV无码不卡在线观看,国产精品无码av地址一,久久无码色综合中文字幕

基于單片機的ps2鍵盤的驅(qū)動設(shè)計.rar

RAR格式版權(quán)申訴手機打開展開

基于單片機的ps2鍵盤的驅(qū)動設(shè)計,論文標準word格式排版本文闡述了ps/2鍵盤工作原理及第二套掃描碼和命令集,重點論述驅(qū)動設(shè)計的方案和驅(qū)動程序的編寫。本驅(qū)動分為以下四大模塊:單片機接收數(shù)據(jù)模塊、單片機發(fā)送模塊、主函數(shù)模塊、鍵碼轉(zhuǎn)換模塊。其中單片機接受數(shù)據(jù)模塊的作用是鍵盤向主機發(fā)送數(shù)據(jù),采用單個字加校驗位的發(fā)送模式,這樣能確保發(fā)送的數(shù)據(jù)的無誤傳輸。單片...
編號:58-268446大小:146.42K
分類: 論文>通信/電子論文

該文檔為壓縮文件,包含的文件列表如下:

內(nèi)容介紹

原文檔由會員 莎士比亞 發(fā)布

論文標準WORD格式排版


本文闡述了PS/2鍵盤工作原理及第二套掃描碼和命令集,重點論述驅(qū)動設(shè)計的方案和驅(qū)動程序的編寫。本驅(qū)動分為以下四大模塊:單片機接收數(shù)據(jù)模塊、單片機發(fā)送模塊、主函數(shù)模塊、鍵碼轉(zhuǎn)換模塊。其中單片機接受數(shù)據(jù)模塊的作用是鍵盤向主機發(fā)送數(shù)據(jù),采用單個字加校驗位的發(fā)送模式,這樣能確保發(fā)送的數(shù)據(jù)的無誤傳輸。單片機發(fā)送模塊的作用是主機向鍵盤發(fā)送控制命令,與接受數(shù)據(jù)的方式類似,最大的區(qū)別是其優(yōu)先級別最高,不用等待時鐘線拉高。主函數(shù)模塊的作用是搭建一個框架使各個命令函數(shù)得以順利的調(diào)用。鍵碼轉(zhuǎn)換模塊的目的是把鍵盤鍵碼轉(zhuǎn)換成主機能識別的代碼。該驅(qū)動程序在單片機系統(tǒng)中實現(xiàn)了對PS/2標準104鍵盤的支持,該程序在AT89C51單片機上運行通過,同時還可以方便的移植到其他單片機或嵌入式系統(tǒng)中。

關(guān)鍵詞: PS/2協(xié)議;鍵盤;驅(qū)動程序;單片機;鍵碼;流程圖

ABSTRACT

This paper address the principle of the PS/2 keyboard and the second scan code and command sets, focus on design-driven programmes and the preparation of the driving procedure .The driving procedure divides into four big modules: receiving data module、 transmission module、main function module、keycode transformation module.The function of the receiving data module is sending dates to main engine by keyboard,using the transmission pattern of adding the single character to the verification position.This can guarantee the transmission of the data unmistakable . The function of transmission module is sending control command to main engine by keyboard ,which likes the way of accepting dates. The biggest difference is that it’s rank is first highest, does not need the waiting clock line to pull high. The function of main function module is building a framework so that all orders of the smooth function call.The function of keycode transformation module is converting keyboard code to host the identification code. This driving procedure which runs on AT89C52 and pass has realized the supports to PS/2 standard of 104 keyboard in the monolithic integrated circuit system . At the same time , it may also transplant to other monolithic integrated circuits or embedded system easily.

key words: PS/2 protocol; keyboard;MCU;driver program;key;flow chart