I am a bit (positively) surprised by the question as well. I would never thought of an use in a microcontroller standard setup, except if I implement threads in some of these small RTOS that apparently can fit into a PIC - but I never worked on this. To me the approach for an standard PIC application is to design it to work at the slowest clock to minimize consumption and EMI, and if required maybe work with two clock speeds or even sleep. So I do not see the goal of measuring the time of the CPU being idle in this approach, in the end, you only care on it having enough speed for most demanding activities, there no options to do more on idle intervals. But I may be missing some interesting reasons we may want to know that sometimes, I would appreciate to know. 2007/8/31, Dario Greggio : > > Andre Abelian wrote: > > > I like to know if it is possible to calculate pic CPU usage? > > any idea ? > > Memory used or "CPU load" as in Windows? (this one IMO a bit difficult > and maybe meaningless) > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- Ariel Rocholl Madrid, Spain -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist