I'm making a simple (as possible) op-amp buffer for the PIC
ADC and would like to know the effect of unbalanced supply
I'm using the amp as a non-inverting unity-gain voltage follower
Circuit has available 5.4V (Vcc) and 13.3V (Vbatt). An I/O
is being used to generate -5.3V (Vee) for the op-amp
I need the input to the ADC to reach at least 5.12V, which is
Vref. Common op-amps are quite short of rail-to-rail, so using
5.4V as Vcc isn't working. Op-amps to hand are LM358, LM
1458, LF412, TLS272 and TL072 (all dual - 2 ADC channels)
If I use 13.3V as the amp's V+ and -5.3V for Vee, the op-amp
output can swing between 0V and up to the 5V6 zener clamp on
its input (which should be safe for a PIC with Vcc = 5.4V)
What I'd like to know is whether this is a sustainable voltage
set-up for the op-amp, or is it going to suffer any damage in
the long term ?
> I'm making a simple (as possible) op-amp buffer for the PIC
> ADC and would like to know the effect of unbalanced supply
>
> I'm using the amp as a non-inverting unity-gain voltage follower
>
> Circuit has available 5.4V (Vcc) and 13.3V (Vbatt). An I/O
> is being used to generate -5.3V (Vee) for the op-amp
>
> I need the input to the ADC to reach at least 5.12V, which is
> Vref. Common op-amps are quite short of rail-to-rail, so using
> 5.4V as Vcc isn't working. Op-amps to hand are LM358, LM
> 1458, LF412, TLS272 and TL072 (all dual - 2 ADC channels)
Adding a pull-up resistor to the output of the LM358 can extend it's useability quite a
bit, something worth trying? Say 1k ~ 4k7 or so. Without it they are awful - can only
drive to within 1.5V of +V (from my memory), but on the other hand they drive down
to 0V ok and input common mode range is good, includes 0V.
--
Brent Brown, Electronic Design Solutions
16 English Street, St Andrews,
Hamilton 3200, New Zealand
Ph: +64 7 849 0069
Fax: +64 7 849 0071
Cell: +64 27 433 4069
eMail: spam_OUTbrent.brownTakeThisOuTclear.net.nz
As Brent says - try a pull-up resistor on the Opamp output.
But running the opamp in an "Unbalanced" manner won't create any
problems at all - provided you protect against the ADC input being
pulled out of range. (Which you've done).
>> I'm making a simple (as possible) op-amp buffer for the PIC
>> ADC and would like to know the effect of unbalanced supply
>>
>> I'm using the amp as a non-inverting unity-gain voltage follower
>>
>> Circuit has available 5.4V (Vcc) and 13.3V (Vbatt). An I/O
>> is being used to generate -5.3V (Vee) for the op-amp
>>
>> I need the input to the ADC to reach at least 5.12V, which is
>> Vref. Common op-amps are quite short of rail-to-rail, so using
>> 5.4V as Vcc isn't working. Op-amps to hand are LM358, LM
>> 1458, LF412, TLS272 and TL072 (all dual - 2 ADC channels)
>
> Adding a pull-up resistor to the output of the LM358 can extend it's useability quite a
> bit, something worth trying? Say 1k ~ 4k7 or so. Without it they are awful - can only
> drive to within 1.5V of +V (from my memory), but on the other hand they drive down
> to 0V ok and input common mode range is good, includes 0V.
>
> --
> Brent Brown, Electronic Design Solutions
> 16 English Street, St Andrews,
> Hamilton 3200, New Zealand
> Ph: +64 7 849 0069
> Fax: +64 7 849 0071
> Cell: +64 27 433 4069
> eMail: brent.brownKILLspamclear.net.nz
>
>
So a resistor helps, but not quite enough. I suppose you
could use 5.4V Vcc with 4/5 gain and have 4.096V out
= 5.120V in as an alternative to a higher Vcc
> Without it they are awful - can only drive to within 1.5V
> of +V (from my memory)
According to the d/s that's right. In practice a little closer
> As Brent says - try a pull-up resistor on the Opamp
> output.
> But running the opamp in an "Unbalanced" manner won't
> create any
> problems at all - provided you protect against the ADC
> input being
> pulled out of range. (Which you've done).
I agree about unbalanced supply being no problem.
Also: When running with dual supplies and lots of
headroom outside your target output range, as proposed, you
will not usually need a pull up or down.
HOWEVER if using an LM358 and running single supply and you
want to drive to near ground the LM358/LM324 needs a pull
DOWN to improve it's ground approach. The LM358 is a very
simple amplifier and makes no great attempt to approach
bottom rail/ground well. The output low side driver is a PNP
emitter follower * which necessarily gets decidedly soggy
when it's base is grounded (when it should produce ground
output). You then have essentially about 0.6V+ of above
ground dead space - more as current increases. Adding a pull
down provides ground drive which the op amp can't.
The datasheets output voltage swing spec is not adequately
defined as they don't say where the load is connected to. If
the noted 10k is to ground then 5 mV typical is simply a
reflection of the driver off leakage current .
>The datasheets output voltage swing spec is not adequately
>defined as they don't say where the load is connected to. If
>the noted 10k is to ground then 5 mV typical is simply a
>reflection of the driver off leakage current .
The LM324 is a bipolar circuit. It's a reflection of the Vce(sat) of the
NPN BJT used as a 50uA (nominal) current sink to ground, which is what
pulls it down the last bit, n'est ce pas? It won't behave a bit like
leakage current.
>>The datasheets output voltage swing spec is not adequately
>>defined as they don't say where the load is connected to.
>>If
>>the noted 10k is to ground then 5 mV typical is simply a
>>reflection of the driver off leakage current .
> The LM324 is a bipolar circuit. It's a reflection of the
> Vce(sat) of the
> NPN BJT used as a 50uA (nominal) current sink to ground,
> which is what
> pulls it down the last bit, n'est ce pas? It won't
> behave a bit like
> leakage current.
You obviously have a better schematic of the internals than
I :-). You are no doubt right that that 50 uA source is an
NPN driven to ground.
I was actually starting with my real world experiences and
retro-fitting an explanation to them. In retrospect this may
have given the right answer for a less than fully correct
reason :-).
My practical experience is that if you want it to drive
really close to ground you have to help it out fairly
severely. A quick look at a circuit that came to mind where
I'd needed to do this (7 years ago as it happens) shows I
used a 2k7 to ground and was driving a 10k load to an
intermediate voltage. That 10k matches the 10k load of the
data sheet and I know that I was not getting close to the 20
mV max the spec sheet claims. It's interesting that my 2k7
helped as, at the specified 20 mV, it would only have drawn
an additional ~= 8 uA. Well under what the 50 uA/NPN
saturated should provide. ???
In Jinx's case he's more concerned about achieving a high
Vout so this won't be an issue.
>>> The datasheets output voltage swing spec is not adequately
>>> defined as they don't say where the load is connected to.
>>> If
>>> the noted 10k is to ground then 5 mV typical is simply a
>>> reflection of the driver off leakage current .
>
>> The LM324 is a bipolar circuit. It's a reflection of the
>> Vce(sat) of the
>> NPN BJT used as a 50uA (nominal) current sink to ground,
>> which is what
>> pulls it down the last bit, n'est ce pas? It won't
>> behave a bit like
>> leakage current.
>
> You obviously have a better schematic of the internals than
> I :-). You are no doubt right that that 50 uA source is an
> NPN driven to ground.
>
> I was actually starting with my real world experiences and
> retro-fitting an explanation to them. In retrospect this may
> have given the right answer for a less than fully correct
> reason :-).
>
> My practical experience is that if you want it to drive
> really close to ground you have to help it out fairly
> severely. A quick look at a circuit that came to mind where
> I'd needed to do this (7 years ago as it happens) shows I
> used a 2k7 to ground and was driving a 10k load to an
> intermediate voltage. That 10k matches the 10k load of the
> data sheet and I know that I was not getting close to the 20
> mV max the spec sheet claims.
Once the 50uA current sink can't handle it you've got problems
getting close to the negative rail. IOW, if your intermediate voltage
is more than 0.5V above the negative rail with a 10K load (in practice,
you'd want it to be quite a bit less to allow for tolerance).
> It's interesting that my 2k7
> helped as, at the specified 20 mV, it would only have drawn
> an additional ~= 8 uA. Well under what the 50 uA/NPN
> saturated should provide. ???
Maybe it was just on the edge?
> In Jinx's case he's more concerned about achieving a high
> Vout so this won't be an issue.
Sometimes it's easier & better to just throw away some portion
(maybe 10%) of the ADC range at each end, especially when you
consider clamp tolerances and the difficulty of getting close
to either rail and maintaining accuracy, closed-loop stability
and response speed. If you have an ENOB of 9.6 rather than 10,
in most cases it's no big deal. I don't think the zener clamp
is going to cut it when you consider tolerances on the Vz and
Vdd.
BTW, you can model the output for Iout << 50uA as a voltage source from
the negative supply with a series resistance. A 50uA BC337 current mirror
looks like a ~2mV voltage source with 680 ohms in series. It should have a
positive tempco.
A run-through on Sunday highlighted last-minute changes requiring
an all-nighter at the keyboard. Haven't done a straight 40-hour stint
for a while (yaaaaawn). But it paid off
> I can't remember whether it was Richard Prosser or Brent
> Brown who asked where I'd be at the Mystery Creek Fieldays
>
> Can't guarantee if or when I'll be there personally, the client is
> manning it initially
>
> PE63
>
> Our budding web site
>
> http://www.remstatt.com/
>
> A run-through on Sunday highlighted last-minute changes requiring
> an all-nighter at the keyboard. Haven't done a straight 40-hour stint
> for a while (yaaaaawn). But it paid off
>
On 10 Jun 2008 at 18:37, Jinx wrote:
> I can't remember whether it was Richard Prosser or Brent
> Brown who asked where I'd be at the Mystery Creek Fieldays
Yep, twas me, I'm planning to be there tomorrow and friday at this stage. So you're
inside the big building then?.. nice, although we're putting on good weather so
outside wil be nice and sunny. I'll be sure to drop in and have a look at your work,
let you know what I think! See you if I see you.
--
Brent Brown, Electronic Design Solutions
16 English Street, St Andrews,
Hamilton 3200, New Zealand
Ph: +64 7 849 0069
Fax: +64 7 849 0071
Cell: +64 27 433 4069
eMail: spamBeGonebrent.brownspamBeGoneclear.net.nz
> Op-amps to hand are LM358, LM1458, LF412, TLC272
> and TL072 (all dual - 2 ADC channels)
>
> LMC6482 will work without twisting your brain...
Thanks Vasile (and particularly the non-brain-twisting bit. I don't
think I can cope with another just now ;-) ). The whole project
will be re-visited shortly and there'll be a more leisurely look,
compared with the hurried flap to get it made in the first place, at
the PIC's ADC buffering components. Experience with previous
projects shows that you can use fairly standard components
without affecting performance too badly for many applications,
but I'd like to fine-tune this one a little better. Although even the
current, simple, set-up returns results to 0.2% using 'junk box' parts
OK, junk box, basement, things lost in your beard...
:)
Use the AD reference at 4V or so. Where do you get inexpensive 4V or
so reference?
TL431 or LM431
Specifically, in any PC power suply there is one.
How many do you have in your basement ? I think I have hundreds...
> > Op-amps to hand are LM358, LM1458, LF412, TLC272
> > and TL072 (all dual - 2 ADC channels)
> >
> > LMC6482 will work without twisting your brain...
>
> Thanks Vasile (and particularly the non-brain-twisting bit. I don't
> think I can cope with another just now ;-) ). The whole project
> will be re-visited shortly and there'll be a more leisurely look,
> compared with the hurried flap to get it made in the first place, at
> the PIC's ADC buffering components. Experience with previous
> projects shows that you can use fairly standard components
> without affecting performance too badly for many applications,
> but I'd like to fine-tune this one a little better. Although even the
> current, simple, set-up returns results to 0.2% using 'junk box' parts
>
> Use the AD reference at 4V or so. Where do you get inexpensive 4V
> or so reference?
> TL431 or LM431
> Specifically, in any PC power suply there is one.
> How many do you have in your basement ? I think I have hundreds...
I have access to thrown-out 48V Nokia PSUs and each one has a
control board with a dozen TL431. I haven't tried one as a voltage
reference source though. The 4.096V references I looked at were
a little expensive (although I didn't shop around), so I should include
a TL431 in the next round of experiments then
Currently I'm using a jacked-up 78L05 to make 5.12V for Vref for
several boards. It's quite easy to set with a couple of fixed resistors
and a trim-pot. If I continue to use that it'll need testing to make sure
it's stable from say -10C to 40C. The case is heated a little by the
PSU so temperature probably won't go too low
The TL431 is likely to be much more temperature stable than the LM7805
and should be lower noise also. Also much more consistent between
samples.
I've used the TL431 several times and while it's not perfect, it
meets my requirements over -10 to +70C. Just use resistors with good
temp coefficients!
>> Use the AD reference at 4V or so. Where do you get inexpensive 4V
>> or so reference?
>> TL431 or LM431
>> Specifically, in any PC power suply there is one.
>> How many do you have in your basement ? I think I have hundreds...
>
> I have access to thrown-out 48V Nokia PSUs and each one has a
> control board with a dozen TL431. I haven't tried one as a voltage
> reference source though. The 4.096V references I looked at were
> a little expensive (although I didn't shop around), so I should include
> a TL431 in the next round of experiments then
>
> Currently I'm using a jacked-up 78L05 to make 5.12V for Vref for
> several boards. It's quite easy to set with a couple of fixed resistors
> and a trim-pot. If I continue to use that it'll need testing to make sure
> it's stable from say -10C to 40C. The case is heated a little by the
> PSU so temperature probably won't go too low
>
One perfect application for TL431 is replacing a few lines of code and
some comparators and/or AD inputs for monitoring precisely the PIC
supply value in portable applications. It's what I named "oldest but
goldest". Like LM723, ICL7107 and a few other components without age
and without aging.
:)
Vasile
> Jinx,
>
> The TL431 is likely to be much more temperature stable than the LM7805
> and should be lower noise also. Also much more consistent between
> samples.
> I've used the TL431 several times and while it's not perfect, it
> meets my requirements over -10 to +70C. Just use resistors with good
> temp coefficients!
>
> RP
>
> 2008/6/11 Jinx <RemoveMEjoecolquittEraseMEEraseMEclear.net.nz>:
> >> Use the AD reference at 4V or so. Where do you get inexpensive 4V
> >> or so reference?
> >> TL431 or LM431
> >> Specifically, in any PC power suply there is one.
> >> How many do you have in your basement ? I think I have hundreds...
> >
> > I have access to thrown-out 48V Nokia PSUs and each one has a
> > control board with a dozen TL431. I haven't tried one as a voltage
> > reference source though. The 4.096V references I looked at were
> > a little expensive (although I didn't shop around), so I should include
> > a TL431 in the next round of experiments then
> >
> > Currently I'm using a jacked-up 78L05 to make 5.12V for Vref for
> > several boards. It's quite easy to set with a couple of fixed resistors
> > and a trim-pot. If I continue to use that it'll need testing to make sure
> > it's stable from say -10C to 40C. The case is heated a little by the
> > PSU so temperature probably won't go too low
> >
> > --
On 6/11/08, Vasile Surducan <RemoveMEpiclist9spam_OUTKILLspamgmail.com> wrote:
> One perfect application for TL431 is replacing a few lines of code and
> some comparators and/or AD inputs for monitoring precisely the PIC
> supply value in portable applications. It's what I named "oldest but
> goldest". Like LM723, ICL7107 and a few other components without age
> and without aging.
> :)
TL431 is also widely used in the feedback path of many
isolated Flyback converters together with an opto-coupler.
Be very careful about the caps used with TL431. Back in
1999, one of my colleague wrongly used one cap. The
symptom was that the regulator would not regulate properly
at higher operating temperature and it would trip the secondary
crowbar over-voltage protection circuits and thus caused the
primary fuse to blow. It was a solenoid driver module and
customer found out that the modules would have the fuse blow
after few weeks and the failure all happened during the
switch-on moment. Initially we all thought the inrush current control
circuit was the culprit. In the end, we found out it was due to
a wrong cap used with TL431.
>Use the AD reference at 4V or so. Where do you get inexpensive
>4V or so reference?
>TL431 or LM431
Anyone looking for low noise accurate references may like to look at the new
Analog Devices range. Look at the ADR44x range, each voltage output comes in
2 grades of tolerance, and includes 2.048 and 4.096V references.
On 6/11/08, Alan B. Pearce <RemoveMEA.B.PearceTakeThisOuTspamrl.ac.uk> wrote:
> >Use the AD reference at 4V or so. Where do you get inexpensive
> >4V or so reference?
> >TL431 or LM431
>
> Anyone looking for low noise accurate references may like to look at the new
> Analog Devices range. Look at the ADR44x range, each voltage output comes in
> 2 grades of tolerance, and includes 2.048 and 4.096V references.
That is a totally different grade of component than the TL431. I am
using ADR03 and tried ADR421 as well because of their good temperature
drift performance (3ppm worst case). They have much better
speciifcation than the TL431 and are much more expensive as well.
On Wednesday, June 11, 2008 6:07 AM [GMT-3=CET],
Xiaofan Chen wrote:
> On 6/11/08, Alan B. Pearce <EraseMEA.B.PearcespamspamBeGonerl.ac.uk> wrote:
>>> Use the AD reference at 4V or so. Where do you get inexpensive
>>> 4V or so reference?
>>> TL431 or LM431
>>
>> Anyone looking for low noise accurate references may like to look at the
>> new Analog Devices range. Look at the ADR44x range, each voltage output
>> comes in 2 grades of tolerance, and includes 2.048 and 4.096V references.
>
> That is a totally different grade of component than the TL431. I am
> using ADR03 and tried ADR421 as well because of their good temperature
> drift performance (3ppm worst case). They have much better
> speciifcation than the TL431 and are much more expensive as well.
>
> But TL431 is more than a reference. You can refer to the following
> written by the famous R. B. Ridley (ok, he is famous only in the
> field of power electronics).
>
switchingpowermagazine.com/downloads/15%20Designing%20with%20the%20TL
431.pdf
>
> Xiaofan
I always believe that it was a mere *adjustable* zenner, excellent article.
Dennis.