Question
how to configure GPIO pins in high impedance input floating mode ?
Posted on August 29, 2013 at 07:47
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)...?Thanks