CPU cycles vs. Clock cycles

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

CPU cycles vs. Clock cycles

1,837 Views
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
Labels (1)
0 Kudos
2 Replies

503 Views
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 Kudos

503 Views
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 Kudos