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.

PGA970: GPIO2 as an input doesn't work

Part Number: PGA970

Hi,

I want to use GPIO2 as an input, but it doesn't work. I defined it as output, it worked ok and also GPIO1 as input works as well.

My configuration:

#define BIT_0  1
#define BIT_1  2

    GPIO_Config(GPIO1_DIR_INPUT | GPIO2_DIR_INPUT,
                          GPIO1_PUSH_PULL | GPIO2_PUSH_PULL);

and I use GET_GPIO2(); to get the GPIO2 status.

Could you please tell what is the problem?

Thanks

Hassn

  • We appreciate your interest in this device, however at this time we are unable to offer additional support. Please use our extensive resources – including datasheets, user’s guides, application notes, FAQs, and existing E2E posts – to guide your design and help troubleshoot any issues. We apologize for any inconvenience this may cause.

  • Thanks for copy and paste message for all of my last posts.

    When my problem solved with datasheet or any other data from Texas, then I have never asked my question here to waste my time and others too.

  • Hi to all,

    I solved my problem with GPIO2 as an input, I just replaced the Chip with new one (was really hard to remove and solder the new chip, but my risk worked ok). I think this pin was defect, and some other options did not work normal.

    Wish you all Best,

    Hassan Samadi