Category Archives: Attenuator calibrator (objective: a really precise and accurate apparatus)

Objective: build the most precise (and hopefully accurate) attenuator calibrator – to rival state of the art equipment, 2-18 GHz range, without spending $$$

Fractional-N PLL for the Micro-Tel 1295: ADF4157/ADF5002

After spending most of the day at the beach, some more experimentation – with a fractional-N approach. Two little chips were around from another project, why not give it a try:

(1) The Analog Devices ADF4157, 6 GHz, 25 bit fixed modulus fractional-N PLL – this part is really great, for many purposes. It’s more or less pure magic what these folks at Analog do and achieve.

(2) To make it work up to 18 GHz, a prescaler is needed. Well, unfortunatly, I only have a :8 prescaler (ADF5002) around – this will give 0.25 to 2.25 GHz, for the 2 to 18 GHz input. Not quite ideal, because at 2 GHz it’s getting really into low frequencies for the ADF4157, and the output power of the ADF5002, which is a more-than-sufficient -5 dBm in the 4 to 18 GHz, range, but dropping off to only about -10 dBm at 2 GHz. At the same time, RF input sensitivity of the ADF4157 drops considerably for input frequencies below 0.5 GHz… we will see.

Some calculations:
With a 10 MHz reference clock, and the phase detector frequency set to 1.25 MHz (reference divider=8), this will result in 10 MHz steps, with 2^25 spacings in between. This gives about 0.298 Hz resolution. And moreover, with this setting, 10 MHz steps are possible, with no fractional-N divisor (which can always lead so some rather unpredictable fractional-N spurs).

The circuit – there is no big secret to it, a 5k1 reference resistor to set the charge pump current to 5 mA, and a few 6k8 resistors (0805 SMD) to make the chip compatible to a 5 V digital world. Two SMA connectors – one for the signal, and one for the 10 MHz reference. All wiring is done with 0.08 mm tinned copper wire… hope you have a steady hand. With a drop of epoxy glue, everything is held in place and well-protected.

20140903_223309

20140903_223233

Tests will follow – currently the loop bandwidth tests are running for the 1295, with the ADF41020 PLL.

Noise and spurs, ADF41020/Micro-Tel SG-811 PLL

After getting things worked out with the loop filter, some quick check for spurious responses. To do such analysis near the noise level, a FFT/dynamic signal analyzer can be used, but I find it somewhat troublesome, and rather use a swept frequency analyzer for any such work that goes beyond 1 kHz. Below 1 kHz, the FFT is hard to beat. One of the few exemptions is the HPAK 3585A spectrum analyzer, which covers from about DC to 40 MHz, and has resolution bandwidth filters of down to 3 Hz (discrete hardware, not software filters), with baseline at -135 dBm, or lower.

The 3585A doing its thing…
20140902_214758a

The results – 1 to 500 Hz
348_00_0001 to 05
Mainly 60 Hz harmonics – well, will need to keep the cables short (especially the coarse tune cables) and everything far away from mains transformers.

10 Hz to 5 kHz
348_00_001 to 5
Signal at 1 kHz is about -70 dBm, not much. No spurs.

5 to 30 kHz
348_00_5 to 30
Two unexpected spurs – 1st: 19.986 – this is an artifact of the 3585A. 2nd: 18766, this seems unreleated to the PLL (doesn’t change with frequency or divider settings), maybe some switchmode supply stray. Well, down below -100 dBm.

25 kHz (with some 60 Hz harmonic sidebands, -115 dBm) – reference spur, about -93 dBm.
25 khz spur detail

All in all, with some refinement of the software, and a bit of mechanical work to get this all mounted into a nice case, the setup should work find and provide great service.
Sure enough, some direct phase noise measurements on the SG-811 output will eventually follow, once the opportunity is right and the equipment at hand.

Micro-Tel SG-811/ADF41020 PLL: working out the details – loop filter, bandwidth, charge pump currents

Designing a stable PLL is not really a big challenge, with all the simulation tools available, and after you have mastered some basic experiments with the 4046 chip, or similar circuits. For PLL simulation software, I suggest to look at ADIsimPLL, available free of charge, from Analog Devices.
However, stable doesn’t necessarily mean wideband, and exhibiting similar characteristics over a full 2 to 18 GHz band. That’s what we want to achieve here.

First some targets – after reviewing the circuits of the Micro-Tel SG-811/1295, and looking at the stability of the build-in YIGs, I figured that a good PLL bandwidth for this system would be somewhere in the 200-500 Hz region. This would still allow to correct for some mains-induced frequency fluctuations (50/60 Hz), and the frequencies are well below the 25 kHz phase detector frequency used for the ADF41020. Furthermore, the bandwidth should be reasonably stable of the full range of frequencies, with no need to use multiple loop filters, or troublesome switchable capacitors/variable gain amplifiers – all should be operated from a single-ended 15V power supply, to provide 0-10 V for the Micro-Tel 1295, and 0-3 V for the SG-811, from a single little board.

With this in mind, an OPA284 rail-to-rail precision amplifier (low noise, 4 MHz BW, can drive +-6.5 mA) was selected as the active part, and some capacitors (only use good quality capacitors, polymer dielectric, or stable ceramic capacitors, NPO) and resistors put together. There is only one adjustment, the damping resistor in the feedback loop.

Sketch of the schematic
adf41020 sg-811 pll loop filter

How to figure out the loop characteristics? Many pages have been written about this, determining open-loop gains and phase margins, etc., but how to approach this in practice, one you have done the calculations and figured out a setup that basically works? This is where the extra resistor and the two test points (A, B, see schematic) come into play. The resistor close to the output (8k2, this is just a temporary part, only inserted during test – bridged with a piece of view during normal operation) is used to isolate the loop output, from the SG-811 phase lock input (which is nothing else than a heavy VCO=voltage controlled oscillator). A few extra parts are also connected to feed a test signal to the VCO, in addition to the loop filter output voltage.
This test port is intended to disturb the PLL just a bit, without causing loss of phase lock, and measure the response. Such work is best done with a dynamic signal analyzer – I’m using a HPAK 3562a, not because it is the latest model, but because that’s what I have around here in my temporary workshop. It had the old CRT replaced by a nice color LCD screen, and it features a very acceptable noise floor, and gain/phases analysis.

The test setup (please excuse the mess, not too much empty bench space around here)
pll loop test - micro-tel sg-811 - adf41020

Now we just need to work through various frequencies and settings, to better understand the characteristics of the system.
To cover all the YIGs and bands of the SG-811 (which might have unknown variations in tuning sensitivity, noise, etc.), frequencies around 2, 6, 10, 12.5 and 17.5 GHz were chosen for the test (exact values can be found in the worksheet, better not to use even values, e.g., 2.0000 GHz, but to exercise the divider circuits – to see if there are any spurs).

At each frequency, magnitude and phase response was collected, examples:
Gain (disregard the unstable response below 10 Hz, just an artifact)
mag_cp0

Phase
phase_cp0

The interesting point is the 0 dB crossing of the gain trace – the unity gain bandwidth. This is determined for each test condition, and then the corresponding phase is obtained from the phase plot. In this example, BW_0dB is about 380 Hz, with about 20 degrees phase. Why is it so important? Simply because we need to keep this phase gap (of the A and B signals) well above 0 degrees, otherwise, the loop will become unstable-oscillate-massive phase noise of the generator will result.

Some call this the phase margin, so do I, although the whole discussion about gain and phase margins is typically centered around open-loop system, whereas we are dealing with a closed loop here. Fair enough.

Now, after some measurements, and number crunching, the results:

Phase vs. BW, at various frequencies
pm vs bw sg-811 pll
-you can see, the phase margin is virtually independent of frequency, and purely a function of bandwidth. So we can limit all further discussion to bandwidth, and don’t need to worry about phase margin separately. It is also clear from this diagram that we should better stay in the 250-300 Hz bandwidth region, for the given filter, to keep the phase margin above 25 degrees, which is a reasonable value.

Now, how to keep the bandwidth stable with all the frequencies and YIGs/SG-811 bands and sensitivities changing? Fortunately, the ADF41020 has a nice build-in function: the charge pump current can be set in 8 steps (0 to 7), from 0.625 to 5 mA (for a 5k1 reference resistor) – and setting the charge pump current (Icp) is not much else than changing the gain of the loop filter. The gain, in turn, will change the 0 dB bandwidth in a fairly linear fashion. Note: typically, the adjustable charge pump current is used to improve locking speed – at wider bandwidth, and mainly, for fixed-frequency applications – but is is also a very useful feature to keep bandwidth stable, for PLL circuits that need to cover a wide range of frequencies, like in the case of the SG-811.

The next result – bandwidth vs. Icp setpoint
sg-811 pll bw vs charge pump current at various frequencies
-looking at this diagram, the bandwidth is not only a function of Icp, but also a function of frequency. For the larger frequencies, the bandwidth is much lower. Some calculations, and it turns out that the product of bandwidth, multiplied with frequency to the power of 0.7 (a bit more than the squareroot) is a good parameter that gives an almost linear vs. Icp (see worksheet, if interested).
adf41020 pll bw phase margin

After all the measurements, things are now pretty clear – if we set the Icp current right, BW can be kept stable, over almost the full range, without any extra parts and switches, and about 300 Hz seems to be a reasonable compromise of PLL speed and stability.

Estimated PLL bandwidth (0 dB), using the Icp current adjustment of the ADF41020
bw vs frq with charge pump current adjustment
At the lowest frequencies (2 GHz range), the BW is found a bit larger than desired, but still, the loop still has 20 degrees margin.

Well, with all the phase margins and uncertainties, is the loop really stable enough? To check this out, what is typically done is to first try a few odd frequencies, at the start, end and in the middle of each band and monitor the VCO control voltage with a scope, for any oscillations or otherwise strange behavior. Then try a few small frequency steps, and see how the loop settles. This all went without any issues.

Still, to be sure, especially close to 2 GHz (increased bandwidth), a test was performed by injecting a 100 mV (nominal) squarewave, 10 Hz, via the test port mentioned above. The loop output spectra showed that this worked, and that the 10 Hz contribution is significant, while still not swamping everything else and driving the loop out of lock right away.

Power spectra with test signal on (upper diagram), and off (lower diagram).
pll power spectra

There are some 60 Hz/harmonic 60 Hz spurs, mainly due to coupling of 60 Hz to the coarse tune line, which is just a plain coax cable that doesn’t provide any good shielding vs. 60 Hz (or 50 Hz, in Europe) interference.

Needless to say, the PLL will not stop working right away when the phase hits 0 deg at the 0 dB point (see above, phase margin vs. bandwidth plot – even at negative phase, measurement was still possible – as long as the amplitude of the test signal is kept small).
There will be signs of instability, and this is what this test reveals. So the frequency was set again to 2.2221 GHz, and the charge pump current Icp increase step by step, from 0 to 5. At 6 and 7, no phase lock could be achieve – fully unstable loop.

Step response (AC component only, square wave, 10 Hz at nominal 100 mV, supplied to test port)
pll step response 2.2221 ghz 100 mV
Icp=0 – this is the most stable condition, phase margin is about 20 degrees. Already at Icp=1, phase margin of about 3 degrees, stability is much compromised/considerably more noise, not only for the step response, but also during the steady portions. At Icp=2 and above, phase margin is negative, still, phase lock is robust (will not re-lock, once lock is lost), and the pulse response suggests to stay away from such regions.

Micro-Tel SG-811 PLL – phase lock achieved!

Thanks to a rainy late afternoon (and evening), some success with getting the SG-811 signal generator phase locked. For external frequency control, the SG-811 needs a coarse tune voltage, to adjust the frequency to within a few MHz of the target. This is done using a DAC8830(=MAX541) 16 bit DAC and OP284 opamp to scale the 0 to 2.5 V of the DAC to 0 to 10 V required for the coarse tune input of the SG-811.

The SG-811 is run at a level of +5 dBm, and a directional coupler is used to get a sample of this signal (about -5 dBm) into a ADF41020 single chip PLL. The remainder of the signal is fed into a EIP 454A microwave counter, which also provides a 10 MHz reference for the PLL.

First, it turned out that the SG-811 uses a different voltage range (-3 to 3 V) for the phase lock input, compared to the Micro-Tel 1295 (0 to 10 V). So the 8904A was used to determine the phase lock input sensitivity (deviation in MHz per Volt). Some existing AVR code (the whole setup is controlled by an ATMega32L) was modified to fit the SG-811 requirements. This code has some nice features, including a self-adjusting coarse tune voltage. This is of great help because the phase lock input of the SG-811 only allows for a few MHz frequency shift, and during warm-up the generator can easily drift out of the lock window, if the coarse tune value is left unadjusted. Obviously, the coarse tune voltage is changed in very small steps, 1 LSB at a time.
Drop me a line if you are interested in more details.

The (temporary) test setup, set to an arbitrary value of 4.5500 GHz.
20140831_223034o

The control circuitry
20140831_223151o
Display shows (second line): Divider values of the PLL, DAC coarse tune value (0 to 65535), band, and phase control voltage (deviation from mid-point in mV, +-100 mV are perfectly fine, if +-50 mV are reached with drift correction activated, the DAC coarse tune will be automatically adjusted to get the phase control voltage back to less than +-10 mV).

Last but not least, also the shift register board, 3x LS164 (for remotely controlling the band switches) has been connected to the AVR micro, and all is functional.

Remotely controlling the Micro-Tel SG-811

The SG-811 comes with various option – mine didn’t come with the IEEE-488 remote control option. At least, it has a BCD type TTL interface. All the essential functions (band, operation mode, attenuators, and in particular, external frequency control-phase lock input enable) can be controlled via no less than 23 signals, plus ground.

All the signals are available at the rear of the instrument, via a 50-pin Centronics connector (similar to the old-fashioned SCSI connectors).

20140825_130155

Several steps were taken to make sure that the ancient but still valuable SG-811 will carefully listen to the commands of a modern area microcontroller:

(1) Fabricate a suitable connector cable. Centronics 50 to D-sub 25. Starting from a pre-assembled D-sub 25 1:1 cable, cut in half, the Centronics connector was soldered on. Quite an effort! Turned out that the 1:1 cable uses pretty thin wire – they are saving on copper, over there, in China!

20140825_124509

20140825_125919

(2) A little shift register, 3×8 bits (3x 74LS164) – a total of 24 wires that can be controlled. 3 of these wires will be used to select the band of the 1295 receiver (via optocouplers, PC817), the reminder, via direct TTL connection, for the SG-811. The shift registers will later be set by a microcontroller, just using 2 outputs to set 24 wires.

20140825_124528

The Microwave PLLs: stabilizing the YIGs

The Micro-Tel SG-811 and 1295 are great units, however, they lack PLL control. Even at their time, in the late 70s, early 80s, government labs required PLL control – and Micro-Tel offered PLL controlled frequency stabilizers for these units. Stabilizers that are now virtually impossible to source (if you have two spare Micro-Tel FS1000, please let me know!).

So I decided to build some very broadband PLL circuits that can handle 2 to 18 GHz, at reasonable frequency resolution. 10 kHz, or 100 kHz resolution seems to be perfectly adequate; mostly, the attenuator calibrator will be used in 2 GHz steps anyway.

Both units have two inputs:

(1) A frequency control input – a voltage controlled input, 0 to 10 V, that sets the frequency roughly, within the given band. Bands are: 2-4, 4-8, 8-12, 12-18 GHz. There is some thermal drift, but preliminary test shows that a 16 bit DAC would be most suitable for this kind of “coarse” frequency control.

(2) A phase lock input. This has a sensitivity of a few MHz per Volt. 0 to 10 V input, for the 1295 – and -3 to 3 V for the SG-811, as it turns out. Accordingly, with the coarse control set to the right value, the phase lock voltage should be somewhere around 3-7 Volts, for the 1295, and close to 0 V for the SG-811.

Now, the tricky part, how to get a phase comparator running, for the 2-18 GHz range? Traditionally, this requires a broadband harmonic generator, locking to a certain harmonic, and so on. All possible, has been done before, but a lot of work to get it working.

There comes the rescue, from Analog Devices: a truely remarkable little thing called ADF41020. It is a full 18 GHz PLL circuit, works with more or less any reference (10 MHz will be used here), and has pretty high input sensitivity, all that is needed are about -10 dBm to drive it over the full band.

After some tricky soldering, in dead-bug style, and some auxilliary circuitry, with 16 bit DAC, reference voltage supply, very clean and stable supplies for the PLL, all the typical loop filters (0.5 KHz bandwidth) – and an ATMega32L – this is the current setup, for the 1295. Believe me, it is working just fine, and even has an auto-track feature, to keep the phase lock voltage mid-range – so it won’t un-lock with drift.

20140825_131843

Upper left hand corner: ADF41020
Lower left hand corner: PLL loop filter
Center: Low noise voltage regulators, reference and DAC
Other parts: ATMega32L board (16 MHz, USB interface), LCD display (just for troubleshooting)

Equipment selection: switching matrix

There are quite a few coaxial switches around – I figured that I need two transfer switches to accomplish the task of “through” calibration, and reflection/insertion loss measurement.
Any unused ports should be automatically terminated with 50 Ohms, when switched out.

Looking around, I found that the HP/Agilent/Keysight (will call it HPAK from now on, and add further letters, with next name change of this wonderful company) HPAK 8763B transfer switch, offers really good data, especially on repeatability. 0.03 dB – for millions of cycles.
Determining this switching reproducibility will be the first task for the attenuation calibrator!

They go for USD 813 each (August 2014), but you can find them much cheaper elsewhere. Preferably, get a unit that doesn’t have 10 million+ cycles yet!

These are of latching type – so we will have to device some drive circuitry to switch them, 24 V positive supply. Won’t be too difficult.

Interconnections will all be rigid coax, and precision SMA to N test cables to connect to source/receiver.

20140825_130253

Note the Sage 0.5-18 GHz coupler, left of the switches. This will be used to get a sample of the SG-811 signal – stay tuned.
For this coupler – this item was found on xbay, quite reasonably prices for its bandwidth. However, the coupled port has a little damage of the SMA connector – rendering it non-usable for its original destiny, but will now be very handy for this project.

To the outside world, the interface is a pair of HPAK SMA (3.5 mm) to precision N panelmount transitions. These are the best and most reliable know to me to date.

20140825_130318

Equipment selection: reflection bridge

Attenuation is defined as insertion loss minus reflection loss.

The insertion loss measurements – that’s quite straightforward, with signal genarator and receiver. We will deal with the particulars later.

For the reflection loss, we still need another device, a directional device. Either a directional coupler, or a return loss bridge.

After careful review, I selected a Narda 5082 “Precision high directivity bridge”. Several reasons:

(1) It is a fairly robust device, and offers N and APC-7 connectors. Luckily, APC-7 adaptors were included. Also included was a combined short/open, APC-7 style. That’s really great.

(2) It is very broadband, 2-18 Ghz full range with one device. This eliminates connections – there are hardly and couplers available that offer 35+ dB directivity, over the full band.

(3) The bridge has a bit more insertion loss compared to a coupler/multi-coupler solution, about 6 dB, but the loss is well defined and flat, will be calibrated out.

(4) It was available, at a few cents for the list price in dollars, and in pristine condition.

20140825_130139a

Next step: need to connect the “reflected” port to a switch matrix, via an APC-7 to SMA adapter (which I don’t have in my collection).

Equipment selection: signal generator and receiver

We are talking 2-18 GHz here, and getting signals clean and strong, at such frequencies, can be quite expensive.
I didn’t want to go for any harmonically multiplied generator, but something straightforward, reliable, and easy to fix. Looking around, I have a Systron Donner 26.5 GHz synthesizer, model 1026, which is great, but I don’t want to add it to a fixed purpose rig. And it is somewhat tricky to control.

Another choice, a Gigatronics 1720, great device, but I don’t know how to remotely control this instrument (it has IEEE-488 bus, but is somehow non-reactive to it, and I don’t have a full manual that shows all the codes – if you have a 1720 manual, please let me know). Also, I need this gem for various test tasks that require one or more stable microwave sources.

Finally, I scored a Micro-Tel SG-811 on xbay, not quite cheap, but still a steal. It has all-discrete type construction, several YIG oscillators, a tracking YIG filter, and (limited, see later) remote control functionality. I also has a high-precision output attenuator, so setting any level from +10 dBm down to -120 dBm will be no issue, and allow measurement of even high-gain amplifiers, at any frequency. The unit needed some repair (nothing dramatic, fuse holder, and some minor items) and alignment – one rainy afternoon. With some effort, I managed to locate a paper manual for the SG-811 (from commercial vendor, about 100 EUR!, but worth it), which made the latter task much easier. It may be noteworthy that the unit is ex-MOD, shipped from the UK.

So, the source question has been resolved.

For the receiver: there aren’t too many high precision microwave receivers around, the Scientific Atlanta 1711 (which is just the receiver, no digital amplitude measurement chain), and the Micro-Tel 1295 being the viable alternatives. Fortunately, I found a Micro-Tel 1295.

The Micro-Tel 1295. It covers the full 0.01 to 40 GHz span; 0.01-18 Ghz with the main unit, and 18-26.5, 26.5-40 GHz with two harmonic mixers, that – big luck – came with the unit, and are fully functional!
I acquired this unit already several months ago, and fixing it was no easy task. The -15 V rail was dead, due to some over-aged tantalum caps (interestingly, in the frequency display!).
The -15 V rail also controls the power supply circuitry itself, and any mistake could ruin the receiver altogether. But never mind, there are full schematics available. The power supply is of switching mode type, all discrete electronics with NE555 timer, transformer, and optocoupler feedback.
My only advice: don’t fix it in a rush, but take it step by step. Should any of you come across a 1295 with defective power supply – shoot me a line.

Here, a quick glance at the two gems:

20140825_131511

What is an attenuator calibrator?

Q: What do you want to do? A: I would like to measure attenuation (insertion loss minus reflection loss) of various devices, in particular, programmable attenuators, over the 2 to 18 GHz range (for other ranges, I have other equipment). Measurement should be traceable, and as accurate and precise as technically possible, with some kind of reasonable effort (say, a 3 kUSD budget). Range should be 0-60 dB, usable 0-110 dB with reduced accuracy.

Q: Why don’t you use a VNA? other Q: A what?
A: A VNA (vector network analyzer) – an instrument used to characterize networks, of all kinds. It is very versatile, but has disadvantages:

(1) Extremely expensive, especially, for above 3 GHz. We need 18 GHz.

(2) Not so accurate for attenuation – sure, it is fairly accurate, but just not quite enough for calibration standard type work.

(3) Even more expensive, and if you get used equipment, it might work for some time, but due to the complex design, not easy to troubleshoot.

Various ways exist to measure attenuation. See Alan Coster’s review, of the IEE.

Well, for the “attenuator calibrator”, there are some main parts:

(1) A signal source, it needs to be of stable amplitude, in a useful range (a least 10 dBm), and 2-18 GHz range.

(2) A receiver – needs to highly linear, preferably fundamental-mixing, with a calibrated IF chain, preferably, at 30 MHz. 30 MHz is still the reference frequency for power meter calibration, and many traceable attenuators are available, for 30 MHz, and I have other equipment that allows very accuarate attenuation measurements at 30 MHz.

(3) A switch matrix, to allow “through” calibration without handling any connectors. At the levels we are talking about 0.01 dB, even slight movement of (precision microwave) cables can cause significant measurement errors. The switches can have some little losses, which don’t matter, but they need to be of very high repeatability.

(4) A high directivity bridge, preferably, 35 dB or better directivity. This will allow measurement of reflection loss. Attenuation will be calculated by measuring insertion loss and reflection loss. Attenuation is then calculated. All the measurements are taken relative to the “through” calibration signal.

(5) All the necessary interfaces and control circuits to handle signal source, received and switch matrix.

Sure enough, an attenuator calibrator can also measure gain of amplifiers, SWR of devices (antennas!), and many other useful things. It is more or less a high-precision scalar network analyzers.

Q: Why not use an “attenuator calibrator” all the time, rather than typical scalar network analyzers? A: The calibrator is slow, about 5-6 seconds minimum for each frequency. At each frequency, IF attanuation is selected, and the signal integrated, to get optimal S/N ratio, and to ensure high IF detector linearity.