Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #539932 > unrolled thread

how to optimize for multistage gain selection

Started byal.basili@gmail.com
First post2019-04-17 15:24 -0700
Last post2019-04-18 13:23 -0700
Articles 12 on this page of 32 — 15 participants

Back to article view | Back to sci.electronics.design


Contents

  how to optimize for multistage gain selection al.basili@gmail.com - 2019-04-17 15:24 -0700
    Re: how to optimize for multistage gain selection tabbypurr@gmail.com - 2019-04-17 15:43 -0700
      Re: how to optimize for multistage gain selection tabbypurr@gmail.com - 2019-04-17 16:11 -0700
      Re: how to optimize for multistage gain selection "Carl" <carl.ijamesXYZ@ZYXverizon.net> - 2019-04-17 20:03 -0400
    Re: how to optimize for multistage gain selection gnuarm.deletethisbit@gmail.com - 2019-04-17 16:01 -0700
    Re: how to optimize for multistage gain selection George Herold <gherold@teachspin.com> - 2019-04-17 17:06 -0700
    Re: how to optimize for multistage gain selection Clifford Heath <no.spam@please.net> - 2019-04-18 10:45 +1000
      Re: how to optimize for multistage gain selection Sjouke Burry <burrynulnulfour@ppllaanneett.nnll> - 2019-04-18 02:52 +0200
      Re: how to optimize for multistage gain selection bitrex <user@example.net> - 2019-04-17 21:17 -0400
        Re: how to optimize for multistage gain selection bill.sloman@ieee.org - 2019-04-17 23:26 -0700
      Re: how to optimize for multistage gain selection George Herold <gherold@teachspin.com> - 2019-04-18 16:17 -0700
        Re: how to optimize for multistage gain selection gnuarm.deletethisbit@gmail.com - 2019-04-18 18:18 -0700
          Re: how to optimize for multistage gain selection upsidedown@downunder.com - 2019-04-19 07:34 +0300
          Re: how to optimize for multistage gain selection George Herold <gherold@teachspin.com> - 2019-04-19 06:35 -0700
            Re: how to optimize for multistage gain selection gnuarm.deletethisbit@gmail.com - 2019-04-19 07:18 -0700
              Re: how to optimize for multistage gain selection George Herold <gherold@teachspin.com> - 2019-04-19 08:10 -0700
                Re: how to optimize for multistage gain selection gnuarm.deletethisbit@gmail.com - 2019-04-19 08:37 -0700
                Re: how to optimize for multistage gain selection upsidedown@downunder.com - 2019-04-19 18:57 +0300
                  Re: how to optimize for multistage gain selection Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2019-04-19 12:27 -0400
                  Re: how to optimize for multistage gain selection George Herold <gherold@teachspin.com> - 2019-04-19 10:01 -0700
                    Re: how to optimize for multistage gain selection upsidedown@downunder.com - 2019-04-19 23:52 +0300
                      Re: how to optimize for multistage gain selection George Herold <gherold@teachspin.com> - 2019-04-19 17:22 -0700
    Re: how to optimize for multistage gain selection Chris Jones <lugnut808@spam.yahoo.com> - 2019-04-18 11:26 +1000
      Re: how to optimize for multistage gain selection makolber@yahoo.com - 2019-04-18 07:57 -0700
    Re: how to optimize for multistage gain selection bitrex <user@example.net> - 2019-04-17 21:54 -0400
    Re: how to optimize for multistage gain selection DecadentLinuxUserNumeroUno@decadence.org - 2019-04-18 06:34 +0000
    Re: how to optimize for multistage gain selection "Tim Williams" <tiwill@seventransistorlabs.com> - 2019-04-18 10:05 -0500
      Re: how to optimize for multistage gain selection bitrex <user@example.net> - 2019-04-18 12:35 -0400
        Re: how to optimize for multistage gain selection gnuarm.deletethisbit@gmail.com - 2019-04-18 11:22 -0700
          Re: how to optimize for multistage gain selection bitrex <user@example.net> - 2019-04-18 15:23 -0400
            Re: how to optimize for multistage gain selection bitrex <user@example.net> - 2019-04-18 15:27 -0400
            Re: how to optimize for multistage gain selection gnuarm.deletethisbit@gmail.com - 2019-04-18 13:23 -0700

Page 2 of 2 — ← Prev page 1 [2]


#540140

Fromupsidedown@downunder.com
Date2019-04-19 23:52 +0300
Message-ID<scckbe119ut98hjidpqueqk2fd3eqpsn4e@4ax.com>
In reply to#540113
On Fri, 19 Apr 2019 10:01:38 -0700 (PDT), George Herold
<gherold@teachspin.com> wrote:

>On Friday, April 19, 2019 at 11:57:53 AM UTC-4, upsid...@downunder.com wrote:
>> On Fri, 19 Apr 2019 08:10:29 -0700 (PDT), George Herold
>> <gherold@teachspin.com> wrote:
>> 
>> >On Friday, April 19, 2019 at 10:18:22 AM UTC-4, gnuarm.de...@gmail.com wrote:
>> >> On Friday, April 19, 2019 at 9:35:10 AM UTC-4, George Herold wrote:
>> >> > On Thursday, April 18, 2019 at 9:18:47 PM UTC-4, gnuarm.de...@gmail.com wrote:
>> >> > > On Thursday, April 18, 2019 at 7:18:04 PM UTC-4, George Herold wrote:
>> >> > > > On Wednesday, April 17, 2019 at 8:45:52 PM UTC-4, Clifford Heath wrote:
>> >> > > > > On 18/4/19 8:24 am, al.basili@gmail.com wrote:
>> >> > > > > > I'm trying to design a two stage amplifier for a sensor readout and I would like those stages to be configurable, but I also need to have the overall gain vs. configuration curve to be such that every new step is ~5% increase w.r.t. the previous.
>> >> > > > > > 
>> >> > > > > > So let's say I have 3 control bits on the first amplifier and 4 for the second, how would I design the set of values those gains need to be at? Is there an algorithm to do that?
>> >> > > > > > 
>> >> > > > > > I'm currently guesstimating it, but I doubt there's no formal method to do so.
>> >> > > > > > Any pointer/comment is appreciated.
>> >> > > > > > 
>> >> > > > > 
>> >> > > > > Gain is easy; stepped attenuation is easy. Stepped gain is usually a bad 
>> >> > > > > idea because it either changes the input impedance or lengthens and adds 
>> >> > > > > reactance to the feedback path.
>> >> > > > > 
>> >> > > > > Use fixed gain and stepped attenuation.
>> >> > > > 
>> >> > > > That's what I did when I wanted to keep the BW 
>> >> > > > approx. constant.  Like a 'scope, at least analog ones.
>> >> > > 
>> >> > > How do you deal with overloading the gain stage?  Is the attenuator ahead of the first stage?  
>> >> > There was a lot of gain.  You can switch in x10 gain stages up front, 
>> >> > The attenuator in the ~middle and then fixed gain at the end. 
>> >> 
>> >> Hmmm...  I'm not getting it.  The idea is to have high gain in the amps at all settings so as to minimize the bandwidth???  Sounds counter productive.
>> >Ya know Rick, if you were inquisitive and polite, rather than argumentative
>> >and insulting, I would be happy to share details.  It's not anything 
>> >amazing.  But we sell them without complaints.  Gain from 10 to 10^4
>> >and BW from DC to 1 MHz.  (opamps are amazing.)  
>> 
>> So the gain range would be 20 to 80 dB and  the maximum gain would be
>> about 35 and 45 dB/stage, this at 1 MHz. For proper feedback action,
>> the open loop gain would have to be, say, 20 dB better, so with
>> standard compensation, the open loop gain would drop to unity around 1
>> GHz, so an amazing op-amp is needed.  With more aggressive
>> compensation, a lower open loop limit would suffice, but since this is
>> a variable gain stage, the stability at lower gain settings must be
>> analyzed.
>
>Here's a schematic.  
>https://www.dropbox.com/s/oeceem6by903xjb/gain.png?dl=0

Thanks, this clarifies some things.

Hopefully the signal is AC, since switching in an inverting stage will
reverse the polarity.

I calculated 1.5 bits for the two first stages and 3 bits for the
attenuator. From previous posts I assumed that there would be 3+4
control bits.

Anyway, all those op-amps are really marginal for 1 MHz bandwidth. The
full  voltage swing stops at about 200 kHz and at 1 MHz, the swing is
only a few volts.

The open and close loop gain are marginal, some of which drops a few
dB at 1 MHz. In order to have, say the -3 dB full chain response at 1
MHz, the gain of each individual stage should drop by less than -1 dB,

Better op-amps may help.
 
>
>George H.

[toc] | [prev] | [next] | [standalone]


#540154

FromGeorge Herold <gherold@teachspin.com>
Date2019-04-19 17:22 -0700
Message-ID<0543092c-e938-4ab7-9698-12552d56e722@googlegroups.com>
In reply to#540140
On Friday, April 19, 2019 at 4:52:15 PM UTC-4, upsid...@downunder.com wrote:
> On Fri, 19 Apr 2019 10:01:38 -0700 (PDT), George Herold
> <gherold@teachspin.com> wrote:
> 
> >On Friday, April 19, 2019 at 11:57:53 AM UTC-4, upsid...@downunder.com wrote:
> >> On Fri, 19 Apr 2019 08:10:29 -0700 (PDT), George Herold
> >> <gherold@teachspin.com> wrote:
> >> 
> >> >On Friday, April 19, 2019 at 10:18:22 AM UTC-4, gnuarm.de...@gmail.com wrote:
> >> >> On Friday, April 19, 2019 at 9:35:10 AM UTC-4, George Herold wrote:
> >> >> > On Thursday, April 18, 2019 at 9:18:47 PM UTC-4, gnuarm.de...@gmail.com wrote:
> >> >> > > On Thursday, April 18, 2019 at 7:18:04 PM UTC-4, George Herold wrote:
> >> >> > > > On Wednesday, April 17, 2019 at 8:45:52 PM UTC-4, Clifford Heath wrote:
> >> >> > > > > On 18/4/19 8:24 am, al.basili@gmail.com wrote:
> >> >> > > > > > I'm trying to design a two stage amplifier for a sensor readout and I would like those stages to be configurable, but I also need to have the overall gain vs. configuration curve to be such that every new step is ~5% increase w.r.t. the previous.
> >> >> > > > > > 
> >> >> > > > > > So let's say I have 3 control bits on the first amplifier and 4 for the second, how would I design the set of values those gains need to be at? Is there an algorithm to do that?
> >> >> > > > > > 
> >> >> > > > > > I'm currently guesstimating it, but I doubt there's no formal method to do so.
> >> >> > > > > > Any pointer/comment is appreciated.
> >> >> > > > > > 
> >> >> > > > > 
> >> >> > > > > Gain is easy; stepped attenuation is easy. Stepped gain is usually a bad 
> >> >> > > > > idea because it either changes the input impedance or lengthens and adds 
> >> >> > > > > reactance to the feedback path.
> >> >> > > > > 
> >> >> > > > > Use fixed gain and stepped attenuation.
> >> >> > > > 
> >> >> > > > That's what I did when I wanted to keep the BW 
> >> >> > > > approx. constant.  Like a 'scope, at least analog ones.
> >> >> > > 
> >> >> > > How do you deal with overloading the gain stage?  Is the attenuator ahead of the first stage?  
> >> >> > There was a lot of gain.  You can switch in x10 gain stages up front, 
> >> >> > The attenuator in the ~middle and then fixed gain at the end. 
> >> >> 
> >> >> Hmmm...  I'm not getting it.  The idea is to have high gain in the amps at all settings so as to minimize the bandwidth???  Sounds counter productive.
> >> >Ya know Rick, if you were inquisitive and polite, rather than argumentative
> >> >and insulting, I would be happy to share details.  It's not anything 
> >> >amazing.  But we sell them without complaints.  Gain from 10 to 10^4
> >> >and BW from DC to 1 MHz.  (opamps are amazing.)  
> >> 
> >> So the gain range would be 20 to 80 dB and  the maximum gain would be
> >> about 35 and 45 dB/stage, this at 1 MHz. For proper feedback action,
> >> the open loop gain would have to be, say, 20 dB better, so with
> >> standard compensation, the open loop gain would drop to unity around 1
> >> GHz, so an amazing op-amp is needed.  With more aggressive
> >> compensation, a lower open loop limit would suffice, but since this is
> >> a variable gain stage, the stability at lower gain settings must be
> >> analyzed.
> >
> >Here's a schematic.  
> >https://www.dropbox.com/s/oeceem6by903xjb/gain.png?dl=0
> 
> Thanks, this clarifies some things.
> 
> Hopefully the signal is AC, since switching in an inverting stage will
> reverse the polarity.
Yeah, noise amplifier.  
> 
> I calculated 1.5 bits for the two first stages and 3 bits for the
> attenuator. From previous posts I assumed that there would be 3+4
> control bits.

Oh I'm not the OP.  I was just posting a schematic of a gain 
with switched attenutators after..  
> 
> Anyway, all those op-amps are really marginal for 1 MHz bandwidth. The
> full  voltage swing stops at about 200 kHz and at 1 MHz, the swing is
> only a few volts.
> 
> The open and close loop gain are marginal, some of which drops a few
> dB at 1 MHz. In order to have, say the -3 dB full chain response at 1
> MHz, the gain of each individual stage should drop by less than -1 dB,
> 
> Better op-amps may help.
Oh yes!  This circuit is from ~10 years ago. Before putting new opamps
in the gain stage, I could use faster opamps in the 100kHz filter stage.
(not shown.) 

In this circuit, amplifying noise, you start to get clipping of the 
voltage before hitting the slew rate limit of the output opamps.  
Vrms <=~ 1V.  I measured a ~2 MHz BW of this gain stage, sometime in the 
distant past, under those conditions. Which was good enough at the time. 
 
George H. 

>  
> >
> >George H.

[toc] | [prev] | [next] | [standalone]


#539951

FromChris Jones <lugnut808@spam.yahoo.com>
Date2019-04-18 11:26 +1000
Message-ID<6nQtE.108878$tL7.29551@fx26.am4>
In reply to#539932
On 18/04/2019 08:24, al.basili@gmail.com wrote:
> I'm trying to design a two stage amplifier for a sensor readout and I would like those stages to be configurable, but I also need to have the overall gain vs. configuration curve to be such that every new step is ~5% increase w.r.t. the previous.
> 
> So let's say I have 3 control bits on the first amplifier and 4 for the second, how would I design the set of values those gains need to be at? Is there an algorithm to do that?
> 
> I'm currently guesstimating it, but I doubt there's no formal method to do so.
> Any pointer/comment is appreciated.
> 

Express the gains that you want in decibels, dB.

5.925% gain steps would be 0.5dB, a nice round number in dB. Or you 
could pick a nice round percentage number and work out what dB steps 
that corresponds to.

e.g., you could have 3 bits giving 0...7 * 0.5dB for one stage,
0.5dB, 1dB, 1.5dB, 2dB...3.5dB
Then the second stage can give you 0...15 * 4dB for example.

You can generate 6.02dB steps with a R:2R ladder in the feedback path of 
an op-amp: drive the ladder network from the output of the op-amp and 
just pick off the voltage on one stage with a multiplexer and feed that 
to the inverting input of the amplifier.

You can similarly generate nice 0.5dB steps with a R:75R ladder iirc., 
and R-75R could also be made with R/5:15R, with unit resistors - that is 
nice on a chip because unit resistors match well. For discrete resistors 
just buy the values you want.

You need to terminate the resistive ladders correctly. After doing the 
maths you can check if the values are right using LTSpice.

Or, just buy a programmable gain amplifier chip, with the above inside it.

[toc] | [prev] | [next] | [standalone]


#539978

Frommakolber@yahoo.com
Date2019-04-18 07:57 -0700
Message-ID<c1f73ef1-c26c-4499-b2e9-33a034c6cf34@googlegroups.com>
In reply to#539951
> > 
> 
> Express the gains that you want in decibels, dB.
> 


+1 !

m

[toc] | [prev] | [next] | [standalone]


#539952

Frombitrex <user@example.net>
Date2019-04-17 21:54 -0400
Message-ID<LNQtE.147715$jq6.31765@fx15.iad>
In reply to#539932
On 4/17/19 6:24 PM, al.basili@gmail.com wrote:
> I'm trying to design a two stage amplifier for a sensor readout and I would like those stages to be configurable, but I also need to have the overall gain vs. configuration curve to be such that every new step is ~5% increase w.r.t. the previous.
> 
> So let's say I have 3 control bits on the first amplifier and 4 for the second, how would I design the set of values those gains need to be at? Is there an algorithm to do that?
> 
> I'm currently guesstimating it, but I doubt there's no formal method to do so.
> Any pointer/comment is appreciated.
> 

The noise figure of the second amp in a chain is divided by the gain of 
the first amp in the chain, so assuming 0000000 is unity gain of the 
cascade, or some fixed total minimum gain, and 1111111 is max you can 
narrow down your choices by when you need 3 control bits or less worth 
of gain compared to that there's no sense for the second amp in the 
chain to be anything but the buffer.

it's not the first amp in the cascade that's just going to sit there 
with minimum or unity gain doing fuck all and let the second just 
amplify its noise!

[toc] | [prev] | [next] | [standalone]


#539959

FromDecadentLinuxUserNumeroUno@decadence.org
Date2019-04-18 06:34 +0000
Message-ID<q995pl$1db2$1@gioia.aioe.org>
In reply to#539932
al.basili@gmail.com wrote in
news:70eda2f7-884c-4359-b5ee-fab13920352a@googlegroups.com: 

> I'm trying to design a two stage amplifier for a sensor readout
> and I would like those stages to be configurable, but I also need
> to have the overall gain vs. configuration curve to be such that
> every new step is ~5% increase w.r.t. the previous. 
> 
> So let's say I have 3 control bits on the first amplifier and 4
> for the second, how would I design the set of values those gains
> need to be at? Is there an algorithm to do that? 
> 
> I'm currently guesstimating it, but I doubt there's no formal
> method to do so. Any pointer/comment is appreciated.
> 

school coursework question?

[toc] | [prev] | [next] | [standalone]


#539981

From"Tim Williams" <tiwill@seventransistorlabs.com>
Date2019-04-18 10:05 -0500
Message-ID<q9a3of$h16$1@dont-email.me>
In reply to#539932
Easy. 3 bits of 5% each is 1.05^1, 1.05^2 and 1.05^3 gain per position.  Put 
those on the first, I suppose.  (It doesn't matter which amp gets the LSBs 
and HSBs, but for noise purposes it is desirable to have at least a modest 
amount of gain in the first amp, and to use a lower noise amp or 
architecture there.)  Put the rest (1.05^4, etc.) on the other.

If BW per stage is poor, consider even using one more stage, or optimizing 
the GBW of the two stages and using an attenuator to reach the lowest steps 
(in which case you'll use steps of 1.05^-1 and so on to undo the base gain, 
which equals the total attenuation).

Alternately, get a log amp that's analog or digitally controlled; these 
normally have a generous tempco, but it may be reasonable to compensate 
that.

Tim

-- 
Seven Transistor Labs, LLC
Electrical Engineering Consultation and Design
Website: https://www.seventransistorlabs.com/

<al.basili@gmail.com> wrote in message 
news:70eda2f7-884c-4359-b5ee-fab13920352a@googlegroups.com...
> I'm trying to design a two stage amplifier for a sensor readout and I 
> would like those stages to be configurable, but I also need to have the 
> overall gain vs. configuration curve to be such that every new step is ~5% 
> increase w.r.t. the previous.
>
> So let's say I have 3 control bits on the first amplifier and 4 for the 
> second, how would I design the set of values those gains need to be at? Is 
> there an algorithm to do that?
>
> I'm currently guesstimating it, but I doubt there's no formal method to do 
> so.
> Any pointer/comment is appreciated. 

[toc] | [prev] | [next] | [standalone]


#539993

Frombitrex <user@example.net>
Date2019-04-18 12:35 -0400
Message-ID<gH1uE.107136$lO2.61448@fx30.iad>
In reply to#539981
On 4/18/19 11:05 AM, Tim Williams wrote:
> Easy. 3 bits of 5% each is 1.05^1, 1.05^2 and 1.05^3 gain per position.  
> Put those on the first, I suppose.  (It doesn't matter which amp gets 
> the LSBs and HSBs, but for noise purposes it is desirable to have at 
> least a modest amount of gain in the first amp, and to use a lower noise 
> amp or architecture there.)  Put the rest (1.05^4, etc.) on the other.
> 
> If BW per stage is poor, consider even using one more stage, or 
> optimizing the GBW of the two stages and using an attenuator to reach 
> the lowest steps (in which case you'll use steps of 1.05^-1 and so on to 
> undo the base gain, which equals the total attenuation).
> 
> Alternately, get a log amp that's analog or digitally controlled; these 
> normally have a generous tempco, but it may be reasonable to compensate 
> that.
> 
> Tim
> 

I think it makes more sense from a noise perspective to have the first 
amp have a stage that makes it so the 0b0000001 word ends up with 1.05 
total cascade gain.

And then interleave the gains somehow basically so you don't end up with 
the situation where you have say 0b10000001 and only have 5% gain in the 
first stage and all the rest in the second. Should be the other way 
around, the first stage should be the "coarse" control and the second 
the "fine tune" IMO

[toc] | [prev] | [next] | [standalone]


#540002

Fromgnuarm.deletethisbit@gmail.com
Date2019-04-18 11:22 -0700
Message-ID<da8402ec-7074-4dd2-9858-54d046ff70b6@googlegroups.com>
In reply to#539993
On Thursday, April 18, 2019 at 12:35:29 PM UTC-4, bitrex wrote:
> On 4/18/19 11:05 AM, Tim Williams wrote:
> > Easy. 3 bits of 5% each is 1.05^1, 1.05^2 and 1.05^3 gain per position.  
> > Put those on the first, I suppose.  (It doesn't matter which amp gets 
> > the LSBs and HSBs, but for noise purposes it is desirable to have at 
> > least a modest amount of gain in the first amp, and to use a lower noise 
> > amp or architecture there.)  Put the rest (1.05^4, etc.) on the other.
> > 
> > If BW per stage is poor, consider even using one more stage, or 
> > optimizing the GBW of the two stages and using an attenuator to reach 
> > the lowest steps (in which case you'll use steps of 1.05^-1 and so on to 
> > undo the base gain, which equals the total attenuation).
> > 
> > Alternately, get a log amp that's analog or digitally controlled; these 
> > normally have a generous tempco, but it may be reasonable to compensate 
> > that.
> > 
> > Tim
> > 
> 
> I think it makes more sense from a noise perspective to have the first 
> amp have a stage that makes it so the 0b0000001 word ends up with 1.05 
> total cascade gain.
> 
> And then interleave the gains somehow basically so you don't end up with 
> the situation where you have say 0b10000001 and only have 5% gain in the 
> first stage and all the rest in the second. Should be the other way 
> around, the first stage should be the "coarse" control and the second 
> the "fine tune" IMO

So what happens when the coarse control is set to minimum gain?  

The reality is the OP has not come back to discuss his homework.  The professor didn't indicate enough of the problem to bother with considering the need to minimize noise. 

-- 

  Rick C.

  - Get a 1,000 miles of free Supercharging
  - Tesla referral code - https://ts.la/richard11209

[toc] | [prev] | [next] | [standalone]


#540011

Frombitrex <user@example.net>
Date2019-04-18 15:23 -0400
Message-ID<d94uE.702676$Z%2.222560@fx48.iad>
In reply to#540002
On 4/18/19 2:22 PM, gnuarm.deletethisbit@gmail.com wrote:
> On Thursday, April 18, 2019 at 12:35:29 PM UTC-4, bitrex wrote:
>> On 4/18/19 11:05 AM, Tim Williams wrote:
>>> Easy. 3 bits of 5% each is 1.05^1, 1.05^2 and 1.05^3 gain per position.
>>> Put those on the first, I suppose.  (It doesn't matter which amp gets
>>> the LSBs and HSBs, but for noise purposes it is desirable to have at
>>> least a modest amount of gain in the first amp, and to use a lower noise
>>> amp or architecture there.)  Put the rest (1.05^4, etc.) on the other.
>>>
>>> If BW per stage is poor, consider even using one more stage, or
>>> optimizing the GBW of the two stages and using an attenuator to reach
>>> the lowest steps (in which case you'll use steps of 1.05^-1 and so on to
>>> undo the base gain, which equals the total attenuation).
>>>
>>> Alternately, get a log amp that's analog or digitally controlled; these
>>> normally have a generous tempco, but it may be reasonable to compensate
>>> that.
>>>
>>> Tim
>>>
>>
>> I think it makes more sense from a noise perspective to have the first
>> amp have a stage that makes it so the 0b0000001 word ends up with 1.05
>> total cascade gain.
>>
>> And then interleave the gains somehow basically so you don't end up with
>> the situation where you have say 0b10000001 and only have 5% gain in the
>> first stage and all the rest in the second. Should be the other way
>> around, the first stage should be the "coarse" control and the second
>> the "fine tune" IMO
> 
> So what happens when the coarse control is set to minimum gain?

idk, what would be wrong with that? why not have the bits of the first 
amp have a geometric control law starting from 5% gain and the second 
have a linear starting from unity gain. like maybe 5%, 10%, 20%, 40% in 
the first and 0%, 5%, 10%, 15%, in the second

there's no rule that I saw that a certain group of bits of a given 
binary word must map to the control input of a particular amp just that 
the cascade gain rises in 5% increments as it goes 0b0000001, 0b0000010, 
0b0000011...and with the geometric-linear control laws you can find some 
mapping that gives 5% increase with each step such that the first stage 
is doing the bulk of the gain.


> The reality is the OP has not come back to discuss his homework.  The professor didn't indicate enough of the problem to bother with considering the need to minimize noise.
> 

There are a lot of ways you could do what's requested, even wrt noise 
but it sounds like the end result is a silly circuit that's hard to find 
much real-world use for. why does the first amp have to have 3 bits and 
the second four other than that's some contrived constraint

[toc] | [prev] | [next] | [standalone]


#540012

Frombitrex <user@example.net>
Date2019-04-18 15:27 -0400
Message-ID<Qc4uE.89943$7_6.34960@fx18.iad>
In reply to#540011
On 4/18/19 3:23 PM, bitrex wrote:
> On 4/18/19 2:22 PM, gnuarm.deletethisbit@gmail.com wrote:
>> On Thursday, April 18, 2019 at 12:35:29 PM UTC-4, bitrex wrote:
>>> On 4/18/19 11:05 AM, Tim Williams wrote:
>>>> Easy. 3 bits of 5% each is 1.05^1, 1.05^2 and 1.05^3 gain per position.
>>>> Put those on the first, I suppose.  (It doesn't matter which amp gets
>>>> the LSBs and HSBs, but for noise purposes it is desirable to have at
>>>> least a modest amount of gain in the first amp, and to use a lower 
>>>> noise
>>>> amp or architecture there.)  Put the rest (1.05^4, etc.) on the other.
>>>>
>>>> If BW per stage is poor, consider even using one more stage, or
>>>> optimizing the GBW of the two stages and using an attenuator to reach
>>>> the lowest steps (in which case you'll use steps of 1.05^-1 and so 
>>>> on to
>>>> undo the base gain, which equals the total attenuation).
>>>>
>>>> Alternately, get a log amp that's analog or digitally controlled; these
>>>> normally have a generous tempco, but it may be reasonable to compensate
>>>> that.
>>>>
>>>> Tim
>>>>
>>>
>>> I think it makes more sense from a noise perspective to have the first
>>> amp have a stage that makes it so the 0b0000001 word ends up with 1.05
>>> total cascade gain.
>>>
>>> And then interleave the gains somehow basically so you don't end up with
>>> the situation where you have say 0b10000001 and only have 5% gain in the
>>> first stage and all the rest in the second. Should be the other way
>>> around, the first stage should be the "coarse" control and the second
>>> the "fine tune" IMO
>>
>> So what happens when the coarse control is set to minimum gain?
> 
> idk, what would be wrong with that? why not have the bits of the first 
> amp have a geometric control law starting from 5% gain and the second 
> have a linear starting from unity gain. like maybe 5%, 10%, 20%, 40% in 
> the first and 0%, 5%, 10%, 15%, in the second
> 
> there's no rule that I saw that a certain group of bits of a given 
> binary word must map to the control input of a particular amp just that 
> the cascade gain rises in 5% increments as it goes 0b0000001, 0b0000010, 
> 0b0000011...and with the geometric-linear control laws you can find some 
> mapping that gives 5% increase with each step such that the first stage 
> is doing the bulk of the gain.
> 
> 
>> The reality is the OP has not come back to discuss his homework.  The 
>> professor didn't indicate enough of the problem to bother with 
>> considering the need to minimize noise.
>>
> 
> There are a lot of ways you could do what's requested, even wrt noise 
> but it sounds like the end result is a silly circuit that's hard to find 
> much real-world use for. why does the first amp have to have 3 bits and 
> the second four other than that's some contrived constraint

maybe being controlled from serial bytes or a single 8 bit port or 
something.

[toc] | [prev] | [next] | [standalone]


#540013

Fromgnuarm.deletethisbit@gmail.com
Date2019-04-18 13:23 -0700
Message-ID<e4d6c1f8-0537-430d-a1e1-1e8a1edaefde@googlegroups.com>
In reply to#540011
On Thursday, April 18, 2019 at 3:23:57 PM UTC-4, bitrex wrote:
> On 4/18/19 2:22 PM, gnuarm.deletethisbit@gmail.com wrote:
> > On Thursday, April 18, 2019 at 12:35:29 PM UTC-4, bitrex wrote:
> >> On 4/18/19 11:05 AM, Tim Williams wrote:
> >>> Easy. 3 bits of 5% each is 1.05^1, 1.05^2 and 1.05^3 gain per position.
> >>> Put those on the first, I suppose.  (It doesn't matter which amp gets
> >>> the LSBs and HSBs, but for noise purposes it is desirable to have at
> >>> least a modest amount of gain in the first amp, and to use a lower noise
> >>> amp or architecture there.)  Put the rest (1.05^4, etc.) on the other.
> >>>
> >>> If BW per stage is poor, consider even using one more stage, or
> >>> optimizing the GBW of the two stages and using an attenuator to reach
> >>> the lowest steps (in which case you'll use steps of 1.05^-1 and so on to
> >>> undo the base gain, which equals the total attenuation).
> >>>
> >>> Alternately, get a log amp that's analog or digitally controlled; these
> >>> normally have a generous tempco, but it may be reasonable to compensate
> >>> that.
> >>>
> >>> Tim
> >>>
> >>
> >> I think it makes more sense from a noise perspective to have the first
> >> amp have a stage that makes it so the 0b0000001 word ends up with 1.05
> >> total cascade gain.
> >>
> >> And then interleave the gains somehow basically so you don't end up with
> >> the situation where you have say 0b10000001 and only have 5% gain in the
> >> first stage and all the rest in the second. Should be the other way
> >> around, the first stage should be the "coarse" control and the second
> >> the "fine tune" IMO
> > 
> > So what happens when the coarse control is set to minimum gain?
> 
> idk, what would be wrong with that? why not have the bits of the first 
> amp have a geometric control law starting from 5% gain and the second 
> have a linear starting from unity gain. like maybe 5%, 10%, 20%, 40% in 
> the first and 0%, 5%, 10%, 15%, in the second
> 
> there's no rule that I saw that a certain group of bits of a given 
> binary word must map to the control input of a particular amp just that 
> the cascade gain rises in 5% increments as it goes 0b0000001, 0b0000010, 
> 0b0000011...and with the geometric-linear control laws you can find some 
> mapping that gives 5% increase with each step such that the first stage 
> is doing the bulk of the gain.
> 
> 
> > The reality is the OP has not come back to discuss his homework.  The professor didn't indicate enough of the problem to bother with considering the need to minimize noise.
> > 
> 
> There are a lot of ways you could do what's requested, even wrt noise 
> but it sounds like the end result is a silly circuit that's hard to find 
> much real-world use for. why does the first amp have to have 3 bits and 
> the second four other than that's some contrived constraint

"the first stage should be the "coarse" control "

Not sure what all you are going on about.  The point is that regardless of which you put first, it will have some lowest setting that means you get the maximum noise through it.  Designing the first amp so it has the coarse settings don't alter that issue.  

One way to get around this is to give the first amp some minimum level of gain and design the second stage so it has either gain or attenuation as required.  

But... none of this can really be optimized until you have an idea of what gain values are required.  It may be that the minimum gain setting already digs the signal out of the noise as much as practical.  The level of control requested was a range of nearly 500:1.  Since this is going into a display you would think the result needs to be in a range that can be digitized without much trouble, so call it 5 volts.  Then the minimum full scale signal would be 10 mV.  I don't think that needs so much concern with noise in the electronics.  Standard attention to detail should suffice.  No need for heroics I think. 

BTW, the OP never said the first amp had to have 3 bits.  It was a talking point... "So let's say I have 3 control bits on the first amplifier and 4 for the second"

-- 

  Rick C.

  + Get a 1,000 miles of free Supercharging
  + Tesla referral code - https://ts.la/richard11209

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | sci.electronics.design


csiph-web