Dario Greggio wrote: > 220V -> transformer -> one leg to GND, other to partitor -> partitor > output to PIC || diode. Oh, that makes things a bit more difficult. I'm assuming "partitor" is a resistive voltage divider? ******************************************************************** 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