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
Posted: Wed Dec 01, 2010 5:37 pm
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.
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