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
"My project is doing a phase controlled triac lamp dimmer ... i want from 8051 to produce a pulse width modulated signal from one of its pins" Why do you want a pulse-width modulated signal if your project is phase control? Surely you need to control the pulse position?