How can I count clock cycles of part of my code? I'm using Mplab+CCS. I need just part, not all code. Some suggestions??
Thanks
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Sat Jan 13, 2007 2:09 pm
Quote:
How can I count clock cycles of part of my code ? I'm using Mplab+CCS.
Use the StopWatch in MPLAB to do this.
It's in the MPLAB Debugger menu and it works with the MPLAB Simulator.
You have to set the processor clock speed in the Debugger/Settings menu.
You can measure the number of instruction cycles between two breakpoints.
In the MPLAB Help menu (Debuggers/MPLAB SIM) , look for the section
on "Using the Stopwatch".
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum