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

PIC24FJ input change notification interrupt

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



Joined: 12 Jul 2007
Posts: 15

View user's profile Send private message

PIC24FJ input change notification interrupt
PostPosted: Fri Mar 05, 2010 1:43 pm     Reply with quote

Hello,
Can someone please help me with ISR routine for input change
notification interrupt on PIC24FJ256GB110?

I found the following constants in .h file:
Code:

#define INT_CNI        84
#define INTR_CN_PIN    0x8000  // or in a PIN_xx constant

but I don't know how to use them. I want CN interrupt on pin CN79.
How should I define ISR handler routine and how should I call
enable_interrupts(something) function?
Thanks for any help!
pmaechler



Joined: 23 Mar 2010
Posts: 1
Location: Melbourne

View user's profile Send private message

Change Notification Interrupt PIC24
PostPosted: Mon Apr 12, 2010 6:41 pm     Reply with quote

Hi

Use following expression to enable the interrupt pin:

enable_interrupts(INTR_CN_PIN|Pin_B0);

and define the interrupt routine after #int_cni

that should work...
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