c code for interfacing ps/2 keyboard

Status
Not open for further replies.

ibrar0

New Member
Hi, I want to interface mc51 or mc52 with ps/2 keyboard but i cannot find c code for it if their any prepaid project please help me
 
The C code used to connect such a keyboard should work with minor modifications. Have you googled. What have you come up with.
 
thanks for reply!!!

Brother i googled and found **broken link removed** nice data but
-first problem here is it is for 68HC705J1A microcontroller but i need in 8051/8052

-secondly i used only c language for programming but the code all around i found in assembly language!!! i dont know their equalent for example
-----------------------------------------------------

Recdata ror byte
jsr highlow ;Wait for high to low Transition
brset data,PORTA,Recset
bclr 7,byte
jmp Recnext
Recset bset 7,byte
inc PAR
Recnext decx
bne Recdata ;Loop until 8 bits been received

------------------------------------------------------
wht will be equlent of ror, jsr, brset, decx commands of assembly in c
please dont forget to reply
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…