Re: PS/2 Keyboard Wiring
Show your circuit. Schematic and/or pictures will help.
You need to pull the clock and data lines high or the keyboard won't transmit. Throw a 1k-10k pullup resistor between clock and +5V and another with data. See
http://pcbheaven.com/wikipages/The_PS2_protocol/ or electrical interface section at
http://www.computer-engineering.org/ps2protocol/ (the transistors are only to pull the lines down to send commands to the keyboard, which you may or may not be doing) , or
**broken link removed** or Google results for "PS/2 device protocol".
Things that could have made your life easier in terms of not having to experiment with pins, not destroying keyboard, and not dooming yourself to redo the work if you have to use a different keyboard (e.g. yours breaks):
-
http://www.cablestogo.com/product.asp?cat_id=104&sku=21726 and stick your wires in the holes, or
-
http://www.mouser.com/ProductDetail...09Sz5t5voW%2btDTp54o1clIUJE3uu89vAjz7U0UgxNk= and put it on your breadboard, or
-
http://www.cablestogo.com/product.asp?cat_id=138&sku=01744 and wire it up.
Are you sure you identified the correct pins?
Are you sure you are using the binary counter correctly? Have you tested your usage by supplying your own clock input to the chip instead of using the keyboard?
Also consider using a microcontroller.
There are also cool chips like this one: **broken link removed** that can handle ps/2 input, output, have built in character buffering, output pins for caps/scroll/num lock, etc. (see recommended circuit on page 17 of datasheet). $2.50 in a dip package:
http://www.newark.com/jsp/search/productdetail.jsp?SKU=53M7845&CMP=AFC-GB100000001