I need someone to design an automatic power factor correction unit through 8051 microcontroller. I have got the circuit design but i am having problem in programming the microcontroller. If someone can help me in giving complete description about the programming and the flow charts and algorithm do contact me. People from pakistan specially karachi are invited. I Have attached the circuit diagram do have a look on it.