PC Scan Code Table


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2003
    Posts
    2,358

    Default PC Scan Code Table

    This has been requested and posted on the piclist a number of times over the last year or so... 26 September 2002, 17 March 2003 etc...

    Here it is once more for posterity...

    Melanie
    Attached Files Attached Files

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    The table tells you the (Scan) Codes to expect to see if you interface a PC(AT) Keyboard to a circuit.

    The First column of the table represents the Keyboard Key you Pressed (it may have multiple functions such as the 1 key which also serves as the ! key).

    The Second and Third columns is the Scan Code in either Decimal or Hex.

    The remaining columns are native translations to ASCII, or with the SHIFT Button depressed, or with the CTRL Button depressed or with the ALT Button depressed.

    Some keys generate TWO characters. On some Keyboards the first character is a Hex 00, on others it's a Hex E0. This indicates there is a second character following.

    Unfortunately, whoever at IBM thought of this system must have been seriously pissed one day because if you press the PAUSE/BREAK key you get Hex E1 14 77 E1 F0 14 F0 77.

Similar Threads

  1. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 22:31
  2. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 09:26
  3. Re-Writing IF-THEN-AND-ENDIF code?
    By jessey in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th August 2006, 18:23
  4. Serial Communication with PC code
    By mike12345 in forum Serial
    Replies: 4
    Last Post: - 24th May 2006, 03:16
  5. Replies: 1
    Last Post: - 31st August 2005, 21:00

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts