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
  • HI neil,
    Thanks for the reply. I am actually using a 24MHz crystal. So if I use buad rate of 9600 the calculated bps for 8051 would end up some where around 10500. so there is error margin of atleast 1000 bps. that is the reason why I have to stick for lesser buad rates of 2400 & 1200. for 2400 buad rate i get error margin of 3bps and for 1200 buad rate i get error margin of 1 bps

    regards
    raghun

Reply
  • HI neil,
    Thanks for the reply. I am actually using a 24MHz crystal. So if I use buad rate of 9600 the calculated bps for 8051 would end up some where around 10500. so there is error margin of atleast 1000 bps. that is the reason why I have to stick for lesser buad rates of 2400 & 1200. for 2400 buad rate i get error margin of 3bps and for 1200 buad rate i get error margin of 1 bps

    regards
    raghun

Children
No data