cancel
Showing results for 
Search instead for 
Did you mean: 

GPIO speed - does it make any sense when GPIO is input ?

mehmet.karakaya
Associate III
Posted on March 11, 2013 at 12:32

hello forum ,

( STM32F103 ) when using GPIO pin as output we can choose GPIO speed

------------------------------------------------------------------

  GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;

  GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;

-------------------------------------------------------------------

can we choose GPIO speed when it is an input ? what is the effect ?

---------------------------------------------------------------------

   GPIO_InitStructure.GPIO_Speed =GPIO_Speed_2MHz;

  GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING;

---------------------------------------------------------------------

thank you

#gpio-speed-stm32f103
2 REPLIES 2
Posted on March 11, 2013 at 14:03

> can we choose GPIO speed when it is an input ?

No.

See tables 20 and 21 in RM0008.

JW
Posted on March 11, 2013 at 14:49

No, It controls the slew rate of the output stage of the pin.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..