Skip to main content
HHamo
Visitor II
October 24, 2018
Question

Unused I/Os of STM32F103RBT6

  • October 24, 2018
  • 1 reply
  • 578 views

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

    This topic has been closed for replies.

    1 reply

    Danish1
    Lead III
    October 24, 2018

    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