This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

problem in PWM Signal Generation

hi friends, im siva

im in need to design a drive for a 3-phase induction motor using microcontroller. Im going to  use MSP430. in order to drive a motor i have to give PWM pulses to 6 power electronic devices in the drive in which the pulses should be ranges from 1KHz to 30KHz and to vary the duty cycle at the desired switching frequency range as mentioned.

i tried with lot and i failed to produce PWM signal with 1KHz. when im running the program it gives a frequency either less than 10Hz or greater than 21MHz. 

Any one please give me the C++ Code to program the microcontroller that should give the frequency of 1KHz and tell me wht to do if i have to get varying frequency. (Register value i have to change so as to get varying frequency). once again please help me.........

Regards

S.Sivakumar B.E.(EEE)

  • Siva,

    I would suggest choosing a higher PWM frequency that is outside audible range, but if your application requires 1 kHz, then I can't argue.

    I am going to direct you toward a different thread where PWM generation was discussed: Link here

    Also, I located an Application Document regarding control of a three-phase motor with the MSP430: slaa503.pdf.

    Thanks,

    Matt