Pages: [1]   Go Down
Author Topic: Internal analogReference only for one port  (Read 98 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: