View previous topic :: View next topic |
Author |
Message |
tomcuga
Joined: 12 Jul 2007 Posts: 15
|
PIC24FJ input change notification interrupt |
Posted: Fri Mar 05, 2010 1:43 pm |
|
|
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
|
Change Notification Interrupt PIC24 |
Posted: Mon Apr 12, 2010 6:41 pm |
|
|
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... |
|
 |
|