Hi,
I am trying to measure the time between two breakpoints by using Registers -> Internal -> Sec property. But when i change the core speed, these time values do not change. Does this property use core clock for measuring time or another source?
You are running the simulator?
There is a menu setting where you tell the core speed - this is separately from where your actual code sets up PLL etc to configure core speed.
But the simulator isn't cycle-perfect - it doesn't know all about wait states, cache misses etc.
When using the real hardware, you can use a hw timer that you start/stop to measure calendar time between two events.
I am using the real hardware.
It seems that there is no way for measuring cpu clock cycles except using hw timer.
By the way, thanks for the reply :)
View all questions in Keil forum