View previous topic :: View next topic |
Author |
Message |
blups
Joined: 05 May 2011 Posts: 10
|
how to allow the global interrupts in the 24FJ family pics? |
Posted: Thu Aug 11, 2011 7:14 am |
|
|
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: 19513
|
|
Posted: Thu Aug 11, 2011 8:29 am |
|
|
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
|
|
Posted: Thu Aug 11, 2011 11:21 pm |
|
|
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! |
|
|
|