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
Sorry I mean i want a pwm signal not phase controlled
Sorry I mean i want a pwm signal not phase controlled OK, then, how do you propose to turn the TRIAC off? Erik