Keyboard TechnologyThe technology that makes up a typical PC keyboard is very interesting. This section focuses on all the aspects of keyboard technology and design, including the keyswitches, the interface between the keyboard and the system, the scan codes, and the keyboard connectors. Keyswitch DesignKeyboards in portable systems can use any one of several switch types to create the action for each key. This section discusses these switches and the highlights of each design. Keyswitches are available in the following variations:
Pure Mechanical Switches
The pure mechanical switch type is just that ”a simple mechanical switch that features metal contacts in a momentary contact arrangement. The switch often includes a tactile feedback mechanism, consisting of a clip and spring arrangement designed to give a "clicky" feel to the keyboard and offer some resistance to the
Figure 13.5. A typical mechanical switch. As the key is pressed, the switch pushes down on the contacts to make the connection.
Mechanical switches are very durable, usually have self-cleaning contacts, and are normally rated for 20 million keystrokes, which is second only to the capacitive switch in longevity. They also offer
Foam Element SwitchesFoam element mechanical switches were a very popular design in some older keyboards. Most of the older PC keyboards, including models made by Key Tronic and many others, used this technology. These switches are characterized by a foam element with an electrical contact on the bottom. This foam element is mounted on the bottom of a plunger that is attached to the key (see Figure 13.6). Figure 13.6. Typical foam element mechanical keyswitch.
When the switch is pressed, a foil conductor on the bottom of the foam element
Another problem with this type of design is that it is more subject to corrosion on the foil conductor and the circuit board traces below. When this happens, the key strikes can become intermittent, which can be frustrating. Fortunately, these keyboards are among the
Rubber Dome Switches
Rubber dome switches are mechanical switches similar to the foam element type but are improved in many ways. Instead of a spring, these switches use a rubber dome that has a carbon button contact on the underside. As you press a key, the key plunger presses on the rubber dome,
The rubber eliminates the need for a spring and provides a reasonable amount of tactile feedback without any special clips or other
Membrane/Rubber Dome SwitchesThe membrane keyswitch is a variation on the rubber dome type and uses a flat, flexible circuit board to receive input and transmit it to the keyboard microcontroller.
Although low-end membrane keyswitches have a limited life of only 5 “10 million keystrokes, some of the better models are rated to handle up to 20 million keystrokes,
Figure 13.7. A typical membrane/rubber dome keyswitch.
Capacitive Switches
Capacitive switches are the only nonmechanical keyswitch in use today (see Figure 13.8). The capacitive switch is the Cadillac of keyswitches. It is much more expensive than the more common mechanical membrane switch, but it is more resistant to dirt and corrosion and offers the highest-quality tactile feedback of any type of switch. This type of keyboard is sometimes referred to as a
buckling-spring keyboard
because of the coiled spring used to provide feedback. Unfortunately, capacitive switches were only used in some of the older luggable or briefcase-
Figure 13.8. A capacitive buckling-spring keyswitch.
A capacitive switch does not work by making contact between conductors. Instead, two plates usually made of plastic are connected in a switch matrix designed to detect changes in the
When the key is pressed, the plunger moves the top plate in relation to the fixed bottom plate. Usually, a buckling-spring mechanism provides distinct, over-center tactile feedback with a resounding "click." As the top plate moves, the capacitance between the two plates changes. The comparator
Because this type of switch does not rely on metal contacts, it is nearly immune to corrosion and dirt. These switches are very resistant to the "key bounce" problems that result in multiple
Originally, the only vendor of capacitive keyswitch keyboards was IBM. Although some of IBM's keyboards still feature capacitive keyswitches, many IBM keyboards also use rubber dome or other lower-cost keyswitches. In 1991 IBM spun off their keyboard/printer division as Lexmark, who then spun off the keyboard division as Unicomp in 1996. Today, Unicomp still manufactures and sells "IBM" keyboards with the classic buckling-spring capacitive switch ("clickety" as some would say) technology. As a bonus, some models have the IBM TrackPoint built in. You can purchase new Unicomp (IBM) keyboards direct by calling toll free (1-800-777-4886) or going to the online store at www.pckeyboard.com.
Because of the buckling-spring capacitive keyswitches (and the resulting clickety feel), I've always been a huge fan of the IBM, Lexmark, and now Unicomp keyboards. I feel they are the absolute best keyboards in the world; the only ones I willingly use on desktop systems. I
The Keyboard InterfaceA keyboard consists of a set of switches mounted in a grid or an array called the key matrix . When a switch is pressed, a processor in the keyboard identifies which key is pressed by determining which grid location in the matrix shows continuity. The keyboard processor, which also interprets how long the key is pressed, can even handle multiple key presses at the same time. A 16-byte hardware buffer in the keyboard can handle rapid or multiple keypresses, passing each one to the system in succession.
When you press a key, the contact
The keyboard in a laptop or desktop PC is actually a computer itself. It communicates with the main system in one of two ways:
The serial data link used by conventional keyboards transmits and receives data in 11-bit packets of information, consisting of 8 data bits plus framing and control bits. Although it is indeed a serial link (in that the data flows on one wire), the keyboard interface is incompatible with the standard RS-232 serial port commonly used to connect modems.
The keyboard serial interface is connected to a special keyboard controller on the motherboard. This controller was an Intel 8042 Universal Peripheral Interface (UPI) slave microcontroller chip in the original IBM design. This microcontroller is
The keyboard connector was
Keyboards connected to a USB port work in a surprisingly similar fashion to those connected to conventional DIN or mini-DIN (PS/2) ports after the data reaches the system. Inside the keyboard, a variety of custom controller chips are used by various keyboard manufacturers to receive and interpret keyboard data before sending it to the system via the USB port. Some of these chips contain USB hub logic to enable the keyboard to act as a USB hub. After the keyboard data
This process works very well after a system has
Systems with USB Legacy support enable users to tap the BIOS to control the USB keyboard until a supported operating system is loaded. At that point, the USB host controller driver in the operating system takes control of the keyboard by sending a command called
StopBIOS
to the BIOS routine managing the keyboard. When Windows shuts down to MS-DOS, the USB host controller sends a command called
StartBIOS
to restart the BIOS routine that
When the BIOS controls the keyboard, after the signals reach the 8042 keyboard controller, the USB keyboard is treated just like a conventional keyboard if the BIOS is correctly designed to work with USB keyboards. A BIOS upgrade might be necessary in some cases to provide proper support of USB keyboards on some systems. The system chipset also must support USB Legacy features. Typematic FunctionsIf a key on the keyboard is held down, it becomes typematic , which means the keyboard repeatedly sends the keypress code to the motherboard. The typematic rate is adjusted by sending the appropriate commands to the keyboard processor.
You can adjust the typematic repeat rate and delay parameters with settings in your system BIOS (although not all BIOS chips can control all functions) or in your operating system. In DOS, you use the
MODE
command. The next section describes how to adjust the keyboard parameters in Windows, because this is more
In Windows, you can modify the default values for the typematic repeat rate and delay parameters in any version of Windows using the Keyboard icon in the Control Panel. The Repeat Delay slider controls the number of times a key must be pressed before the character begins to repeat, and the Repeat Rate slider controls how fast the character repeats after the delay has elapsed.
Note
The
The dialog box also contains a text box you can use to test the settings you have
Keyboard Key
|
|||||||||||||||||||||||||||||||||||||||||||||||||
|
Signal
|
6-Pin Mini-DIN |
Test Voltage |
|---|---|---|
|
Mouse Data |
1 |
+4.8V to 5.5V |
|
Keyboard Data |
2 |
+4.8V to 5.5V |
|
Ground |
3 |
- |
|
+5V Power |
4 |
+2.0V to 5.5V |
|
Mouse Clock |
5 |
+2.0V to 5.5V |
|
Keyboard Clock |
6 |
+2.0V to 5.5V |
| DIN = Deutsches Institut f ¼r Normung e.V., the committee that sets German dimensional standards | ||
Note that this layout is not exactly the same as on desktop systems in that a single connector supports both mice and keyboards. However, only an external mouse can be directly connected. A keyboard can only be used via a "Y" or splitter connector that reroutes the signals to the proper pins for a keyboard. An example of this is the Keyboard/Mouse "Y" Connector sold by IBM under part number 54G0441 (see Figure 13.11).
USB keyboards use the Series A USB connector to attach to the USB port built in to modern computers. Figure 13.12 and Table 13.8 show the physical layout and pinout of the USB Series A connector used on most laptops.
Most
|
Pin |
Signal Name |
Wire Color |
Comment |
|---|---|---|---|
|
1 |
Vbus |
Red |
Bus power |
|
2 |
- Data |
White |
Data transfer |
|
3 |
+ Data |
Green |
Data transfer |
|
4 |
Ground |
Black |
Cable ground |
|
Shell |
Shield |
” |
Drain wire |
The latest innovation in keyboard interfacing is connecting the keyboard to the PC via a USB port instead of the standard keyboard port. Because USB is a universal bus that uses a hub to enable multiple devices to connect to a single port, a single USB port in a system can replace the standard serial and parallel ports as well as the keyboard and mouse ports. Most current systems still include the standard ports (now called legacy ports ) as well as USB, but some so-called "legacy-free" systems have only USB ports for interfacing all input/output devices.
Several keyboard manufacturers are marketing USB keyboards, including Microsoft with the Natural Keyboard Elite and Pro series keyboards. The Natural Keyboard Elite is virtually unique among USB keyboards because it is designed to work with standard keyboard ports and also comes with an adapter that enables it to connect to the USB port on systems using Windows 98/Me/2000/XP. Also, adapters are available from Logitech and other manufacturers that can convert a USB port to a standard keyboard port if you want to use a non-USB-enabled keyboard on a
Note
The internal electronics of the Natural Keyboard Elite are different from other models, and the USB adapter included with the Natural Keyboard Elite will not work on other standard keyboards, such as the original Microsoft Natural Keyboard version 1.0.
Not all systems accept USB keyboards, even those with USB ports, because the standard PC BIOS has a keyboard driver that expects a standard keyboard port interface keyboard to be present. When a USB keyboard is installed, the system can't use it because no driver exists in the BIOS to make it work. In fact, some systems see the lack of a standard keyboard as an error and halt the boot process until one is installed.
To use a keyboard connected via the USB port, you have to meet three requirements:
You must have a USB port in your system.
You must run Microsoft Windows 98, Windows Me, Windows 2000, or Windows XP (all of which include USB keyboard drivers).
You must have a system chipset and BIOS that features USB Legacy support.
USB Legacy support means your motherboard has a chipset and ROM BIOS drivers that enable a USB keyboard to be used outside the Windows GUI environment. When a system has USB Legacy support enabled, you can use a USB keyboard with MS-DOS when configuring the system BIOS, when using a command prompt within Windows, or when installing Windows on the system for the first time. If USB Legacy support is not enabled on the system, a USB keyboard will function only when Windows is running.
Most recent systems include USB Legacy support, although it is disabled by default in the system BIOS.
Also, if the Windows installation fails and requires manipulation outside of Windows, the USB keyboard will not function unless it is supported by the chipset and the BIOS. Almost all 1998 and newer systems with USB ports include a chipset and BIOS with USB Legacy (meaning USB keyboard) support.
Even though USB Legacy support enables you to use a USB keyboard in almost all situations, don't scrap your standard-port keyboards just yet. Here are some Windows-
Some users can't log on to Windows the first time after installing a USB keyboard.
The solution in some cases is to click Cancel when you are asked to log on; then allow the system to detect the keyboard and install drivers. The logon should work normally thereafter. In other cases you may have to leave the keyboard unplugged when first booting and then plug it in after the OS desktop is up and running. This will allow the keyboard to be
Some USB keyboards won't work when the Windows Emergency Boot Disk (EBD) is used to start the system.
The solution is to
Some users of Windows 98 and Windows 98 SE have reported conflicts between Windows and the BIOS when USB Legacy support is enabled on some systems.
This conflict can result in an incapability to detect the USB keyboard if you use the Windows 9x shutdown menu and choose to restart the computer in MS-DOS mode. Check with the system or BIOS vendor for an updated BIOS or a patch to solve this conflict.
If you have problems with Legacy USB support, look to these possible solutions:
Microsoft's Knowledge Base might address your specific combination of hardware.
Your keyboard vendor might offer new drivers.
Your system or motherboard vendor might have a BIOS upgrade you can install.
USB Keyboards with Hubs
Some USB keyboards feature a built-in USB hub designed to add two or more USB ports to your system. Even though this sounds like a good idea, keep in mind that a keyboard-based hub won't provide additional power to the USB connectors.
|