Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

PIC16f877A 50 Hz pwm generation

Status
Not open for further replies.

tusemo

Advanced Member level 4
Joined
May 28, 2012
Messages
109
Helped
23
Reputation
48
Reaction score
22
Trophy points
1,298
Location
Turkey
Activity points
1,841
Is it possible to generate 50 Hz pwm signal to drive servo by pic 16f877a (20Mhz crystal- And I want to use cpp modules)
 

Tahmid

Advanced Member level 5
Joined
Jun 17, 2008
Messages
4,758
Helped
1,791
Reputation
3,574
Reaction score
1,650
Trophy points
1,393
Location
Silicon Valley, California, USA (from Dhaka, Bangl
Activity points
30,545
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.

Hope this helps.
Tahmid.
 

tusemo

Advanced Member level 4
Joined
May 28, 2012
Messages
109
Helped
23
Reputation
48
Reaction score
22
Trophy points
1,298
Location
Turkey
Activity points
1,841
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)
 

tusemo

Advanced Member level 4
Joined
May 28, 2012
Messages
109
Helped
23
Reputation
48
Reaction score
22
Trophy points
1,298
Location
Turkey
Activity points
1,841
Can you give code example of using compare mode for generating 50 Hz pwm signal ?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top