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

Default FAST Interrupt?

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



Joined: 15 Oct 2004
Posts: 1
Location: Illinois

View user's profile Send private message Visit poster's website

Default FAST Interrupt?
PostPosted: Fri Oct 15, 2004 1:17 pm     Reply with quote

I'm developing an application on the PIC18F6621. It needs to have a high priority A/D interrupt. In the past (on devices with only a single interrupt level) I have always used the #INT_DEFAULT directive to catch any erroneous interrupts and clear them. It doesn't appear that I can use that for FAST interrupts.

In addition, when I look at the listing, it doesn't appear that the compiler is testing to see which interrupt has fired for the FAST interrupts. It looks like all high priority interrupts will come to my A/D interrupt. That is probably okay since I can test for the ADIF flag there myself.

It also appears that I can only define a single FAST interrupt. I would not have expected that limitation since the SFR's would allow any number to be defined.

Can anyone confirm if the following are true?

1) There is no #INT_DEFAULT feature for FAST interrupts
2) Only a single FAST interrupt may be defined
3) There is no testing of interrupt flags performed by the compiler-generated interrupt handler.

(I am using PCWH 3.212)

Thanks!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Oct 15, 2004 1:29 pm     Reply with quote

See the sample fast interrupt handler by ckielstra in this thread.
This should answer most of your questions.
http://www.ccsinfo.com/forum/viewtopic.php?t=19498
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