
Set specific key to make only (scancode set 3 only)ĠxAA (self-test passed), 0xFC or 0xFD (self test failed), or 0xFE (Resend) Set specific key to make/release (scancode set 3 only) Set specific key to typematic/autorepeat only (scancode set 3 only) Set all keys to typematic/autorepeat/make/release (scancode set 3 only) Set all keys to make only (scancode set 3 only) Set all keys to make/release (scancode set 3 only) Set all keys to typematic/autorepeat only (scancode set 3 only) Note: May also restore default parameters , 11111b = 2 Hz)ĭelay before keys repeat (00b = 250 ms, 01b = 500 ms, 10b = 750 ms, 11b = 1000 ms)Įnable scanning (keyboard will send scan codes)ĭisable scanning (keyboard won't send scan codes)

If getting the scancode the table indicates the value that identify each set:ĠxFA (ACK) followed by none or more ID bytes (see "Detecting Device Types") a Japanese keyboard might use bit 4 for a "Kana mode" LED).Įcho (for diagnostic purposes, and useful for device removal detection)ĠxFA (ACK) or 0xFE (Resend) if scan code is being set 0xFA (ACK) then the scan code set number, or 0xFE (Resend) if you're getting the scancode. Note: Other bits may be used in international keyboards for other purposes (e.g. The commands that a PS/2 Keyboard accepts are: Don't forget to wait between the command, the data and the response from keyboard. The keyboard typically responds to a command by sending either an "ACK" (to acknowledge the command) or a "Resend" (to say something was wrong with the previous command) back. Some commands have data byte/s which must be sent after the command byte. translated) by the PS/2 controller, depending on the controller's settings.Ī PS/2 Keyboard accepts many types of commands. Keep in mind that these scan codes (from the tables below) may be altered (i.e.

The PS/2 Keyboard accepts commands and sends responses to those commands, and also sends scan codes indicating when a key was pressed or released.
#0XED HEXADECIMAL DRIVER#
Ideally, each different type of PS/2 controller driver should provide some sort of standard/simple "send byte/receive byte" interface, and the PS/2 Keyboard driver would use this interface without caring about lower level details (like what type of PS/2 controller the device is plugged into).
#0XED HEXADECIMAL SERIAL#
The PS/2 Keyboard is a device that talks to a PS/2 controller using serial communication. 4.3 Key Codes, Key States and Key Mappings.4.2 Scan Code Sets, Scan Codes and Key Codes.
