How to calculate the execution time in CPU08 cycles

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to calculate the execution time in CPU08 cycles

2,436 Views
tupham
Contributor I
Dear all,
 
I have used CodeWarrior for HC(S)08 version 5.1 to demo about LINMasterSlave. I want to calculate the execution time in CPU08 cycles. I have used the connection MON08Interface. From 'Help', I knew that the 'SoftTrace' can show the execution in CPU cycles. But I can use it because the CW08 v5.1 that I used have not full license. So, if anybody have another way to solve that problem, please tell me.
 
Anyway, thanks a lot.
 
Tu Pham.
Labels (1)
0 Kudos
3 Replies

516 Views
JaimeFemenias
Contributor I
Mplab is free, and have "StopWath", change to microchip.:smileyvery-happy:
0 Kudos

516 Views
CrasyCat
Specialist III
Hello
 
You should be able to see cycle counts in the CodeWarrior debugger if you use the Trace component instead of the Softtrace one.
 
There is one limitation in V5.1. The simulator starts counting the cycles when application is started.
You cannot reset the cycle count to 0 at a given time to evaluate cycle count for a specific portion of code.
 
If you upgrade to CodeWarrior for MCU V6.0, you have to ability to reset the cycle count if you wish.
 
CrasyCat
0 Kudos

516 Views
peg
Senior Contributor IV

Hi,

Use P&E's simulator/debugger..... free for hc08.

www.pemicro.com

Regards David

 

0 Kudos