It seems there is a large variety of how one could approach the output leveling. Lets make a summy and write the obvious dis/advantages.
The table was made based on the following assumptions:
- +20dBm max output power
- At least down to -70dBm
- Omron G6K-2F-Y relays for the step ATT, assuming no bigger step than about 30-35dB will be possible due to not the best isolation (40dB @100MHz)
- I want the best bang for the buck (keeping the cost the lowest without seriously degrading performance)
- Not requiring any too obscure parts
- Wanting lowest possible bottom frequency
Solution | | | Bottom Freq | | | ALC Range | | | Advantages | Disadvantages |
PIN ATT (BAP64Q) | | | 300 kHz | | | >40dB | | | + Cheap ($ Fraction) + Very high attenuation range (50dB) + Least amount of relays required: Probably just two 30-35dB steps (downto -70..85dBm) + Voltage controlled | - Only down to 0.3MHz |
DDS DAC Bias tweak | | | from DC | | | 10dB | | | + No other attenuator components (apart from shitton of relays) | - Likely screws SNR/SFDR, DDS DAC not operating with optimal current - Limited range of only about 10dB ALC range - Large number of attenuator relays: At least 4, likely 5 (steps 10 20 20 30 30dB) - A sort of hack of the Rset pin, another OPAMP required |
FET Attenuator (MAAVSS0006) | | | from DC | | | 20dB | | | + Voltage controlled | - Starting to be a bit on the expensive side ($3+) - Sort of limited range of 20dB - Higher step attenuator relay count: At least 3 steps (20 30 30dB) downto -80dBm - Control voltage needs to be NEGATIVE, but could be hacked for positive too |
Dual gate NMOS | | | almost from DC | | | maybe 25dB | | | + Cheap + Voltage controlled | - More complicated design, thorough circuit testing required - Higher step attenuator relay count: At least 3 steps |
Digital step attenuator | | | maybe from DC | | | < 32dB | | | + Good 50ohm match, respectable IP3 | - Can be good deal expensive - Step typically of 0.5dB - In steps, not fully variable attenuation - AM modulation not possible using this ATT |
To be honest, it is quite hard to pick the poison. Some of the requirements are quite against each other. But we are not building $10.000 instrument, but just a decent toy. TBH I could live with only +13dBm output power, and even 400kHz bottom frequency. But I will try to do my best about it.
So far after reviewing the available solutions, the PIN ATT is still very nice solution. The DDS DAC bias tweak is just a rather ugly hack and the digital step attenuator a nonsense.
However the FET attenuator is a bit more interesting, as the ALC dynamic range may be up to 25dB, requiring only 3 attenuator relays (20, 30, 30 dB steps), offering +20 down to -80dBm and operation from DC. This would let me use the MiniCircuits T1-1T-KK81 balun and achieve operation from 80kHz, which would be quite awesome.
So still can not decide between the less evil: PIN ATT or the Macom FET ATT. The PIN ATT clearly will not operate down to DC. But thinking about it, the Macom FET atten. solution requires just one additional relay, which is not that big of a deal, so is the price of that FET device. The price of the balun is however another story, as those TC1-1T+ mini transformers can be obtained very cheap. But having the bottom frequency just 80kHz would be handy, considering I might use the AD9910 next time. That is a 1Gsps DDS (up to 400MHz) and good luck finding such a very wideband balun (from below 100kHz) for that one.
So probably I should try attacking the solution with the
Macom FET attenuator MAAVSS0006. This device is not just as much obscure it seems. It is also readily available from Mouser. (Sorry, no Digikey here guys). I will leave the BAP64Q PIN Quad for the faster 1GSps DDS.
Thanks RadioNerd for mentioning the MAAVSS0006, a nice find.
Bottomline: I know there are many more solutions to this, for example making a multi-path design separating all the LF stuff from the RF and switching between the two, but for now I will start with something easier with higher possibility of success.