Hi, I've been looking into building a function generator based on an AD9833 DDS generator. The specs I want to hit are:
- 0-12.5MHz
- Sin, Square, Triangle
- 3-12v amplitude
- -9-9v DC offset
I don't think these specs are too hard to meet, and I have most of the design fleshed out, as there is a lot of prior work with this chip.
The one part I am having problems with is amplitude control. Most designs use a potentiometer to vary the gain of the output amp, but I want to try and add digital control. I've explored many ways of varying the gain, but this does not seem to be the right approach.
Instead, I think the best way to go about it is to have a fixed, high, gain and to attenuate the signal to vary the output. I've seen many variable attenuator building blocks, but I can't get any of them to simulate correctly. Any help would be great, Thanks.