AT Keyboard Source Code Interfacer
Details
| Size: | 20.1 KB |
| Last Update: | 2007-03-25 17:42:12 |
| OS Support: | Win All |
| License/Program Type: | Driver |
| Publisher: | Others |
| Price: | $0.00 |
Description:
Why would you want to interface the Keyboard? The IBM keyboard can
be a cheap alternative to a keyboard on a Microprocessor
development system. Or maybe you want a remote terminal, just
couple it with a LCD Module.
Maybe you have a RS-232 Barcode Scanner or other input devices,
which you want to use with existing software which only allows you
to key in numbers or letters. You could design yourself a little
box to convert RS-232 into a Keyboard Transmission, making it
transparent to the software.
An interfacing example is given showing the keyboard's protocols in
action. This interfacing example uses a 68HC705J1A MCU to decode an
IBM AT keyboard and output the ASCII equivalent of the key pressed
at 9600 BPS.
The IBM keyboard you most probably have sitting in front of you,
sends scan codes to your computer. The scan codes tell your
Keyboard Bios, what keys you have pressed or released. Take for
example the 'A' Key. The 'A' key has a scan code of 1C (hex). When
you press the 'A' key, your keyboard will send 1C down it's serial
line. If you are still holding it down, for longer than it's
typematic delay, another 1C will be sent. This keeps occurring
until another key has been pressed, or if the 'A' key has been
released.
However your keyboard will also send another code when the key has
been released. Take the example of the 'A' key again, when
released, the keyboard will send F0 (hex) to tell you that the key
with the proceeding scan code has been released. It will then send
1C, so you know which key has been released.
Your keyboard only has one code for each key. It doesn't care it
the shift key has been pressed. It will still send you the same
code. It's up to your keyboard BIOS to determine this and take the
appropriate action. Your keyboard doesn't even process the Num
Lock, Caps Lock and Scroll Lock. When you press the Caps Lock for
example, the keyboard will send the scan code for the cap locks. It
is then up to your keyboard BIOS to send a code to the keyboard to
turn on the Caps lock LED.
Now there's 101 keys and 8 bits make 256 different combinations, so
you only need to send one byte per key, right? Unfortunately a
handful of the keys found on your keyboard are extended keys, and
thus require two scan code. These keys are preceded by a E0 (hex).
But it doesn't stop at two scan codes either. How about
E1,14,77,E1,F0,14,F0,77! Now that can't be a valid scan code? Wrong
again. It's happens to be sent when you press the Pause/break key.
Don't ask me why they have to make it so long! Maybe they were
having a bad day or something?
When an extended key has been released, it would be expect that F0
would be sent to tell you that a key has been released. Then you
would expect E0, telling you it was an extended key followed by the
scan code for the key pressed. However this is not the case. E0 is
sent first, followed by F0, when an extended key has been
released.
Tthe PC's keyboard implements a bi-directional protocol. The
keyboard can send data to the Host and the Host can send data to
the Keyboard. The Host has the ultimate priority over direction. It
can at anytime (although the not recommended) send a command to the
keyboard.
The keyboard is free to send data to the host when both the KBD
Data and KBD Clock lines are high (Idle). The KBD Clock line can be
used as a Clear to Send line. If the host takes the KBD Clock line
low, the keyboard will buffer any data until the KBD Clock is
released, ie goes high. Should the Host take the KBD Data line low,
then the keyboard will prepare to accept a command from the host.
0 comments
Add to
AT Keyboard Source Code Interfacer Version History
Related Software
|
|
From category: Others |
| Changes:
Solve PCI AUDIO video and audio synchronic problem,and certain long time system don&039;t shot down.
Fix use VYNIL AC 97 AUDIO can&039;t select LINE-IN problem.
Fix FM frequency when fir... |
|
|
From category: Others |
| PlexTools is software released by Plextor, a famous manufacturer of CD, DVD and video devices. The utility is made to give extra support to Plextor hardware by enhancing the possibility to directly co... |
|
|
From category: Others |
| It is highly recommended to always use the most recent driver version available.
Do not forget to check with our site as often as possible in order to stay updated on the latest drivers, software and... |
|
|
From category: Others |
| It is highly recommended to always use the most recent driver version available.
Do not forget to check with our site as often as possible in order to stay updated on the latest drivers, software and... |
|
|
From category: Others |
| With the Serial ATA interface providing faster data transfer rates than any other IDE interface, VIA offers two Serial ATAControllers, supporting data transfer rates of up to 100Mbps and flexibility i... |
|
|
From category: Others |
| Features:
CPU : Intel Mobile Pentium-M 1.5GHz /1MB L2 Cache
Screen: 14.1" XGA TFT (1024 x 768)
Memory : 256 DDR SDRAM (1GB Max.)
Video: Intel 82855GM Graphics Controller
Hard Drive: 40GB, 9.5... |
|
|
From category: Others |
| It is highly recommended to always use the most recent driver version available.
Do not forget to check with our site as often as possible in order to stay updated on the latest drivers, software and... |
|
|
From category: Others |
| It is highly recommended to always use the most recent driver version available.
Do not forget to check with our site as often as possible in order to stay updated on the latest drivers, software and... |
|
|
From category: Others |
| It is highly recommended to always use the most recent driver version available.
Do not forget to check with our site as often as possible in order to stay updated on the latest drivers, software and... |
|
|
From category: Others |
| It is highly recommended to always use the most recent driver version available.
Do not forget to check with our site as often as possible in order to stay updated on the latest drivers, software and... |
|
|
From category: Others |
| The Creative Rhomba gives active people music on the move. Its 256MB memory stores around 120 songs in WMA or 60 songs in MP3 and the ultra-large backlit LCD display and scroller wheel make it quick a... |
|
|
From category: Others |
| It is highly recommended to always use the most recent driver version available.
Do not forget to check with our site as often as possible in order to stay updated on the latest drivers, software and... |
|
|
From category: Others |
| An easy way to en/disable overclocking options or vsync option in your ForceWare drivers without the burden of importing registry entries.
Whats new in v3.4:
added support for G71, G72 and G73 ser... |
|
|
From category: Others |
| It is highly recommended to always use the most recent driver version available.
Do not forget to check with our site as often as possible in order to stay updated on the latest drivers, software and... |
|
|
From category: Others |
| This driver, also known as VIA AC&039;97 Audio Combo Driver, supports all VIA southbridges with integrated sound, including VT8231 / VT82C686A / VT82C686B, VT8233 / VT8233A / VT8233C / VT8235 / VT823... |
Leave a comment