void InterruptIni(void) { DP2 = 0x00; //Datenrichtungsregister // ODP2=0x0100; OpenDrain, bringt auch nichts // ALTSEL0P2 = 0x700; //Alternate Port Funktion, für Fast External Interrupt nicht nötig!! EXICON = 0x0015; // Fast External Interrupt P2.8 - P2.10 initialisieren, Interrupt bei steigender Flanke, angepasst XC167 EXISEL0 = 0x0000; // External Interrupt Selection 0000-> Associated Standard Pins (2.8-2-10) CC1_CC8IC = 0x017F; // Interrupt P2.8 enable; jeweils höchste Priorität CC1_CC9IC = 0x017F; // Interrupt P2.9 enable;jeweils höchste Priorität CC1_CC10IC = 0x017F; // Interrupt P2.10 enable; jeweils höchste Priorität PSW_IEN = 1; // Zentrales Interrupt-Bit enabled; } void InterruptA() interrupt 0x18 //Pin 2.8 { Test_LED=0; //Invers: 0--> LED leuchtet, 1--> LED aus }