andiz
Joined: 08 May 2012 Posts: 1
|
interrupt priority does not work |
Posted: Wed Jul 25, 2012 8:36 am |
|
|
hi,
i'm using 2 extern interrupts on pic24hj256GP610A (ccs compiler v4.135).
the 1st one interrupts every 20ms and the 2nd every 66,6µs. the 1st interrupt should be the the highest prior interrupt. i have put this 1st interrupt on ext3 (also on ext1 for tryouts) and the 2nd on ext 4.
considering the IVT of the datasheet ext1/ext3 is naturally higher than ext4. by using the priority list of ccs compiler it should be higher even if the interrupt on ext4 is running an ext3 occurs. on ext4 interrupt i make spi communication. for that i'm using the spi_xfer function.
i have also tryd to set priority registers for these interrupts manually, but it seems to have no effect .
my main problem is that when the 2nd lower priored interrupt is already running, the 1st higher priored interrupt can only run after the ext4 interrupt. why is that so? the pic or something else is ignoring my priority.
this ext3 interrupt has to be executed.
does someone have an idea why the priority doesn't work??
thank you!
bye |
|