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.

TIVA129X4NCPDT open drain pin

Hello 

I am using TM4C1294NCPDTI  in my design.

I want to configure pin PH1 as open drain by following API

ROM_GPIOPinTypeGPIOOutputOD(GPIO_PORTH_BASE, 0x02).

This pin in connected to an input of an IC which is already pulled up .

Now I want to pull down this pin to switch the operation of IC.

How can i do this  ?

Can you pls help?

Thanks 

Manish 

  • Hi,

    when I want to use it like this I define the pin like this:

    #define GPIO_PH1 HWREG(GPIO_PORTH_BASE+(GPIO_PIN_1<<2))

    and then I control the pin like:

    GPIO_PH1=0x00;    // Set pin low

    GPIO_PH1=0xFF;   // Set pin high

    and it doesn't matter if the pin is standard push pull or open drain with pull up.