> _DEBUG_ON_4L EQU H'7F'; Background debugger enabled > _DEBUG_OFF_4L EQU H'FF'; Background debugger disabled > You have mixed the two EQU Thanks Martin. Yes, I did spot that right after I posted and changed it to FF Didn't make any difference though because my MPLAB still doesn't recognise DEBUG OFF as an option. For now I disable debug by editing the hex file In the line 02000500880170 01 is the value in Config4L after a build I change that to 81 (and the 70 checksum to F0) INT0 interrupt now works as expected, so the real problem is my version of MPLAB Joe ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2016.0.7752 / Virus Database: 4649/12951 - Release Date: 09/05/16 --=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 .