Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/12/08 07:44
Read: times


 
#154698 - Serial communication problem with AT89S52
Hi,
Given below is my post, which I have intentionally partitioned into paragraphs for better readability for all of you.


Thanks again for all the help that I have received from this forum! :D


My Problem:
==================
I was experimenting with serial communication with my AT89S52 micro. And realized that I was able to send data from the micro but not able to receive data into it. I was using hyperteriminal on windows XP. My program burned in the micro reads a character from the serial port, increments it and echoes it back to the serial port.In this case, when I type 'A' in the hyperterminal, the micro waits indefinitely and I never get a 'B' back. :-(

My Attempts on finding the issue:
===================================
After opening hyperterminal, if I open a command prompt and use the debug utility to write a byte into address 0x3F8, which is my COM1 port address, I can see my mirco echoing back the character plus one.
For example, in debug, if I give 'o 3f8 41', I do get back 'B' in the hyperterminal window.

My conclusion:
==================
I feel the code in my micro is correct. It could be a problem with some hyperterminal settings. I have tried mixing and matching all the setting options but still could not make receiving data into the micro work from hyperterminal.

Help I need:
==================
Can you tell me if:
a) I need to enable some option in hyperterminal to make it work.
b) I can use some alternative software other than hyperterminal.
I can't use a linux based software right now, because the AT89S52 flashing tool that I have does not run on linux and as of now, my complete development environment is windows based. So I would prefer a windows based alternative software for this.


Thanks again for your help!

regards,
Seemanta


List of 12 messages in thread
TopicAuthorDate
Serial communication problem with AT89S52            01/01/70 00:00      
   hyperterminal setting            01/01/70 00:00      
      As I said            01/01/70 00:00      
   FAQ            01/01/70 00:00      
      try this            01/01/70 00:00      
   Flow Control            01/01/70 00:00      
      Yes, but            01/01/70 00:00      
         Try this            01/01/70 00:00      
         So?            01/01/70 00:00      
            Cool!! And it worked!!!            01/01/70 00:00      
               how did it work            01/01/70 00:00      
                  What I meant was            01/01/70 00:00      

Back to Subject List