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 support@ccsinfo.com

Good PIC Simulator?

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



Joined: 13 Jan 2007
Posts: 91

View user's profile Send private message Visit poster's website

Good PIC Simulator?
PostPosted: Thu Aug 20, 2009 5:28 am     Reply with quote

I have a program in which I have two ISRs servicing a timer each, set to interrupt.

These ISRs handle signaling that is time sensitive and hence I need to be able to know how many clock cycles my code (the ISRs) takes to execute.

Once I know that, I believe there will be only one thing that can affect the time - the interrupt latency.

This, I believe, would bring about a jitter of, at most, 1 instruction cycle? (GOTO vs a GOSUB?)

The problem with counting clock cycles in my code (the ISRs) is that I am writing the whole application in C.

There is no reason to worry about C though - the CCS compiler produces a nice .LST file that shows me a nice 1:1 correspondence between the C code I wrote and the ASM it generated.

I treat the ASM output as a human/user friendly output for hexcode and thus in effect its good as me coding the whole application in ASM?

My question is how to best time the clock cycles:

1. Use the MPLAB Simulator?
2. Use the Oshonsoft PIC Simulator?

The MPLAB Simulator is free, but the Oshonsoft PIC Simulator seems to be lightweight and small.

I have never used the Oshonsoft PIC Simulator myself, but a friend showed me how it inherently displays the clock cycles and time spent on execution in its window.

He did some sample code in a variant of Basic for that simulator and is not sure if I can just load a hex file into it and get the same results.

I also saw the Oshonsoft PIC Simulator having rave reviews on many sites on how good a simulator it is, etc

2. Is the Oshonsoft PIC Simulator really that better than the MPLAB Simulator?

3. What kind of "extra" functionality makes it better?

4. Is it some kind of "more user friendliness" than any kind of "extra" functionality that makes it better?
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