Author Topic: How "Rail-to-Rail" are we really talking here???.......  (Read 6742 times)

0 Members and 1 Guest are viewing this topic.

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14478
  • Country: fr
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #25 on: March 18, 2023, 08:15:57 pm »
I don't think it's absolutely clear that the absolute zero K actually exists in space anyway.
 

Offline shapirus

  • Super Contributor
  • ***
  • Posts: 1350
  • Country: ua
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #26 on: March 18, 2023, 08:18:27 pm »
I don't think it's absolutely clear that the absolute zero K actually exists in space anyway.
Not even there.
 

Offline SmokeyTopic starter

  • Super Contributor
  • ***
  • Posts: 2591
  • Country: us
  • Not An Expert
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #27 on: March 18, 2023, 09:04:50 pm »
...
First, you are misreading the datasheet.  Typical is not the same as best case, and the maximum is not worst case.

Second, common source MOSFET outputs are ohmic, so in fact the output voltage drop will be zero at zero output current.  The RRIO description is entirely appropriate.

They give no minimums in the spec table.  I'm also not seeing a single supply plot for output voltage in different operating conditions. 

This is the text from the Feature Descriptions:
Quote
8.3.3 Rail-to-Rail Output
Designed as a low-power, low-voltage operational amplifier, the TLV900x family delivers a robust output
drive capability. A class-AB output stage with common-source transistors achieves full rail-to-rail output swing
capability. For resistive loads of 10 kΩ, the output swings to within 20 mV of either supply rail, regardless of the
applied power-supply voltage. Different load conditions change the ability of the amplifier to swing close to the
rails.

That's an interesting point about the outputs being ohmic and the distance to 0V therefore depends on the output current.  So with zero output current the output voltage goes to the rail.  Ok but that makes a much less useful opamp if you can't output any current. 
I guess you could also make the claim that when it's unpowered it also has 0V on the output, but I'm not sure that makes the RRIO claim any more true.
« Last Edit: March 18, 2023, 09:18:15 pm by Smokey »
 

Online TimFox

  • Super Contributor
  • ***
  • Posts: 7951
  • Country: us
  • Retired, now restoring antique test equipment
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #28 on: March 19, 2023, 03:46:50 am »
You have to take basic laws of physics into account.

(Well, theoretically an opamp could have an integrated switch mode power supply generating supply voltages higher than external supply pins, but that would be a large and expensive part!)

It is possible to have input which goes exactly from rail to rail, or even beyond the rails, yes.

But output? It has to drive significant current into the load (resistive or capacitive), and it only has the rails to work with, using transistors in its output stage. Cheap, room-temperature superconducting zero-ohm transistors are not a thing, so there will be a voltage drop.

I'm not trying to break the laws of physics.  But for a physics analogy, what would happen if someone came out with a cryocooler that they advertised as "True Absolute-Zero Cryocooler"   "Drops temperature to Absolute-Zero!*"   
"*Min temp = 1.75 mK"

Absolute zero is an asymptote, q.v.
In the normal definition, temperature cannot go negative, although there are special physical states that can be assigned negative temperatures  https://en.wikipedia.org/wiki/Negative_temperature

 

Offline Siwastaja

  • Super Contributor
  • ***
  • Posts: 8173
  • Country: fi
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #29 on: March 19, 2023, 09:45:21 am »
trying to break the laws of physics.  But for a physics analogy, what would happen if someone came out with a cryocooler that they advertised as "True Absolute-Zero Cryocooler"   "Drops temperature to Absolute-Zero!*"   
"*Min temp = 1.75 mK"

Cryocooler is a higher-level component, a product that is supposed to be used by a physicist (not engineer) as is. Opamp is not comparable. Opamps are designed for professional electric engineers who must have at least some simple understanding of how they internally work. Not every detail, but like the facts they are built out of existing transistors, with limitations of available technology.

It is a very useful distinction to group the devices into those that need 2000 millivolts of headroom and those that are fine with 50, so they can searched efficiently. Making the terminology more verbose just to clarify that their product is not physically impossible is wasted effort.

Any designer worth their pay will understand that if one truly needs to output exactly GND or Vcc, there is no other way but to power up the opamp from supplies beyond GND/Vcc. This is the usual, classic way, used before the RRO opamps.

The whole idea of rail-to-rail output parts are that in some situations, you can save a lot of effort and cost using such part. You always have to check the numbers before designing one in.
 
The following users thanked this post: Wolfram

Online Martinn

  • Frequent Contributor
  • **
  • Posts: 299
  • Country: ch
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #30 on: March 19, 2023, 01:17:36 pm »
And it gets even better with modern op amps: Varying complex output impedance https://www.ti.com/video/5785293884001 (the whole "modern op amps" series is worth watching)
Crossover distortion from the two separate input stages (no single stage could do RR in)
Of course AoE 5.9: "RRIO amps: the good, the bad, and the ugly"
 
The following users thanked this post: Someone

Offline shakalnokturn

  • Super Contributor
  • ***
  • Posts: 2124
  • Country: fr
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #31 on: March 19, 2023, 09:40:24 pm »
Just give it a negative resistance load...
 

Offline John B

  • Frequent Contributor
  • **
  • Posts: 800
  • Country: au
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #32 on: March 19, 2023, 10:38:21 pm »
Options.

Interesting workaround, though you might fall into some problems depending on the impedance of the load, whether you're driving an AC, DC, AC+DC signal etc. You also need to generate a negative rail anyways, and route that to the op amp with a trace, so I wonder if it's better than providing the negative supply to the op amp in the first place.

Thankfully a charge pump circuit can be made quite small, using entirely MLC caps. The usual drawbacks are noise and output impedance, the latter not being too much of an issue as you just need to create a sufficient negative bias rather than a stable DC voltage. I usually LC filter the input to the IC and the output as well.
 

Offline SmokeyTopic starter

  • Super Contributor
  • ***
  • Posts: 2591
  • Country: us
  • Not An Expert
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #33 on: March 19, 2023, 10:38:40 pm »
wait a minute.. I can bring this all together!

If I was only to get one of those "True Absolute Zero!" cryocoolers, I could make the opamp superconduct and the output resistance would go to zero and it could hit the rail, even with actual current!!  I'm a genius! 
 
The following users thanked this post: Siwastaja

Offline schmitt trigger

  • Super Contributor
  • ***
  • Posts: 2223
  • Country: mx
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #34 on: March 20, 2023, 01:02:35 am »
I
This is why TI make that funny chip which generates -200mV. It opens up all kinds of interesting stuff. You can swing down to 0V, but cannot swing too far down to forward bias the protection diodes in whatever you are driving. Personally I achieve -200mV with a schottky diode Vf and some other stuff, but it has a big TC.

Do you happen to remember the IC part number? Or at least how it is called?

I assume it is from the charge pump family, but cannot find it with their selection table.
« Last Edit: March 20, 2023, 01:04:57 am by schmitt trigger »
 

Offline Andree Henkel

  • Regular Contributor
  • *
  • Posts: 74
  • Country: de
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #35 on: March 20, 2023, 12:15:20 pm »
Do you happen to remember the IC part number? Or at least how it is called?
I do:
https://www.ti.com/product/LM7705
 
The following users thanked this post: thm_w, schmitt trigger, Martinn

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21688
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #36 on: March 20, 2023, 01:13:23 pm »
Yes, within ~50mV sounds quite good to me.

If you're trying to amplify very near the supply, well first of all, stop doing that.  Second of all, you may still be able to get away with it, if the load pulls towards that rail.  Use it as a good old fashioned "single supply" amp, but with your choice of which supply to single out.  And with much more load capability than the ~50uA pulldown ye olde LM358 offered!  Operating within some mV can be reasonable this way, at least for CMOS types.  Mind that bipolar (complementary open collector style output stage) will still have some minimum saturation.

Two common examples I can think of for needing near-rail operation, are:
- Current sense: the input is single-ended, and the output is common-rail.  You just need some gain so as to get away with a smaller shunt resistor.
- Limiter circuit: the output is constrained between rails, and maybe you even run the amp from +VREF so its output is precisely (less that annoying VOH/VOL, that is) 0 to REF.

For current sense, maybe the low end doesn't actually matter, you just need to compare with a modest or large threshold/cutoff (e.g. peak current mode SMPS, current sensing/fusing, etc.).  In that case: great, who cares!

Or, maybe the low end does matter, and you need to measure near zero say for measurement, metering, etc. purposes.  In that case, simply offset the input by bleeding in a little offset voltage.  If it's a noninverting amplifier, just run +IN from a divider from +VREF to +IN to shunt.  A few mV will do 'ya.

Maybe you even need a slight negative range, say for a power supply with down-programming (bleeder/leakage circuit) so you can measure it accurately over the whole range; or maybe something something battery metering so you can see charge and discharge currents, but the magnitudes aren't symmetrical so you only need a little negative range.  Same idea, use an offset or differential measurement, done and done.

For the limiter, three options:
- Redefine the supplies so they are slightly in excess of what's needed (problematic if you don't have a negative supply handy and need even just some 10s of mV below GND!)
- Redefine your signal's range so that the natural saturation levels are just outside of the required range
- Don't use saturation for limiting; you need too much accuracy anyway (i.e. when a ~50mV margin isn't good enough), use a proper active (precision rectifier?) circuit to implement the limit instead.

Also maybe worth mentioning saturation recovery, but most modern types boast of their prompt recovery, supported by waveforms or settling time.  Amps like TLV2372 are well behaved, I have no problem using it as a jellybean.  Simply check and confirm, and keep shopping if you don't see adequate data regarding this.


Yeah it's a naming convention, but how would you call it otherwise? If you have a better idea?
ARRIO? "Almost rail-to rail"

Now how "almost" are we really taking here...?

Ok.  How about this?
For linear regulators we have "Low Drop Out".  They don't call them "Zero drop out*" ....."*still need 0.4V".

How about "RRI-LHO" = Rail-Rail-Input, Low-Headroom-Output

Annoyingly, "LDO" has been taken to mean any linear regulator these days.  So 7805s are "LDOs" now.  Maybe we should adopt the backronym "linear dropping output" or something..?

Regarding op-amps, there are some with missing +V or -V range (RRI but not O, or RRO but not I; or "RI" or "RO" in the sense of, only one rail is met), something to watch out for.  I've seen many precision amps of this sort, which is kind of a shame, but also not such a big deal in a lot of applications.  What's more annoying is distributors don't track input and output rail compatibility, so you have to flip through a lot of candidates to find the right one.

And again, simply limit signal ranges, don't rely on device ranges if you don't have to.  Sometimes this means adding an extra couple volts supply, may be annoying but it's far from intractable these days.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 
The following users thanked this post: Smokey

Online TimFox

  • Super Contributor
  • ***
  • Posts: 7951
  • Country: us
  • Retired, now restoring antique test equipment
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #37 on: March 20, 2023, 01:51:01 pm »
A straightforward distinction between the devices called "rail-to-rail" and the others:
Depending on the output devices, when swinging the output towards a rail, is the swing limit a voltage (such as the saturation voltage on a BJT) or a resistance (such as the ON resistance of a FET)?
 

Offline SmokeyTopic starter

  • Super Contributor
  • ***
  • Posts: 2591
  • Country: us
  • Not An Expert
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #38 on: March 20, 2023, 05:11:12 pm »
Do you happen to remember the IC part number? Or at least how it is called?
I do:
https://www.ti.com/product/LM7705

Oh Look... Now they get all honest....

From the LM7705 front page description: https://www.ti.com/lit/ds/symlink/lm7705.pdf
Quote
"Railto-Rail output amplifiers cannot output zero volts when operating from a single-supply voltage and can result in error accumulation due to amplifier output saturation voltage being amplified by following gain stages. A small  negative supply voltage will prevent the amplifiers output from saturating at zero volts and will help maintain an accurate zero through a signal processing chain. Additionally, when an amplifier is used to drive an input of the ADC, the amplifier can output a zero voltage signal and the full input range of an ADC can be used."

2.Applications:
True Zero Amplifier Outputs

I figured out their plan.  They trick engineers into using "RRIO" opamps with a misleading name, and then sell you the solution to the problems once you realize your thing doesn't work.

-----------------------------------

That's actually a killer part.  The -0.23V keeps you under the 5.5V max voltage of the low voltage opamps.

And the most important part... cost...
https://www.digikey.com/en/products/detail/texas-instruments/LM7705MMX-NOPB/2020262

QTY   UNIT PRICE   EXT PRICE
1   $0.88000   $0.88
10   $0.78800   $7.88
25   $0.74800   $18.70
100   $0.61440   $61.44
250   $0.57432   $143.58
500   $0.50752   $253.76
1,000   $0.40068   $400.68
3,500   $0.37800   $1,323.00

That's pretty reasonable. Especially considering board footprint.

-----------------------
Note: There is no entry in the electrical specification for output current.  Other parameters are specified at an Iout of -20mA, but Iout does not get it's own table entry.  They do have plots at various input voltages and temperatures.  Digikey lists the output current at 26mA.
« Last Edit: March 20, 2023, 05:59:33 pm by Smokey »
 

Online Buriedcode

  • Super Contributor
  • ***
  • Posts: 1612
  • Country: gb
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #39 on: March 20, 2023, 07:21:58 pm »
I'm not trying to break the laws of physics.  But for a physics analogy, what would happen if someone came out with a cryocooler that they advertised as "True Absolute-Zero Cryocooler"   "Drops temperature to Absolute-Zero!*"   
"*Min temp = 1.75 mK"

Yeah that seems pretty good - especially in a world where some advertised specs are way way off.

Also, take the humble ancient LM358 - every datasheet I have seem for it mentions "Vout can go to GND" or "Vout includes negative rail" when in fact, it can only reach within 80mV of the negative rail if the sink current is <~30uA.   Now granted this isn't advertised as rail-to-rail, but it does indicate its capable of getting much closer to the negative rail rather than say, the TL072.  It did catch me out back in the day when I was still green.

Of all the specs to get angry about this is one of the least deceptive.  Buying a RRO part and expecting the output transistors to have single digit mOhm resistance is pretty unrealistic. You're an engineer - read the specs that are relevant to your application rather than skimming over the first couple of pages of the datasheet.
 

Offline shapirus

  • Super Contributor
  • ***
  • Posts: 1350
  • Country: ua
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #40 on: March 20, 2023, 07:34:42 pm »
Also, take the humble ancient LM358 - every datasheet I have seem for it mentions "Vout can go to GND" or "Vout includes negative rail"
Not really. They say that input common-mode voltage includes ground.
 

Online Buriedcode

  • Super Contributor
  • ***
  • Posts: 1612
  • Country: gb
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #41 on: March 20, 2023, 07:42:53 pm »
Also, take the humble ancient LM358 - every datasheet I have seem for it mentions "Vout can go to GND" or "Vout includes negative rail"
Not really. They say that input common-mode voltage includes ground.

I think I looked at the wrong datasheet - I checked the front page of the LM358N from ti.  https://www.ti.com/lit/gpn/lm358 syas on the first page

Quote
Allows direct sensing near GND and VOUT also
goes to GND

STmicro's datasheet : https://www.st.com/resource/en/datasheet/lm358.pdf  says

Quote
Large output voltage swing 0 V to (VCC+ - 1.5 V)

Again, I am not suggesting this is misleading, just that, not every spec on the first page of the datasheet should be taken literally or without caveats.
 

Offline schmitt trigger

  • Super Contributor
  • ***
  • Posts: 2223
  • Country: mx
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #42 on: March 23, 2023, 07:19:42 pm »
A datasheet’s first flowery paragraphs, which are almost always written in large, bold fonts, is certainly written by marketing guys. As such, it is full of milk and honey. The phrase “caveat emptor” applies here.

The brutal honest truth is always in the middle pages, written in a near-invisible font. It is our responsibility as engineers to read and digest these obscure, inconvenient facts and determine, to the best of our abilities, whether the components will perform successfully in our circuit under our operating conditions.

I can always differentiate a green from a seasoned engineer, by witnessing how thoroughly they study a component datasheet.
 

Offline Infraviolet

  • Super Contributor
  • ***
  • Posts: 1017
  • Country: gb
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #43 on: March 23, 2023, 09:05:21 pm »
Surely if things in the 10mV nearest ground were your target you'd find a way to shift them to varying about a virtual ground instead before feeding them to the op amp, if the signal of importance isn't DC a capacitor in series could do it.
 

Offline SmokeyTopic starter

  • Super Contributor
  • ***
  • Posts: 2591
  • Country: us
  • Not An Expert
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #44 on: March 30, 2023, 03:38:10 am »
Wow.  I can use the temperature sensor in the AD7191 to measure that "True Absolute Value Cryocooler"!
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7191.pdf

From page 16:
"When the temperature sensor is selected, the device should return a code of 0x800000 when the temperature is 0 K."
 

Offline SmokeyTopic starter

  • Super Contributor
  • ***
  • Posts: 2591
  • Country: us
  • Not An Expert
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #45 on: April 17, 2023, 06:41:54 am »
...because we were talking about it up-thread...
Here is an example I just came across of a "Low Dropout" regulator... First red flag was when they didn't list the actual dropout voltage on the first page..
https://www.diodes.com/assets/Datasheets/AZ1117I.pdf

JUST 1.3V :)  ohhhh soooo lowwww
 

Offline KE5FX

  • Super Contributor
  • ***
  • Posts: 1894
  • Country: us
    • KE5FX.COM
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #46 on: April 17, 2023, 06:46:57 am »
Rail-to-rail: "Nothing weird will happen as the output and/or the input approaches a rail.  However, something weird might happen somewhere in between."
 

Offline Siwastaja

  • Super Contributor
  • ***
  • Posts: 8173
  • Country: fi
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #47 on: April 17, 2023, 10:04:57 am »
Here is an example I just came across of a "Low Dropout" regulator... First red flag was when they didn't list the actual dropout voltage on the first page..
https://www.diodes.com/assets/Datasheets/AZ1117I.pdf

JUST 1.3V :)  ohhhh soooo lowwww

1117 is ancient crap. It's from the time when the low droupout term was originally coined. Linear regulator ICs of the era (like 78xx) had dropout voltage around 2.5V, so it was a significant improvement - but it came with cost of control loop stability.

1117 has special snowflake requirements for the output capacitor, and worse even, different manufacturers who make clones behave differently, so you really can't second-source it without being super careful, which is ironical because being able to second source it is literally the only reason to use an 1117 in modern days (good availability from many manufacturers, a cheap part).

Drop-out voltage of 1.3V enabled using 1117 for 3.3V buses out of 5V supply, which was (still is) a big thing; not possible with 78xx or LM317.

As always, qualitative terms like "low", "high", "good" require looking up the absolute numbers. Modern-day linear regulators are available down to some 200-300mV of dropout voltage and stable with zero ESR output capacitor.

Today, thanks to some idiots who started to call linear regulators "LDOs" and other idiots who followed and never checked what bullshit they spew out, the complete class of "low drop out" linear regulators lost its significance. Which is probably a good end result though, since it's way better to use modern-day parametric search systems to pick regulators with the exact specification you need, instead of some arbitrary classification which is useless for your particular case.
 

Offline BadeBhaiya

  • Contributor
  • Posts: 47
  • Country: in
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #48 on: April 18, 2023, 08:30:43 am »
FET output based OPAMPs can be quite close to the rails as long as your drive current isn't very high. All thanks to the resistive nature of the channel. BJT based ones cannot achieve this
 

Offline SmokeyTopic starter

  • Super Contributor
  • ***
  • Posts: 2591
  • Country: us
  • Not An Expert
Re: How "Rail-to-Rail" are we really talking here???.......
« Reply #49 on: January 25, 2024, 02:14:52 am »
Here is another gem:

LM2904Q2T
https://www.st.com/content/ccc/resource/technical/document/datasheet/c8/d5/4d/58/88/9d/44/9f/CD00000535.pdf/files/CD00000535.pdf/jcr:content/translations/en.CD00000535.pdf

Features:
"Large output voltage swing 0 V ..."
Description:
"... the output voltage can also swing to ground, even though operated from a single power supply."

Electrical Characteristics:
"V OL = 5mV typ, 20mV Max"
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf