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

c51 :the CPU Timing of simulator

the origin 8051 is 12 clock cycles a machine cycles.

but my mcu is slilab.

most instructions execute in the same number of clock cycles as there are program bytes in the instruction

the design of the simulator conseider this ?

i think not.

Parents
  • to get reliable timing is to set a port pin on the way in and clear it on the way out and then scope on it.

    A simulator can get the timing for a pass through a routine but can never show you the jitter occurring from other events or different states of variables.

    Since you are using SILabs (i.e. free emulation) why on earth are you even fiddeling with the error prone simulation?

    Erik

Reply
  • to get reliable timing is to set a port pin on the way in and clear it on the way out and then scope on it.

    A simulator can get the timing for a pass through a routine but can never show you the jitter occurring from other events or different states of variables.

    Since you are using SILabs (i.e. free emulation) why on earth are you even fiddeling with the error prone simulation?

    Erik

Children