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: PWM Pins default state

Part Number: TMS320F28379D

Thank you , Ken, Gautam,

I had done migration successfully.But I m facing one issue with PWM pins. below is the configuration done on PWM pins. As per my understanding   EPWM1A & EPWM1B should be in  "tri-state " . but when i used PULL UP with 4K7 resistor on EPWM1A & EPWM1B pins of the Controller.  physical state of the   EPWM1A & EPWM1B is still "LOW state ( o v).  Am i  not able make what is happening ? 

I used  Trip-zone (TZ) module too which is working as per exceptions.but i dont have controls on PWM pins before the configuration of Trip zone module..

 EALLOW;

 GpioCtrlRegs.GPAPUD.bit.GPIO0 = 1;    // Disable pull-up on GPIO0 (EPWM1A)
 GpioCtrlRegs.GPAPUD.bit.GPIO1 = 1;    // Disable pull-up on GPIO1 (EPWM1B)

 GpioCtrlRegs.GPAMUX1.bit.GPIO0 = 1;   // Configure GPIO0 as EPWM1A
 GpioCtrlRegs.GPAMUX1.bit.GPIO1 = 1;   // Configure GPIO1 as EPWM1B

 EDIS;

Regards,

Bipin Patil.

  • Hi Bipin,

    As soon as you switch the GPIO mux to '1' the PWM will be driving the GPIO.  Since you said

    I dont have controls on PWM pins before the configuration of Trip zone module

    Do you just need to make sure that the ePWM is fully initialized (including the Trip zone) before you turn the GPIOs over to the ePWM module?  The GPIOs for the ePWM should be high-z (pullup disabled) by default.