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.

  • TI Thinks Resolved

CCS/TMS320F280049C: Help with the epwm module.

Prodigy 20 points

Replies: 3

Views: 71

Part Number: TMS320F280049C

Tool/software: Code Composer Studio

Hi! I am very new to programming Ti microcontrollers and I am trying to use the epwm module in ccs. My goal is to generate a 13.56 MHz epwm signal for an inverter I have constructed, and I was wondering which example I could best use to modify and achieve this output? 

  • Hi,

    You can refer to epwm and hrpwm examples available under C2000Ware as a starting point. You will have to configure the period and duty through TBPRD and CMPx registers. Let me know if you face any problem while using the examples.

    Thanks

    Vasudha

  • In reply to Vasudha Bhadoria:

    Hi Vasudha,

    I have been using the hrpwm_ex1_duty_sof example, and I modified it to have a constant duty cycle. The way the example is written the confighrpwm method cannot take a decimal value that would enable my desired frequency output. How would i go about changing the clock speed so I can obtain a 13.56 MHz output?

    Thank you.

  • In reply to Christopher Karam:

    Hi,

    You can configure the clock by modifying the InitSysPll() available in f28004_sysctrl.c. This function is called as part of InitSysCtrl() in examples.

    Thanks

    Vasudha

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.