On Jun 8, 2012, at 4:54 AM, Ben Barwise wrote: > interrupt isr() > { > int off1 =3D 0; > } You'll need to make off1 a global variable, so that references to that name= in the isr and references from the main code actually reference the same d= ata. Then you'll probably need to make it "volatile" so that the compiler will b= e warned that it has to keep checking the value, instead of (for instance) = moving it into a register at the start of main and just referring to that c= opy over and over again. BillW --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .