Variable duty cycle using PIC 16F887

Thread Starter

Navaneeth1285

Joined Mar 19, 2015
8
hi ,
i have been working to develop a pwm signal of 25KHz and a variable duty cycle,
i have used a external clock of 20MHz,i planned to use the pwm module available in the PIC16f887.
i have been using the MPLAB X IDE,for compiling but i always find an error in the config statement,
i tried changing to necessary syntax specified in the XC8 complier.
but still it persists.Please tell me a solution for this problem.
 

Attachments

ErnieM

Joined Apr 24, 2011
8,377
Check the user's guide section 2.5.14. Put ALL the settings on one line. Do not use a semi colon on the end, this is not a C statement.
 
Top