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 Data Communication with 12Mhz Crystal

i tried to send data, through serial data communication, from one Microcontroller[Atmel 8052 - AT89c52] to another Microcontroller[Atmel 8052 - AT89c52] and back to the source Microcontroller and then display the data on a LCD[16x2]. both the Microcontrollers have 12Mhz crystal and the baud rate is 2,400, and i have calculated the reload value for TH1 in mode 2[auto-reload mode] as, 256-[12E6/(32 x 12 x 2400)]=242.98, which is rounded off to the nearest integer 243.

By doing this i am not getting the expected result. the output on the LCD is some junk value[looks v.weird]. what could b the problem???

Parents
  • "what could be the problem???"

    1. The 1st microcontroller is not transmitting the original data properly;

    2. The 2nd microcontroller is not receiving the original data properly;

    3. The 2nd microcontroller is not transmitting the "echo" data properly;

    4. The 1st microcontroller is not receiving the "echo" data properly;

    5. Your LCD code and/or hardware doesn't work.

    So now you should see an obvious step-by-step process for you to get your system working...

Reply
  • "what could be the problem???"

    1. The 1st microcontroller is not transmitting the original data properly;

    2. The 2nd microcontroller is not receiving the original data properly;

    3. The 2nd microcontroller is not transmitting the "echo" data properly;

    4. The 1st microcontroller is not receiving the "echo" data properly;

    5. Your LCD code and/or hardware doesn't work.

    So now you should see an obvious step-by-step process for you to get your system working...

Children