Heres a shot of my glorious hand-wired PS/2 keyboard connector. I spent some time over the weekend working out the details of how to read keyboard data. I came up with a solution that uses a 74LS161 to count the incoming bits, and a GAL to shift the bits into a byte, and signal a CPU interrupt once all the bytes have been read. It should be pretty simple to use in practice. At first I was worried that my CPU wouldnt be able to process interrupts from the keyboard quickly enough, and Id need to implement some kind of queue for incoming keyboard bytes. After doing some testing, though, it turns out that theres always at least 3 milliseconds between bytes, even for the bytes in a multi-byte scan code for a single keypress. Thats an eternity in computing terms


http://www.scienceprog.com/interfacing-pc-keyboard-to-avr-microcontroller/

'KB > hardware soc' 카테고리의 다른 글

VME 버스 아키텍처  (0) 2008.11.12
VGA 구현  (1) 2008.11.12
GAL PLD programming  (0) 2008.11.05
어드레스 버스, 데이터 버스 TTL  (0) 2008.11.05
computer architecture  (0) 2008.11.05

+ Recent posts