PS/2 技术参考 著 Adam Chapweske 译 Roy Show
第 15 页共 15 页 02-11-22发布
第二章 AT-PS/2 键盘接口
Introduction:
引言
This article tries to cover every aspect of AT and PS/2 keyboards. It includes information on the low-level
signals and protocol, scan codes, the command set, initialization, compatibility issues, and other miscellaneous
information. Since it's closely related, I've also included information on the PC keyboard controller. All
code samples involving the keyboard interface are written in assembly for Microchip's PIC microcontrollers.
All code samples related to the keyboard controller are written in x86 assembly.
这篇文章试着囊括 AT 和 PS/2 键盘各方面的问题
它包含了如低级别信号和协议 扫描码 命令集
初始化 兼容性问题和其他各种信息 我还包含了关于 PC 键盘控制器的信息 这是由于它们非常相关
所有键盘接口的代码样例是用 Microchip 的 PIC 微控制器的汇编语言书写 所有与键盘控制器相关的代
码样例是用 x86 汇编书写的
I should mention that all of the information in this article comes from my own experiences and other sources
that may or may not be accurate. I did not consult any official documentation of since none has been
available to me. Therefore, I provide the following disclaimer:
应该说明的是
在这篇文章里提到的信息来自我自己的经验和其他资源 因此可能不正确 我没有参考
任何官方的文件
因为没有我能用到的 因而我提出如下的弃权
ALL INFORMATION WITHIN THIS ARTICLE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS
OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. I DO NOT GUARANTEE ANY
INFORMATION IN THIS ARTICLE IS ACCURATE, AND IT SHOULD BE USED FOR ABSTRACT
EDUCATIONAL PURPOSES ONLY.
译者注 大伙们自己看原文吧 这个申明对要使用该文的人来说很重要
You may click here
to goto my main page. There, you will find other articles, code, projects, and links
related to the computer keyboard. Click here
for more information about me, including my resume. If you
find any errors in this article or have any questions, feel free to send me an email
. I don't have time to
respond to them all, but I will read them all and keep your questions/comments in mind when updating this
page.
点击这里
你可以到我的主页 在那里 你将能发现其他关于计算机键盘的别的文章 代码 工程和链接
点击这里可以获得我的信息 包括我的简历 如果你在文章中发现有错误或者你有疑问 请给我写封
email
我可能没有时间给所有的都回信 但我会都读它们 并在更新本网页时记住你的问题或注解
A History Lesson:
相关的历史
The most popular keyboards in use today include:
现今仍在使用中的绝大多数流行的键盘包括
USB keyboard - Latest keyboard supported by all new computers (Macintosh and IBM/compatible). These
are relatively complicated to interface and are not covered in this article.
IBM/compatible keyboards - Also known as "AT keyboards" or "PS/2 keyboards", all modern PCs support this
device. They're the easiest to interface, and are the subject of this article.