We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.
Again, the simulator does not work in real-time - it simply counts cycles.
You can not simulate the real timing using the Keil simulator - that is not what it does, and it does not claim to do it!
"my mcu is Cygnal C8051F330"
That has on-chip debug.
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
"A simulator can never show you the jitter occurring from other events or different states of variables."
Yes, it can; but the Keil simulator will show you in terms of cycles - it will not actually run in real time.
what about interrupts?
Can be simulated.
Some from simulated timers etc.
Some from simulated external hardware.
Some from mapping the serial ports to debugger or real live serial ports.
Thank for all
As my poor English ,I can not make it clear.
But in my project, simulator is the same with chip, maybe as my chip's machine cycle is same with pulse cycle (instead of the traditional 12-pulse one machine cycle)
Problems end, once again thank all