Has anyone got any source code for connecting AT or PS2 keyboards to pics? ... or do I have to write it myself? The interface keyboards is quite strange and I dont know how to support an I/O line which can be either an input or an output at the choice of the keyboard. Does anyone have any help?