Showing posts with label GPSDO. Show all posts
Showing posts with label GPSDO. Show all posts

Sunday, October 1, 2023

Resurrecting my FE-5680A Rubidium frequency reference

Fig 1:
The Hammond 1590 aluminum case
housing the FE-5860A rubidium osc-
oscillator and other circuitry - the
markings faded by time and heat.
Click on the image for a larger version.
Recently I was getting ready for the October 14, 2023 eclipse, so I pulled out my two 10 MHz rubidium frequency references (doesn't everyone have at least one?) as I would need an accurate and (especially) stable frequency reference for transmitting:  The details of what, why and how will be discussed in a post to be added in the near future.

The first of these - my Efratom LP-101 - fired up just fine, despite having seen several years of inactivity.  After letting it warm up for a few hours I dialed it in against my HP Z3801 GPSDO and was able to get it to hold to better than 5E-11 without difficulty.

My other rubidium frequency reference - the FEI FE-5680A - was another matter:  At first, it seemed to power up just fine:  I was using my dual-trace oscilloscope, feeding the 'Z3801 into channel 1 and the '5680A into channel 2 and watching the waveforms "slide" past each other - and when they stop moving (or move very, very slow) then you know things are working properly:  See Figure 2, below, for an example of this.

That did happen for the '5680A - but only for a moment:  After a few 10s of seconds of the two waveforms being stationary with respect to each other, the waveform of the '5680A suddenly took off and the frequency started "searching" back and forth, reaching only as high as a few Hz below exactly 10 MHz and swinging well over 100 Hz below that.

My first thought was something along the lines of "Drat, the oven oscillator has drifted off frequency..."

Fig 2:
Oscillogram showing the GPS reference (red)
and the FE-5680A (yellow) 10 MHz signals
atop each other.  Timing how long it takes for the
two waveforms "slide" past each other (e.g. drift
one whole cycle) allows long-term frequency
measurement and comparison.
Click on the image for a larger version.

As it turns out, that was exactly what had happened.

Note: 

 I've written a bit more about the aforementioned rubidium frequency references, and you can read about them in the links below:

Oscillator out of range

While it is the "physics package" (the tube with the rubidium magic inside) that determines the ultimate frequency (6834683612 Hz, to be precise) it is not the physics package that generates this frequency, but rather another oscillator (or oscillators) that produce energy at that 6.834682612 GHz frequency, inject it into the cavity with the rubidium lamp and detect a slight change in intensity when it crosses the atomic resonance.

In this unit, there is a crystal oscillator that does this, using digital voodoo to produce that magic 6.834682612 GHz signal to divine the hyperfine transition.  This oscillator is "ovenized" - which is to say, the crystal and some of the critical components are under a piece of insulating foam, and attached to the crystal itself is a piece of ceramic semiconductor material - a PTC (positive temperature coefficient) thermistor - that acts as a heater:  When power is applied, it produces heat - but when it gets to a certain temperature the resistance increases, reducing the current consumption and the thermal input and the temperature eventually stabilizes.

Because we have the rubidium cell itself to determine our "exact" frequency, this oven and crystal oscillator need only be "somewhat" stable intrinsically:  It's enough simply to have it "not drift very much" with temperature as small amounts of frequency change can be compensated, so neither the crystal oven - or the crystal contained within - need to be "exact".

Fig 3:
The FE-5680A itself, in the lid of the
case of the 1590 box to provide heat-
sinking.  As you can see, I've had this
unit open before!
Click on the image for a larger version.
What is required is that this oscillator - which is "pullable" (that is, its precise frequency is tuned electronically) - must be capable of covering the exact frequency required in its tuning range:  If this can't happen, it cannot be "locked" to the comparison circuitry of the rubidium cell.

The give-away was that as the unit warmed up, it did lock, but only briefly:  After a brief moment, it suddenly unlocked as the crystal warmed up and drifted low in frequency, beyond the range of the electronic tuning.

Taking the unit apart I quickly spotted the crystal oscillator under the foam and powering it up again, I kept the foam in place and watched it lock - and then unlock again:  Lifting the foam, I touched the hot crystal with my finger to draw heat away and the unit briefly re-locked.  Monitoring with a test set, I adjusted the variable capacitor next to the crystal and quickly found the point of minimum capacitance (highest frequency) and after replacing the foam, the unit re-locked - and stayed in lock.

Bringing it up to frequency

This particular '5680A is probably about 25 years old - having been a pull from service (likely at a cell phone site) and eventually finding its way onto EvilBay as surplus electronics.  Since I've owned it, it's also seen other service - having been used twice in in ground stations used for geostationary satellite service as a stable frequency reference, adding another 3-4 years to its "on" time.

As quartz crystals age, they inevitably change frequency:  In general, they tend to drift upwards if they are overdriven and slowly shed material - but this practice is pretty rare these days, so they seem to tend to drift downwards in frequency with normal aging of the crystal and nano-scale changes in the lattice that continue after the quartz is grown and cut:  Operating at elevated temperature - as in an oven - tends to accelerate this effect.

By adjusting the trimmer capacitor and noting the instantaneous frequency (e.g. adjusting it mechanically before the slower electronic tuning could take effect) I could see that I was right at the ragged edge of being able to net the crystal oscillator's tuning range with the variable capacitor at its extreme low end, so I needed to raise the natural frequency a bit more.

If you need to lower a crystal's frequency, you have several options:

  • Place an inductor in series with the crystal.  This will lower the crystal's in-circuit frequency of operation, but since doing so generally involves physically breaking an electrical connection to insert a component, this is can be rather awkward to do.
Fig 4:
The tip of the screwdriver pointing at the added 2.2uH
surface-mount inductor:  It's the black-ish component
at sort of a diagonal angle, wired across the two
crystal leads.
Click on the image for a larger version.
  • Place a capacitor across the crystal.  Adding a few 10s of pF of extra capacitance can lower a crystal's frequency by several 10s or hundreds of ppm (parts-per million), depending on the nature of the crystal and the circuit.

Since the electrical "opposite" of a capacitor is an inductor, the above can be reversed if you need to raise the frequency of a crystal:

  • Insert a capacitor in series with the crystal.  This is a very common way to adjust a crystal's frequency - and it may be how this oscillator was constructed.  As with the inductor, adding this component - where none existed - would involve breaking a connection to insert the device - not particularly convenient to do.
  • Place an inductor across the crystal.  Typically the inductance required to have an effect will have an impedance of hundreds of ohms at the operating frequency, but this - like the addition of a capacitor across a crystal to lower the frequency - is easier to do since we don't have to cut any circuit board traces.
With either method of tweaking the resonance of the oscillator circuit, you can only go so far:  Adding reactance in series or parallel will eventually swamp the crystal itself, potentially making it unreliable in its oscillation - and if that doesn't happen, the "Q" is diminished, potentially reducing the quality of the signal produce and furthermore, taking this to an extreme can reduce the stability overall as it starts to become more temperature sensitive with the added capacitor/inductor than just the crystal, alone.

In theory, I could have placed a smaller fixed capacitor in series with the trimmer capacitor  - or used a lower-value capacitor - but I chose, instead, to install a fixed-value surface-mount inductor in parallel with the crystal as it would not require cutting any traces.  Prior to doing this I checked to see if there was any circuit voltage across the crystal, but there was none:  Had I seen voltage, adding an inductor would have shorted it out and likely caused the oscillator to stop working and I would have either reconsidered adding a series capacitor somewhere or, more likely I would have placed a large-value (1000pF or larger) capacitor in series with the inductor to block the DC.

"Swagging" it, I put a 2.2uH 0805 surface-mount inductor across the crystal and powered up the '5680A and after a 2-3 minute warm-up time, it locked.   After it had warmed up for about 8 minutes I briefly interrupted the power and while it worked to re-establish lock I saw the frequency swing nearly 100 Hz below and above the target indicating that it was now more less in the center if its electronic tuning range indicating success!  As can be seen from Figure 4, there is likely enough room to have used a small, molded through-hole inductor instead of a surface-mount device.
Fig 5:
The crystal is under the round disk (the PTC
heater) near the top of the picture and the
adjustment capacitor is to the right of the
crystal.
Click on the image for a larger version.

With a bit of power-cycling and observing the frequency swing while the oscillator was hot, I was able to observing the electronic tuning range and in so-doing, increase the capacitance of the trimmer capacitor very slightly from minimum indicating that I now had at least a little bit of extra adjustment room - but not a lot.  Since this worked the first time I didn't try a lower value of inductance (say, 1uH) to further-raise the oscillator frequency, leaving well-enough alone.

Buttoning everything back up and putting it back in its case, everything still worked (always gratifying!) and I let the unit "burn in" for a few hours.

Comparing it to my HP Z8530 GPS Disciplined oscillator via the oscilloscope (see Figure 2) it took about 20 minutes for the phase to "slide" one entire cycle (360 degrees) indicating that the two 10 MHz signal sources are within better than 10E-10 of each other - not too bad for a device that was last adjusted over a decade ago and as seen about 15000 operational hours since!
 
* * *
 
Follow-up:  A few weeks after this was originally posted I had this rubidium reference with me at the October, 2024 Eclipse event as a "hot standby", its frequency being compared to the LPRO-101 - which was the active, on-the-air unit - using an oscilloscope.
 
This (repaired) unit fired up and locked within 5 minutes at the cool (45F/7C) ambient temperature and remained stable for the several hours that it was powered up.
 
I used this unit again form the April, 2024 Eclipse - this time, from a location in central Texas and, again, it worked perfectly.

* * * * *
 
This page stolen from ka7oei.blogspot.com
 
[END]
 

Sunday, December 20, 2020

Locking the Icom IC-910H to an external 10 MHz (GPS) reference

In late 2009 my friend Bryan, W7CBM, came to me with a project that he had in mind:  "Can we lock my Icom IC-910H to my 'Z-box'?" - in other words, could the 10 MHz output from his Z-3801 GPS Disciplined Oscillator - known to be accurate to better than one part in 100 million - be used to lock his tri-band (2 meters, 70cm and 23cm) all-mode radio to frequency?

Figure 1:
The front panel of the modified Icom IC-910H.
Click on the image for a larger version.

During the initial discussion he'd brought with him an article where Rex, VK7MO, had done a similar thing (see the article on the VK3HZ site from the web archive - link) using an external box to provide a precise version of the radio's 30.2 MHz reference - but he wanted it to be contained entirely within the radio.  

In looking at the requirements and designing the circuit in my head, I decided that we could make it simpler, smaller and easier to use - and with these ideas in mind, I wrote down the specifications for a 30.2 MHz fundamental-mode crystal and he sent an order off to International Crystal.

About 2 months later - in early 2010 - we got back together in my ham shack, crystal in hand, and it was then that I decided that I'd better get around to designing the circuit, so I scribbled the vestiges of a schematic onto a piece of paper and built several circuits that would fit into the aluminum box that Bryan had milled out. At the end of about 3 hours we had a circuit that would faithfully lock the 30.2 MHz crystal oscillator to a 10 MHz external source.  This circuit was fairly small and consisting of two boards:  The amplifier/counter/PLL section wired on prototype board while the VCXO itself was constructed "dead bug" on to a piece of copper-clad PC board material as seen in Figure 3.

"Patience is a virtue - but this is ridiculous!"

And that was where it stopped.  In a case of "out of sight, out of mind", "other fish to fry" - or any number of other excuses - the partly-completed lock unit stayed on a shelf in Bryan's ham shack for a decade, in plain sight.  When I'd go over to his shack, I'd see it as a reminder of a project yet to be completed, but it had become a fixture and was often overlooked.

Until recently.

As it happened, we both had more time available with the onset of winter and we carved out Wednesday evenings to get together to work on various projects and this, being the most senior and nearest completion, came to the top of the pile.  Over the course of a couple evenings we worked on it, having to pause occasionally to get a part, modify some aspect the circuit's implementation, do some physical machine work, or because we ran out of time - but it is now complete!

How it works:

The schematic diagram is depicted in Figure 2, below.

Figure 2:
The schematic of the lock unit for the IC-910H.  This schematic is a reverse-engineered  version of the (now lost) originals and is likely to be mostly correct.
Click on the image for a larger version.

The VCXO:

The heart of the unit is Y201, a 30.2 MHz fundamental mode crystal in a Colpitts oscillator.  Using D201, a varactor diode (approx. 5-20pF) its frequency is made variable, the center of the electronic tuning range being adjusted by trimmer capacitor C201.  The output of the oscillator is buffered by emitter-follower Q202 to isolate the oscillator from the load.

The 30.2 MHz output goes two places:  To Q103, the 30.2 MHz amplifier, and also to a low-pass filter consisting of C208, L201 and C209 which is then output to the IC-901H's synthesizer.

The 10 MHz chain:

Figure 3:
The lock unit under test prior to installation in the case.
Unfortunately, this is the only picture that I got
of the oscillator portion.  The small PCB is the RF sense
circuit, built using SMD components by Bryan.
Click on the image for a larger version.

The 10 MHz input - which can come from a GPS Disciplined Oscillator (GPSDO), a 10 MHz oven-controlled oscillator (OCXO) or a Rubidium source - is input to and amplified by Q101 to a logic level and buffered by U1a, one section of a 74HC86 quad XOR gate.  

The output of U1a is also applied to a 74HC40103 which is wired as a divide-by-50 counter to yield a 200 kHz output - and this is applied to U2a, a 74HC7474 divide-by-two counter to yield a 100 kHz square wave.

The RF sense circuit:

A sample of the 10 MHz signal from U1a is also applied to the input of Q301, which amplifies it:  This RF gets rectified to DC by D301 and D302 and its presence turns on Q301 which pulls R303 to ground and turns off Q301 which is connected to U301 - a 5 volt regulator that is connected to the +5 volt lead of the original TCXO in the IC-910H:  In this way, the internal oscillator in the IC-910H is enabled when there is no 10 MHz signal, but disabled when it is connected.

Also connected to the emitter of Q301 is PNP power switch Q203 which, when R208 is pulled to ground when Q301 turns off, applies power to U201 - a 9 volt regulator - to power up the 30.2 MHz oscillator when the external 10 MHz source is applied, preventing both oscillators from being turned on at the same time.

The Harmonic mixer: 

A sample of the 30.2 MHz signal applied to Q103 is amplified and applied to U1b, another XOR gate buffer, which is then applied, along with the 10 MHz from U1a, into U1d - yet another XOR gate.  This gate acts as a harmonic mixer:  By virtue of the multiplying action of the XOR gate, the 3rd harmonic of the 10 MHz input mixes with the 30.2 MHz input and at the output of this gate is a small amount of the difference frequency - 200 kHz - which easily is filtered by L101 and C103 and amplified by Q102.

Figure 4:
The unit in place - final test.  SMA connectors are used for
10 MHz input and 30.2 MHz output and
feedthrough capacitors are used for the 13.8 volt DC
input and the switched 5 volts for the TCXO.
Click on the image for a larger version.

The use of a harmonic mixer is a very old technique and it has an advantage of simplicity over a more "conventional" digital divider network - albeit more "analog".

A more "conventional" way of doing this might be to divide both the 30.2 MHz and 10 MHz signals down to a common sub-multiple - say, 200 kHz - but to do so would require both a divide-by-50 (to take the 10 MHz down to 200 kHz) and a divide-by-151 (to take the 30.2 MHz down to 200 kHz).  This method works, but adds the a bit of hardware (an additional divider) and, more importantly, these divider steps and subsequent comparisons reduce the PLL loop gain.

By contrast, directly using the 3rd harmonic of the 10 MHz reference to mix with the 30.2 MHz, the 200 kHz difference (ultimately 100 kHz - see below) may be used directly - and loop gain preserved, potentially improving PLL performance and simplifying the design.

The comparison with the reference frequency:

The 200 kHz "difference" signal from the harmonic mixer, filter and amplifier is applied to the divide-by-to circuit U2d to yield to yield a 100 kHz square wave.  The 100 kHz square wave from the divided-down 10 MHz reference signal and that from the 100 kHz "difference" signal are applied to U1c, an XOR gate, which is used as a phase detector.  As the phases of the 100 kHz from the reference signal and that of the difference signal "slide" past each other, the voltage - smoothed by R107 and C107 - will vary from 0 to 5 volts.  If, as an example, C201 in the 30.2 MHz crystal oscillator is adjusted so that 2.5 volts applied to the "VCXO Tune" line, this will cause the crystal oscillator to lock to the reference when the two signals are 90 degrees apart, being steered back onto frequency if they start to drift apart.  

I chose to use an XOR gate as a phase detector over a conventional phase/frequency detector because other than the desired DC component, the lowest-frequency component from its output cannot be lower than the comparison frequency - 100 kHz in this case, with the vast majority of the energy being 200 kHz and harmonics.  In comparison, many of the flip-flop phase/frequency detectors tend to output "occasional" pulses at very low frequency when at/near lock, which are nearly impossible to filter out.  There is a minor penalty, though:  An XOR gate phase detector requires use of 50% duty cycle square waves to work most efficiently, so each of its inputs is divided-by-two by a single 74HC74 dual flip-flop.

Figure 5:
Power connection to the original TCXO - L511 was removed.
Click on the image for a larger version.

Interfacing to the IC-910:

Switching the internal oscillator:

Bryan's IC-910 has the standard TCXO - X512 (the "CR-452") rather than the "High Stability" option (the "CR-293").  Either unit operates at 30.2 MHz, but there is a difference:  The standard TCXO operates from 5 volts while the high stability unit operates directly from the 13.8 volt supply.  Because the internal oscillator must be disabled when another source is applied, one will need to do one of two things, depending on how the radio is configured:

  • Because this radio had the standard TCXO (CR-452 a.k.a. X512), inductor L511 (on the IC-910H's PLL board) was removed to make the power externally switchable and L510 and C501 (the "L510" on Figure 2, above) was connected to power X512.  It is this voltage that is switched by Q303 and regulated by U301 to provide switchable 5 volts.
  • If the "High Stability" option ("CR-293") had been present (as described in the VK7MO case) we would have interrupted the 13.8 volt supply at C511/C512 (on the IC-910H PLL board) and switched it using Q303 directly rather than regulated to 5 volts by U301.  Comment:  It is unknown how much current the high stability oscillator consumes so a slight modification of the Q302 circuit might be required to do this.

Another difference between the way the two oscillators are interfaced appears to have something to do with the output level.  The standard TCXO outputs an RF signal of about 1.2 volts peak-to-peak while it can be seen from the IC-910H service manual that R515 is in series with the output of the high stability oscillator - presumably to reduce its level.

Injecting the locked 30.2 MHz signal:

Figure 6:
Connection of the 30.2 MHz to the PLL board showing
 the added D501 and L502.
Click on the image for a larger version.
Initially we simply connected the external 30.2 MHz in parallel with the output of the original TCXO, hoping that it would go "Hi-Z" when it was powered down - but that did not work:  When the original oscillator was powered down, its output was effectively shorted to ground, dropping the 30.2 MHz signal down to about 100 millivolts, so this signal was applied, instead, to the junction of variable resistor R570 and R572, using R570 to isolate it from the powered-down oscillator.  For this reason, diode D501 was implemented:  This diode - and L502 to provide a DC return - are connected directly at the junction of R570/R572:  When the external reference is activated, diode D501 is biased via R207, turning it on and connected the output of the 30.2 MHz VCXO to the IC-910H's PLL circuit.

If the external reference is not activated, Q203 - the VCXO power switch - is off and no voltage is applied to diode D501 via R207 and it remains "off", effectively isolating the original oscillator from the powered-down VCXO:  By placing the diode at the end of the coax, farthest from the external reference, there is minimal effect on the signal by that coax to the IC-910H's internal oscillator when the external reference is not being used.

Mechanical installation within the IC-910H:

Figure 7:
The back panel of the modified IC-910H.  The added BNC
connector is in the lower-left corner - the location of the
original ground screw, now relocated to the opposite corner.
Click on the image for a larger version.
Bryan had machined the box out of a chunk of aluminum back in 2010, sizing it to just fit (in all three dimensions) on the lid of the PLL unit.  As originally equipped, there are two brackets screwed down to the lid - apparently for the mounting of an optional voice synthesizer and DSP board - but these brackets were removed to make room.  Two SMA connectors were then mounted to the new box - one for the 10 MHz input and the other for the 30.2 MHz output, into the PLL board.  A pair of 1000pF feedthrough capacitors provide passage for the DC power into the box and the switched 5 volt output to the original TCXO on the PLL board.

Not shown (because I forgot to take the photo) is the connection to the switched 13.8 volt supply:  This was connected to the same point on the PLL board as depicted in the VK7MO document mentioned above - except, of course, that the trace did not need to be cut as would have been necessary to switch the power if the high-stability oscillator had been fitted.

The hole on the rear panel for the ground post was drilled out to permit mounting of a single-hole BNC connector with an already-fitted cable with attached SMA connector as can be seen in Figure 4.  This location for the BNC connector was slightly problematic as it somewhat blocked the screw to hold down the cover, but maneuvering of the connector, the use of tweezers and a small-diameter screwdriver permitted its installation.  In the opposite corner (the far-right in Figure 7) a new hole was drilled and tapped for the grounding post.

Spectral purity:

There was a small of concern that the spectral purity of the transceiver with the new reference oscillator would be worse than the original as I'd made no attempt to construct a very low noise oscillator (e.g. a lightly-loaded Butler or similar) so I compared the spectrum with both the internal oscillator and the "new", externally-locked oscillator on the various bands  - particularly on 23cm.

Figure 8:
Transmitter spectrum +/-500 kHz of a CW
carrier on 23cm as seen on an HP-8562A.
Click on the image for a larger version.


On 2 meters and 70cm, very weak (-70dBc) spurs at +/- 200 kHz - the main component of the output of the phase detector - were noted, barely above the broadband noise floor of the transmitter itself - but these were pretty much absent on 23cm as can be seen in Figure 8.  If these had been of concern, it would have been easy to further-improve the loop filter - which is currently a very simple R/C design as evidenced by Figure 2.  The fact that the plot in Figure 8 was made with the analyzer's resolution bandwidth set to 300 Hz should be an indication as to how low these 200 kHz components really are!

Another possible concern was closer-in phase noise:  Would various noise sources of the new circuits (VCXO phase noise, counter jitter, 1/F noise from regulators, loop noise, etc.) cause notable degradation?

Figure 9 gives a clue:  For this test, trace "A" is the original TCXO and trace "B" (the slightly fainter one corresponding with the peak on the right) was produced using the new, externally-locked reference.  As can be seen, the "close-in" phase noise performance of this radio isn't super great, anyway, but the two "noise humps" on either side of the carrier appear to be identical.

This trace also shows a slight difference in frequency, with the original TCXO (the peak on the left) being slightly low in frequency compared to the GPS-referenced, externally locked version - both showing identical amounts of phase noise indicating that the IC-910H is not degraded by this addition.

Figure 9:
A comparison of the close-in phase noise
using the original TCXO (left peak) and the
new, externally locked oscillator (right peak).
Click on the image for a larger version.
Conclusion:

Even thought it has been a long time in the making, this project is complete - and working as well as we hoped that it would.  I'm gratified that a mere decade ago, the circuit that I scribbled onto a piece of paper - and then built in one evening works just as it was expected, with no significant modification!

* * *

 P.S.  Alas, if you wanted to order a crystal, yourself, International Crystal Mfg. is no more, but custom crystals are still available via Quartslab - link, and Krystaly - link - to name but two places.

NOTE:  "Quartslab" stopped doing business in 2021 and "Klove" appears to have acquired the business - link.

(You would have to check with your chosen manufacturer to see if they will make a 30.2 MHz fundamental crystal, though - either that or modify the oscillator to use a 3rd overtone crystal.)

Comment:  Since this article was originally published, devices like the Leo Bodnar GPS reference link have become available that can produce the 30.2 MHz reference required by this radio directly.  This device uses GPS-based timing to set an oscillator to the desired frequency that is programmable - typically with accuracy in the range of 10E-10 or so:  In other words, it can directly synthesize the 30.2 MHz frequency needed by the IC-910H.

If you wish to generate a 30.2 MHz from a stable 10 MHz source that you already have, the Bodnar device really won't help you.

* * *

This page stolen from ka7oei.blogspot.com.

[End]

 

Friday, March 31, 2017

A (somewhat convoluted) means of locking a "binary" (2^n Hz) frequency to a 10 MHz reference

DDS (Direct Digital Synthesis) chips are common these days with small boards containing an Analog Devices AD9850 board being available on EvilBay for a cost lower than one is likely able to buy the chip by itself!  While these boards are quite neat, they do have a problem (or quirk) in that you are not likely to be able to generate the exact frequency that you want - at least if it is to be an exact integer of Hz.

Let us take as an example one of those ADS9850 DDS boards available on EvilBay.  These come equipped with a 125 MHz crystal oscillator that will likely be within 10-20 ppm or so, but let us assume that it is exactly 125 MHz.

Other than the 125 MHz clock and some output filtering, the AD9850 DDS chip has nearly everything else that one would need to generate an output from DC to around 60 MHz - the precise limit depending on filtering - and its frequency is set using a 32 bit "tuning word".  The combination of the 125 MHz clock and the 32 bit tuning word means that our frequency resolution is:
  • 125,000,000 / (232) = 125,000,000 / 4,294,967,296 = 0.02910383045673370361328125... Hz per step - approximately.
For most purposes around 1/34th of a Hz resolution would seem to be good enough - and it probably is - but what if you wanted to be able to generate frequencies that were exact multiples of 1 Hz steps for frequency comparison purposes or to be able to generate precise, standard frequencies like 1, 5, 10 MHz, etc. - or even a very precise 1 kHz tone?

The quick answer to this is to pick a clock frequency that is an exact "power of two" Hz, and the closest 2n multiple to 125 MHz is 227 or 134.217728... MHz - slightly beyond the ratings of the AD9850, but it is likely to work.  (Depending on the high frequency requirements, half of this frequency - 226 Hz, or 65.108864 MHz might be used instead:  Other frequencies that are 2n divided by an integer such as 2n/10 are usable, too as an example.)

What does this change in clock frequency gain for us, then?
  • 227 / 232 = 0.03125 Hz per step, which is exactly 1/32nd Hz.
In this way, very precise frequencies that are a multiple of 1 Hz (and a half-Hertz as well) could be produced.

(Where does one get a 134.217728 or 65.108864 MHz oscillator?  This would likely require a custom-made crystal/oscillator or it could be produced using another synthesizer such as an SI5351A that, itself, uses a VCXO as its reference.)
Locking the DDS synthesizer to a 10 MHz frequency reference

It would make sense that if you actually needed to be able to set your frequency to exact 1 Hz multiples that you would also need to precisely control the reference frequency as well - likely with a 10 MHz precise reference from a GPS Disciplined Oscillator (GPSDO), a Rubium frequency reference or something similar.  Unfortunately, 227Hz is an awkward number that doesn't easily relate to a 10 MHz reference.

The most obvious way to do this is to use a second DDS generator board (they are cheap enough!) clocked from the same 227Hz source with its output to exactly 10 MHz using a frequency word of 320,000,000d, comparing it to the local standard and applying frequency corrections to (e.g. shift slightly) the actual frequency of the "227Hz" oscillator.

There is a less-obvious way to do this as well, so here is an example using 224 Hz - which is 16.777216 MHz:

For the 10 MHz chain:
  • Take the 10 MHz output and divide it by 625 to yield 16.000 kHz
  • Multiply the 16.000 kHz by 32 to yield 512.000 kHz
  • Divide 512 kHz by 125 to yield 4096 Hz
For the  2n Hz chain:
  • Divide any 2n Hz frequency down to 4096 Hz as a basis of comparison.  For 224 Hz we would divide-by 4096 using a binary divider.
(Depending on one's requirements, the precise method could vary with other frequency combinations possible.  The frequency of 512kHz was used because it was well within the operational range of good, old-fashioned 4000 series CMOS circuitry.)

Why would anyone use this second method?  Back in the 1980s I built a DDS synthesizer that used a 224 Hz reference (16.777216 MHz) that used a 24-bit tuning word to provide precise 1 Hz steps, but I also needed to lock that same synthesizer to a high-quality 10 MHz TCXO.  While it would have been possible to have built another synthesizer, a 1980s solution to this problem meant that an entire synthesizer circuit (or most of it, anyway) consisting of more than a dozen chips - some of them rather expensive - would have have to be replicated to do this one thing.

This seemingly convoluted solution required required only 6 inexpensive chips - a combination of 74HC (or LS-TTL) and some 4000 series CMOS devices.  For example:
  • Dividing the 10 MHz reference by 625:  A 74HC40103 wired as a divide-by-125 followed by a 4017 counter wired as a divide-by-5 to yield 16 kHz.
  • The multiplication of 16 kHz by 32 to 512 kHz:  A 4046 PLL and a 4040 counter wired as a divide-by-32 to form a synthesizer.
  • Division of 512 kHz to 4096 Hz:  Another 40103 wired as a divide-by-125.
  • Division of 16.777216 MHz down to 4096 Hz:  A 74HC4040 counter dividing by 4096.
The final step to lock the two frequency sources together was to use the venerable 4046 phase detector, outputting the correction voltage to the 16.777216 MHz oscillator.

A comment about using the 4046 PLL chip:

It's worth noting that because the 4096 Hz output from the divide-by-125 from the 512kHz source is a pulse rather than a square wave so it is not possible to use the "XOR" phase detector (Phase detector 1) of the 40406, but rather the flip-flip detector (Phase detector 2).  The "problem" with the flip-flop detector is that when the two frequencies are close, instead of having a constant train of pulses being output that are either at the reference frequency or twice the reference frequency, one will get occasional, brief pulses as the output of one of the flip-flops occasionally drops out of its high-impedance mode.

The problem with is that these occur (more or less) randomly and comparatively rarely, meaning that they they are at a rather low frequency and can get through the loop filter, causing extra jitter on the locked frequency - the 16.777216 MHz oscillator in this case.  The "fix" for this is to slightly bias the output of the phase comparator toward V+ or ground with a high-value resistor (100k-4.7 Meg, depending on the application) which will "pull" the output constantly toward one rail, forcing the loop to be corrected constantly meaning that instead of the occasional, narrow pulse, there will always be a string of pulses at a "high-ish" frequency that can be removed by the loop filter.  With the rather low "loop gain" of this VXCO configuration, "jitter" caused by the multiplication synthesis and divisions really doesn't show up in the 224 Hz crystal oscillator being locked.

Even though the 4046 CMOS with its built-in oscillator and phase/frequency detector is a bit "jittery", remember that this is being applied with a slow loop filter to a VCXO circuit with very low overall loop gain so this jitter averages out nicely.

(There are a number of modern phase/frequency detector chips that do not have this "jitter" problem.)
With the main 16.777216 MHz reference being a VCXO (Voltage-Controlled Crystal Oscillator) the above scheme worked very well, locking to the 10 MHz reference in a second or two.  Back in the 1980s the most accurate frequency reference that I had was a collection of OCXOs (Oven-Controlled Crystal Oscillators) and TCXOs (Temperature-Controlled Crystal Oscillators) with the 10 MHz units being easily referenced to the off-air signal from WWV to provide both an accuracy and stability of around one part in 107 or better.  Because, in our example, we are starting out at a much higher frequency (e.g. 134-ish MHz) we might divide this down to 4096 Hz - or whatever frequency our implementation required - using a combination of 74F or 74Axx logic and a (74HC)4040 counter.

(If our 134-ish MHz clock were produced using an SI5351A synthesizer, the PLL corrections in this scheme would be applied to its clock, which typically operates at around 27 MHz.)

Nowadays, with GPSDOs and second-hand rubidium references being affordable, the accuracy and stability can be improved by several orders of magnitude beyond that of the TCXO that I used those many years ago.

Having said all of this the question must be asked:  Is any of this still useful?

You never know!


[End]

This page stolen from ka7oei.blogspot.com
 

Wednesday, May 9, 2012

Intermittent GPS...


Ok,  I finally got sick of it happening and I decided to take down my "PBJ" (Peanut Butter Jar) GPS antenna and figure out why it was that I kept ending up with "zero" satellites in view.
Figure 1:
Homebrew GPS antenna, in use since 2003, affectionately
referred to as the "PBJ Antenna" since a glass peanut
butter jar (and its
lid) are used to house the antenna.
Click on the image for a larger version.

Years ago (2003, I think) I obtained a surplus HP Z3801 GPS receiver.

Why?

Well, they became available for an affordable price (about $250, I think) and with it, I could use the GPS system to obtain a very accurate source of both time and frequency.  Of particular interest to me was that it was capable of producing a 10 MHz output that was accurate to enough to hold a clock to within a second every several hundred thousand years.

I don't really need a clock that is that accurate, but a source of stable, accurate 10 MHz was useful in testing and calibrating other frequency sources - such as the local oscillators of microwave transverters.  A year or so ago, I put a low-power small form-factor PC on this receiver to permit monitoring of its status as well as crunch away at the NOAA weather satellite images that spun by from overhead spacecraft.  Adding this computer also made it easy to provide a local NTP (Network Time Protocol) server that came in handy when operating some of the narrowband digital modes such as WSPR:  Having a local time server that I could query very frequently was helpful in keeping my operations synchronized with everyone else's...

More recently I added a Trimble Thunderbolt GPS Disciplined oscillator - a much smaller, lower-power box that did much the same as the as the old 'Z3801 - but with a really cool user interface program (more on this on a later date) and I was annoyed when, shortly after installation, I saw that both it and the Z3801 were reporting frequent dropouts of the GPS signal.

Actually, this had been going on for a while, but it seemed to happen only rarely and for a short time, but now, as the season was warming up, it seemed to be offline about as much as it was on.

Hmmm...

Taking it down, I poked, prodded and "Ohm'd", but nothing was obviously wrong.  During the poking and prodding, I might have cracked a surface-mount bypass capacitor or two (mounted "tombstone" style to the circuit-board ground plane on which the antenna's circuitry was built) so I replaced these just to be on the safe side, reflowed a few solder joints, lugged it back up onto the roof and connected it.

Fixed!

For a day or two, anyway...

After a day or so of behaving itself, it became worse than ever - and then the weather got bad for a week.

Last Saturday was a nice day and I'd just gotten back from a breakfast meeting of the Utah Microwave Group and was going to meet K7RJ in a few hours to work on his 10 GHz transverter so I went back on the roof and retrieved the antenna once again - this time, managing to do it while the receivers were reporting a loss of signal.

This time, I was "lucky" in that I noticed right away that the voltage on the output lead of the MAR-6 MMIC preamplifier was "wrong" and the bias voltage on its input lead was zero.  Using a jeweler's loupe, I stared at the connection where the MAR-6 input connection was made with the UT-141 coax from the turnstile elements and spotted a tiny flake of metal.  A few minutes of surgical unsoldering, cleaning with a straight pin and careful resoldering (to avoid the installation of another metal flake!) resulted in proper voltages in all of the right places.

Taping things back up and running back onto the roof I reinstalled the antenna and upon my return to ground level, I was gratified that the both GPS receivers now showed that they were in the process of re-synchronizing to the satellites.

Since then, everything has continued to work as it should...  I think...

Update:

As things like this turn out, after a week or so of flawless operation, the GPS antenna once again became intermittent, so I hauled it back down to the work bench.

Twice.

The second time I finally replaced the MAR-6 MMIC since I'd replaced/resoldered everything else and that seemed to fix the problem for good!

Since then, both my old HP Z3801 10 MHz Disciplined Oscillator and my "newer" Trimble Thunderbolt have been happily locked to the signals from the GPS and providing accurate, stable 10 MHz references.

[End]

This page stolen from ka7oei.blogspot.com