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: can I take PWM signal from GPIO?

Part Number: TMS320F28335
Other Parts Discussed in Thread: TMS320C2834X

Tool/software: Code Composer Studio

I want 18 Signals approx 2000 Hz at the output which is possible in TMS28335. I have three modulating signals (sine wave) shifted by 120 degree. I want to compare each modulating wave with three TBPRD (shifted signal by 60 degree using TBCTR )  to generate 6 PWMs. similarly, 6 PWMs are required for 2nd and 3rd modulating waveform. I want to take these PWMs through GPIO. is it possible? 

  • Rahul,

    I am unsure exactly what you are trying to do, but if you need 18 PWM channels you should be OK. On F28335 there are 6 ePWM modules each of which an A channel and a B channel. That gives you a total of 12, additionally there are 6 eCAP modules each of which are capable of adding 1 APWM channel. This should get you the 18 channels you need, now APWMs are not as complex or as capable as ePWMs but for many simple PWM applications they will work. Look at the eCAP user guide and decide if they will work for you.

    I expect that an APWM would work better than trying to just drive several GPIOs with timers.

    If you need more ePWMs you could look at TMS320f2837x(24 ePWMs) or you could look at TMS320C2834x(18 ePWMs but no built in flash).

    Regards,
    Cody 

  • I will be closing this post due to inactivity, please post here or reference this post if you have more questions.

    Regards,
    Cody