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 support@ccsinfo.com

interrupt priority does not work

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



Joined: 08 May 2012
Posts: 1

View user's profile Send private message

interrupt priority does not work
PostPosted: Wed Jul 25, 2012 8:36 am     Reply with quote

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
Ttelmah



Joined: 11 Mar 2010
Posts: 19359

View user's profile Send private message

PostPosted: Wed Jul 25, 2012 9:01 am     Reply with quote

Unless you have:

#device nested_interrupts=true

Interrupt priorities are _disabled_ by default on the PIC24 with CCS.

Best Wishes
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