Skip to main content
ajishgopalr
Associate
October 15, 2012
Question

Configuration of unused GPIO pins in STM32F103RBT6

  • October 15, 2012
  • 6 replies
  • 1364 views
Posted on October 15, 2012 at 08:40

Hello Members,

I am using STM32F103RBT6 microcontroller. I would like to know which is the best configuration for unused GPIO pins inorder to save power.

Waiting for a reply...

Embedded_Geek

    This topic has been closed for replies.

    6 replies

    toantq3
    Associate II
    October 15, 2012
    Posted on October 15, 2012 at 09:30

    I think, GPIOs are set Output pull down is best way.

     

    From: gopal.ajish

    Posted: Monday, October 15, 2012 8:40 AM

    Subject: Configuration of unused GPIO pins in STM32F103RBT6

    Hello Members,

    I am using STM32F103RBT6 microcontroller. I would like to know which is the best configuration for unused GPIO pins inorder to save power.

    Waiting for a reply...

    Embedded_Geek

    emalund
    Associate III
    October 15, 2012
    Posted on October 15, 2012 at 14:55

    if you are concerned with power usage, set them as input

    Erik
    Tesla DeLorean
    Guru
    October 15, 2012
    Posted on October 15, 2012 at 15:38

    if you are concerned with power usage, set them as input

     

    Second that. Floating input.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    waclawek.jan
    Super User
    October 16, 2012
    Posted on October 16, 2012 at 09:22

    >> if you are concerned with power usage, set them as input

    > Second that. Floating input.

    You surely are joking, gentlemen.

    JW

    zzdz2
    Associate
    October 16, 2012
    Posted on October 16, 2012 at 10:00

    > You surely are joking, gentlemen.

    Sure they are, digital floating input can drain some power, analog input may be better, pulldown seems best.

    leventeyigel52
    Associate III
    October 16, 2012
    Posted on October 16, 2012 at 10:27

    I think u could close the clock signal, which you don't use

    RCC_APB2PeriphClockCmd(uint32_t RCC_APB2Periph, FunctionalState NewState)

    for ex:

    RCC_APB2PeriphClockCmd(GPIOE , DISABLE);