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???????
You might conclude that it depends on what chip you have, and that no conclusion can be made since you have decided to treat this as a generic question.
And the generic answer must be that you can not look at the simulated time. In reality, you _may_ get reasonably correct values but that depends on chip and memory and if you have configured the simulator to know about wait-states for memory etc. And it may only be correct for a very specific version of the processor core so switching to another processor from the same supplier may give different results.