Go Down

Topic: Internal analogReference only for one port (Read 128 times) previous topic - next topic

mauritswoudenberg

Hi,

I was wondering, is it possible to only declare the function <analogReference(INTERNAL);> to one port? I have an lm35 temperature sensor which has a much bigger range if I set the reference to internal but since I already built my whole project including potmeters on the external reference I would like to only use it on 1 port.

Is that possible?

Thanks!

Maurits

PaulS

Quote
Is that possible?

Sure. That's the way it works. I don't think that that is what you mean, though. A port is a collection of pins. I think you want to use analogReference() for one pin. Whether that is safe, or not, I don't know.

Go Up