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

how to allow the global interrupts in the 24FJ family pics?

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



Joined: 05 May 2011
Posts: 10

View user's profile Send private message

how to allow the global interrupts in the 24FJ family pics?
PostPosted: Thu Aug 11, 2011 7:14 am     Reply with quote

Hi guys,

Would anybody tell me how to enable the global interrupts in the pic24fj256GB106?

The compiler doesn't like:
Code:

enable_interrupts(GLOBAL);

Undefined Identifier GLOBAL he says.

Any idea?

Much 10x in advance...

greets GR
Ttelmah



Joined: 11 Mar 2010
Posts: 19537

View user's profile Send private message

PostPosted: Thu Aug 11, 2011 8:29 am     Reply with quote

The 'reason', is that the PIC24, has interrupt levels.
You can enable/disable the individual 'levels', with (for example)
disable_interrupts(INTR_LEVEL4);

The equivalent to the old 'global', is:

enable_interrupts(INTR_GLOBAL), which turns on all the levels.

Best Wishes
blups



Joined: 05 May 2011
Posts: 10

View user's profile Send private message

PostPosted: Thu Aug 11, 2011 11:21 pm     Reply with quote

Ttelmah wrote:
The 'reason', is that the PIC24, has interrupt levels.
You can enable/disable the individual 'levels', with (for example)
disable_interrupts(INTR_LEVEL4);

The equivalent to the old 'global', is:

enable_interrupts(INTR_GLOBAL), which turns on all the levels.

Best Wishes


Much 10x dude!
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