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

PIC24: Strange External Interrupt Problem

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



Joined: 30 Apr 2009
Posts: 16

View user's profile Send private message

PIC24: Strange External Interrupt Problem
PostPosted: Wed Dec 01, 2010 3:53 am     Reply with quote

I have a strange issue using either Int external 1 or 2 in PIC24FJ64GB002.

As soon as I use #pin_select INT2/INT1=PIN_B5 the EXT1/2IF is permanently set.

Even if I try to clear the respective bit in the IFS1 register it will become set again one cycle later, if I breakpoint after clearing the Interrupt Flag the special function register still says the Interrupt request has occured.

The pin itself on the PIC is configured as an input and is pulled low with approx 50K.

Has anyone ever seen issue like this ?
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Wed Dec 01, 2010 5:37 pm     Reply with quote

Depending on the compiler version, there's a certain risk, that some #pin_select compiler directive write to the wrong register. This kind of bug has happened before. You should tell the compiler version and show the basic code to allow to verify it's operation.
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