CCP PIC18F2580

Status
Not open for further replies.
Correct...the PWM frequency should not matter in this case.

It's really easy to use. Pretty much once the hardware is set up just write a value to CCPRxL that doesn't exceed the value written to PR2 and this changes your duty cycle. Manipulate the DCB1 and DCB0 in the CCPxCON register if you need high resolution control of the PWM output.

I use PWM quite a bit as the contrast voltage for HD44780-based LCD displays. Works quite well for that.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…