Dario Greggio wrote: > 1KHz IRQ for RMS > 10KHz IRQ for dimmer > 32KHz IRQ for the 16step sine-wave @2KHz > > Should be definitely doable, but of course I want to do it "best I > can" :) Remember that the PIC 24 has selectable interrupt priorities. Optimize the code carefully for each of the fast interrupts and make their priorities higher than anything else. Make the line sampling interrupt third. It will have a little jitter, but that shouldn't be too much. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist