Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Yes it is possible to use PIC16F877A to generate 50 Hz PWM signal to drive servo. In the CCP module, generating PWM with frequency of 50Hz is not possible with clock frequencies in the MHz range, where you should use the compare part of the CCP module.
Because of that I have used 1843200 Hz crystal to be able to generate 50Hz signal but in that case I couldn't communicate with pic by using Rx pin (I am using pic16f877a)
Instead of lowering clock frequency (thereby increasing instruction time) so that you can use the PWM part of the CCP module, just use the compare part of the CCP module along with Timer 1.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.