Internal analogReference only for one port


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?



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.