EEVblog Electronics Community Forum

Electronics => Beginners => Topic started by: Sam__ on January 17, 2014, 12:05:40 pm

Title: DAC input in feedback of Opamp.
Post by: Sam__ on January 17, 2014, 12:05:40 pm
I just had a very stressful pre job interview question which was to analyse a circuit. I came across something I'd never seen before (exactly what you want to happen right?).

There was a DAC input where there is usually a ground on a non-inverting amp.

Here's the diagram.

(http://i.imgur.com/ncsOyx6.png)

I was wondering what effect that has on the circuit and why it's useful?
Title: Re: DAC input in feedback of Opamp.
Post by: miceuz on January 17, 2014, 12:15:31 pm
errr.... to center the output of an opamp to a different point set by dac?
Title: Re: DAC input in feedback of Opamp.
Post by: ThomasDK on January 17, 2014, 04:15:46 pm
errr.... to center the output of an opamp to a different point set by dac?

AKA adding an offset :)
Title: Re: DAC input in feedback of Opamp.
Post by: Sam__ on January 17, 2014, 04:17:46 pm
So the output of the opamp has an adjustable offset due to the DAC input?
Title: Re: DAC input in feedback of Opamp.
Post by: Jay_Diddy_B on January 17, 2014, 04:43:09 pm
Sam,
Think of it this way:

If pin 3 the positive input was grounded. You are left with the inverting amplifier configuration. From DAC3 to the op-amp output the gain is:

Vout / DAC3 = -1 x R40/R43

So this can be used for setting an offset.

Look up 'superposition theorem'.

Jay_Diddy_B
Title: Re: DAC input in feedback of Opamp.
Post by: Sam__ on January 17, 2014, 05:13:37 pm
Sam,
Think of it this way:

If pin 3 the positive input was grounded. You are left with the inverting amplifier configuration. From DAC3 to the op-amp output the gain is:

Vout / DAC3 = -1 x R40/R43

So this can be used for setting an offset.

Look up 'superposition theorem'.

Jay_Diddy_B

Thanks a lot. I'll get reading!
Title: Re: DAC input in feedback of Opamp.
Post by: AlfBaz on January 17, 2014, 09:54:19 pm
due to the DAC input?
Is it any clearer if you called it a DAC output?
Title: Re: DAC input in feedback of Opamp.
Post by: Sam__ on January 17, 2014, 10:01:05 pm
due to the DAC input?
Is it any clearer if you called it a DAC output?

output from the DAC... input to that part of the circuit from the DAC. all the same really. But I do understand what's going on now. Thanks a lot guys.
Title: Re: DAC input in feedback of Opamp.
Post by: cellularmitosis on January 18, 2014, 12:02:55 am
it took my brain a moment to reason out why this creates an offset, rather than actually changing the gain.

a naive conclusion would be that the DAC changes the gain, because the voltage divider created by the resistors is simply creating an input voltage, and the DAC can push that voltage around.

however, a second glance reveals that the voltage divider is not creating a fixed voltage, it follows the AC signal.  since the DAC just offsets by a fixed amount, and does not follow the AC signal, it cannot be modifying the gain, only creating an offset.

do I have that right?
Title: Re: DAC input in feedback of Opamp.
Post by: Rudane on January 18, 2014, 01:41:15 am
The input to the inverting input will experience the gain -100k/100k which is -1. So, the DAC voltage gets inverted and adds a constant value to the output signal. The non-inverting input will experience the gain 100/100 + 1 or 2. So the output will be 2*Vin+ - DAC.