Herbert Graf wrote: > There are cases where doing "heavy stuff" in the interrupt MIGHT be a > good idea. Heck I've had cases where doing EVERYTHING in the ISR and > having the main program consist of just "goto start" all the time made > sense. I had a case once where I needed to convert a single serial data stream (sortof like Manchester) into synchronous clock and data. There were only something like 5 instructions per half-bit on a 20MHz PIC. I did this by using the interrupt input like a "GOTO 4" input pin. There was no main code after initialization. There was no RETFIE instruction and the stack just overflowed, but that didn't matter because there were no calls. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist