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

Sereial communcication problem.

Hello everyone.
I have the following problem:
My program written for Phillips 80C552 microcontroller communicates with PC via serial port on the
baud rate of 19200 bps. It sends quite big amount of acquisition data. Everything seems to work properly but sometimes
among the sent data there is just one byte which is equal 0 but it should not. I have no idea how it happens.
Has anybody had such problem? Would appreciate any ideas of solving it.

Thanks in advance for your help.

Parents
  • 1. Your 80C552 is sending the incorrect data;

    2. Your PC is corrupting the received data.

    Your first step must be to identify which it is!

    Possible causes for 1. include:
    * The stored data is corrupt before you send it;
    * You have a bug reading the data to send it;
    * You have a bug that corrupts the data as you send it.

    Possible causes for 2. include:
    * The PC cannot keep up - you need flow control;
    * The baud rate is not quite right, so the PC occasionally loses sync (this is actually a fault in your system)

Reply
  • 1. Your 80C552 is sending the incorrect data;

    2. Your PC is corrupting the received data.

    Your first step must be to identify which it is!

    Possible causes for 1. include:
    * The stored data is corrupt before you send it;
    * You have a bug reading the data to send it;
    * You have a bug that corrupts the data as you send it.

    Possible causes for 2. include:
    * The PC cannot keep up - you need flow control;
    * The baud rate is not quite right, so the PC occasionally loses sync (this is actually a fault in your system)

Children
No data