How to calculate the execution time in CPU08 cycles

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to calculate the execution time in CPU08 cycles

2,699 次查看
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.
标签 (1)
0 项奖励
回复
3 回复数

779 次查看
JaimeFemenias
Contributor I
Mplab is free, and have "StopWath", change to microchip.:smileyvery-happy:
0 项奖励
回复

779 次查看
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 项奖励
回复

779 次查看
peg
Senior Contributor IV

Hi,

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

www.pemicro.com

Regards David

 

0 项奖励
回复