Hi.I am new at using 8051 microcontroller.My project is doing a phase controlled triac lamp dimmer.The lamp brightness can be made to slowly change up and down over time.I have all the hardware and i want from 8051 to produce a pulse width modulated signal from one of its pins to control the triac.But i don't know how to write its programme by using keil uvision2 programme.If you know please send me the codes Thanks
There is some code on my website: Look under 'HACDIM' module..." That does phase-angle control; the OP still seems to be confused as to whether he actually wants phase-angle control, or pulse-width modulation (PWM)...
Yes I noticed the conflict, but I choose to think he actually meant phase control :o) Carsten