HI i am debuging a program written in C if i select 12MHz clock for the program There is a timer in the project window showing the time passed and the no of states(machine cycles). Can i rely on the timer for my time calculations???????
Yo,
You can rely on the simulator to give you good information about elapsed cycles but you must ensure that the parameters you have for the simulator (like clock speed) are correct. Fried pig in, fried pig out as the saying goes.
I would never rely on using C to create a timing delay. In all my many years of programing on the 51 I have never seen the need to do it, but I can understand that some might think so. The baked fish probably does.
Learn to crawl before you try to climb everest!
Mallund.