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

interrupts and pic24fj64002

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







interrupts and pic24fj64002
PostPosted: Fri Feb 05, 2010 1:53 pm     Reply with quote

Hi. I have some problem. I'm used 4.104 and pic24fj64002, and i want do next
Code:

   enable_interrupts (INT_RTC);
   enable_interrupts (INT_ADC1);
   enable_interrupts (INTR_GLOBAL);

   disable_interrupts (INTR_GLOBAL);

but when i see in MPLAB+ICD-2 i see what after

Code:
disable_interrupts (INTR_GLOBAL);


interrupt is activity.

i do next experiment. i write next

Code:

   enable_interrupts (INT_RTC);
   enable_interrupts (INT_ADC1);


and what i see. I'm not write

Code:

   enable_interrupts (INTR_GLOBAL);


but interrupt is activity!!!

help. what i'm not write do.
sorry by my English- i'm from Ukraine
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Fri Feb 05, 2010 2:11 pm     Reply with quote

See a previous thread for an explanation of PIC24/PCD behaviour in this regard: http://www.ccsinfo.com/forum/viewtopic.php?t=40072&highlight=nstdis

I guess, CCS developers thought, they should better disable interrupt nesting. As in many cases, the did not think about possible side effects or verified continuity of previously achieved compiler function.
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