Sinusoidal PWM generation Using PIC 18f4431


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2012
    Posts
    5

    Default Sinusoidal PWM generation Using PIC 18f4431

    hello, i am new to this forum, I am final year electrical engg. student, my project is 'Speed control of Induction motor using PCPWM in PIC18f4431'. Plz guide me how to go about it, i want to write a code for sinusoidal PWM generation using PCPWM in edge aligned mode.

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


    Did you find this post helpful? Yes | No

    Default Re: Sinusoidal PWM generation Using PIC 18f4431

    Hi,
    If you're new to PIC or microcontrollers in general then you need to start with the obligatory blink-a-led program and work your way up from there. If you know your way around PICs and PBP then spending some time actually reading thru other threads on this very topic (like for example the other thread you posted the same question in) should give you enough information on how you CAN go about it.

    /Henrik.

  3. #3
    Join Date
    Dec 2012
    Posts
    5


    Did you find this post helpful? Yes | No

    Default Re: Sinusoidal PWM generation Using PIC 18f4431

    How to prepare sine table for Sinusoidal PWM generation? i mean for which frequency sine table is to be designed if my operating range is 5hz to 50 hz

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


    Did you find this post helpful? Yes | No

    Default Re: Sinusoidal PWM generation Using PIC 18f4431

    You select the number of entries in the table based on how "pure" the output needs to be and how fast you are able to index the table. The more entries the "better" the sine output will be but it require you to index the table at a faster rate to get the desired output frequency. If your maximum output frequency is 50Hz and you have a SIN table with 64 entries for a full a period you need to index the table and update the PWM dutycycles 50*64=3200 times per second. When the output frequency is 5Hz you index the table and update the PWM dutycycles 5*64=320 times per second.

    /Henrik.

Similar Threads

  1. Using Walter's Servo PWM encode / decode code
    By NickMu in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 1st November 2012, 23:17
  2. Weird PWM Behaviour on 16F1825
    By RossWaddell in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 26th October 2012, 21:59
  3. sinusoidal PWM
    By bwaxing in forum mel PIC BASIC Pro
    Replies: 83
    Last Post: - 25th February 2012, 18:33
  4. sinusoidal pwm
    By bwaxing in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 1st May 2011, 15:00
  5. How to generated Sinusoidal PWM by PIC 16f87xA
    By Lei HAN in forum mel PIC BASIC
    Replies: 2
    Last Post: - 9th October 2005, 05:47

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