The characters entered through keyboard gets converted to equivalent ASCII code & stored on RAM in the binary form. What is exact procedure to happens on hardware that converts the ASCII value to equivalent binary form?

Showing Answers 1 - 4 of 4 Answers

kanwal_hans

  • Apr 14th, 2006
 

Not exactly, the keys from the keyboard are not directly converted to ASCII values, keyboard generated a specific key code for every key pressed which is not the ASCII equivalent of that key. This keycode is then trapped by the OS which has a "Key Table" with it, which has the mapping for the "Key Code" and its corresponding "ASCII code". We are generally using "QWERT" style keyboards the keycode for "A" on "QWERTY" style keyboard might be different than a "DOVARK" style keyboard. It is the responsibility of the OS to make that transparent for us.

The keyboard itself sends a binary signal to the keyboard driver of the OS, which then interprets the signal from  the keyboard as the OS sees fit - in Windows, these values are generally stored as 2-byte ANSI Unicode values based on the language code page in use.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions