Skip to main content
Visitor II
October 29, 2020
Question

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

  • October 29, 2020
  • 1 reply
  • 838 views

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?

    This topic has been closed for replies.

    1 reply

    Graduate II
    October 29, 2020

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