Quantcast
Channel: KA7OEI's blog
Viewing all articles
Browse latest Browse all 187

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

$
0
0
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 this 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 standard frequencies like 1, 5, 10 MHz, etc?

The answer to this is to pick a clock frequency that was an exact "power of two", 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 this frequency - 226 Hz, or 65.108864 MHz could be used instead.)

What does this change in clock frequency gain for us, then?
  • 227 / 232 = 0.03125 Hz per step, which is exactly1/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.)
    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 the 227Hz oscillator.

    There is a less-obvious way to do this as well:
    • 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
    • Divide any 2n Hz frequency down to 4096 Hz as a basis of comparison
    (Depending on one's requirements, the precise method could vary with other frequency combinations possible.)

    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 just 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 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.
      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 under a second.  Back in the 1980s the most accurate frequency reference that I had was a collection of OCXOs (Oven-Controlled Crystal Oscillators) and TCXO (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.  Because, in our example, we are starting out at a much higher frequency (e.g. 134-ish MHz) would would divide this down to 4096 Hz 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 this.

      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
       


      Viewing all articles
      Browse latest Browse all 187

      Trending Articles