Skip to main content
Visitor II
May 22, 2012
Question

Gpio-Input configuration

  • May 22, 2012
  • 2 replies
  • 905 views
Posted on May 22, 2012 at 17:59

I'm

starting to work with

STM8

.

I'm not finding

a

way to

configure the ports

as pull-down.

    This topic has been closed for replies.

    2 replies

    Visitor II
    May 23, 2012
    Posted on May 23, 2012 at 06:46

    Welcome Fernando to this forum!

    Your answer has got no reply because you can configure STM8 a GPIO either as floating input or as pull-up input.

    Section 11 of the STM8S microcontroller Family Reference Manual (RM0016) shows how Px_IDR Px_ODR Px_DDR Px_CR1 Px_CR2 control Port x GPIOs.

    Ciao

    EtaPhi

    Visitor II
    June 28, 2012
    Posted on June 28, 2012 at 02:36

    Configure the inputs as floating and add an external pull-down resistor ;)