RAN Technology


 Posted By: Robert Nickels (ranickels)
Posted: 03/68/2022

Technical 03/68/2022 

Si5351 Quadrature Mode

Arduino code example


The Si5351 has been the biggest boon to homebrewers since the invention of the NE-602, especially now that quartz crystals are essentially obsolete.   But it's redundant to run the output of the 5351 through a johnson counter to develop the quadrature signals required for QSD/QSE SDR front-ends when there are three clock outputs available and the IC allows for phase offsets.   But the complexity of Si5351 register programming and the fact that if you stick to the published specs, operation below 4.762 MHz is not possible were obstacles to using the IC in many applications.

Fortunately it's been found that the lower PLL VCO frequency can safely be lowered without ill effects, which makes it possible to develop quadrature outputs directly from the Si5351 outputs on 80 meters and even below.   As always, off-spec operation may lead to weird or unwanted side-effects but if this was an issue it would have become well known by since it's been used in commercial products like the QCX QRP transceiver which has over 5,000 units in the field.

There are numerous methods in use but since most casual experimenters use the Etherkit Si5351 Arduino Library, it's nice to be able to do it with this library and that's been accomplished, thanks for Brian Harper M1CEM and Miguel Bartié PY2OHH and to Charlie Morris ZL2CTM for reporting it in his blog.    The example here is my own adaptation of the code snippet provided by Charlie to make it a complete test program with a few diagnostics that run in the serial monitor.   

I'll paste the code below and you can also download it from the Attachment link.   Have fun! 

// Test program to evaluate Si5351 quadrature output using Etherkit 5351 Library
// Example based on ZL2CTM  Jan. 2019 blog post
// Si5351 Quadrature Clock Output down to 3MHz
// Credit to Brian Harper M1CEM and Miguel Bartié PY2OHH


//Step 1. Edit si5351.h file. Change the SI5351_PLL_VCO_MIN to 380000000, i.e.,
//#define SI5351_PLL_VCO_MIN              380000000

// Example code follows to set CLK0 and CLK2 in quadrature at frequency freq


#include "si5351.h"
#include "Wire.h"

Si5351 si5351;


volatile long freq = 3500000;
volatile int Even_Divisor = 0;
volatile int oldEven_Divisor = 0;
unsigned long pfreq;

void EvenDivisor()
{
    if (freq < 6850000)
  {
    Even_Divisor = 126;
  }
  if ((freq >= 6850000) && (freq < 9500000))
  {
    Even_Divisor = 88;
  }
  if ((freq >= 9500000) && (freq < 13600000))
  {
    Even_Divisor = 64;
  }
  if ((freq >= 13600000) && (freq < 17500000))
  {
    Even_Divisor = 44;
  }
  if ((freq >= 17500000) && (freq < 25000000))
  {
    Even_Divisor = 34;
  }
  if ((freq >= 25000000) && (freq < 36000000))
  {
    Even_Divisor = 24;
  }
  if ((freq >= 36000000) && (freq < 45000000)) {
    Even_Divisor = 18;
  }
  if ((freq >= 45000000) && (freq < 60000000)) {
    Even_Divisor = 14;
  }
  if ((freq >= 60000000) && (freq < 80000000)) {
    Even_Divisor = 10;
  }
  if ((freq >= 80000000) && (freq < 100000000)) {
    Even_Divisor = 8;
  }
  if ((freq >= 100000000) && (freq < 146600000)) {
    Even_Divisor = 6;
  }
  if ((freq >= 150000000) && (freq < 220000000)) {
    Even_Divisor = 4;
  }
}


void SendFrequency()
{
  EvenDivisor();
  si5351.set_freq_manual(freq * SI5351_FREQ_MULT, Even_Divisor * freq * SI5351_FREQ_MULT, SI5351_CLK0);
  si5351.set_freq_manual(freq * SI5351_FREQ_MULT, Even_Divisor * freq * SI5351_FREQ_MULT, SI5351_CLK2);
  si5351.set_phase(SI5351_CLK0, 0);
  si5351.set_phase(SI5351_CLK2, Even_Divisor);
 
if(Even_Divisor != oldEven_Divisor)
  {
    si5351.pll_reset(SI5351_PLLA);
    oldEven_Divisor = Even_Divisor;
  }
  Serial.print("Even Divisor  ");
  Serial.println(Even_Divisor);
  Serial.print("New Freq  ");
  Serial.println(freq);
  Serial.print("Sending  ");
  pfreq =(freq * SI5351_FREQ_MULT);
  Serial.println(pfreq);
}


void setup()
{
  // Start serial and initialize the Si5351
  Serial.begin(9600);
  si5351.init(SI5351_CRYSTAL_LOAD_8PF, 0, 0);
}

void loop() {
  // put your main code here, to run repeatedly:
 
SendFrequency();


freq = freq+100;
delay(2000);
}

 


Description Comment  
Si5351 Quadrature Output Test Program
VIEW Article
Posted: 09/267/2023
Category: Technical
Comments: 0

Hot to simulate vacuum tubes in LTSpice

LTSice is a powerful simulation tool that is provided free by Linear Technology Corp.   It comes with a complete library of passive and common analog solid-state components but if you want to use it to simulate vacuum tubes, it doesen't work as-is.    Even though triode and pentode symbols can be found in the "Misc" folder, they are just schematic symbols and...  READ MORE
VIEW Article
Posted: 07/208/2023
Category: Friends Remembered
Comments: 0

Merv Schweigert, K9FD (SK)

Comments from Robert Nickels W9RAN,  July 27, 2023:There is nothing worse for a ham radio operator than to see a beloved friends callsign with the letters "SK" behind them.   Yet sadly, that's what happened on July 23, 2023, when I learned of the passsing of Merv Schweigert, K9FD.     While many of our ham radio interests were different - Merv was a...  READ MORE
VIEW Article
Posted: 01/19/2023
Category: Vintage Ham Radio
Comments: 0

"Winter Projects"

I know many of us who enjoy restoring and repairing vintage gear look forward to winter when there is less competition for time and energy, and a chance to really make a dent in our "to be fixed" piles.    A couple of years ago I set time aside for "Heathkit Singlebander Week" and went through every one of them I had, with the result that they're all working ...  READ MORE
VIEW Article
Posted: 11/330/2022
Category: Vintage Ham Radio
Comments: 0

The Galaxy COMM2

Leo Meyerson had been in the ham radio retail and manufacturing business for over 25 years, and by 1970 he was ready to retire.  His son took over the WRL distribution and retail business but the Galaxy Electronics manufacturing operation was sold to his long-time friend Andy Andros WØLTE, founder and president of Hy Gain Electronics in nearby Lincoln NE.   The CB radio eleme...  READ MORE
VIEW Article
Posted: 10/304/2022
Category: Historic
Comments: 0

Don Taylor of the Yukon, and the Trappers Sched

Most of the articles on this site are about hams, or  ham radio.   This one is not about a ham but about a man who built as much a reputation through HF radio as any ham on top of the BPL ever did.    Don Taylor is one of those rugged independent-minded people who thrive on a lifestyle most of us couldn't even imagine - as a trapper in Canada's Yukon wildernes...  READ MORE
VIEW Article
Posted: 09/252/2022
Category: Historic
Comments: 0

KYW-KFKX - Linking Broadcasting Stations by Shortwave

 Most radio fans know the history of KDKA  but maybe not "the rest of the story".In November 1920 the Westinghouse Electric and Manufacturing Company began operation of a radio broadcasting station, KDKA, in East Pittsburgh, Pennsylvania, often described as the "Pioneer Broadcasting Station of the World."  KDKA is generally considered to be the first commercially...  READ MORE
VIEW Article
Posted: 09/251/2022
Category: Historic
Comments: 0

AT&T Scranton LongLines tower

The microwave network constructed by AT&T Long Lines and other telecommunications companies in the past 50 years were engineering masterpieces using state-of-the-art technologies and some were designed to withstand nuclear attack during that Cold War era.     This is a non-hardened site on top of a mountain in upstate New York that existed long enough for graffiti taggers t...  READ MORE
VIEW Article
Posted: 07/183/2022
Category: Vintage Ham Radio
Comments: 0

The Pioneer 530

made by JAARS for Wycliffe Bible Translators In 1917 a missionary named William Cameron Townsend went to Guatemala to sell Spanish Bibles. But he was shocked when many people couldn’t understand the books. They spoke Cakchiquel, a language without a Bible.   He believed everyone should understand the Bible, so he started a linguistics school (the Summer Institute of Linguistics, known today as SIL) that trained people to do Bible ...  READ MORE
VIEW Article
Posted: 05/129/2022
Category: Historic
Comments: 0

The Elgin National Watch Company Time Broadcasts

the story of W9XAM  Visitors to the Elgin National Historic area along the Fox River in Elgin Illinois may not realize they are at the site of a famous shortwave radio station - W9XAM - the time signal station operated by the Elgin Watch Company.Elgin was the only watch company maintaining an observatory that observed, recorded and broadcasted time from the stars correct to the hundredths of a second. Located a...  READ MORE
VIEW Article
Posted: 04/105/2022
Category: Vintage Ham Radio
Comments: 0

The Mosley Commando II

Made in England and scarce even there The Mosley CM-1 receiver is quite well known and not especially hard to find in the US even though it was the only radio produced by the company that has been well-known for antennas since 1939.   Or is it...?A full-page ad (advert for you on the other side of the pond) appeared in the RSGB Bulletin in 1963 for a nice looking and very capable SSB transmitter called the "Commando II&...  READ MORE