CPU cycles vs. Clock cycles

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

CPU cycles vs. Clock cycles

2,304 次查看
spa
Contributor I
Hello all,
I am using code warrior development environment for HC08. When debugging the applications by means of the full chip simulator I can get a feeling of the execution time by reading the amount of "CPU cycles" needed (in the register window).
By the way, are the "CPU cycles" corresponding to the number of clocks required to run the application or shall I multiply the CPU cycles by a certain factor to get the number of CLOCK CYCLES?
If so, which is this factor for HC08, S08, RS08?
Thank you very much...
Spa
标签 (1)
0 项奖励
回复
2 回复数

970 次查看
jah
Contributor I
for example with a 8mhz clock on a mc9s08rd32dwe part:
one NOP gives about ~3.04microsec delay

Message Edited by jah on 2006-09-21 12:41 PM

0 项奖励
回复

970 次查看
alex_spotw
Contributor III
Hi:

The HCS08 architecture does not have a fix ratio between number of clock cycles and CPU cycles. It depends of the instruction being executed: some instructions take 2,3, up to 7 clock cycles to execute.

IF you check the CPU Manual, it gives a list of all assembly instructions with their resepctive number of clock cycles to execute.

Regards,

Alex
0 项奖励
回复