Scan code

Updated: 05/27/2017 by Computer Hope

scan codeA scan code is created by a computer keyboard each time a key is pressed and when it is depressed. After the keyboard has created the scan code, it is received serially by the computer on I/O port 60h. After being received the keyboard controller lets the microprocessor that a scan code is ready to be read by issuing interrupt 9h. The computer then uses the BIOS codes to match the scan code with the corresponding key that has been pressed. After the scan code has been matched, the software can read the pressed keys by issuing interrupt 16h.

Keyboard terms