Testing the Modules for the
Modularized Spectrum Analyzer


  If you are constructing the SLIM version of the MSA, a better Test page is at: Integration and Verification Test Procedure for the MSA, Modularized Spectrum Analyzer.
The purpose of this page is to help the MSA builder test his modules as he completes their constructions for the Original MSA.  It is not necessary to test the modules independently.  They can be easily tested when they are all completed and integrated together.
This Page was Started Mar. 26, 2006
Updated 4-10-2006
Revised the AtoD Module test software to rev101.  Had a code error.
Updated 4-12-2006 Add Command test for 12 Bit AtoD Module
Updated 4-24-2006 Add PLL tests for LMX 2326 and LMX 2353
Updated 6-20-2006 Updated Control Board Test to Rev.103

This is the Testing page for the MSA modules.  Here are other links supporting the MSA :
Main Page for MSA Main page for the MSA.


MSA Block Diagram

Block Diagram for the 0 to 1 GHz Spectrum Analyzer


Testing the MSA Modules
  The modules can be constructed and everything tested at one time.  If so, no test equipment is required (assuming everything is correct).  However, some builders may want to build the modules and test them independently.  If this is the case, the first module to build is the Control Board.  It will contain interfacing, so that the computer can command the individual modules.  It will also contain all the voltage regulators needed for the other modules.  As previously mentioned, I have not suggested any type of main power supply to use.  For full MSA operation, the MSA requires +24v DC (appx. 10 ma), +18v DC (appx. 500 ma), and -5v DC (appx. 10 ma).  Some of the modules require a voltage source(s) and computer commands.  Some require voltage only.  And some require neither, such as the Mixer Modules and Filter Modules.  I will list the modules in an order that I would build and test.  In all cases where commanding is required for testing, the following equipment is required:  Home computer, printer port cable (DB25 connectors), Control Board, and an external DC power supply(s).  Software is Liberty Basic version 3.01 or later.  Individual software test programs are underlined.

Control Board
   The control board requires only the +18v, at 10 ma., to test.  If the Control Board includes an integrated AtoD Conversion circuit, I will describe it's AtoD test in the AtoD Module section.  The following are diagrams for all of the Control Boards that have been designed.  Any one will work fine for the MSA.
  This is the original Control Board, with integrated 8 bit AtoD:
ssamodule/control8bitschem.bmp
  This 8 bit AtoD will give good the MSA good performance with an amplitude resolution of approxomately .3 dB.

 This is the second Control Board design, with integrated 12 bit AtoD:
ssamodule/control12schem.bmp
  This 12 bit AtoD will give good the MSA good performance with an amplitude resolution of approxomately .1 dB.

   This is the latest schematic design of the MSA Control Board, RevA :
controlrevaschem
  This is a more general purpose Control Board than the ones with integrated AtoD circuits.  If you are not building the MSA and want just a computer interface, this is the board to build.
Updated, 6-20-06:
    Test Equipment Required:  DC Voltmeter
    Set Up:  Connect external +18v to Control Board.  Measure the output of the +15 volt regulator.  Measure the output of the +5 volt regulator.  Connect the printer port cable from the computer to the control board.  Open Liberty Basic main program, then open controltest.bas.  (this software is updated to ver.103).  The Code Window will open.  Click on "Run" (little blue man).  A window called, "Control Board Test" will open.  All control lines will be set to "0" after clicking the "SEND PORT DATA" Button.  Measure the following pins on the LPT 1 connector.  Each should read 0v:  Pins 1-9, 14, 16, and 17.  All of the buffered outputs of U4 though U7 should also read 0v.
  In the test window, you can change each bit independently by clicking on it's respective box.  Clicking the right-hand box will cause that line to go "high", after the 'SEND PORT DATA' button or 'SEND CONTROL DATA' button is clicked.  The left box will set the bit command to "0".
  For example, click the box, called "Pin 1, Strobe, FQUD".  The left box will change from a "0" to a "1".  Click the box, called
"SEND CONTROL DATA".  The LPT port, pin 1 will go high.  Pins 14, 16, and 17 will remain in their previous state, or go "low" if this is the first command after beginning the program.  The "high" voltage measured on the LPT connector will be a high TTL level, somewhere between 2 volts and 5 volts.  The voltage measured after the Control Board buffer (U4pin6) will measure 5 volts (CMOS high).  Each of the bits can be tested in this manner.
    The Status Bits will be read when the "CAPTURE STATUS" button is pressed.  If the AtoD circuit is integrated onto the Control Board, the WAIT and ACK bits may be indeterminate (0 or 1).  The PE, SEL, and ERR bits should read "1".  With the LPT cable disconnected from the Control Board, all status bits will read "1".  You can then short any of the 5 status bits to ground and the status (when clicked) will read (0) on the bit that was grounded.
  If these controls do not work, it indicates that your computer LPT 1 is not set up for the correct COM port within the computer.  I have extensively tested this piece of software, and it seems to work quite well, even without a Control Board.

AtoD Module
   The AtoD circuitry can be integrated onto the Control Board or in a seperate module.  The testing will be same, with the exception that the external module regulator should be tested for proper +5 volt output.  The basic test is to input a voltage (nominally, 2.5 volts DC) into the AtoD magnitude input (and phase input if there), and command the AtoD for conversion.  The following are the schematic designs for external AtoD Modules.
    8 Bit A to D Converter Module:
ad8bitschem


    12 Bit A to D Converter :
ad12bitschem


    16 Bit Serial A to D Converter :
serialadschem


    Extra Equipment Required:  DC Voltmeter, variable voltage reference (or any voltage between 0 and +5 volts, to be digitized).
    Set Up:  Connect AtoD module cable to Control Board J6, if external AtoD module is used.  Connect external +18v to Control Board.  Measure the output of the AtoD's +5 volt regulator.  Connect the printer port cable from the computer to the control board.  Open Liberty Basic main program, then open atodtest.bas.  (latest is rev.101).  The Code Window will open.  Change the values of the global variables,  magadconv =, and phaadconv =.  Input a value of 8, 12, or 16 depending on the type AtoD you have installed in each position.
  Apply +2.5 volts to the Magnitude input of the AtoD. 
Apply +2.5 volts to the Phase input of the AtoD, if installed.  You can tie the two inputs together and apply a single voltage to both.  Click on "Run" (little blue man).  A small window "Analog to Digital Converter Test" will open and begin "RUNNING", as seen in the box above the "RESTART" button.  The top box "Magnitude Data" will read the decimal equivalent of the magnitude AtoD output.  The second box "Phase Data" will read the decimal equivalent of the phase AtoD output.  The value will be dependent on several factors:  Type of AtoD, Voltage level at input to AtoD, and where the Adjustment pots are set (VR1, VR2).  You should be able to adjust these pots and change the output value(s) in the window.  You must stop the program before "exiting" the window.  Just press any key on the computer keyboard.
  For the 8 Bit AtoD and +2.5V input you should be able to adjust VR, about mid range, to get a value of 250.  255 is the maximum bit value of an 8 bit AtoD.
  For the 12 Bit AtoD and +2.5V input you should be able to adjust VR, about mid range, to get a value of 4090.  4095 is the maximum bit value of a 12 bit AtoD.
  For the 16 Bit AtoD and +2.5V input you should be able to adjust VR, about mid range, to get a value of 65000.  65535 is the maximum bit value of a 16 bit AtoD.
  April 12, 2006  Add the following test software:  commandAtoD12.bas  .  This test will open up a little window so that you can input a code, in bit values from 0 to 4095.  It will command the 12 Bit AtoD's ladder latches, and retain the data in a static condition.  This way, the builder can troubleshoot any problem on his
12 Bit AtoD board.

Log Detector Module
   The Log Det Module does not require any direct commands from the computer, and it can be tested with only a voltmeter.  If tested in conjuction with the AtoD Module, no voltmeter is needed.
    This is a Log Det circuit using the MC3356 IC.  It is my original design and works quite well.  However, 
the MC3356 is not readily available.
Log Detector using MC3356 :
ssamodule/logdet3356.bmp

 The following are Log Detector circuits designs utilizing two Log Det IC's from Analog Devices.

Log Detector using AD8307 :
Schematic of Log Det using AD8307

Log Detector using AD8306 :
log8306.bmp
      The AD8306 has similar characteristics as the AD8307, and it has a limited RF output.  The limiter is not used in the MSA, but I chose this device so that I could use the MSA for experimenting as a Vector Network Analyzer.

  To determine if the Log Det is wired correctly and is operational, just apply power to the module and measure the DC output of the Log Det.  With no signal input, it should read from 200 to 300 mv.  Touch your finger to the input pin (added ambient noise), and DC Video output should increase.
  For full integrated testing, connect the Log Det to the AtoD Converter, and the AtoD Converter to the Control Board.  Open and Run
atodtest.bas.  The Bit Value in the "Analog to Digital Converter Test" Window will indicate the output of the Log Detector.  The actual value will depend on several factors.  They are, type of Log Detector, type of AtoD, Voltage level at input to AtoD (Log Det out), and where the Adjustment pots are set (VR1, VR2 on AtoD Module).
  With a known RF signal on the input, the Log Det can be characterized.  You need an RF source (CW) at the frequency the Log Det is going to be used at, (Final I.F. frequency of the MSA), nominally 10.7 MHz.  The power level should be adjustable from +10 dBm to -100 dBm.  A 50 ohm selectable attenuator is optimum and should be placed directly on the input to the Log Det.  This will minimize input noise when the RF signal is very low.  Connect a voltmeter to the output of the Log Det.  Apply power to Module, but don't apply any RF to the attenuator.  Set attenuator to about 50 dB of attenuation.  Measure the Log Det output, and write it down.  This is the noise floor of the Log Det.  Apply -10 dBm to the Log Det.  Write down it's output measurement.  Increase the attenuation by 10 dB for an input signal to the Log Det to be -20 dBm. 
Write down it's output measurement.  Continue this process until the Log Det output becomes equal to the noise floor.  This is the minimum RF input the Log Det can measure (max sensitivity).  Now, input -10 dBm again and decrease the attenuation in steps, to increase the RF input to the Log Det.  You should be able to find the compression point of the Log Detector.   The actual level will depend on the actual circuit design of the Log Detector.  For the MC3356, the level is about 0 dBm.  For the AD8306/8307, it is about +10 dBm.  In any case, this is the maximum input to the Log Detector, and the only measurement that is important in the design and calibration of the MSA.  It is important to say that the Log Detectors maintain their best accuracy when operated in the range of 10 dB below compression, and 10 db above the maximum sensitiviy.  For the MC3356, this range is about -10 dBm down to -80 dBm.
   If you are integrating the Log Detector, AtoD and Control Board at this time, you can calibrate and set the Adjustment pots in the AtoD Module.  With this maximum RF input to the Log Det, adjust VR1 (or VR2) for maximum bit value being shown in the
"Analog to Digital Converter Test" Window.  For an 8 Bit, adjust for 254 or 255.  For a 12 bit, adjust for 4094 or 4095.  For the 16 bit, adjust for  65534 or 65535.  These are the maximum AtoD values, so care should be taken in adjustment.  Once the max value is reached (255, 4095, or 65535) further adjustment will not change the bit value.  I suggest adjusting the pot(s) for 1 bit less than max value, when the maximum RF input is input to the Log Det.  Write down this RF power level and call it "maxpower".  Write down the bit value as "maxbits".  These will be used later as a calibration value.  Decrease the RF input signal into the Log Det by increasing the attenuator by 10 dB.  Write down the bit value displayed in the Window as the value for "minus10bits".  Increase the attenuator another 10 dB and write down the bit value displayed in the Window as the value for "minus20bits".  Repeat these steps for all steps down to "minus130bits".  It is likely that the bit values will duplicate from -100 dB to -130 dB.  If so, just use the same bit values for the duplicating steps.

Master Oscillator Module
   The Master Oscillator cannot be very well evaluated without a frequency counter and oscilloscope.  If you don't have the test equipment, don't worry.  Just test and verify that the voltage regulator is working properly.  The output of the Master Oscillator can be verified when it is connected while testing the next module, the DDS Module.
masterosc.bmp
    This Master Oscillator Module is designed for maximum utility.  The oscillator is buffered with a 74AC04 and has 3 outputs.  Each output will drive a 50 ohm load, but I suggest the load be capacitively coupled to reduce power consumption in the buffer.   If any output is not used, leave it open.
  The oscillator will push in frequency with a minor change of Vcc.  The voltage regulator is biased with the 50 ohm resistor and its output will be approximately 5.3 volts.  Construct the module with R1 in place, but with a small shorting wire across R1.   Adjust VR 1 for minimum resistance and check the frequency.  If you can adjust VR 1 to bring the frequency to exactly 64 MHz, leave the short on R1.  If not, open the short and adjust VR1 for exact frequency.  For example, one of my tests showed that the 5v reg. was outputting 5.11 volts with the short.  The osc was at 64.000697 MHz.  Adjusting VR 1 for 5.01 volts on the MXO oscillator gave exactly 64.000000 MHz.  If the builder is not planning to add the optional Tracking Generator, the Master Oscillator Frequency does not need to be adjusted.  The software will allow frequency intolerance.

    I have found that when the module is totally enclosed, the frequency becomes quite stable after about 5 minutes.  However, with the module open, any air currents will cause temperature changes on the MXO oscillator, and cause frequency shifts.
    Note that, if the R1 is left in circuit, the tab of the voltage regulator is NOT at ground potential and must be isolated from ground.


DDS Module
DDS using AD9850 :
ddsschematic.bmp

    The DDS Module can also be tested when integrated with the Control Board and Master Oscillator Module.  Only a voltmeter is required for evaluation.  Power up the Control Board with the Master Oscillator Module and DDS Module connected.  Verify the DDS's 5v regulator is correct.  Open ddstest.bas .  The code window will open and show two global variables, "ddsclock" and "ddsoutput".  Change the values of these variables to your requirements.  The "ddsclock" is preset to "64" (64 MHz Master Clock frequency).   The "ddsoutput" is preset to ".0000001".  This is 0.1 Hertz.  Click on "RUN" in the code window (or little blue man).  The program will run and command the DDS to output a frequency of .1 Hz.  Measure the voltage on the DDS Module at R4 or R5.  This point is in between the output of the DDS chip and the output coupling capacitor.  The voltmeter will read a changing voltage of 0 volts to about .5 volts, every 10 seconds.  This will verify the output of the DDS module and will also verify that the Master Oscillator is running.
  Change "ddsoutput" value to .000060 (60 Hz).  Measure the DDS Module output connector(s) with the voltmeter's AC function.  You should measure about 185 millivolts rms.


VCO Module
vcoros1500
   The VCO Module is not easily tested independently.  Most home builders do not have high frequency test equipment.  Therefore, I propose the builder construct both the VCO and PLL Module and test them together.  The VCO Module requires a power source of +15v at 80 ma.

PLL Module
   The PLL Modules come in several configurations, but all can be tested in the same manner and with the same software.
PLL 1 style, using LMX 2326 or ADF 4112: PLL 1 using LMX 2326
  The PLL 1 style Module requires 3 voltage sources: +20 v at 5 ma, +15 v at 20 ma, and -5 v at 5 ma.

PLL 2 / 3 style, using LMX 2326 or ADF 4112:
PLL 2 or 3 using LMX 2326
  The PLL 2 type requires only the +15v source.  These designs can be modified by replacing the PLL IC's with other types.  These modules have also been built with the LMX2325, LMX2350, and LMX2353.  All perform very well.

VCO/PLL Module Combination
   Modules required for testing:  Control Board, Master Oscillator, VCO, and PLL.  The only test equipment required is the voltmeter to verify operation.  Connect the VCO Module's Reference Output (P1 or P2) to the PLL Module's VCO Reference Input (P2).  Connect the PLL Module's Control Voltage Output (P1) to the VCO Module's Control Input (P3).   Connect the output of the Master Oscillator (or other frequency source) to the PLL Module's Reference Input (P3).  Connect the PLL Module's Control (P4) to the Control Board's J1 (or J2 or J3) connector.  Apply needed voltage sources to Control Board (+24v, +18v, -8v).   Open Liberty Basic and then open LMX2326test.bas or LMX2353test.bas .  The code window will open.  Change the Global variable values for your conditions.
   These PLL tests are still in progress of being written, and have not been thoroughly tested.  I am posting these two software routines for a few builders who want to "tinker".


Low Frequency Sweeper, with Display
    The integration of the Control Board Module, Master Oscillator, DDS Module, Log Detector Module, and AtoD Module will comprise a very simple Low Frequency Sweeper with Power Detector and Computer Display.
lfswpblock
    I have written software (in Liberty Basic) with this system in mind.  It is a derivation of the "full-up" software program for the MSA.  The DDS will output any frequency up to one half the Master Clock Frequency.  It can be used to sweep filters and display an amplitude vs. frequency response.  As a general purpose sweeper, a low pass filter must be placed on the output of the DDS to attenuate alias frequencies (not shown).  This sweeper is useful if you have built the DDS Xtal Filter or the MSA Final Xtal Filter and need to adjust them without the benefit of the "full-up" MSA.
  For testing the system, connect the modules together and tie the output of the DDS Module to the input of the Log Det Module.  Open the program called ddssweeptest.bas .  The code window will open and the values of several global variables must be input for your specific module designs.  This program will plot either the Magnitude, or Phase AtoD but not both at the same time.  Therefore, the variable "plotadpath" should be "0" if the Magnitude path is chosen, or "1" if the Phase path is chosen to be plotted.
  "masterclock" is the frequency of the Master Clock or other source providing the DDS Clock.
  "cf" is the center frequency of the sweep (in MHz).
  "sw" is the total sweep width (in MHz), with "cf" being in the center of the sweep.
  "topref" is power level (in dBm) to be displayed at the top of the graph.  It must not be greater than the maximum power input to the Log Det, which is the variable "maxpower".
  "botref" is the power level (in dBm) at the bottom of the graph.  It must be less than "topref" and greater than "maxpower"-130.
In the [Calibration File], "adconv" is the type of AtoD converter that is being used.  Values are 8, 12, or 16 only.
    Change "maxpower" to the value (in dBm) previously determined to be the Log Det input power, at compression.
    Change "maxbits" to the bit value
at compression that was determined when testing the Log Det/AtoD combination.
    Change the values for "minus10bits" through "minus130bits" to the values
determined when testing the Log Det/AtoD combination.
The global variables below the dashed line are default values and don't need to be changed.
  After the variables have been entered,
click on "RUN" in the code window (or little blue man).  The program will run and two windows will open, the "Graph Window for DDS Sweeper" at the top of the screen and "Working Window for DDS Sweeper" below the Graph Window.  The DDS will begin sweeping.  The Graph will display the power level that the Log Detector is receiving, as a vertical bar graph response.  There are 3 markers.  Each marker will indicated the frequency, bit value, and power level.  Since the DDS output is connected to the Log Det input, the power level will read approximately -8 dBm at 10.7 MHz.
 
You will see that there will be a blinking vertical bar inside the "Hit any key" Box.  This is to show that, this box has the "focus".  That is, if any key is typed on the computer keyboard it will be entered into that box.  The program is constantly looking at the contents of that box.  If nothing is there, sweeping will continuously run.  If anything is typed into the box, the program will "Halt" and will "Wait" for operator action.  Note, this will work when the Working Window is highlighted (active).  If, for any reason, the Working Window isn't active, just move the mouse pointer into the "Hit any key" box and left click the mouse.  Then, press a key on the keyboard.
     The Working Window red boxes can be changed, but only when the sweep is stopped.  The program will be updated with the new values when the "RESTART" button is clicked.
  Don't try messing with any of the other boxes or buttons while the program is sweeping.  You won't actually hurt anything, but the program is likely to go goofy and hang up.  If the program ever hangs up and won't respond to the "Hit any key" command to Halt, open the Code Window, which is probably hidden behind the Graph and Working Windows, and exit out (X).  This has happened to me a few times, for no apparent reason.  I have Win ME, and it is prone to burps I can't explain.
Boxes and Buttons in the Working Window
    The blue boxes are status indicators.  They are values of variables that are created in the program code.  Highlighting and changing anything in the blue boxes will have no effect.  They will self-update and change as the program is run.
    The red boxes are where the user will change the operating characteristics of the program.  Any changes to the red boxes will take effect after clicking the RESTART button.
    Clicking any of the gray buttons (when sweep is stopped),will cause the program to do a preset action and will "Proceed" from its "Wait" state.

I'll explain the Buttons first:
     RESTART button: will tell the program to do several things at one time.  Any Working Window variables that were changed before clicking the RESTART button, will be loaded into the program, overwriting any preset global variables.  The Graph Window will be totally erased and recreated.  The sweeping action will begin from the start (step number 0) and continue to the last step.  This is called "normal" sweep.  At each step, a vertical line is printed to the Graph Window, and any previous line is erased as new information is printed. The height of the vertical line is the amplitude of the log detector at that step, being the relative number of bits the A to D process has determined.  When the last step is reached, the sweep will revert to step 0 and continue this process until the sweep is "Halted" by the user.
    ONESTEP button: will advance the sweep from the last point where it was Halted, but only by one step.  Each click on this button will step the frequency once and automatically Halt.
    CONTINUE button: will resume the sweep from the last point where it was Halted.  Normal sweep will continue until the sweep is Halted by the user.
    REWRITE button: will advance the frequency
from the last point where it was Halted, but only by one step.  Each click on this button will step the frequency once and automatically Halt.  However, instead of erasing the previous graph lines, a single data point will be printed, corresponding to the amplitude of the log detector.  Each new data point will be connected to the previous data point by a solid line.
    REW.CONT button: (rewrite, continue) will
resume the sweep from the last point where it was Halted.  This "rewrite" sweep will continue until the sweeping is Halted by the user.  This rewrite mode will allow multiple sweeps to "stick" to the Graph Window. There is a caution when using this function, however.  Any time something is printed into the Graph Window, the position information is held in the computer's RAM (random access memory) allocated to Liberty basic.  When printed information is erased, it is also removed from the RAM.  But in the "rewrite" mode, the information is not erased, thus filling up the RAM.  After some number of rewrite sweeps, the RAM will fill up and cause the program to crash.  I don't know how many it will take.  I have not had this happen, but Liberty warns of this.  You will clear the RAM memory any time the RESTART button is clicked.
    Cent button:  When the operator Halts the sweep, pressing the Center Button will automatically take the frequency that is in the left key "This Freq" box and insert it into the Center Freq Box.  When Restart is clicked, the Spectrum Analyzer will begin sweeping with this new frequency as the Center Frequency.
The Red Boxes:
    This is where the operator can enter any changes to the parameters of the sweep.  Remember, change the red boxes only when the sweep is Halted.  The new data will become effective when the RESTART button is clicked.

   The  "Hit any key" Box.  While sweeping, this box has the "focus".  That is, if any key is typed on the computer keyboard, it will be entered into that box.  The program is constantly looking at the contents of that box.  If nothing is there, sweeping will continuously run.  If anything is typed into the box, the program will "Halt" and will "Wait" for operator action.  When the sweep is Halted, several things take place.
1.  Sweeping stops and the Graph will "freeze" at the last frequency measured.

2.  The Graph's horizontal reference lines will "rewrite" for clarity.
3.  The last frequency data points will be inserted into the "Step", "This Freq", and "Power" boxes.
4.  If an error has occurred in the program, it will be displayed in the "Message" box
5.  Even though everything looks like it is stopped, the program is still running, and is waiting for the operator to take some type of action in the Working Window.  Be aware that this program, like any other, can create conflicts within your computer if any other computer program is running.
    The "Center Frequency" box is the actual frequency you want in the center of the Graph.  Enter the frequency, in MHz.  15.0 MHz would be entered as "15", the decimal and zero's are not necessary.  ie., 15.200 MHz would be entered as "15.2" ; 455 KHz, ".455" ; 1 Hz, ".000001".
    The "Sweep Width" box is the total amount of range you want the sweep to cover.  Enter the range, in MHz, with the same consideration for decimals and zeros as in the Center Freq box.  Here again, "0" is a valid sweep width.  Use "0" when you want the DDS to remain at a fixed center frequency, even though the information presented at the input to the Log Det. might be changing.  If so, the graph might change in amplitude, but not in frequency.
    The "Steps / Sweep" box.  Enter the number of steps to compose a single sweep.  Valid number are from 1 to 720.  Keep an even number if you want the real center frequency to be in the center of the Graph.  I suggest using a number that is a submultiple of the Sweep Width.  Or, if you happen to like 400 steps, as I do, select a Sweep Width that is a direct multiple of the "Steps / Sweep" box.  This will assure a "whole" number for each sweep step.  Sweeping begins at step number 0 and ends on the step number you place in this box.  You can use 720 but the horizontal reference lines will be erased during the sweep.  They will be reinserted when the sweep is halted.
    The "Place Markers at Steps" boxes.  Enter the step numbers where you want the markers to display information.  Valid numbers are from 0 through the number in the "Steps per Sweep" box.  If you don't want any markers displayed, enter numbers into these boxes that are higher than the number you have in the "Steps per Sweep" box.  The software, as written, will print marker information as: the frequency at the marker, its' reported Bit level, and the power level.  After using the program for a while, the user may want to dispense with the bits information and replace it with something else.  That code is deeper in the program, but, can certainly be changed or deleted.
    The "Wait" box.  A number entered into this box will create a delay, from the time the command is given to the DDS to the time the Log Detector video is sensed by the A to D comparator.  A certain amount of delay is required to allow Log Det to "settle" after a frequency change.  Time is usually required to allow the tested circuit to settle, especially narrow band filters.  Valid numbers are 0, and any whole number above 0.  The amount of real time for each whole number, in milliseconds, is completely dependent on your computer's computation speed.  You will just have to play with a number here to get the best spectral information on the graph without slowing the sweep speed down too much.  On my 750 MHz lap top, with "0" in the box, it takes approximately 1 second for a single sweep of 400 steps, 3 seconds for the number 15, 5 seconds for the number 30.
    The "Top Reference" box.  A number entered into this box (in dBm, ie. 0 or -30, etc.) will set the Reference power for the top line of the power scale in the Graph Window.  The maximum number entered can not be greater than the input compression level to the Log Detector (maxpower).
    The "Bottom Ref" box.  A number entered into this box (in dBm) will set the Reference power for the bottom line of the power scale in the Graph Window.  The number entered must be less than the Top Reference level and must be greater than "maxpower"-130.  There are 10 divisions between the Top and Bottom reference lines and the scale will automatically print the proper level for each division.  The operator can make the difference between the Top and Bottom reference lines as little as 1 dB, and as much as 130 dB.  I like a difference value of 100 dB.
The Blue Boxes:
    These are status boxes and should not be modified within the Working Window.  They will update themselves when the sweep is "Halted" or "Restarted".
    The "MHz / Step" box will display the actual step size (in MHz).  I previously suggested using multiples of sweep width vs. steps per sweep.  This will prevent displaying a long string of numbers (in engineering notation) in this box.
   The "Message" box.  This box displays any error messages that are created within the program.  It will update only when the sweep is Halted.  It can also display a test bit that can be used for troubleshooting, if the need arrises.  If the user wants to display any data that is in the program, he can find the "test=" code and change it to "test= xxxx", where xxxx is the variable to be displayed.
    The LeftClick "This Freq" box will originally display the present frequency that the DDS is stopped on (in MHz).
    The LeftClick "Power" box will originally display the measured power level of the frequency that the sweep has stopped on.
    The LeftClick "Step" box will display the step number at which the Sweep has been Halted.  This is useful when the operator wants to change one of the markers.  It will give him the correct step number to insert into one of the Marker Boxes.
    When the sweep is stopped, place the Mouse pointer within the Graph Window, close to a frequency of interest, and click the Left Mouse Button.  Data will be taken at that frequency and placed into the LeftClick "Step", "This Freq", and "Power" boxes.  The operator can, optionally, click the "Cent" button and insert the LeftClick "This Freq" value directly into the "Center Frequency" box.
By placing the Mouse pointer within the Graph Window, close to a frequency of interest, and clicking the Right Mouse Button, the data taken at that frequency will be placed into the RightClick "Step", "This Freq", and "Power" boxes.  An automatic calculation takes place during the "right Mouse click".  The frequency difference between the left click and right click data is inserted into the "Sweep Width" box.  The center of the two frequencies is inserted into the "Center Frequency" box.  To use this auto feature, a "Left Mouse Click" must preceed the "Right Mouse Click".

(...to be continued)

    You can get in touch with me, via email, at   wsprowls@yahoo.com
I will try to answer your questions or comments as soon as possible.