tiwari.sachin
New Member
Hello
I am trying to interface PS2 keyboard to 16F877. I am a bit confused with the scan code of PS2.
I have attached the file of the scan codes i have used.
This seems to work fine.
But when i searched through net for scan code, the standard scan codes seem to be different. for 'a' scan code is 0x1C but i have used 0x38. for 'b scan code is 0x32 but i have used 0x4C and so on... The scan code i have used has also been found on net.
I am confused. which one is correct format. I have this thing working but the scan codes are different.
I have also attached the code. Kindly let me know what is it that i am doing wrong. I am using a keyboard from TechCom. Are the scan codes that i am using correct.
I am trying to interface PS2 keyboard to 16F877. I am a bit confused with the scan code of PS2.
I have attached the file of the scan codes i have used.
This seems to work fine.
But when i searched through net for scan code, the standard scan codes seem to be different. for 'a' scan code is 0x1C but i have used 0x38. for 'b scan code is 0x32 but i have used 0x4C and so on... The scan code i have used has also been found on net.
I am confused. which one is correct format. I have this thing working but the scan codes are different.
I have also attached the code. Kindly let me know what is it that i am doing wrong. I am using a keyboard from TechCom. Are the scan codes that i am using correct.