I need to implement a fast external interrupt with a C167CR micro on a Phytec phyCORE-167 board. At the moment, I have my external interrupt signal connected to pin P2.15 and program it as follows:
EXICON = 0x4000; // Set Ext Trigger Interrupt for rising edge response CC15IC = 0x4c; // Enables Ext Trigger Interrupt, Global Level = Lowest, Priority Level = Medium IEN = 1 ; // Enable Interrupts
void Boxcar_irq (void) interrupt CC15INT = 31 { CC15IC = 0x0; // Disable further interrupts EXTTRIG_GATE = 1; // Sets pin P2.1 High return; }
Dear Kieran, when port pins CCxIO are to be used as external interrupt input pins, bit field CCMODx in the control register of the correspinding capture/compare register CCx must select capture mode. This is from infineon data book. with best regards Uwe