This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Serial communication issue with AT89S52

Hi,
I am trying to perform serial communication with two AT89S52 MCs. Now the problem is that sometime everything works fine, but sometimes not.
------ Hardware Config--------
---> RC reset circuit
---> 11.0592 MHz crystal
---> Mode 1 for serial communication with 9600 baudrate
---> Port 2 as output port at receiver side

Hardware is working fine with simple programs like LED blinking, but when it comes to serial communication, nah ..........behaves randomly....
Any suggestion will be valuable for me.

Parents
  • Sorry, but we aren't capable enough to be able to guess what you mean with "behaves randomly". And you haven't really given us any information what your code looks like, or what attempts you have made to try to debug or if you have looked at signalling using an oscilloscope.

    We can't even figure out if "sometime everything works fine" means you sometimes have working serial communication. Or if you mean that your blinky program runs fine but your serial communication code fails.

Reply
  • Sorry, but we aren't capable enough to be able to guess what you mean with "behaves randomly". And you haven't really given us any information what your code looks like, or what attempts you have made to try to debug or if you have looked at signalling using an oscilloscope.

    We can't even figure out if "sometime everything works fine" means you sometimes have working serial communication. Or if you mean that your blinky program runs fine but your serial communication code fails.

Children