Roland wrote : > is it prudent to clear all other flags in the PIR1 register > that are not being used, before exiting, 'just in case'? > > Obviously the IE for those functions were setup to zero, but > could a glitch cause a re-interrupt loop? Only if that glitch would set ("un-clear") the IE flag... I have never seen any recomendation to re-clear every IF flag on each interrupt "just in case". It would help to know why you ask. Have you seen any problem where it looks like this could be the cause ? Regards, Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist