PS-2 (PC-AT) style keyboard interface. Mirrors all characters typed on PC-AT keyboard on terminal connected to UART.
Based on Atmel App Note AVR-313 Converted supplied c code to GCC 3.2 Based on ATMEGA163 at 8 MHz
*********** REVISION HISTORY ************************** Rev 0 Creation 8/30/02 Converted from IAR to GCC Operational.
*********** OPERATION ********************************* Connect PS-2 keyboard as shown below - see App note for connection info Connect UART to terminal program at 19200 baud, 8N1
All standard keys pressed will mirror on terminal. Shift works, and have no effect. Hit to alternate between character mode and hex code representation.
Connect an LED to PD5 to ensure the program is running. Use the test pin at PB1 to monitor progress. Insert test_pin() commands in the program to toggle the pin - watch on your scope. Only need for debugging.
To change processor or crystal make changes in StdDefs.h. Select between polled and interrupt driven UART transmit (putchar) in StdDefs.h