D1 and D2 look like 1N4001s, I guess. But, what's R1 and R2? BTW: there is a MicroChip AppNote on this topic too. Ę -Walt -----Original Message----- From: Peter Vincent [mailto:Peter.Vincent1@BTINTERNET.COM] Sent: Wednesday, January 19, 2000 1:49 AM To: PICLIST@MITVMA.MIT.EDU Subject: mains supply (zero x detect) i am new to pic micros but i read this inĘthe beginers guide to the microchip pic hope it helps