Controlling an Op-amp gain using an MCU && || DAC

dacgainmicrocontrolleroperational-amplifier

I'm building a circuit that will generate various wave forms. The output from the circuit is fed to a summing amplified where positive or negative dc offset is being added. This signal should be attenuated or amplified according to what's written in code (this means no pots.). The control elements I currently have are the MCU with a few free GPIOs and a free channel on a bi-polar 14bit DAC. The solution should take in account the fact this design should be of high quality, so I am not sure using an LED+LDR combo or something like that is really an option as the control should be tight and repeatable.

Best Answer

You can certainly use a digital pot. You might also try a variable gain amplifier -- or maybe a switched capacitor circuit controlling a resistance value in a feedback path to change the gain by changing the switched cap clock frequency.