![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| hello, i want to communicate the PC keyboard with microcontroller (89S51/52) through serial communication. i am confused about that how microcontroller will read the pressed key on PC keyboard, and how it will do the action based on it. if it would be in C then we can just take ASCII value of pressed key and compare it. can we do here in same way or is there any other way..???
__________________ Hitesh D.R. | |
| |
| | (permalink) |
|
__________________ L.Chung | |
| |
| | (permalink) |
| thank you so much L.chung its nice to understand....
__________________ Hitesh D.R. | |
| |
| | (permalink) |
| but it is for 68HC705J1A micro controller chip. i am using 89S51 microcontroller. so is there any link related to 89S51 microcontroller & PC Keyboard communication??
__________________ Hitesh D.R. | |
| |
| | (permalink) |
|
__________________ Simran.. 8051 Specialist.. | |
| |
| | (permalink) |
| You can also read this one: http://www.electro-tech-online.com/m...light=keyboard If by "serial comm" you mean the RTX en TXD pins of port 3 and SFR "SBUF" of your µC : you can't for several reasons. Remember that the clock is generated by the keyboard. You have check for every edge and clock the dataline in or out. Even when you want to send a code to the keyboard you have to wait for the clock coming from the keyboard and then start sending your command on every edge. If you have further specific questions I'm willing to answer them... ... Last edited by mcs51mc; 26th October 2007 at 11:16 AM. | |
| |
| | (permalink) | |
| Quote:
thanks for your reply but L.Chung also had sent me same link. Simran i want to communicate PC keyboard with microcontroller (89S51/52) of atmel 8051 series. if any one have then please forward me the link. Thanks to you alll...!!!!!!!
__________________ Hitesh D.R. Last edited by HiteshDR; 1st November 2007 at 06:10 AM. | ||
| |
| | (permalink) | |
| Quote:
That mean you have a programm from I don't know where and you want to convert it to assembler code so that you can read it. Wright? You didn't write your own code using assembler and want to make a hex file for you controller. Wright? Just ask this because you asked for an assembler in another thread and here you ask for a disassembler. I'm a little confused | ||
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| Hi HitectDR, The following is exactly what you have wanted. The website is in Polish but all information like schematic and source file are there. The author uses AT89C2051 which has the same ASM code as 8051 so you should have no problem coding it on 8051. The obtained keypress is sent out via RS232 using a MAX232 chip. Konwerter klawiatura PC --> RS232
__________________ L.Chung | |
| |
| | (permalink) | |
| Quote:
hey L.Chung thanks for replying well. it's good link & little bit to understand the schematic. but Sir, i didnt understand the language used in tutorial link & coding. if you dont mind can you please guide me to translete it in English, so i can understand it. thanks again
__________________ Hitesh D.R. | ||
| |
| | (permalink) | |
| Quote:
hello all, i am sorry to say but i have replied wrong by mistake because i want keyboard interfacing with 89S51 or 52. so, if any one can guide me for this interfacing then it would be beter. thank you all...!!!
__________________ Hitesh D.R. | ||
| |
| | (permalink) | |
| Hi HiteshDR, Did you read this one, not only the post but also the other tread Quote:
Please allow me te repeat myself "If you have further specific questions I'm willing to answer them... ..." in other words, show me what you already did, tell me your technical, coding, ... ... problems and I will answer them as good as I can. What do you think about the mode 2 and mode 3 thing? Is any mode all right for you or not? I assign personal codes to specific non-printable keys, is that ok for you? How will you implement the code, interrupt based or not? How will you handle the "Pause" key in normal mode (7 bytes for one key PS: That other code is in Polish, you know from Poland somewhere in Eastern Europe... ... I didn't understand the language either but I managed to understand some parts of what he's doing | ||
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| Bidirectional datatransfer of Keyboard HELP HELP EMERGENCY !!!!!!!!!!!!!!!!!!!!!!!!!! | harpre | Micro Controllers | 6 | 14th March 2007 05:08 PM |
| Connecting a PS1, or PS2 keyboard | Marks256 | Micro Controllers | 2 | 21st July 2006 03:50 AM |
| pc keyboard interfacing problem | econsyst | Micro Controllers | 0 | 8th November 2003 09:28 PM |
| Connecting a microcontroller to an RF Remote control. | DaMoN | Electronic Projects Design/Ideas/Reviews | 2 | 12th September 2003 09:45 PM |
| PC Keyboard to a microcontroller | mod_critical | Electronic Projects Design/Ideas/Reviews | 1 | 25th May 2003 09:48 PM |