The usual sketch of the MUX for A0 to A5 possibly wrong?

In general, the sketch shows the A0 to A5 on a multiplexer that connects to the only ADC.
One digital input is connected to the ADC.
On the other hand, some description is telling, the A0..A5 can also serve as equal digital pin 14 to 19.
This is not possible with the usual representation of the MUX framework.
What is correct?

Both are correct - you can use any of the Analog pins as ordinary digitial I/O. You can use any of them as analog instead.

I'm not sure which sketch you're talking about. maybe this will help:

Each of the pins capable of Analog Input is also connected to some digital circuitry as well as the ADC MUX. This connection is disabled when the ADC is enabled. It's shown as part of the "IO Ports" documentation (Figure 13-5 on my data sheet)

The orange line continues on to the ADC Mux, shown in 23-1:

Arduino documentation is probably simplified, only dealing with one functionality at a time.


Thanks a lot for clarification!


This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.