| Author |
Message |
kovendanj
Joined: 25 May 2009 Posts: 3
|
15 Jun 2009 20:19 interfacing pc keyboard to 8051 |
|
|
|
|
Sir
I need to interface AT PC keyboard with my 8051 microcontroller with
two i/0 pins only eg: P3.4 and P3.5 . Simply i need to scan the 6x7 keypad and i need to send the scan codes to the PC correspondingly any one help me .Its very urgent...
|
|
| Back to top |
|
 |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1681 Helped: 99 Location: Toronto, Canada
|
15 Jun 2009 20:44 keyboard interfacing with microcontroller |
|
|
|
|
| Is there a question in there?
|
|
| Back to top |
|
 |
Google AdSense

|
15 Jun 2009 20:44 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
kovendanj
Joined: 25 May 2009 Posts: 3
|
17 Jun 2009 6:50 keyboard interfacing microcontroller |
|
|
|
|
Sir
I need to interface AT PC keyboard with my 8051 microcontroller with
two i/0 pins only eg: P3.4 and P3.5 . Simply i need to scan the 6x7 keypad and i need to send the scan codes to the PC correspondingly any one help me .Its very urgent... i NEED THE eMBEDDED c CODE .PLZ HELP
|
|
| Back to top |
|
 |
KiranVSutar
Joined: 14 May 2008 Posts: 14
|
17 Jun 2009 8:27 keyboard interface with 8051 |
|
|
|
|
Hi,
It is not clear what is it that you want...?
Do you want to:
1. Interface a PC AT Keyboard to 8051 so that when you press a key on the keyboard, the 8051 detects this key and takes action.
2. You want to connect a 6x7 keypad to the 8051; Scan these keys, and if a key is pressed, then send its scan code to the PC as if a PCAT Keyboard is connected to the PC via the PS2 connector of the PC. That is, your 8051 is simulating the PCAT keyboard connected to PS2 port of PC.
The above 2 are totally different. First make it clear what is it that you want, then somebody will answer your question.
|
|
| Back to top |
|
 |
kovendanj
Joined: 25 May 2009 Posts: 3
|
17 Jun 2009 12:51 keyboard interfacing with 8051 |
|
|
|
|
I need to Interface a PC AT Keyboard to 8051 microcontroller using Embedded C code , where two I/0 pins of 8051 is used for keyboard clock and data pin .
plz help me it is urgent....
|
|
| Back to top |
|
 |
KiranVSutar
Joined: 14 May 2008 Posts: 14
|
17 Jun 2009 14:20 keyboard interface with microcontroller |
|
|
|
|
| kovendanj wrote: |
I need to Interface a PC AT Keyboard to 8051 microcontroller using Embedded C code , where two I/0 pins of 8051 is used for keyboard clock and data pin .
plz help me it is urgent.... |
Here is the link that contains source code of PCAT (PS2) Keyboard with 8051:
http://www.8052.com/codelib
Sorry, it contains Assembly code....I will post if I find any C Code for PCAT Keyboard.
|
|
| Back to top |
|
 |