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.

TM4C1290NCPDT: GPIO

Part Number: TM4C1290NCPDT

Hi,

I am using TM4C1290NCPDT customized board for our development.

PH1 connected with Write Protect pin of EEPROM. Needs to write 1 in PH1 to disable write protect.

GPIOPinTypeGPIOOutput(GPIO_PORTH_BASE, GPIO_PIN_1 );
GPIOPinWrite(GPIO_PORTH_BASE, GPIO_PIN_1, 1);

I have configured PH1 as output & write the value as 1, when I read this pin it always getting 0.

Note: I have noticed in schematics PH1 is connected with 10k resister & connected to ground. Will it have any impact?

Kindly help.

  • Hello Thalapushpam,

    The correct usage of the API is:

    GPIOPinWrite(GPIO_PORTH_BASE, GPIO_PIN_1, GPIO_PIN_1);

    The way you used it would toggle Pin 0, not Pin 1. There is a mask that is used and therefore you need to use GPIO_PIN_X to toggle the pin on. 0 will toggle it off.

    Best Regards,

    Ralph Jacobi