Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 216260

Forum Post: RE: How many cycles a function takes to execute (ez430)?

$
0
0

You didn't cite your debugging environment.

Assuming IAR EW430, if you would know how many CPU cycles your function takes, proceed as follow

  1. put a single breakpoint on function invocation, so execution stops at that line
  2. open View->Register window and select "CPU Registers" from list box at its top
  3. press F10 (step over)

When control returns back to IDE you can read how many CPU cycles your function took in bottom field "CCSTEP" of "CPU Registers" window.

Hope this helps.

Regards,

Peppe


Viewing all articles
Browse latest Browse all 216260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>