120 degrees phase shift for three-phase pwm? Any ideas?


Closed Thread
Results 1 to 7 of 7
  1. #1
    declan's Avatar
    declan Guest

    Default 120 degrees phase shift for three-phase pwm? Any ideas?

    Hi, everyone! newbie's here.

    How to write a three-phase pwm train pulses with 120 degrees phase offset from each ole ther? The sample code here is only for one pulse? So I wonder if anyone could help?

  2. #2
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    There are examples at Microhip's web site but all in ASM.

    If you find some examples in PBP, pls post here. I am also on the same thing.

    ---------------------------------
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  3. #3
    declan's Avatar
    declan Guest


    Did you find this post helpful? Yes | No

    Smile

    Sorry Sayzer, I have been searching around but came out nothing, that's why I come here to ask.
    So if anyone has something same as this, please post.
    it is much appreciated!!

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Download the application note 900 of microchip. It use a PIC18F4431.
    http://www.microchip.com/wwwappnotes....aspx?lang=en#

    Not in PBP but maybe a good kick in the ... to start
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default What is your application

    Hi,

    Please let me know your application. It is highly doable in PBP-with mixed asm. In fact you can use darretl's routine of multipwm. You need another interrupt that is 3 times your base interrupt frequency and offset the main pwm value into the other. Still you will have offset errors (I suppose), since all the three PWMs are not updated at once. May be okay for driving a motor or UPS in general purpose application. Choice of the PIC is important as if you are playing with soft PWM then you might not have enough computing time left for other jobs.
    Regards

    Sougata

  6. #6
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Hi Sougata,

    For me, what I need is not sophisticated.

    At first I would like to control the speed of the motor via a pot or couple of buttons.
    Then I can get it modified as I needed.

    So far, mister_e advised me to consider 18F2331 or 18F2431 or 4431. Thanks to him very much.

    I need to use PBP so that I can modify and understand the concept easily.

    Not a very sensitive control I need. Errors are very flexible in my case also.

    But I have no idea where to start. I have good examples in ASM which I am no good at.

    I would appreciate some information.



    ---------------------------------
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  7. #7
    declan's Avatar
    declan Guest


    Did you find this post helpful? Yes | No

    Default

    hi, everyone!
    the pwms that i need is very simple: just need to be same in amplitude and frequency as well as duty cycle.
    but have to be 120 degrees offset from each other.
    the pwms will pass through a 3-phase bridge driver and appear as control signals at the gate terminal of the 3-phase inverter.
    the examples on microchip website shows that they are using a lookup table to update the duty cycle. what is a lookup table? how to do that?

    by the way what is soft pwm?

    have a nice day!!

Similar Threads

  1. Variable PWM PIC18F2431
    By trr1985 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th June 2009, 06:03
  2. PULSOUT emulating phase shift
    By lwindridge in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 16th May 2004, 19:45

Members who have read this thread : 1

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