+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Newbie level 1
    Points: 17, Level: 1

    Join Date
    Feb 2020
    Posts
    1
    Helped
    0 / 0
    Points
    17
    Level
    1

    PIC Program for Multilevel Inverter

    Click image for larger version. 

Name:	sw.png 
Views:	9 
Size:	9.2 KB 
ID:	157779

    I'm having very hard time writing code for pic16f877a for my solar powered multilevel inverter with the above switching strategy. Can someone help me write this code? PLEASEEEE...

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 54,133, Level: 56

    Join Date
    Apr 2011
    Location
    Minneapolis, Minnesota, USA
    Posts
    13,192
    Helped
    2628 / 2628
    Points
    54,133
    Level
    56

    Re: PIC Program for Multilevel Inverter

    Your timing scheme has 14 steps. Create 7 arrays named SW1(), SW2(), etc.
    In each array create 14 elements which contain the successive state (0 or 1) of that switch.

    Go through a for-next loop X=1 to 14.
    Examine SW1(X). If it's 1, then turn it on. If zero then turn it off.

    Examine SW2(X). Etc through all switches.

    Increment X until X=14.
    Repeat the for-next loop.


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  3. #3
    Super Moderator
    Points: 81,918, Level: 69
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    16,630
    Helped
    3764 / 3764
    Points
    81,918
    Level
    69

    Re: PIC Program for Multilevel Inverter

    Hi,

    A question....
    * Do you want to write code on your own? --> then start with an idea, a piece of paper, a pencil, a flow chart....
    * Or do you want someone else write code for you? --> then consider to pay for it.

    Klaus
    Please don´t contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



--[[ ]]--