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
I am new at using 8051 microcontroller .... If you know please send me the codes and after copying those you will have learned nothing before you do anything else read "the bible" and go through the Keil getting started guide http://www.standardics.philips.com/support/documents/microcontrollers/pdf/an467.pdf contains a lot of good info on this. Erik here are the links to "the bible" Chapter 1 http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_ARCH_1.pdf chapter 2 http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_PROG_GUIDE_1.pdf chapter 3 http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_HARDWARE_1.pdf
"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?
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
There is some code on my website: Look under "HACDIM" module.... http://www.moonbounce.dk/hac.htm Regards, Carsten
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