Thanks for the replies, my brain suddenly hit upon another solution, use a= =20 flag variable in the interrupt that the ADC interrupts have finished (each= =20 channel is read 16 times before incrementing), test the system flag in the= =20 main body and disable the ADC interrupt, re-enable once ancillary program=20 has finished. I might try both methods and see which seems better for my uses. Colin -- cdb, colin@btech-online.co.uk on 16/03/2012 =20 Web presence: www.btech-online.co.uk =20 =20 Hosted by: www.justhost.com.au =20 =20 This email is to be considered private if addressed to a named individual= =20 or Personnel Department, and public if addressed to a blog, forum or news= =20 article. =20 =20 =20 --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .