Jon Wilder
Active Member
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.
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.