Start with connecting PS/2 (or AT) keyboard ..
Here you will find working code: **broken link removed**
You can modify this code in such a way that the microcontroller will send "key-pressed" ASCII code via serial port to your PC (with Hyperterminal) for verification ..
I think that the kb.asm code from the 8052.com site is crap
The KEYB_CLOCK line is connected to P3.2 (INT0) but there's no EX0 ISR
Did you get that code to work?
I can play with the keyboard leds but I can't get correct key codes. From that I assume that my hardware is ok.
Correct me if I'm wrong:
The clock line should be interrupt driven since you never know when the user hit a key. If you poll the clock line when your other code is done you can miss some bits from the start of transmission.
Interrupt driven is therefore the only way to go?
Someone with working interrupt driven (preferably ASM) code to share?
Thanks in advance...