Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

New Articles From Microcontroller Tips

Back
Top