cancel
Showing results for 
Search instead for 
Did you mean: 

Gpio-Input configuration

fernando239955
Associate
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.

2 REPLIES 2
fggnrc2
Associate II
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

nholzem
Associate II
Posted on June 28, 2012 at 02:36

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