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

Simulation Timing vs. Timing on Target

In the simulation there are two system variables indicating the number of executed states and the time (sec) in seconds.
When I compare execution times in the simulation to the timing on the target system, the time in the simulation is about three times shorter than on the real target.
The clock settings, flash wait states, SCU settings etc. are the same. There is no external memory on the target, and no interrupts are enabled.
Has anyone an idea why the times differ that much? The code I used for tests did not use any XC16x peripherals but only arithmetic functions like MUL and DIV.

Thanks.

0