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: Why needs to disable pull-up resistor on GPIO pins for ePWM module initilization

Part Number: TMS320F28379D

Greetings,

When initializing ePWM modules, I see in the example (from C2000) that we need to disable the pull-up resistors as below:

void InitEPwm3Gpio(void)
{
EALLOW;


GpioCtrlRegs.GPAPUD.bit.GPIO4 = 1; // Disable pull-up on GPIO4 (EPWM3A)
GpioCtrlRegs.GPAPUD.bit.GPIO5 = 1; // Disable pull-up on GPIO5 (EPWM3B)


GpioCtrlRegs.GPAMUX1.bit.GPIO4 = 1; // Configure GPIO4 as EPWM3A
GpioCtrlRegs.GPAMUX1.bit.GPIO5 = 1; // Configure GPIO5 as EPWM3B

EDIS;
}

Why do we need to do this? In which case, we need to enable those pull-up resistors?

Thanks.

  • Hi,

    As GPIO4 and GPIO5 are used as outputs from C2000 controller to provide the EPWM signals that's why pull-up resistors are not required. Pull-up is typically needed when the GPIO is configured as Input to prevent the floating condition. 

    If my reply answers your question please click on "This resolved my issue" button located at the bottom of my post.

    Regards

    Himanshu