Pin PC13 in input mode with pull up option does not drive the pin high.
Hi,
I am trying to configure the pin PC13 in my STM32G473VBE6 device as Input with Pull up option.
There is a sensor connected to it, so when it is activated it will pull the pin low. But after configuring the pin PC13 to Input with pull up. I am seeing the pin in a weird state, when i scope that pin, i see a square wave with 1Hz output between 3.3V and 0.
Is there any other alternate functions with the pin PC13 that needs to be changed for it to work correctly? This is the setting i am using for that input.
GPIO_InitStruct.Pin = GPIO_PIN_13;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_PULLUP;
HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
Thanks and Regards,
Aviinaash S