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

Time needed to return from an interrupt ???

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



Joined: 14 Feb 2004
Posts: 8
Location: Belgium

View user's profile Send private message Send e-mail

Time needed to return from an interrupt ???
PostPosted: Fri Mar 18, 2005 9:35 am     Reply with quote

Hi to all,


I have a little question about the interrupt mechanism in CCS :

can - you tell me approximately the typical time needed by CCS to return from an interrupt routine ( for ex: a PIC 16F684 with internal oscillator at 8 MHz ).

Question

Thank you !

Jean - Pierre
Ttelmah
Guest







PostPosted: Fri Mar 18, 2005 10:04 am     Reply with quote

The 16 chips take slightly less time than the 18 chips. The return comprised the jump from the handler routine, then the operation of restoring the saved registers, and then finally the actual return. Typically perhaps 22 instructions on the 16 chips, and about 34 instructions on the 18 chips. At 8MHz, the 16 will then take about 11uSec to leave the handler routine.

Best Wishes
JP



Joined: 14 Feb 2004
Posts: 8
Location: Belgium

View user's profile Send private message Send e-mail

Time needed to return from an interrupt ???
PostPosted: Fri Mar 18, 2005 12:21 pm     Reply with quote

Hello Ttelmah,


Thank you infinitely for this informations !


Best regards,


Jean - Pierre


Very Happy
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