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: TMS320F28335

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE, TMS320F28379D

Tool/software: Code Composer Studio

How do I assign the of a basic arithmetic operation i did on two epwm signals to an output pin on an F28335 DSP?

  • Ezekiel,

    I do not understand your question. Please rephrase it.

    If you are trying to generate a PWM output please look at the examples found in C2000Ware.

    C:\ti\c2000\C2000Ware_x_00_00_00\device_support\f2833x\examples\epwm_up_aq

    Regards,
    Cody 

  • How do I  output the result of a calculation done within  the code (epwm example) through a GPIO pin?

  • Well I guess that depends on the number format of your calculation. Assuming your output is boolean you can "bit bang" that result onto a GPIO. The GPIO examples found in C2000Ware should help you.

    C:\ti\c2000\C2000Ware_2_01_00_00\device_support\f2833x\examples\gpio_setup

    If you are trying to preform logical operations on two PWMs before sending the signal external to the device, I would caution that this will only work for slower PWM frequencies. Newer devices like TMS320F28379D have a CLB which could do this task internal to the device. If sticking with F28335 I would suggest adding an logic gate external to the F28335 device to preform this task.

    Regards,
    Cody