基于單片機(jī)的ps2鍵盤的驅(qū)動(dòng)設(shè)計(jì).rar
基于單片機(jī)的ps2鍵盤的驅(qū)動(dòng)設(shè)計(jì),論文標(biāo)準(zhǔn)word格式排版本文闡述了ps/2鍵盤工作原理及第二套掃描碼和命令集,重點(diǎn)論述驅(qū)動(dòng)設(shè)計(jì)的方案和驅(qū)動(dòng)程序的編寫。本驅(qū)動(dòng)分為以下四大模塊:單片機(jī)接收數(shù)據(jù)模塊、單片機(jī)發(fā)送模塊、主函數(shù)模塊、鍵碼轉(zhuǎn)換模塊。其中單片機(jī)接受數(shù)據(jù)模塊的作用是鍵盤向主機(jī)發(fā)送數(shù)據(jù),采用單個(gè)字加校驗(yàn)位的發(fā)送模式,這樣能確保發(fā)送的數(shù)據(jù)的無誤傳輸。單片...
該文檔為壓縮文件,包含的文件列表如下:
內(nèi)容介紹
原文檔由會(huì)員 莎士比亞 發(fā)布
論文標(biāo)準(zhǔn)WORD格式排版
本文闡述了PS/2鍵盤工作原理及第二套掃描碼和命令集,重點(diǎn)論述驅(qū)動(dòng)設(shè)計(jì)的方案和驅(qū)動(dòng)程序的編寫。本驅(qū)動(dòng)分為以下四大模塊:單片機(jī)接收數(shù)據(jù)模塊、單片機(jī)發(fā)送模塊、主函數(shù)模塊、鍵碼轉(zhuǎn)換模塊。其中單片機(jī)接受數(shù)據(jù)模塊的作用是鍵盤向主機(jī)發(fā)送數(shù)據(jù),采用單個(gè)字加校驗(yàn)位的發(fā)送模式,這樣能確保發(fā)送的數(shù)據(jù)的無誤傳輸。單片機(jī)發(fā)送模塊的作用是主機(jī)向鍵盤發(fā)送控制命令,與接受數(shù)據(jù)的方式類似,最大的區(qū)別是其優(yōu)先級(jí)別最高,不用等待時(shí)鐘線拉高。主函數(shù)模塊的作用是搭建一個(gè)框架使各個(gè)命令函數(shù)得以順利的調(diào)用。鍵碼轉(zhuǎn)換模塊的目的是把鍵盤鍵碼轉(zhuǎn)換成主機(jī)能識(shí)別的代碼。該驅(qū)動(dòng)程序在單片機(jī)系統(tǒng)中實(shí)現(xiàn)了對PS/2標(biāo)準(zhǔn)104鍵盤的支持,該程序在AT89C51單片機(jī)上運(yùn)行通過,同時(shí)還可以方便的移植到其他單片機(jī)或嵌入式系統(tǒng)中。
關(guān)鍵詞: PS/2協(xié)議;鍵盤;驅(qū)動(dòng)程序;單片機(jī);鍵碼;流程圖
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
本文闡述了PS/2鍵盤工作原理及第二套掃描碼和命令集,重點(diǎn)論述驅(qū)動(dòng)設(shè)計(jì)的方案和驅(qū)動(dòng)程序的編寫。本驅(qū)動(dòng)分為以下四大模塊:單片機(jī)接收數(shù)據(jù)模塊、單片機(jī)發(fā)送模塊、主函數(shù)模塊、鍵碼轉(zhuǎn)換模塊。其中單片機(jī)接受數(shù)據(jù)模塊的作用是鍵盤向主機(jī)發(fā)送數(shù)據(jù),采用單個(gè)字加校驗(yàn)位的發(fā)送模式,這樣能確保發(fā)送的數(shù)據(jù)的無誤傳輸。單片機(jī)發(fā)送模塊的作用是主機(jī)向鍵盤發(fā)送控制命令,與接受數(shù)據(jù)的方式類似,最大的區(qū)別是其優(yōu)先級(jí)別最高,不用等待時(shí)鐘線拉高。主函數(shù)模塊的作用是搭建一個(gè)框架使各個(gè)命令函數(shù)得以順利的調(diào)用。鍵碼轉(zhuǎn)換模塊的目的是把鍵盤鍵碼轉(zhuǎn)換成主機(jī)能識(shí)別的代碼。該驅(qū)動(dòng)程序在單片機(jī)系統(tǒng)中實(shí)現(xiàn)了對PS/2標(biāo)準(zhǔn)104鍵盤的支持,該程序在AT89C51單片機(jī)上運(yùn)行通過,同時(shí)還可以方便的移植到其他單片機(jī)或嵌入式系統(tǒng)中。
關(guān)鍵詞: PS/2協(xié)議;鍵盤;驅(qū)動(dòng)程序;單片機(jī);鍵碼;流程圖
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
TA們正在看...
- 會(huì)計(jì)專業(yè)簡歷模板【三篇】.docx
- 會(huì)計(jì)個(gè)人應(yīng)聘簡歷【三篇】.docx
- 學(xué)院學(xué)生會(huì)副主席工作計(jì)劃.docx
- 會(huì)計(jì)個(gè)人簡歷模板【三篇】.docx
- 會(huì)計(jì)個(gè)人簡歷模板【四篇】.docx
- 學(xué)院學(xué)生會(huì)年工作計(jì)劃模板.docx
- 會(huì)計(jì)個(gè)人簡歷模板范文【三篇】.docx
- 學(xué)院學(xué)生會(huì)新聞部工作計(jì)劃.docx
- 會(huì)計(jì)個(gè)人簡歷范文【四篇】.docx
- 會(huì)計(jì)個(gè)人簡歷范本.docx