how to create PWM signal using c programming

This is a discussion on how to create PWM signal using c programming within the C Programming forums, part of the General Programming Boards category; how to create PWM signal using c programming. I am beginner in c programming i have no idea in creating ...

  1. #1
    Registered User
    Join Date
    Aug 2010
    Posts
    3

    how to create PWM signal using c programming

    how to create PWM signal using c programming. I am beginner in c programming i have no idea in creating PWM using c programming for my ezdsp.Can anyone suggest a method to create and what type of coding will suitable for this PWM pulse. Cause if i am not mistaken then C programming cant involve much in graph.
    Last edited by pearl87; 08-21-2010 at 10:13 PM.

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    What does your ezdsp suggest as the way for you to create your PWM signals? If it requires PWM signals, it should give you at least a hint of where to easily get suitable one's.

  3. #3
    Registered User
    Join Date
    Aug 2010
    Posts
    3
    the suggest for ezdsp are C/C++ programming

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    And what ELSE does it say?

    No sample program, no pseudo code, no skeleton code, no nothing? I just have that strong feeling that you're not sharing all the relevant info on this.

    Check out: http://en.wikipedia.org/wiki/Pulse-width_modulation
    Last edited by Adak; 08-21-2010 at 11:02 PM.

  5. #5
    Registered User
    Join Date
    May 2010
    Posts
    2,897
    Did you try Google, I found this link on the first page when searching for "ezdsp f2808 PWM" http://www.ii.pw.edu.pl/kowalski/dsp...e/PWM_DEMO.pdf
    Or you could try to read the manual http://focus.ti.com.cn/cn/lit/ds/sym...ms320c2801.pdf

    Jim

  6. #6
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,183
    You can probably configure a hardware timer to output PWM. Read the datasheet on how to do that.

  7. #7
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,598
    If I do not see more effort soon by the OP I am going to close this thread.

  8. #8
    Registered User
    Join Date
    Aug 2010
    Posts
    3
    Actually i am working on BLDC motor controlling. this motor requires 3 phase inverter and the particular inverter needs 2 output to be high at a particular moment. the PWM that i need to obtain should be as in this pdf http://www.st.com/stonline/books/pdf/docs/10691.pdf.... the problem is the method of creating this PWM i am unable to understand cause i studied this C programming few years back and when i search for the method of doing the PWM for this BLDC motor is seems hard.

  9. #9
    Registered User
    Join Date
    May 2010
    Posts
    2,897
    Let Google be your friend. "software for a PWM for 3-PHASE BLDC MOTOR DRIVES"
    I found the following link although for a different processor seems to have a good explanation of how to drive a 3 phase brushless motor with PWM. http://www.freescale.com/files/dsp/d...ote/AN1961.pdf

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can't create child windows
    By OnionKnight in forum Windows Programming
    Replies: 4
    Last Post: 04-10-2011, 05:13 PM
  2. Create new combo boxes based on items selected in preview combo box
    By RealityFusion in forum Windows Programming
    Replies: 2
    Last Post: 01-10-2007, 09:50 AM
  3. Signal Handling
    By DarrenY in forum C Programming
    Replies: 4
    Last Post: 06-04-2006, 12:30 PM
  4. Create a file from c++ program
    By Dan17 in forum C++ Programming
    Replies: 2
    Last Post: 05-08-2006, 05:25 PM
  5. How to Create reference to an array in C++
    By shiv_tech_quest in forum C++ Programming
    Replies: 2
    Last Post: 12-20-2002, 10:01 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21