cancel
Showing results for 
Search instead for 
Did you mean: 

Unused I/Os of STM32F103RBT6

HHamo
Associate

Hello,

I didn't find in the datasheet, that MCU STM32F103 have an internal pull-up/pull_down.

In this case. Should I make all unused I/O in pull-up or pull-down state?

Thank you for your support

Best regards

Hafedh

1 REPLY 1
Danish1
Lead II

It's up to you. As far as I know, all stm32f103 I/O have built-in pull-up and pull-down, which can be switched on or off as you see fit. If you prefer, you can program them to be digital outputs (high or low), or set them as analog inputs (which disables the digital input circuit).

What you should avoid is having any of the pins programmed to be digital inputs but floating, as that will cause class-A current flowing in the input transistors (increasing the overall power consumption with no benefit).

Probably most useful is pulled-up or pulled-down, so you can later choose to use the pin as a debugging input or output.

Hope this helps,

Danish