2013-08-28 10:47 PM
Hi All,
GPIO_InitStruct->GPIO_Pin = GPIO_Pin_1; GPIO_InitStruct->GPIO_Mode = GPIO_Mode_IN; GPIO_InitStruct->GPIO_Speed = GPIO_Speed_2MHz; GPIO_InitStruct->GPIO_OType = GPIO_OType_PP; GPIO_InitStruct->GPIO_PuPd = GPIO_PuPd_NOPULL; GPIO_Init(GPIOD, &GPIO_InitStruct);1. Is the above configuration is correct way to configure PD1 in high impedance input floating mode ?2. what is the effect if I change output type to Open drain (GPIO_OType_OD)...?Thanks2013-08-29 07:00 AM
When the pin is set to an input, the output driver is disconnected.
Setting open drain will have not effect on an input2013-08-29 01:06 PM
There is potential danger should you select, ''input floating mode.''
If that really is your well considered decision - you must insure that all such GPIO inputs are in receipt of their ''outside world'' signals/terminations - at all times - while the MCU is powered. True ''floating/unterminated'' inputs are not your friend...