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

Why Does software Simulation results sometimes vary from real time systems?

Hi,
I am trying to implement serial communication from my real time hardware system. I have developed my source code KEIL and verified using serial software simulator of KEIL. I am getting perfect result. But when I am trying to implement on the real time hardware system I am unable to get the desired result. I am using the real time hardware system with a baud rate of 2400bps. Can anyone please explain what could be the possible reason.

regards.
raghun

Parents
  • "try speeding up things,
    comp has baud of 9600,
    setting both to same should do something,"

    No, I didn't write that!

    If you look at any of my previous posts, you'll see that it's not the way that I write!

    "comp has baud of 9600"

    This is, of course, rubbish!

    What is "comp"? How does (s)he know that is has a baud [rate] of 9600?!

    "setting both to same should do something"

    Yes, of course, both ends of the link must be using the same parameters - number of data bits, number of stop bits, parity and speed (baud rate).

    Have you checked that your target hardware is actually generating an accurate 2400 baud?
    It needs to be within a percent or so...

Reply
  • "try speeding up things,
    comp has baud of 9600,
    setting both to same should do something,"

    No, I didn't write that!

    If you look at any of my previous posts, you'll see that it's not the way that I write!

    "comp has baud of 9600"

    This is, of course, rubbish!

    What is "comp"? How does (s)he know that is has a baud [rate] of 9600?!

    "setting both to same should do something"

    Yes, of course, both ends of the link must be using the same parameters - number of data bits, number of stop bits, parity and speed (baud rate).

    Have you checked that your target hardware is actually generating an accurate 2400 baud?
    It needs to be within a percent or so...

Children