Normally, if you want to control the gain of an amplifier, you’ll use a variable resistor. You know, like a volume control. But what if you want to control the amplifier’s gain with a voltage?
Digital potentiometers (pots) offer advantages for audio volume (gain) control applications and can replace bulky mechanical pots, especially in handheld portable devices such as MP3 players, PDAs, ...
A Microchip Inc datasheet covering the MCP4xxx family of digital potentiometers (Dpot) includes an interesting application circuit on datasheet page 15. See Figure 1 for a (somewhat edited) version of ...