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.

TMS320F28379D: Generating pulses from 80 kHz to 4 MHz using ePWM

Part Number: TMS320F28379D
Other Parts Discussed in Thread: LAUNCHXL-F28379D, TMDSCNCD28379D, C2000WARE

Hi,

I want to generate pulses for servo motor driver. I need to generate pulses from 80 kHz to 4 MHz using ePWM. However, although I read F28379D datasheet, I could not do this. How can I set the ePWM setup to generate pulses (80kHz-4MHz)?

Is there a different solution to generate pulses in the format (80kHz-4MHz) I want?

Sinan,

Best regards,

Thanks,
Good days.

  • Sinan,

    start from a C2000Ware example. These are setup to run on our EVMs TMDSCNCD28379D and LaunchXL-F28379D.

    PWM examples are found here: C:\ti\c2000\C2000Ware_3_04_00_00\driverlib\f2837xd\examples\cpu1\epwm

    Best of luck,
    Cody 

  • Hi, Cody:

    I looked at the PWM examples in C2000Ware_3_04_00_00. But these examples are not clear.

    How to do PWM calculations and initialization settings for 80 kHz or 4 MHz pulse using ePWM?

    Sinan,

    Best regards,

    Thanks.

  • Sinan,

    There is a TRM which explains the PWM module in depth. It has formulas on how to calculate PWM period and duty. I would suggest looking there in conjunction with the examples.

    TBPRD sets the period and there are many various ways to set the duty, but CMPA and CMPB are typically used. I can help with specific questions, but I cannot create example code tailored to your exact needs.

    Good luck,
    Cody