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

ADuC845 Simulator

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

Parents
  • "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.

Reply
  • "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.

Children
No data