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.

TMS320F28377D: TMS320F28377D GPIO issue

Part Number: TMS320F28377D
Other Parts Discussed in Thread: C2000WARE

hi,

i want to generate PWM based on one input . i don't know how to do this so i m using GPIO for this . but when i am reloading the program . GPIO showing some glitch and my mosfets blow out  . so pls suggest me to avoid these glitch or to config.  PWM based on  input. my sample code is as below.


if (sin(theta_pll) >=.06975 )
GpioDataRegs.GPADAT.bit.GPIO3 =1;
else
GpioDataRegs.GPADAT.bit.GPIO3 =0;

if (sin(theta_pll) <=-.06975)
GpioDataRegs.GPADAT.bit.GPIO2 =1;
else
GpioDataRegs.GPADAT.bit.GPIO2 =0;

  • Hi Navneet,

    Why would you use GPIO when High resolution PWMs are available.Please download C2000ware and refer this example code:
    C:\ti\c2000\C2000Ware_1_00_02_00\device_support\f2837xd\examples\cpu1\epwm_up_aq

    Regards,
    Gautam
  • hi Gautam ,

    this is signal of 50hz and i want give pulse of around 50% duty cycle to low frequency mosfet in sync with the signal but any asynchronization with signal may create wrong pulse . so can High resolution PWMs resolve this issue ? i followed High resolution PWMs module also but i m not able to see any solution.