
Analog Input Quirk
#1
Posted 11 October 2011 - 02:49 PM
#2
Posted 11 October 2011 - 02:54 PM
Oh dear, please don't feed the analog ports with 5V, they won't like that at all!I don't know if anybody documented this quirk before, but if you put 5 volts on an analog pin, ALL of the analog ports will read 1023. If you put a maximum of 3.3 volts on analog pins, they work properly.
From http://www.netduino....duino/specs.htm :
only digital I/O is 5V tolerant, analog inputs absolutely not!analog reference: 2.6 - 3.3 VDC
*snap*
digital i/o are 3.3 V--but 5 V tolerant
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#3
Posted 13 October 2011 - 03:42 AM
Oh dear, please don't feed the analog ports with 5V, they won't like that at all!
From http://www.netduino....duino/specs.htm :
only digital I/O is 5V tolerant, analog inputs absolutely not!
I believe if you run I2C and you pull up to +5, it has the same effect.
JD
#4
Posted 13 October 2011 - 04:22 AM
Very interesting. Can you reproduce that? The I2C pins (A4/A5) are switched and the analog pins should be disconnected from them when used in digital mode.I believe if you run I2C and you pull up to +5, it has the same effect.
Chris
#5
Posted 13 October 2011 - 04:44 AM
#6
Posted 14 October 2011 - 04:35 AM
I didn't realized that either on the Netduino standard and Plus version there is a multiplex-chip to share the I2C-Bus lines with two ADC inputs.
That multiplex-chip is 3.3V powered, thus:
IT WILL NOT POSSIBLE TO USE RELIABLY THE I2C-BUS WITH VOLTAGES OVER +3.3V.
In other words: THE NETDUINO STANDARD/MINI CANNOT USE +5V-BASED I2C-BUS.
I apologize for the late news: probably I was sleeping.
Cheers
#7
Posted 14 October 2011 - 07:26 AM
-- H.L. Mencken, "What I Believe"
#8
Posted 14 October 2011 - 07:45 AM
That's right, but it has no sense considering a strange voltage of 3.8V.Why should it not be possible? The datasheet of the chip says that the switch voltage may be exceeded if the maximum diode current is not exceeded. so the data lines will be @3.8V or something, so as long as the logic high thresholds of each chip is below that, it shouldn't generate problems.
The actual meaning is:
don't use the I2C-Bus with 5V powered/pulluped devices (unless you add a level shifter).
Cheers
#9
Posted 14 October 2011 - 08:01 AM
-- H.L. Mencken, "What I Believe"
#10
Posted 14 October 2011 - 08:36 AM
So, you would feed a voltage above the recommended limit? Along this way, we may also feed the ADC inputs of the Netduino with +5V...Why? I see no reason why it shouldn't work. There's power wasted, yes, but unless you're running on batteries one mA won't hurt you (or your equipment).
Moreover, do you think that would be reliable a I2C-Bus having one or more 5V powered devices, seeing voltage levels of 3.8V?
The Netduino designers could have chosen to power the switch with +5V, but it would have an useless move anyway. Either the ADC, and the TWI (I2C) lines are bounded for +3.3V, i.e. they are *NOT* 5V-tolerant.
No fight at all, but I find it a nonsense insisting to say that's a reliable usage.
The power waste is the very last thing in my mind, though.
Cheers
#11
Posted 14 October 2011 - 08:52 AM
So, you would feed a voltage above the recommended limit? Along this way, we may also feed the ADC inputs of the Netduino with +5V...
Are you saying the datasheet is wrong?
Disregard that, it's talking about negative voltages, not voltages above the limit
Moreover, do you think that would be reliable a I2C-Bus having one or more 5V powered devices, seeing voltage levels of 3.8V?
As I said before, as long as the "logic high" thresholds are below that (and they usually are), why should it not?
Edited by Stefan W., 14 October 2011 - 08:57 AM.
-- H.L. Mencken, "What I Believe"
#12
Posted 14 October 2011 - 09:30 AM
The "untold" message behind Netduino is: "make all your surrounding hardware working at +3.3V".
Since most of the people is coming from the "5V world" (e.g. Arduino), there's an attempt to give them the life easy...
Well, I may understand that the user should be helped in any way, but I personally find frustrating telling him/her that everything is possible, then -when something is not working- he/she couldn't do that.
What I see is that most of the people is going to mix the supplies with any/few cares, or choosing the most accomplish (maybe because the leds are brighter).
That is a wrong behavior!
This thread should be moved better under the "I2C voltage", where a similar consideration was made about the voltage of the chips.
When the people want to work with Netduino must bear in mind that:
- the nominal supply voltage is +3.3V
- a power supply of +5V (or similar) is *NOT* normal
- some exception/workaround may be applied when they must(*) work with a +5V logic, but that should not be the normality!
(*) as "must" I mean there's no way to make the logic working at supply lower than +5V.
Hope it's clear now.
Cheers
#13
Posted 14 October 2011 - 09:49 AM

-- H.L. Mencken, "What I Believe"
#14
Posted 14 October 2011 - 10:04 AM
#15
Posted 14 October 2011 - 10:07 AM

-- H.L. Mencken, "What I Believe"
#16
Posted 14 October 2011 - 10:22 AM
That's is totally correct from a philosophic viewpoint.But it will light, so "it won't work" is a wrong statement. "You should not do it" is a true one.
Here the people aren't seeking for statement correctness, but for concrete guidelines to make their circuits working well (and reliably I'd add).
Cheers
#17
Posted 14 October 2011 - 11:00 AM
#18
Posted 14 October 2011 - 11:35 AM
#19
Posted 10 April 2012 - 05:41 AM
#20
Posted 10 April 2012 - 11:37 AM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users