Continue to Site

Welcome to EDAboard.com

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.

50Hz PWM Inverter using pic18F452

Status
Not open for further replies.

umersohail381

Newbie level 2
Joined
Jun 6, 2013
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Abbottabad, Pakistan
Activity points
1,292
Hi,


I am trying to build a 50Hz pwm inverter using PIC18F452, I have generated spwm by using loops to control Ton & Toff. but its frequency of siusoid(achieved after filtering spwm) is 41Hz due to delay created by code.
How can I generate exactly 50Hz frequency using CCP module of PIC18F452?
U can refer me some book.




Rgards

Umer
 

I think you are going on with an infinite loop and there you are doing your updates and corrections, If so, then I would suggest you to use interrupts to get an exact timing.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top