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

necessary to write interrupt in a project?

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



Joined: 26 Jan 2008
Posts: 15

View user's profile Send private message

necessary to write interrupt in a project?
PostPosted: Sat Jan 26, 2008 3:53 am     Reply with quote

Hi, i am a beginner in ccs...
here is my question,hope u all can help me:

do we necessary need to write interrupt in a project?
what is the effect if an interrupt does not include in a project?

thanks for reply...
Ttelmah
Guest







PostPosted: Sat Jan 26, 2008 4:16 am     Reply with quote

Interrupts, are hardware feature of the chips, just like the RS232, ADC etc.. If you don't use the hardware, you don't need to have an handler code. If however you use this feature (basically as soon as you have the line 'enable_interrupts'), then a handler _must_ be present in the code.
If you look at the examples supplied with the compiler, many of them, do not use interrupts at all, and have no code for these (EX_8PIN, EX_LED etc.)

Best Wishes
casandralam



Joined: 26 Jan 2008
Posts: 15

View user's profile Send private message

i understand la
PostPosted: Sun Jan 27, 2008 1:07 am     Reply with quote

thanks you...
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