I am a newbie in electronics
I want to make a LED lamp which can adjust the intensity by control the PWM
I have use a stupid method to make the PWM
that's use 555+ reference DC level into comparator, by adjusting the DC level I can change the duty cycle
But now i want to use the PIC to control the duty cycle
I know there is a software PWM function in PIC, but my programming is not so good(i just know C but not asm), so i prefer using hardware PWM controlled by PIC
But I have not idea in how to control the duty cycle by PIC
Or other hardware approach i have to use for PWM?
Can anyone give some ideas or suggestions?
THANKS A LOT!
I want to make a LED lamp which can adjust the intensity by control the PWM
I have use a stupid method to make the PWM
that's use 555+ reference DC level into comparator, by adjusting the DC level I can change the duty cycle
But now i want to use the PIC to control the duty cycle
I know there is a software PWM function in PIC, but my programming is not so good(i just know C but not asm), so i prefer using hardware PWM controlled by PIC
But I have not idea in how to control the duty cycle by PIC
Or other hardware approach i have to use for PWM?
Can anyone give some ideas or suggestions?
THANKS A LOT!
Last edited: