I would like to use a u-controller to control the gain around a low-voltage CMOS OpAmp. Gain Range: 0.5 to 50. ~256 gain steps. Frequency range: DC to ~300Khz. Using I2C as the digital interface would be convenient.
You could use a Digital Potentiometer to do that. They are applied just like a rotary potentiometer would be in a normal analog circuit, but its resistence is controlled by a uC, and not by the position of the pot.
There are several Digital Pots that works with I2C protocol (and SPI and Microwire as well).
They are also known as RDAC, because they can be thought of as a digital do analog converter too (the only difference is that the analog variable controlled is the resistance, and not voltage)..
There are some ICs from Microchip that I know are I2C (MCP45xx).
Of course there are some integrated variable gain amplifiers, but I have never worked with one and I don't know how they behave... I think they may be more expensive, too.
Of course there are some integrated variable gain amplifiers, but I have never worked with one and I don't know how they behave... I think they may be more expensive, too.
Some DACs that use a ladder network internally can also be configured to provide a variable gain amp by putting the ladder network inside the amps feedback loop.