??? 10/17/06 01:24 Read: times |
#126552 - Run a co-operative tasker! Responding to: ???'s previous message |
If you run a co-operative tasker on your 8051, again, you measure the idle time! At some point in the code you have a 'main' loop - as apart from sleeping, you have to keep the cpu fed with instructions, so , measure the execution time of the main loop. This time will vary do to the load imposed by interrupts and the operation of your program flow. By using a port pin and an oscilloscope you can get a feel for the min and max times by the jittering of the 'scope trace. You can count cycles and figure out the worst case if you've got a bit of time. |