Quote Originally Posted by AnupPravin View Post
Hi,

I am trying to control an AC lamp with 230V 50Hz using PIC12F1572. Is it possible with this MCU??. Please help me in understanding the working of the circuit and program flow. I am using MPLAB X with xC8 compiler.

The Data sheet of PIC12F1572 is attached in the link.

http://ww1.microchip.com/downloads/e.../40001723D.pdf

Thanks in Advance
You will be better off asking on a forum for XC8, this forum is for PicBasic.