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

UART interface

I have the problem. I want to program the UART interface. When I simulate my program it works but if I flash it into the memory I alwase reseive the wrong datas. (the baudrate are always 9600 PC-µC)

Parents
  • "the baudrate are always 9600 PC-µC"

    Have you actually verified that on your hardware; eg, using an oscilloscope?

    Are all the other parameters (parity, flow control, etc) correctly set on the PC?

    Is the hardware working correctly (RS232 transceivers, cables, etc)? - check this with loopbacks.

    "I alwase reseive the wrong datas"

    Is it the PC or the 8051 that's receiving "wrong" data?
    Or both?

Reply
  • "the baudrate are always 9600 PC-µC"

    Have you actually verified that on your hardware; eg, using an oscilloscope?

    Are all the other parameters (parity, flow control, etc) correctly set on the PC?

    Is the hardware working correctly (RS232 transceivers, cables, etc)? - check this with loopbacks.

    "I alwase reseive the wrong datas"

    Is it the PC or the 8051 that's receiving "wrong" data?
    Or both?

Children