This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

51822 GPIO break donw the chip

51822, config a pin as output , in the param , set disconnect or connect the input pin, when config as output ,what mean disconnct/connect input pin?

I use a pin to light a led, config a pin as output ,and connect the pin to a series resistance and a LED, the other side of the led is VDD(3V), when the GPIO is low,the LED is light, when the GPIO is high ,the LED is not bright. it can work, but a moment ,the chip is down, the current can reach 100mA, the chip is broken. I think the LED GPIO is the cause of this failure. How can I use the GPIO in this case?

 GPIO_PIN_CONFIG(PIN_NO,                       
                    GPIO_PIN_CNF_DIR_Output,      
                    GPIO_PIN_CNF_INPUT_Disconnect,
                    GPIO_PIN_CNF_PULL_Disabled,   
                    GPIO_PIN_CNF_DRIVE_S0S1,      
                    GPIO_PIN_CNF_SENSE_Disabled);

#define GPIO_PIN_CNF_INPUT_Connect #define GPIO_PIN_CNF_INPUT_Disconnect

Related