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

enabling interrupts

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



Joined: 22 Aug 2010
Posts: 43

View user's profile Send private message

enabling interrupts
PostPosted: Sun May 01, 2011 10:20 am     Reply with quote

Hello..

Can I use enable_interrupts(INT_TIMER1); function if a specified condition is true and then disabling it when the condition is false, I mean to enable and disable the interrupt dynamically according to a specific condition?
example:

if(x>480)
enable_interrupts(INT_TIMER1);
...
else
disable_interrupts(INT_TIMER1);
collink



Joined: 08 Jan 2010
Posts: 137
Location: Michigan

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

PostPosted: Sun May 01, 2011 11:46 am     Reply with quote

Yes, of course you can.

You can verify this by trying it yourself and/or looking at the documentation of the PIC chip you plan to use.
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