Jan-Erik Soderholm wrote 2014-07-23 18:39: > Had to change "void interrupt()" to "void interrupt myisr()". > > "interrupt" is a function argument, not the name itself. > See also "5.9.1 Writing an Interrupt Service Routine" in the XC8 docs. "The function qualifier interrupt may be applied to a C function definition so that it will be executed once the interrupt occurs" And the example is clear on this: void interrupt tc_int(void) { if (TMR0IE && TMR0IF) { TMR0IF=3D0; ++tick_count; return; } // process other interrupt sources here, if required } Jan-Erik. --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .