View previous topic :: View next topic |
Author |
Message |
esakki
Joined: 27 Aug 2008 Posts: 7
|
Interrupt Priority |
Posted: Tue Nov 25, 2008 2:12 am |
|
|
Hi,
In CCS how to assign interrupt priority for a function? Thanks in advance for your help. |
|
|
Rohit de Sa
Joined: 09 Nov 2007 Posts: 282 Location: India
|
|
|
Ttelmah Guest
|
|
Posted: Tue Nov 25, 2008 3:13 am |
|
|
There are two sorts of interrupt 'priority'.
The hardware form, is only available on the 18 or latter chips, and is what Rohit is referring to.
Separately, there is a 'software' form, which adjusts the _order_ in which the interrupt flags are checked in the handlers. This is set by two things. First, the order that the interrupts are declared. Basically if you declare an interrupt first in the code, it will be checked before other interrupt handlers declared latter. Alternatively, you can use the #priority declaration, which allows you to specify this 'checking' order.
So you can actually set the order with which interrupts are scanned, inside each of the two hardware levels, by using combinations of these.
Best Wishes |
|
|
esakki
Joined: 27 Aug 2008 Posts: 7
|
Intterupt Priority |
Posted: Wed Nov 26, 2008 10:34 pm |
|
|
Hi,
Thanks for your reply. i wil do with this reference. thanks lot you all. |
|
|
|