cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to use a GPIO from an unused adc channel, while I scan other channels.

David  Beltran Lacasa
Associate II

So I'm trying to scan channels from IN0 to IN6 in my stm8s-discovery board. At the same time, i'm using PE6(IN9) as a digtial input.

When I debug, I've seen the PE6 works as digital input till I configure the ADC in scan mode.

Using the stm8s cube with the mentioned configuration, a conflict warning is set in the adc peripheral:

0693W0000059lfiQAA.png 

Is this configuration wrong? What if I scan IN0 to IN2, can I use PB3, PB4, PB5, PB6, PE6 and PE7 as digital inputs?

1 REPLY 1
MM..1
Chief II

Config is OK , Scan mode scan only selected channels. Red marks inform you cant use pinned configured pin, but you can reconfigure it on the fly when need...