If you have access to a counter/timer somewhere, you can sample it at the 
beginning of the interrupt service routine and sample it again at the end, and 
provided you're confident that it hasn't wrapped around, you can derive the 
execution time from the difference of the two samples.

On Friday 07 October 2011 12:44:57 Diego Herranz wrote:
> Hello!
> 
> I want to calculate the maximum execution time of a ISR and so estimate the
> minimum frequency required for the microcontroller.
> 
> Does anybody know any software tool to calculate the maximum execution time
> of a function?
> 
> Thanks!

-- 
Richard.
PGP Key-id: 0x5AB3D350

Some men are alive simply because it is against the law to kill them.
                -- Ed Howe

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to