Morgan Olsson wrote: > http://forum.microchip.com/tm.aspx?m=280401&mpage=3 > > " Now the code seems to work with both high and low priorities > simultaneously. The only change that I have made is to enable interrupts > globally (high and low) AFTER all interrupt priorities have been set. > Before I started with no IE-flags enabled, then enabled interrupts > globally, then changed priorities and in the last step I enabled the > IE-flags. Is the old method I used a no-no that produces glitches? I > need to be 100% certain that I have found the bug before I dare to go > on, as undefined behaviour in this product might hurt people (industrial > application). " I can't help with 100% certainty, but I've never seen the behavior you are describing -- but I always set up the priorities before globally enabling interrupts (18F series). Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist