Category Archives: Electronics

Electronics

Reference Signal Conditioning: 10 MHz amplifier/limiter, :2 divider, 5 MHz output

A common task for most projects involving a PLL or other RF circuitry requiring a reference frequency signal is the conditioning of the incoming reference. These reference signals are typically very accurate in frequency, but never very accurate in levels, nor at the levels constant (sometimes, multiple instruments are connected to a single 10 MHz source, an disconnected when the setup is re-configured etc.). Also, there is always a risk of incorrect connection, with all these BNC inputs.

Therefore, we have a few requirements:

(1) Input needs to be stable to a reasonable DC voltage, say, a few Volts.

(2) Input needs to widthstand at at least 20-25 dBm input, about 0.25 Watts.

(3) Input needs to widthstand ESD, or other transients, and provide reasonable termination to avoid reflection. In the given case, we want about 50 Ohm – some reference inputs have higher resistance.

(4) Circuit needs to work from about -10 dBm on, up to 10 or 20 dBm, with no significant change in jitter, etc., and provide a stable, constant level output, TTL levels, or whatever is required.

The current circuit, which is intended to be a reference signal conditioner for a Micro-Tel MSR-904A Microwave Receiver, also needs a 5 MHz output – the PLL will run off 10 MHz, but the MSR-904A still is ancient enough to require 5 MHz (5 MHz used to be the standard reference frequency from early times up until the end of the 70s – since then, 10 MHz is almost exclusively used, and sometimes, 100 MHz, for double-digit GHz circuits).
Such 5 MHz output is easily realized by a divider circuit, based on a 74F74.

Now, how do we achieve all this. Well, here is the schematic:
ref signal conditioner schematic

The essential part – a 74HCU04. This little circuit is extremely useful – get a handful of these, they are not just “inverters” but acutally work at frequencies from DC to many MHz, can source and sink at least 4 mA to 5 V. The 74HCU04 is more or less a set of 6 push-pull MOSFET pairs, in a handy package. These pairs can also be paralleled with no precautions to get more current, if needed.

The signal input is protected by a 56 Ohm termination (which can burn out if you feed excess DC or more than 0.25 W of RF – unlikely to happen). Then, there is a 47 n decoupling capacitor, a series resistor, and a clipping circuit – which will most likely never be activated.
The 22k resistor, along with the first inverter, and the 470 Ohm resistor form the first amplifier.

Signal A (see letter on schematic, input of first inverter):
ref signal circuit A
-scope is set to 1 V per div vertical, 50 ns per div horizontal.

Output B:
ref signal circuit B

Note that the first gate is self-biased, no need to adjust anything.

This is then squared-up by the limiting action of the following 2 inverters:
ref signal circuit C

ref signal circuit 10 mhz E 1 v-div 50 ns-div

Now, we have a clean 10 MHz square wave. This is fed to a 74F74 edge-triggered flip-flop. The 74F74 is pretty fast, it easily works up to 100 MHz and will provide fast-rising edges.
The flip-flop will also ensure pretty much exact 50% duty cycle of the 5 MHz output.

ref signal circuit 5 MHz F

The output is fed through a low pass, 51 Ohm – 470 p, about 6.6 MHz, because we want low jitter at the divider stage (fast rise time pulses feeding the flip-flop), but not too steep edges at the output:
ref signal circuit G

After amplification by another 74HCU04 inverter:
ref signal circuit 5 MHz H
– this signal is still referenced to ground, and after another resistor and capacitor, finally, an AC signal, that can be used for various purposes, including frequency locking a MSR-904A.
ref signal circuit 5 mhz output I

Note: when you measure in such circuits, always use a >10 Meg, 10:1 low capacitance probe. Otherwise, you will get results, but these won’t reflect reality.

A quick test with a 10 MHz test signal – the circuit works well from about -22 dBm to 20 dBm, no issues at all. For the specification, and to ensure that is is working even under awkward conditions, we might limit it to -10 dBm to +16 dBm.

The little thing in action:
ref signal circuit test setup

HP Fundamental/Harmonic Mixer 5086-7285 (22 GHz): digital bias control

In an effort to build a 2-18 GHz down converter, a HP mixer 5086-7285 needs to be controlled. This is one of a group of 22 GHz mixers, all used in earlier HP spectrum analyzers. These mixers are very linear, and useful both at fundamental and harmonic frequencies.

That’s the little magic thing, and the frequency list-harmonics:
5086-7285 mixer
5086-7285 mixer harmonics

All in all, at a first glance, pretty easy to use – it only needs +10 and -10 V power supply and bias for the diode.

Well, bias, after looking through the schematics, this is the assembly taking care of it: a board full of resistors and amplifiers, with no less than 22 (!) adjustment pots.
08565-60023 bias assembly

The interesting part are the bias drivers itself –
hp bias circuit for harmonic mixer
– the linearization, etc., this can all be done easily by using digital memory and a DAC nowadays, but the drivers, we still need them.

The bands B3 and B5, the even harmonics, the things are clear and as expected – a voltage source, and a resistor. Easy enough. But, what did HP do for the odd harmonics?? – the are a few extra resistors around the opamps, and these resistors make it a tricky thing. Too tricky to make it easy to understand. Some kind of negative resistance circuit/kind of a voltage to current converter, which depends a bit on the load resistance.

So, what do you do to understand such things better – build a little test circuit, here we go:
mixer bias test circuit
-it is essentially the same circuit, as for the B1/B4/B2 bands, U6B of the HP circuit- just left out the switching transistor.

It works pretty well, and as a U to I converter, see here:
bias driver test 200 mv-div ramp  1 mA-div current
– ramp voltage is the drive signal, 800 mV p-p, 200 mV per div (center line is zero). During the negative signal period, the output is active – current signal is 1 mA per div (center line is zero).

Having the basic functionality of the ciruit confirmed – some calculations with LTSpice, one of the best general purpose analog simulators around, Thank You, Linear Technology!

Here the files, in case you want to investigate it yourself:
hp mixer bias

This is a typical result, mixer bias current, vs. input voltage of the circuit, at resistance (of the mixer), of 950 (steepest)-1050-1150-1250 ohms.
r6-92 1-9 bias rscan vs Vi
So, this cirucit really is a U to I converter, with the slope depending on the load resistance.
Also note the model circuit of the mixer internal resistor and diodes. The two diodes and the 970 Ohm resistor are the result of bias current vs. bias voltage measurement. Bias voltage is in the range of -1 to -7 volts, about 0 to 8 mA.

With these findings, next step will be to build a driver circuit that can work fully digitally controlled, with no adjustment pot at all (series resistors will be manually selected).

YTO YTF Driver: 0..250 mA, 16 bits resolution

Quick update on the YTO/YTF driver board – with 16 bits of resolution. Assembly, is complete, and basic function has been checked – digital control test will follow tomorrow.
Current is settable from 0 to 250 mA, with 65535 counts of resolution – about 3.8 Microamps per LSB. All has been build to minimize noise, with heavy filtering on the supplies. The DAC is run from a dedicated 5 V supply, with a 2.5 V precision reference, 1 ppm/K, MAX6325ESA+.
The U to I converter is powered by 11.4 V – provided by a LM317 voltage regulator.
Switching element is an IRF730, operated as a series variable resistance in series with the coil.

YTO YTF driver 2x250 mA 16 bit

YTO YTF driver 2x250 mA 16 bit schematic

Looking at the BoM, the parts sum up to about USD 35 plus board, not bad – target is to stay below about $100 for the final assembled unit, which will be achievable, no issue. Main cost comes from the MAX reference, and the DACs (DAC8830), almost USD 22.

To come: bandwidth testing

YIG tuned oscillator (YTO) / YIG tuned filter (YTF) driver: digitally controlled current source

For a digitally controlled YIG oscillator and filter, a driver is needed that can convert serial data from a microcontroller to a well defined, stable, and low noise current.
Bandwidth of the circuit should be a few 100 Hz, and maximum current in the 300 mA range, so it needs to run of a reasonably high supply voltage, otherwise, the inductance of the coil will limit the slew rate. The YTO needs about 120 mA full scale, the YTF about 260 mA.

I might do some fine tuning on the DACs later or change the current sense resistors for a 2.5 V drop at close to max current, for best signal to noise ratio, but for the test circuit, 10 Ohm RH-25 resistors will be used. The current sense resistors are a very critical part – they need to be low drift, over time, and over temperature, regular resistors, with 100 ppm/K or more will only cause drifting frequencies, and trouble.

Here, the draft schematic, as-build:
YIG driver schematic dac control - u to i converter

That’s the test setup, with +20 V and -10 V power supply, for the YIG. In the final setup, there will be independent, filtered and regulated supplies for low phase noise.

YTO driver test setup

The circuit is driven by a HP 8904A signal generator, with independent adjustment of offset and voltage. Here, the output at 70 mA current, with a +-1 mA amplitude variation:

YTO output 70 mA +-1 mA
YTO is a HP 5086-7259, 2.0-4.5 GHz (nominal).

So, about +-40 MHz – close to expected +-35 MHz.

Bandwidth analysis will follow.

Here a quick calculation of the DAC resolution, 1 LSB will be about 0.13 MHz, more than sufficient for the DAC tune. The DAC used, a DAC8830ICD has typical +-0.5 LSB non-linearity, max +-1 LSB. Additional tuning will be easily accomplished by the FM coil, using a PLL.

yto ytf dac calculator

Avantek AFT-4231-10F 2-4 GHz Amplifier: some characterization and modeling

The task for today – characterization of a bunch of microwave amplifiers, Avantek/HP AFT-4231-10F. These are quite rugged and affordable components, widely available surplus, and hermetically sealed – will last forever, if things are not messed up completely.

aft-4231-10f under test

The specification however, it’s not quite clear, and no detailled information could be found on the web. That’s why I have been asked to come up with measurements and a calculation model that allows to estimate the gain (and the actual maximum output power, and the necessary input power, to reach close to maximum output), at any given frequency and input power. Also, it needs to be checked how far above 4 GHz this device still works.
Last item is to measure the supply voltage sensitivity of the gain, to get a feeling on the required stabilization, to avoid incidental AM on the signal.

The datasheet –
aft series amplifier

The only equipment at hand at my temporary workshop here, a microwave source, EIP 928, and an HP 8565A spectrum analyzer was used to measure the gain at various input levels. Accuracy of this setup is about 1 dB.

Some of the results (0 dBm input: blue diamonds; 10 dBm input: green triangles):
aft-4231-10f pout at 0dbm and 10 dbm pin vs frq

To get a proper continuous description, these data were fit to a non-linear function, fractional polynomial term (fits are done using Tablecurve 2D, an excellent program, highly recommended, but doesn’t come cheap):
gain fit
The gain fit (0 dB input) can also be used to describe the maximum power, with some scaling factors – this considerably reduces the number of parameters needed, and the calculation effort later, when implemented in a microcontroller. Black lines in above diagram show the fit results.

For the gain compression, a 2nd order polynomial is used, and scaled for the 10 dBm input gain.
aft-4231-10f gain compression vs pin at 3 GHz

Once this is all established, no big deal to see the full picture.

Gain, at various input power levels, Pin:
aft-4231-10f gain vs frq at various pin

Output power, Pout, at various input power levels, Pin:
aft-4231-10f pout vs frq at various pin

Accordingly, no problem to get 18 dBm+ in the 1.8 to 4.5 GHz range, perfect for the application requirement.

The final item – supply voltage impact on gain: tested at 3 GHz, 0 dBm input power.
Using a Micro-Tel 1295 test receiver, the reference level was set to 0 dB at 15 V supply voltage, which is the nominal voltage.
Down to 9.0 V, the AFT stays within an excellent 0.01 dB variation. Output power slightly increases (0.15-0.25 dB) down to 6 V. At about 5 V, amplification cuts out. So the AFT can work with any voltage from 10 to 15 V, at about 80 mA, and seems to have pretty good internal regulation.

amp avantek aft-4231-10f

The 0 to 40 GHz SDR: Micro-Tel 1295+R820T USB RTL SDR

Having repaired two Micro-Tel 1295 microwave receivers recently, I noticed a IF (intermediate frequency) test port – this as a sample of the 30 MHz IF signal, from fundamental mixing of the input with the LO, for 0-18 GHz. Using 2nd and 3rd harmonics, and external mixers, the full range up to 40 GHz can be covered.

micro-tel 1295 if port

The 1295, despite its sensitivity, is actually not build for reception of real-world signal – it is an IF subsititution attentuation measurement receiver. However, this doesn’t mean it can’t be use to receive GHz signals… Recently I have been working on a 2-20 GHz digitally controlled preselector, and adding this to the 1295 will already help to get pretty much excellent selectivity.

0-40 GHz rtl-sdr using a Micro-Tel 1295

Now, a quick test: the IF test port, which is normally terminated in 50 Ohms, needs to be connected to the RTL USB SDR. To avoid overload of the RTL SDR by mirror signals, a little Micro-Circuit PBP-30+ filter was added, the silvery can, on the ESD foam, on top of the receiver.

pbp-30+ elliptical bandpass filter

This filter has a 6 MHz passband, 10 MHz 3 dB bandwidth – plenty for the USB SDR. Using a test signal at 11.02 GHz, with neither the receiver nor the source phase-locked, this is the result:

sdr at 11.02 GHz

Divisions are 100 kHz, so there is a bit of drift. But keep in mind: 0.1 MHz for 10000 MHz, that’s just about 10 ppm! – and a PLL will be added to the 1295 anyway.

After all, maybe a good idea to build a little 2-20 GHz downconverter, using a YIG pre-selector (currenty being developed anyway), a mixer and a LO (possibly using harmonic mixing). Stay tuned!

A quick look at the HP 5086-7259 YIG Oscillator: 2.0-4.5 GHz, 15-18 dBm

For a project involving an harmonic mixer, a strong and quiet – low phase noise – local oscillator is required. Looking around, I found a 5086-7259 in one of my boxes, a popular part, used in some high-quality HP test equipment.
Unfortunately, no data around, and this might also be the reason why these often go for about 50 USD on xbay.

hp 5086-7259 YIG oscillator

After some study of the circuit, here a rough schematic. It is essentially a set of Zener diodes and filter caps, plus some high-quality resistors.
The thing needs a +20 Volt, and -10 Volt supply. Not a problem – typically, this would be provided by dedicated low noise regulators, from the 24/28 V and -15 V rails common in test equipment.

hp 5086-7259 schematic (5061-5426 board)

Some measurement of the tuning current – it needs about 42 mA at 1.8 GHz (seems to work below the specified 2 GHz), and about 110 mA at 4.6 GHz – therefore, sensitivity as about 43 MHz per 1 mA.

Doing a quick calculation – setting the frequency to 1 MHz will required a DAC of about 12.5 bits resolution. Using a 16 bit DAC for the coarse tune current will be perfect, about 70 kHz per LSB; with phase lock on the FM coil.

The output power is quite substantial, about 15-18 dBm. Here, operated at the low end of the range, about 16 dBm:

5086-7259 output

Figuring out the details of the Avantek S082-0959 YIG filter

For a small job, I need to design a digitally-controlled YIG preselector (a high-performance bandpass filter), for the 12.4 to 18 GHz range. The application is related to a test rig, and only 4 units are needed – at low cost, and controllable by USB. The control will be easy enough, just a programmable current source and some parameters, but first, finding a suitable YIG is quite a challenge – either only single pieces are available surplus, or they are new, and prohibitively expensive.

Remembering some earlier work, I had a look at the S082-0959 – these were made by Avantek, and are available, scavenged from old spectrum analyzers, for about 200-300 USD each, and still have one spare around here. The S082-0959 is also known as YF85-0107, or HP 0960-0473 (pinout may vary).

To get started, first the basics need to be figured out. Tuning sensitivity, bandwidth roll-off (need at least 12 dB/octave; and >50 dB spurious).
The thing has two pairs of connections: heater (2 wires) and coil (2 wires, this sets the magentic field – the tuning, via current – not voltage – control).

Looking at some spectrum analyzer schematics – the heater needs about 28 V. And, in fact, it works well and heats up quickly, drawing about 80 mA at 28 V, less with strong coil current applied (more during heating-up).

YIG filter Avantek S082-0959

The test setup – two power supplies, a counter EIP 545A, a microwave source EIP 928, and a microwave receiver Micro-Tel 1295. Signal level was 0 dBm.
The coil supply has a 4.7 Ohm current sense resistor, I’m measuring the voltage drop to calculate the current.

For 10 GHz, the tuning current was found to be about 132 mA, about 75.8 MHz/mA sensitivity.

Measurement result of insertion loss vs. frequency –
s082-0959 yig insertion loss vs frequency at 132 mA
– note that the passband is not well captured, but 3 dB bandwidth has been measured, by manual tuning, about 25-30 MHz. Recordering accurate values is a bit troublesome, would need to phase-lock the microwave source and receiver.
There is a spurious signal, about 350 MHz above the center frequency. This I will need to investigagte further. Note that the measuement points are not arbitrarily selected, but the YIG was actually tuned for the minimum loss, and the maximum response of the spurious.

Calculating the roll-off (25 MHz assumed 3 dB bandwidth):
s082-0959 yig roll-off at 10 ghz

As you can see, when doubling the bandwidth (e.g., from 2x to 4x – don’t look to close to the center frequency), the signal is about 20 dB down. That’s close to 18 dB per octave.
Without going into theory, which can be found elsewhere, a one-stage YIG filter will give (ideally) about 6 dB per octave. So the S082-0595 is most likely a 3 stage (3 sphere) filter. Well, limited accuaracy – the YIG will be fully characterized, once things are more advanced.

The best solution, most likely: let the nonlinearities (INL) cancel out

After putting a bit more thought into this, let’s have a look again at the kind of nonlinearity observed for the ADS1211. We only know three points where there will be no error due to non-linearity: the zero point (because that will be covered by the zero point calibration), and the plus (and minus) voltage, at which the gain calibration is carrier out. The gain will be calibrated both for the positive and negative direction, simply by reversing the same calibration voltage, most likely, about 7.x volts, supplied by a LTZ1000.

Again, from the datasheet:
nonlinearity ADS1211

Now, what if we measure not just with one ADC, but with two, of the same kind, and hopefully, with the same non-linearity, but, with the polarity reversed. I.e., because of the fully differential nature, we can measure, simultaneously, the same voltage, both in the positive and negative direction. Doing this adequately should cancel out most of the (integral) nonlinearity. Furthermore, if use two independent references, for the two ADC we will also gain noise margin – because some of the noise in non-correlated and will cancel out – also, we will acquire the same signal independently, and do the averaging digitally! For non-correlated noise, this means about 3 dB gain, about half a bit!

inversion averaging ADC scheme

It only means that finally, we will need to put in 8 ADCs to measure two voltages, but, well, who cares – the given application can handle this, specialized equipment, and no relation to the total cost. And, with some luck, it will result in linearity errors of better than 1 ppm, and 7 digits resolution, with pretty fast data rates.

inversion averaging ADC nonlinearity cancellation
The solid line: non-linearity of ADC1, the dashed line – non-linearity of ADC2, both ADC are running fully synchronized, same control codes to both ADCs. Two digital outputs – and, one output will be fully inversed, directly in the ADC controller (an ATmega32L), to yield the average of the ADC1 reading, and the complementary of ADC2. Sure the difference to 0 V can also be analyzed, to check how far off the individual values are.
The ATmega32L will also do some decimation, from 60 Hz, to maybe 5 Hz or 1 Hz (independent of the mains frequency), and sent the data to the main controlled, via an optoelectronic isolator (the full ADC section design with fully floating digital and analog grounds). 1200 or 2400 baud will be plenty to get the data out. 60 Hz 6 bytes would be 360 bytes per second, about 3600 baud (need to count start and stop bit), but with decimation, we don’t need any fast couplers, etc.

Sure, this is currently an idea, and will need a closer look, but I assume, it will do the trick, at reasonable cost.
If it works out, maybe we go one step back in the final implementation – the ADS1211 has a 4 to 1 MUX, and rather than sampling simultaneously – we might just give up the noise advantage, and sample consecutively, once with positive polarity, and then, via another channel, in inverse polarity. But hey, Texas Instruments will be happy to sell a few more ADCs.

Finally, not sure if it is better to run both ADC from the same 10 MHz clock, or from separate clocks – some of the jitter induced noise might average out only, if the jitter sources are independent. So many, option, but quite easy to find out!

ADS1211 evaluation: a bit of shielding goes a long way…

Following-up on earlier analysis, the ADC performance observed at small decimation (like 1 s averages, with 60 Hz data rate – 60x decimation) left something to be desired – quite a few bits lost due to mains (and/or other) sinusoidal noise.

Look at 1 hour worth of data (60x decimated; each sample: 1 s worth of data), at higher magnification than before – ticks every 15 minutes:
ads1211 zero dec=60 noise

Obiously, there are some bursts. And these are almost certainly not related to the ADC or anything internal to the circuit. Maybe the power supply, but added quite a few decoupling capacitors…

So, if the noise source is external, a bit of shielding might help – great to have a little metal box (even a steel box) at hand!

ads1211 in shielded box

Note the 2 BNC cables – rather than one – feeding the test signals from a fully-differential source, to avoid ground loops.

ads1211 zero shielded noise

Well, not much to add! Amazing what a little metal box can do!