PS/2 技术参考 著 Adam Chapweske 译 Roy Show
第 1 页共 1 页 02-11-22发布
第一章 PS/2 鼠标 键盘协议
Introduction:
引言
The PS/2 device interface, used by many modern mice and keyboards, was developed by IBM and originally
appeared in the IBM Technical Reference Manual. However, this document has not been printed for many
years and as far as I know, there is currently no official publication of this information. I have not had access
to the IBM Technical Reference Manual, so all information on this page comes from my own experiences as
well as help from the references listed at the bottom of this page.
PS/2 设备接口用于许多现代的鼠标和键盘
它是由 IBM 开发并且最初出现在 IBM 技术参考手册里 但
是
当我知道的时候这篇文件就已经很多年没有印刷了 因此关于这个内容现在没有官方的出版物 我
无法访问 IBM 的技术参考手册
所以本网页中的所有信息都来自于我自己的经验及本页最下面列出的
参考的帮助
译者注 这些参考的条目在本章的结尾处
This document descibes the interface used by the PS/2 mouse, PS/2 keyboard, and AT keyboard. I'll cover
the physical and electrical interface, as well as the protocol. If you need higher-level information, such as
commands, data packet formats, or other information specific to the keyboard or mouse, I have written
separate documents for the two devices:
这个文件描述了用于 PS/2 鼠标
PS/2 键盘及 AT 键盘的接口
我将论及物理和电气接口也包括协议
如果你需要更高级的信息 诸如命令 数据包的格式或者其他关于键盘鼠标的特别细节 那么我对这两
种设备写了独立的文件
The PS/2 (AT) Keyboard Interface
The PS/2 Mouse Interface
译者注 这两篇文章已经包含到这篇译文中来了 是第二章和第三章
I also encourage you to check out my homepage
for more information related to this topic, including projects,
code, and links related to the mouse and keyboard.
我同样鼓励你在我的主页上校对更多与这个话题相关的信息
包括工程 代码和与鼠标键盘有关的链接
The Connector:
连接器
The physical PS/2 port is one of two styles of connectors: The 5-pin DIN or the 6-pin mini-DIN. Both
connectors are completely (electrically) similar; the only practical difference between the two is the
arrangement of pins. This means the two types of connectors can easily be changed with simple hard-wired
adaptors. These cost about $6 each or you can make your own by matching the pins on any two connectors.
The DIN standard was created by the German Standardization Organization (Deutsches Institut fuer Norm) .
Their website is at http://www.din.de/ (this site is in German, but most of their pages are also available in
English.)
物理上的 PS/2 端口是两类连接器中的一种
5 脚的 DIN 或 6 脚的 mini-DIN
这两种连接器 在电气特
性上
是十分类似的 实际上两者只有一点不同那就是管脚的排列 这就意味着这两类连接器可以很容
易用一种简单的硬件连线的适配器来转换
这种适配器大约每个值 6 美元 或者你可以根据任意两种连
接器的对应管脚关系做你自己的适配器
DIN 标准是由德国标准化组织(Deutsches Institut fuer Norm)建
立的
他们的网站在 http://www.din.de/ 这个站点是德文的 但他们的很多网页同样可用于英文