=20 Jan-Erik wrote:=20 > You havn't thought about using a "AC-opto coupler" ? > These are specificaly built to handle this task. >=20 > See as an example the device SHF628A from Vishay : >=20 > http://www.vishay.com/optocouplers/list/product-83722/ >=20 >=20 > You'll get much better mains <-> PIC isolation, and you can > more easily add a smothing R/C net between the optocoupler > and the input pin of the PIC (to filter out "spikes" in the mains). =20 Hi Jan-Erik, Thanks for the info. I would like to check it out particularly for = another circuit in which a transformer is used for power supply and the AC opto coupler will ensure isolation. Regards, Bala -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics