Aug 14, 2012 #1 ragav4456 Full Member level 4 Joined Aug 1, 2012 Messages 228 Helped 19 Reputation 38 Reaction score 17 Trophy points 1,308 Activity points 2,568 Hi frnds i need sample c pwm coding for pic 16f877a. pc rs232 is varying duty cycle.
Aug 14, 2012 #2 willis... Full Member level 2 Joined Dec 26, 2011 Messages 134 Helped 25 Reputation 50 Reaction score 25 Trophy points 1,308 Location Pretoria, South Africa Activity points 2,268 Microchip provides alot of example code for many of their processors. It might be worthwhile to look on their website for example code. Attached is the link https://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en010242#3 Here is another page that helps one calculate and generate the appropriate PWM code. It supports your processor. https://www.micro-examples.com/public/microex-navig/doc/097-pwm-calculator.html Regards, Willis
Microchip provides alot of example code for many of their processors. It might be worthwhile to look on their website for example code. Attached is the link https://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en010242#3 Here is another page that helps one calculate and generate the appropriate PWM code. It supports your processor. https://www.micro-examples.com/public/microex-navig/doc/097-pwm-calculator.html Regards, Willis
Aug 27, 2012 #3 ragav4456 Full Member level 4 Joined Aug 1, 2012 Messages 228 Helped 19 Reputation 38 Reaction score 17 Trophy points 1,308 Activity points 2,568 Thanks a lot