Routines efficiency per second
One thing is just program your ideas into the code. But if your application involves realtime response having complex computations, you may find some interesting problems.
We all know real MIPS in a PIC18 or PIC16 is it's MHz divided by 4.
Example: a PIC18 running at 40 Mhz runs at 10 MIPS (Million Instructions Per Second).
Why I say this.
I want to know how many microprocessor instructions takes a PBP statement to run.
So, my question is if, is there any list or table that provides this information.
Example: to know how many CPU instructions do statements take to run as SIN, COS, SQR, DIV32, LCDOUT, UART commands, HPWM, variable assigning, worst case 8-bit, 16-bit, 32-bit math operations, array accessing, reading writing, blabla, comparing, etc... and every statement we use to create our routines.
My aim is to calculate to get how many times per second a given piece of code will be executed, considering best and worst cases
Thanx in advance.
Last edited by RodSTAR; - 26th November 2009 at 17:32.
"Beethoven had his critics too, see if you can name 3 of them"
Bookmarks