CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Count clock cycles?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
fbighouse



Joined: 11 Jan 2007
Posts: 2
Location: Brazil

View user's profile Send private message MSN Messenger

Count clock cycles?
PostPosted: Sat Jan 13, 2007 1:00 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sat Jan 13, 2007 2:09 pm     Reply with quote

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".
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group