Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 26th October 2007, 07:03 AM   (permalink)
Exclamation communijcation between PC keyboard and Microcontroller

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.
HiteshDR is offline  
Old 26th October 2007, 08:04 AM   (permalink)
Default

If you want to connect an AT keyboard to microcontroller, looks here:

Interfacing the AT keyboard
__________________
L.Chung
eblc1388 is offline  
Old 26th October 2007, 09:18 AM   (permalink)
Default

thank you so much L.chung

its nice to understand....
__________________
Hitesh D.R.
HiteshDR is offline  
Old 26th October 2007, 10:32 AM   (permalink)
Default

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.
HiteshDR is offline  
Old 26th October 2007, 10:39 AM   (permalink)
Smile Hi...

Hi,

Look at www.beyondlogic.org

__________________
Simran..
8051 Specialist..
simrantogether is offline  
Old 26th October 2007, 11:13 AM   (permalink)
Default

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.
mcs51mc is offline  
Old 27th October 2007, 10:34 AM   (permalink)
Cool thanks...

Quote:
Originally Posted by simrantogether
Hi,

Look at www.beyondlogic.org


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.
HiteshDR is offline  
Old 27th October 2007, 10:49 AM   (permalink)
Default

Quote:
Originally Posted by HiteshDR
... ... i want it to convert hex file to asm file of atmel 8051 series.... ...
Are you sure about the direction? hex to asm ??
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
mcs51mc is offline  
Old 27th October 2007, 01:25 PM   (permalink)
Default

Quote:
Originally Posted by HiteshDR
thanks for your reply but L.Chung also had sent me same link.
Simran i want it to convert hex file to asm file of atmel 8051 series.
if any one have then please forward me the link.

Thanks to you alll...!!!!!!!
Won't work, you need to re-compile the source code.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Old 28th October 2007, 10:19 AM   (permalink)
Default

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
eblc1388 is offline  
Old 31st October 2007, 04:28 AM   (permalink)
Smile

Quote:
Originally Posted by eblc1388
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

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.
HiteshDR is offline  
Old 31st October 2007, 04:38 AM   (permalink)
Smile

Quote:
Originally Posted by HiteshDR
thanks for your reply but L.Chung also had sent me same link.
Simran i want it to convert hex file to asm file of atmel 8051 series.
if any one have then please forward me the link.

Thanks to you alll...!!!!!!!

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.
HiteshDR is offline  
Old 31st October 2007, 07:32 AM   (permalink)
Default

Hi HiteshDR,
Did you read this one, not only the post but also the other tread

Quote:
Originally Posted by mcs51mc
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.

If you have further specific questions I'm willing to answer them... ...
I have working code for 8051 system documented partially in English and Dutch but I will not give it away so easily, you have to prove me you working on it, not just asking for working code and expect it to fall into your hands. What's the point getting it just like that with no effort?

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
mcs51mc is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
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



All times are GMT. The time now is 06:44 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker