CS 2734
Computer Organization II
The Keyboard
- Basic Hardware:
- The transfer to the keyboard interface is a synchronous transfer
- The keyboard interface generates data on a synchronous interface
with pins:
- 1: Keyboard clock
- 2: Keyboard data
- 3: Keyboard reset
- 4: Signal ground
- 5: Vcc
- The AT keyboard chip is programmable.
- How are silent keys handled (like SHIFT or CTRL)?
- Keyboard first generates the "make code" for the SHIFT (e.g. 42).
- Keyboard interface generates an interrupt.
- The device driver gets the interrupt, recognizes it is a SHIFT,
- Requests the next key scan code (e.g. 46 for 'c').
- Combines the SHIFT and key to get an uppercase 'C'.
- Keyboards also have a repetition rate which is 10 char/s on the
AT keyboard and programmable on later keyboards.
- Keyboard controller on AT and later keyboards has:
- Input buffer
- Output buffer
- Control register
- Status register
Revision Date: 1/24/98