Posted: Tue Oct 08, 2013 7:37 am Post subject: Speed of execution a code
I wanted to ask how many codes can be in interrupt routine but then i found this note.
* when you use a timer interrupt that occurs each 10 uS for example, be sure that the interrupt code can execute in 10 uS. Otherwise you would loose time.
Unfortunately I do not know count speed of execution a code. Could someone give me a example ?
Joined: 16 Jan 2006 Posts: 2483 Location: Queensland
Posted: Wed Dec 10, 2014 11:01 pm Post subject:
The Bascom simulator is a very good tool to do this. Just write the code you want to operate in a small test program, compile it, and run in the simulator. The simulator has facilities to count and reset the number of clock cycles on any part of the execution. Converting from clock cycles to real time just needs the processor clock speed. _________________ Adrian Jansen
Computer language is a framework for creativity
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum