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.

CCS/TMS320F28335: how to configure pwm module

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

I    design     a   project     with    F28335,    among    this    I   need  to  make   a   3.3ms    interrupt,    please    tell  me    how   to   configure    PWM    module    ?  

  • user5269312,

    If you want to make an interrupt with a regular period I can think of 2 good ways. Either way, you should be able to find examples in C2000Ware.

    1. Use a CPU timer.
      1. C:\ti\c2000\C2000Ware_2_00_00_02\device_support\f2833x\examples\cpu_timer
    Use a PWM with a period equal to 3.3 mS or optionally you could use the ETPS[INTCNT] register to filter the interrupts and use a PWM period that is an integer multiple of 3.3 mS.
    1. C:\ti\c2000\C2000Ware_2_00_00_02\device_support\f2833x\examples\epwm_timer_interrupts

    Regards,
    Cody