Difference between revisions of "ADF435x PIC"

From BATC Wiki
Jump to navigation Jump to search
Line 54: Line 54:
 
===Code Compilation and PIC Programming Guide===
 
===Code Compilation and PIC Programming Guide===
  
Once you have downloaded Ron's C code or generated some of your own you will need to compile and program in to a PIC.
+
Once you have downloaded Ron's C code or generated some of your own you will need to compile and program in to a PIC. This done using MPLABX\v3.51 downloaded free from Microchip. When compiled, the package directly programs the PIC using PICKit 3. The compiler is XC8 which is also downloaded from the same site and integrates with MPLABX IDE: http://www.microchip.com/mplab/mplab-x-ide
 
 
This done using MPLABX\v3.51 downloaded free from Microchip. When compiled, the package directly programs the PIC using PICKit 3.
 
 
 
The compiler is XC8 which is also downloaded from the same site and integrates with MPLABX IDE: http://www.microchip.com/mplab/mplab-x-ide
 
  
 
Steve M0SKM has written a Compilation and Programming guide in .pdf format. Hopefully this guide will encourage others to build these very useful oscillators.
 
Steve M0SKM has written a Compilation and Programming guide in .pdf format. Hopefully this guide will encourage others to build these very useful oscillators.

Revision as of 11:42, 25 January 2019

The incredibly flexible ADF4351 VCO/PLL chip with a few external components forms a very wide range high stability signal source with a clean output which is programmable from 35 MHz to 4.4 GHz. Such a device would have been unthinkable 10 years and is ideal for user in the ATVers shack as a test signal generator or a local oscillator source for all bands up to 5.6 GHz.

Note: As well as the desired frequency, the boards have a high harmonic content and depending on the application will need filtering on the output.

Ready built and tested boards are readily available from a number of Far Eastern sources on eBay for around £20


Adf4351.jpg


Warning: A recent batch of Chinese boards have a 5V regulator fitted instead of the required 3v3 regulator. Please check your board before you apply power. Details here: https://forum.batc.org.uk/viewtopic.php?f=103&t=5375


In CQ-TV253, Ron G7DOE described two PIC-based controllers for Chinese ADF435x boards to provide a configurable local oscillator suitable for DATV or narrow band operation. The PIC holds four frequencies selectable by two small switches, extendible to eight frequencies from three switches if required. It is easy to change the C source code for any appropriate frequencies and the circuit is very simple.

CQ-TV 259 had a step by step guide to generating the code and programming the PIC for any frequency.

There is also a ultra simple controller design for a set and forget a single frequency which can also be used as a microwave band local Oscillator.

Piccon2.JPG

PCB

The circuit is very simple - a single 12F629 PIC with Clk, Data, LE and mux connections to the ADF board - note CE is connected to +ve supply which can be obtained from the ADF board if available.

Adfcontroller.JPG

A blank PCB for this project is now available from the BATC shop.

G7DOE Layout.jpg

File:adf435x.zip contains the Gerber files for the V2 pcb. These are bundled to suit OSH Park's naming conventions but should also suit various Chinese fabricators.

Source files

File:source.zip contains four C source files:

  • fatcontrol.c is the PIC12LF1552 controller offering a choice of 4 frequencies
  • fat8sw.c is the PIC12LF1552 controller offering a choice of 8 frequencies
  • thincontrol.c is the PIC12F629 controller offering a single frequency
  • thin1552.c is the PIC12LF1552 controller offering a single frequency

These files can be edited in a text editor if required before compilation (see below).

Note that you cannot program a 12F629 ON the V2.0 PCB; it needs 5V to progam the chip, but the 12F629 will run happily off 3V.

Generating your own PIC code for new frequencies

On page 27 in CQ-TV 259 (spring 2018) Dave G8GKQ produced a guide to generating your own PIC code for the ADF4351. Members can find this issue for download here https://batc.org.uk/cq-tv/cq-tv-download/ and a low resolution copy is available here File:CQ-TV 259 page 27.JPG

Code Compilation and PIC Programming Guide

Once you have downloaded Ron's C code or generated some of your own you will need to compile and program in to a PIC. This done using MPLABX\v3.51 downloaded free from Microchip. When compiled, the package directly programs the PIC using PICKit 3. The compiler is XC8 which is also downloaded from the same site and integrates with MPLABX IDE: http://www.microchip.com/mplab/mplab-x-ide

Steve M0SKM has written a Compilation and Programming guide in .pdf format. Hopefully this guide will encourage others to build these very useful oscillators.

When Steve first tackled this project he looked around for software and learned it from scratch. Others will undoubtedly find alternative methods but this way worked for him. Thanks also to Claudio I2NDT who test ran the guide successfully.

The guide can be downloaded here File:7-band local oscillator.pdf.