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.

[PIC] SPWM inverter Using PIC16F876A

Status
Not open for further replies.

Pulsetronics

Member level 3
Joined
Oct 31, 2014
Messages
67
Helped
9
Reputation
18
Reaction score
9
Trophy points
8
Location
Lagos
Activity points
382
Hi Guys, I just completed my Push pull modified sine wave inverter, Now I want to design another one using H-bridge mosfet connection, Am a novice on how to write the code. I write Both in C and Asm. Waiting for reply. Thanks
 

what exactly you want to know? For using H bridge, at any time drive diagonally opposite MOSFET's and other two mosfets should be off. The switch should occur between mosfet pairs when half cycle completes.
As far as code writing goes, C is simpler, follow any of these scenarios.
1. SWPM with complementary PWM output using ECCP/COG/CWG/standalone PWM module and drive the complementary PWM output to diagonally opposite MOSFET's, while other two are switched OFF.
2. PIC16F876A does not ECCP, so instead switch one of either high side or low side mosfet is permanently on for half cycle and other fed with PWM and change mosfet for next half cycle.

I hope, i answered the question, if not plz let me know with the exact question.
 
Thanks ashugtiwari, but the problem am having is that i don't know how to start my code. Please you can suggest me a link or a sample code. Thanks
 

yes FVM thanks to you but I couldn't get a direct and easy answer that is why I created my thread. I only need some ideas before I start my codings.
 

Regarding sine wave generation and sinusoidal pulse width modulation, Tahmid has written quite a few articles and have posted them on his blog. You can find them here:


Generation and Implementation of Sine Wave Table
https://tahmidmc.blogspot.com/2011/01/generation-and-implementation-of-sine.html

Smart Sine - Software to generate sine table
https://tahmidmc.blogspot.com/2012/10/smart-sine-software-to-generate-sine.html

Generation of sine wave using SPWM in PIC16F684
https://tahmidmc.blogspot.com/2012/10/generation-of-sine-wave-using-spwm-in_10.html

600W 50Hz sine wave inverter test circuit
https://tahmidmc.blogspot.com/2012/10/600w-50hz-sine-wave-inverter-test.html

Feedback in sine wave inverter (PIC16F series based)
https://tahmidmc.blogspot.com/2012/11/feedback-in-sine-wave-inverter-pic16f.html

Demystifying The Use of Table Pointer in SPWM - Application in Sine Wave Inverter
https://tahmidmc.blogspot.com/2013/02/demystifying-use-of-table-pointer-in.html

Sine Wave Generation without ECCP - Using single CCP Module of PIC16F877A
https://tahmidmc.blogspot.com/2013/02/generation-of-sine-wave-without-eccp_16.html

Sine Wave Generation with "Fast PWM Mode" of AVR - using ATmega16
https://tahmidmc.blogspot.com/2013/02/sine-wave-generation-with-fast-pwm-mode_2525.html

I hope everyone finds these articles/tutorials helpful.
 

    V

    Points: 2
    Helpful Answer Positive Rating
BY which SPWM scheme you want to drive your H-Bridge? Bipolar or Unipolar?
 

Little late for reply. This example code may help for SPWM generation. For complementary output for inverter, use the complementary mode in CCP module. The controller used is different but the code can be used without any modification.

Hope that helps.
 

Attachments

  • PWM_test.X.rar
    2 KB · Views: 209

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top