I'm new to this and have search everywhere but can't seem to configure INT0 so that it triggers an interrupt (0x14) on both the rising and falling edges. (It forces me to choose one or the other can't find how to choose both.)
I am using EASYdsPIC4 as my development board, and the dsPIC30F4013 chip.
Here is my initialization proceedure:
Code: Select all
void initialize_interrupts(void)
{
LATF = 0xFFFF;
TRISF = 0;
//// SETUP TIMER INTERRUPT
IPC0 = IPC0 | 0x1000; // Interrupt priority level = 1
IFS0 = IFS0 & 0xFFF7; // Clear TMR1IF
IEC0 = IEC0 | 0x0008; // Enable Timer1 interrupts
T1CON = 0x8030;//0x8000;
IEC0.F0 = 1; // Enable Ext 0 interrupts
INTCON2.F0 = 1; // Exint0 negative edge
Delay_ms(100);
}
thanks,
Bob