Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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
 
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.

Latest threads

New Articles From Microcontroller Tips

Back
Top