sinusoidal PWM


Closed Thread
Results 1 to 40 of 84

Thread: sinusoidal PWM

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: sinusoidal PWM

    Hi,
    What exactly do you mean with SPWM? What does the S mean?

    If you're generating the PWM signal with CCP-module you'll need 3 CCP-modules to generate three individual PWM signals. As have already been suggested ditch the '877 and take a look at the 18F2431/4431 which is designed for motor control providing deadtime control and dedicated hardware fault inputs to disable the PWM signals - and more.

    If you need to stick to a 16 series PIC then use the parametric search tool at Microchips website to look up a PIC with three CCP-modules, perhaps the 16F777.

    I just looked briefly at the app-note you reference and they seem to be using a low-pass filter to get a "true" sine-wave output, to do that they calculated/estimated that at least 10PWM cycles is needed to bring the output voltage to the desired value.

    How many "steps" do you want, per period? Let's say you have a lookup table of 32 'steps'. Ie it takes 32 "updates" to create one full cycle of the sinewave, so at 50Hz you need to change the PWM dutycycle 50*32=1600 times per second, which means that you'll get atleast three full PWM cycles for each "step" with a 5kHz PWM frequency, I think that'll work.

    /Henrik.

  2. #2
    Join Date
    Oct 2011
    Posts
    52


    Did you find this post helpful? Yes | No

    Default Re: sinusoidal PWM

    Hi !


    SPWM stands for Sinusoidal Pulse With Modulation.These signals will be used to control Three phase inverter.

    thankx

  3. #3
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: sinusoidal PWM

    I'm afraid the letter sequence SPWM actually was derived by Darrel for his contribution of Software Pulse Width Modulation.
    Dave Purola,
    N8NTA
    EN82fn

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: sinusoidal PWM

    That's what I thought but figured it couldn't be since we're talking about CCP-modules etc. Doesn't matter, now I know what the OP means although I've never heard the term before.

    /Henrik.

  5. #5
    Join Date
    Apr 2007
    Location
    Pennsylvania, USA
    Posts
    158


    Did you find this post helpful? Yes | No

    Default Re: sinusoidal PWM

    Perhaps this thread will be of use to you.

    http://www.picbasic.co.uk/forum/showthread.php?t=1846
    Shawn

  6. #6
    Join Date
    Oct 2011
    Posts
    52


    Did you find this post helpful? Yes | No

    Default Re: sinusoidal PWM

    Hi
    I download the pic16f777 datasheet from microchip website I go through it I found it does not much differ from that of pic16f7877 so it easy for me to shift from the PIC16877 to 16F777 which has three ccp modules for SPWM generation.

    thanx

    Sorry for delay in reply, now I 'm in seventh semister exam of my BSc in electrical eng.
    Last edited by sangaboy; - 27th January 2012 at 09:07. Reason: word correction

  7. #7
    Join Date
    Oct 2011
    Posts
    52


    Did you find this post helpful? Yes | No

    Default Re: sinusoidal PWM

    hi to all
    I try to simulator my code on IMPLAB simulator but I have not yet sussceed til now so I decide to simulator with pic 16F877 which is found in ISIS but when it comes to real environment(actual implementation) I 'm going to use pic16f777 , which I 'm waiting for it to come.

    Then
    can any one help me !
    how to take my waveform from digital oscilloscope in ISIS cauz I want to uploaad in this forum ,I try to print but the file does not contain any waveform. I have some problem on my ouputs.
    thankx.

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