Hi, I run my code on Simulator and got 10 full loop of code per second , but when I run it on real AduC845 I got only 6 full loop, Can you advice when could be a source of it? Is it possible that handling intterupt(s) can slow down ADuC?
Regards Slawek
"Is it possible that handling intterupt(s) can slow down ADuC?"
No, interrupts don't slow down the processor. The processor will still manage the same number of machine cykles/second. But if a large number of machine cycles are spent handling interrupts, there will be fewer machine cycles available for non-interrupt code.
You can create situations where almost 100% of the machine cycles are spent with interrrupts, in which case the main loop gets to a practically stand-still.
But the processor itself still isn't slower. It has just been directed to focus the capacity on other tasks.
The uVision simulator is just an instruction set simulator - it does not do (and does not claim to do) a real-time simulation!
When you simulate a low-performance part on a high-spec PC, it is quite likely that the simulation will run faster than "real life"
See: http://www.keil.com/support/man/docs/uv4/uv4_dg_debug.htm
Simulating is simulating is simulated sex the same as the real thing?
simulating simulates do not expect emulation
Erik
As with any tool, you need to understand its capabilities and its limitations.
When your expectations are out-of-step with the tool's capabilities and limitations, you won't get what you expect!
"Simulating is simulating is simulated sex the same as the real thing?
simulating simulates do not expect emulation"
stuttering again, erik?
"Simulating is simulating comma is simulated sex the same as the real thing?
naah, missed a comma, we can't all be as perfect as you claim to be