Power Control PWM, HELP needed


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    Jun 2013
    Posts
    11


    Did you find this post helpful? Yes | No

    Default Re: Power Control PWM, HELP needed

    update:
    Hi again,
    for Lookup2 it didn't compile
    "Expected '['
    Bad expression " but it's ok anyway since I already filled the array manually, but I can't find out how to use interrupt in my case or if there is any other solution for my problem

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,627


    Did you find this post helpful? Yes | No

    Default Re: Power Control PWM, HELP needed

    Hi,
    You are overthinking this. Why would want a lookuptable and then populate an array with the data from the lookuptable?
    EITHER use an array for your data OR use a lookup table - I sugest a lookup table. Use the value from the lookupo table and load it to the dutycycle registers - don't populate an array with it's just wasting RAM. Get it working with something like 16 values, then move on the full 100 or whatever.

    Then use three indexes, one for each phase to retreive the correct dutycycle value for each phase from the lookup table, just as you're doing with the arrays currently.

    I know I've covered all these questions in other threads on the exact same topic. 3-phase power inverters seems to be a popular beginners project for some reason. Do a bit of searching on the forum and you should be able to find example code for 3 phase sine PWM.

    /Henrik.

Similar Threads

  1. Power advice needed
    By bearpawz in forum Schematics
    Replies: 4
    Last Post: - 29th October 2010, 21:17
  2. CCP vs power control PWM
    By luminas in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 4th September 2008, 03:09
  3. Help needed - MOSFET driven by PWM
    By bcd in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 2nd April 2008, 05:02
  4. Servo control / UART / SPI help needed
    By Blackhawk in forum mel PIC BASIC
    Replies: 10
    Last Post: - 10th November 2006, 03:40
  5. Replies: 5
    Last Post: - 23rd February 2005, 17:35

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts