Good work!Yesterday I made a SOIC to DIP adapter to test the THS4222 with the circuit I have in the breadboard. Apart from measuring the effect on the power supply and check the op-amp's resistors, I also wanted to make sure I was able to draw such a small footprint and solder it by hand.
It is apparent that you are _not_ testing with a real load. A 50 ohm load at 2.5 volts out will be 50 mA. All of this current _must_ come from the power supply -- if your power supply could supply it, which it can't.In regards to the power supply: there's just a small increase in current consumption on both rails (about 10mA more on each) and the variation with different loads and settings is fairly small (no more than 5mA on any rail); which is more or less what I got before with the AD822; so I guess the current power supply will also be able to cope with it as before with a minor tunning.
2.5 MHz is not a high frequency unless it is a square wave. What is the rise time of a square wave at this frequency?I also tested the new opamp at high frequencies, and got up to 2.5Mhz at 10 Vpp without any issue (as it is, without changing anything else in the breadboard circuit; except adding the 50Ω output resistor, which didn't influence the results). From there onwards I get the same drop in amplitude discussed previously; which is is not that bad, considering the limitations of my oscilloscope and the use I'm going to give the device
You may be able to "share" the largest value bypass caps with the MAX038 if they are close together. You may want to consider using surface resistors and capacitors around the THS4222. This would allow the shortest lead lengths possible. Either 0805 or 0603 package sizes would work although the 0805 may be a bit big.I looked through the pages of the THS4222 datasheet you recommended, and noticed that I'll need 3 decoupling capacitors per rail -which is going to be quite difficult to fit right next to the opamp in the design as it is-. I don't understand this (I only studied decoupling calculations for designing power supplies): why are 3 different capacitors needed; doesn't the biggest one get the job done? I mean, I always thought that you just use the smallest capacitor you could get away with, and that this capacitor would be good for all frequencies. I even did a few tests in a simulator, and always got the same result, no matter the frequency: the highest the capacitance, the best it works. So, why 3 capacitors for this opamp?
At high frequencies, a capacitor is not perfect because it has a series inductance. The bigger the capacitor value, the bigger the inductance. So, the solution is to put large capacitors in parallel with small capacitors give a than the inductance of a single capacitor (inductances in parallel are like resisitors in parallel). By the way, this applies to ceramic capacitors as well as electrolytic capacitors. However, electrolytic capacitors have a HUGE inductance because they are made by winding a coil of aluminum foil to make a high amount of capacitance in a small package. Ceramic capacitors are not wound, instead, they are a bunch of parallel layers separated by a high dialectic ceramic, therefore, the inductance of a ceramic cap is much, much lower than an electrolytic cap.
If you don't have a low enough bypass impedance on a high frequency amplifier it can oscillate. Even if the amp does not oscillate, it will not be able to drive a load with fast changing signals because the power leads to the amp has inductance whose impedance will divide with the load impedance.
You need a gain of about 5 to go from 2 volts p-p to 10 volts p-p. In an non-inverting op-amp circuit the gain is Rout/Rin +1. So, with a feedback resistance of 2000 ohms, you need an input resistor of about 510 ohms.Also about the THS4222 datasheet: if I change the opamp's feedback resistor to 2k, I assume the input resistor also needs to be changed. I calculated 400Ω, or 390Ω in standard values; is this correct?
Are you using the pot on the Fadj pin for a fine adjust of frequency? I personally don't think that there is much to be gained by doing that. If the range of frequency setting is correct for the pot on the Iin pin then the fine tuning is not really needed. To get the desired setting range of the single Iin pot you will most likely have to change your timing capacitors to 33 pF, 330 pF, 3.3 nF etc. See the OUTPUT FREQUENCY vs. IIN CURRENT graph on page 4 of the MAX038 data sheet. Note that the ratio of the pot to the resistor in series with it has to be more than 10:1 to get overlap in the frequencies from range to range. I would shoot for a ratio of somewhere between 100:1 and 500:1.About the Iin pots: I only use one plus a limiting resistor. What happens is that I've been trying different values -from 1MΩ to the recommended 20kΩ in the datasheet-. 200kΩ is what works best for the frequency range capacitors I'm using, but had to go with 100kΩ as I couldn't get a matching 200kΩ pot.