AnsweredAssumed Answered

Pin value of a GPIO pin set as high impedance

Question asked by lieber.sommer on Oct 28, 2015
Latest reply on Oct 29, 2015 by lieber.sommer

I am using an STM32F4 discovery board and my intention is to set one of its GPIO pins at high impedance, which I have done as below:

GPIO_InitStruct.Pin = GPIO_PIN_12; 
GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 
GPIO_InitStruct.Pull = GPIO_NOPULL; 

From my understanding, in order to configure a pin at high impedance, it's mode is to be input. Am I right?

If I read the status of this pin, I get a value of 1. I am not sure if the pins at high impedance should return a 1 or 0. Could someone please help me understanding this.