Difference between revisions of "ADF435x PIC"
Line 34: | Line 34: | ||
Note that you cannot program a 12F629 on the 3v board; it needs 5v to progam but will run happily at 3v. | Note that you cannot program a 12F629 on the 3v board; it needs 5v to progam but will run happily at 3v. | ||
− | |||
===Software=== | ===Software=== | ||
− | The software used was | + | The software used was 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 | 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 |
Revision as of 12:44, 23 February 2018
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
In CQ-TV253, Ron G7DOE described two PIC-based controllers for Chinese ADF435x boards to provide a configurable DATV local oscillator. 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. 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.
PCB
A blank PCB for this project is now available from the BATC shop.
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 reequired before compilation (see below).
Note that you cannot program a 12F629 on the 3v board; it needs 5v to progam but will run happily at 3v.
Software
The software used was 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
Code Compilation and PIC Programming Guide
Following a request for help, 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.