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.

C2000WARE-MOTORCONTROL-SDK: Configuring motor control PWM frequency

Part Number: C2000WARE-MOTORCONTROL-SDK
Other Parts Discussed in Thread: LAUNCHXL-F280049C

In "user.h", I see the following:


//! \brief Defines the Pulse Width Modulation (PWM) frequency, kHz
//!
//#define USER_PWM_FREQ_kHz ((float32_t)(5.0)) //5KHz PWM frequency
//#define USER_PWM_FREQ_kHz ((float32_t)(10.0)) //10KHz PWM frequency
//#define USER_PWM_FREQ_kHz ((float32_t)(12.0)) //12KHz PWM frequency
//#define USER_PWM_FREQ_kHz ((float32_t)(15.0)) //15KHz PWM frequency
#define USER_PWM_FREQ_kHz ((float32_t)(20.0)) //20KHz PWM frequency

Can the PWM frequency be changed to 50.0 kHz or 100 kHz or 200 kHz?

If so, how is that accomplished within the MOTOR CONTROL SDK?

Note: i did try simply changing 20.0 to 50.0, but my example motor did not start spinning.