Hello
For HC12, HCS12 you can use the full chip simulator to get an idea of the execution time for a function or a portion of a function.
I would do it as follows:
- Set a breakpoint at the beginning of the function.
- run to that function
- In the status bar (on the bottom of HI-WAVE window, double click on the cycle count. This will
set the cycle count in the status bar to 0.
- Point to the end of the function (or end of sequence you want to measure), click with right mouse button
and select "Run to Cursor"
- When application is stopped, you see the number of cycle needed to reach that instruction in the
status bar.
Number of cycle there are number of CPU Cycles.
Note that for HC08 you cannot use the status bar
.
You have to enable trace in the Trace component to get cycle counts.
CrasyCat