A PIC16F628 controlled FLL (Frequency Locked Loop) VFO for HF



Similar documents
A CW QRP Transceiver for 20 m band. How it works I'll describe individually the three boards and the relative tuning devices.

css Custom Silicon Solutions, Inc.

Oscillators. 2.0 RF Sine Wave Oscillators. Module. RF Oscillators

Conversion Between Analog and Digital Signals

POCKET AUDIO GENERATOR K8065

A simple RF/Microwave frequency counter

HT9170 DTMF Receiver. Features. General Description. Selection Table

Kit Watt Audio Amplifier

Spin Semiconductor FV-1 Reverb IC PN: SPN1001. Delay Memory DSP CORE. ROM and Program Control PLL. XTAL Drvr XTAL. Spin.

NTE923 & NTE923D Integrated Circuit Precision Voltage Regulator

Section 3. Sensor to ADC Design Example

Features. Applications. Transmitter. Receiver. General Description MINIATURE MODULE. QM MODULATION OPTIMAL RANGE 1000m

PowerAmp Design. PowerAmp Design PAD135 COMPACT HIGH VOLATGE OP AMP

Measuring Impedance and Frequency Response of Guitar Pickups

LS RS. Figure 1: Assumed inductor model

THE R551N RECEIVER FAQ FAULT FINDING THE REDIFON COMMUNICATIONS RECEIVER R551N. Date: October 10th 1995 by: Jan Verduyn G5BBL

DDS VFO CONSTRUCTION MANUAL. DDS VFO Construction Manual Issue 1 Page 1

EXPERIMENT NUMBER 5 BASIC OSCILLOSCOPE OPERATIONS

Lab 1: The Digital Oscilloscope

Output Ripple and Noise Measurement Methods for Ericsson Power Modules

Modifying the Yaesu FT-847 External MHz Reference Input

Understanding Power Impedance Supply for Optimum Decoupling

Chapter 6 PLL and Clock Generator

MEASUREMENT SET-UP FOR TRAPS

Impedance Matching and Matching Networks. Valentin Todorow, December, 2009

Design and Construction of Variable DC Source for Laboratory Using Solar Energy

FM Radio Transmitter & Receiver Modules

1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver

[F/T] [5] [KHz] [AMP] [3] [V] 4 ) To set DC offset to -2.5V press the following keys [OFS] [+/-] [2] [.] [5] [V]

Auto-ranging Digital Multimeter INSTRUCTION MANUAL

THE BASICS OF PLL FREQUENCY SYNTHESIS

Single Transistor FM Transmitter Design

INTEGRATED CIRCUITS DATA SHEET. TDA7000 FM radio circuit. Product specification File under Integrated Circuits, IC01

How To Use A Sound Card With A Subsonic Sound Card

Youkits TJ2B 2016 SSB CW HF TRANSCEIVER OPERATION GUIDE

ELECRAFT KX3 EXTENDED VFO TEMPERATURE COMPENSATION PROCEDURE Copyright 2012 Elecraft LLC Rev. A8, October 27, 2012

K8068 BUS DIMMER FOR HOME MODULAR LIGHT SYSTEM ILLUSTRATED ASSEMBLY MANUAL H8068IP-1

CERAMIC RESONATOR PRINCIPLES

Constructing a precision SWR meter and antenna analyzer. Mike Brink HNF, Design Technologist.

PIN CONFIGURATION FEATURES ORDERING INFORMATION ABSOLUTE MAXIMUM RATINGS. D, F, N Packages

Lock - in Amplifier and Applications

Op Amp Circuit Collection

HP 8970B Option 020. Service Manual Supplement

Physics 120 Lab 6: Field Effect Transistors - Ohmic region

ECEN 1400, Introduction to Analog and Digital Electronics

ICS379. Quad PLL with VCXO Quick Turn Clock. Description. Features. Block Diagram

Physical Specifications (Custom design available.)

Inductive Sensors Single or Dual Loop Detectors Type LD with teach-in

NUCLEAR MAGNETIC RESONANCE. Advanced Laboratory, Physics 407, University of Wisconsin Madison, Wisconsin 53706

Contents. Document information

Theory of Operation. Figure 1 illustrates a fan motor circuit used in an automobile application. The TPIC kω AREF.

Kit 27. 1W TDA7052 POWER AMPLIFIER

MAINTENANCE & ADJUSTMENT

AUTOMATIC CALL RECORDER JAMECO PART NO

Module 11: Conducted Emissions

Single Channel Loop Detector

Spread Spectrum Clock Generator

POCKET SCOPE 2. The idea 2. Design criteria 3

SELECTION GUIDE. Nominal Input

A Lesson on Digital Clocks, One Shots and Counters

A Lesson on Digital Clocks, One Shots and Counters

Hello and welcome to this training module for the STM32L4 Liquid Crystal Display (LCD) controller. This controller can be used in a wide range of

Application Note SAW-Components

Measuring Insulation Resistance of Capacitors

ET-BASE AVR ATmega64/128

ICS514 LOCO PLL CLOCK GENERATOR. Description. Features. Block Diagram DATASHEET

CHAPTER 11: Flip Flops

Simple SDR Receiver. Looking for some hardware to learn about SDR? This project may be just what you need to explore this hot topic!

Duct Humidity Transmitter

UNDERSTANDING AND CONTROLLING COMMON-MODE EMISSIONS IN HIGH-POWER ELECTRONICS

Interfacing To Alphanumeric Displays

Wide Bandwidth, Fast Settling Difet OPERATIONAL AMPLIFIER

Homebuilt HF Radios for Use Underground Paul R. Jorgenson KE7HR

Display Board Pulse Width Modulation (PWM) Power/Speed Controller Module

AN2531 Application note

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Op-Amp Simulation EE/CS 5720/6720. Read Chapter 5 in Johns & Martin before you begin this assignment.

EMERGING DISPLAY CUSTOMER ACCEPTANCE SPECIFICATIONS (LED TYPES) EXAMINED BY : FILE NO. CAS ISSUE : DEC.01,1999 TOTAL PAGE : 7 APPROVED BY:

RigExpert AA-30 Antenna Analyzer (0.1 to 30 MHz) AA-54 Antenna Analyzer (0.1 to 54 MHz) User s manual

Reading: HH Sections , (pgs , )

Section 28. In-Circuit Serial Programming (ICSP )

Transistor Amplifiers

Step Response of RC Circuits

14.5GHZ 2.2KW CW GENERATOR. GKP 22KP 14.5GHz WR62 3x400V

OMNIYIG. .5 TO 2 GHz, 1 TO 4 GHz, 6 to 18 GHz Thin Film YIG-TUNED OSCILLATORS OUTLINE DIMESIONS MOUNTING SURFACE GND +15V + TUNE - HTR HTR

An Arduino Controlled GPS Corrected VFO

Analog Servo Drive 25A8

Operational Amplifier - IC 741

The Programming Interface

Global Motion Technology Inc Web THCSA200. Capacitive sensor plasma & Oxy-fuel Torch Height Control

MFJ BOX APPEARANCE. Adjusting Counter Module.

Advanced LED Controller (LED Chaser)

CAN Bus Transceivers Operate from 3.3V or 5V and Withstand ±60V Faults

Bipolar Transistor Amplifiers

DL-QRP-AG Lambda/2 no Counterpoise: Fuchs Antenna matching unit

Hello, and welcome to this presentation of the STM32L4 reset and clock controller.

Brio-Rmanual:Cursamanual.qxd 08/04/ :25 Page1

FM TRANSMITTER & RECEIVER HYBRID MODULES. FM-RTFQ SERIES FM-RRFQ SERIES. Transmitter. Receiver. Applications

SR450 RECEIVER OPERATING INSTRUCTIONS

Application Note 83 Fundamentals of RS 232 Serial Communications

Transcription:

Abstract A PI6F628 controlled FLL (Frequency Locked Loop) VFO for HF It is described a device which joins in a single microprocessor a digital programmable frequency meter and a control logic capable to lock a manually tuned VFO to its actual frequency. The locking function is software inhibited when a manual tuning is detected, so as to provide a completely automatic working. Why an FLL device? The challenge, while developing this project, was to find out a way to arrange a very stable VFO with a very simple design, using very cheap and common components, in fact such a device seamed to be well suited for some QRP project, direct conversion rig or other simple equipments. So I decided not to consider a PLL or DDS approach, and the choice felt on an old, not so popular design : the frequency locked loop. The principle of operation is quite simple, a counter measures the VFO frequency, the new reading is compared with the previously stored value and an adequate correction is applied consequently. This process has been implemented in the past using several discrete TTL logics, now a single microprocessor can do the job much better, moreover offering a digital readout capability. I had already the counter software designed for a PI6F84 device (1), so the remaining job was to develop an adequate code to measure the drift and control the VFO. Another problem was how to implement the control circuit. The best way seemed to be a D/A converter, driven by the PIC so as to produce a control voltage towards a varicap diode, but it would have required at least a 10 bit (better 12 bit) resolution, a component not so cheap nor so easy to find. So I considered to employ a different microprocessor, the PI6F628. This device offers a built-in PWM module capable of delivering a 4 KHz square wave whose duty cycle may be software controlled with an accuracy of 10 bit. It was enough to add a simple RC integrator to obtain a well filtered control voltage, variable from 0 to 5V with a 1024 steps resolution. Such a circuit may control the VFO frequency in a 15 KHz range with a 15 Hz unit step, notice that a single frequency adjustment is applied only when a certain drift amount is measured and, unlike a PLL system, there is no stability problem, no elongation or settling time, so it is possible to obtain a quite clear VFO signal, with a very low noise level. Just what I was looking for. In short, the main performance of this device are : Frequency stability aligned to the reference crystal, with a maximum +/- 15 Hz drift Digital frequency readout, with programmable IF value and 10 Hz resolution on the LCD display Manual frequency tuning, trough a multi-turn potentiometer Automatic Lock/Unlock function, unlock status is signalled by a LED diode and entered during manual tuning or in case of an excessive VFO drift Programmable lock range. It is the maximum allowed value for a short term (0.2 sec) frequency shift without exiting the locked status. This improves the capability to suit to various VFO circuits. The overall (long term) drift compensation capability is limited to about 15 KHz (+/- 7.5 KHz), normally enough to stabilize a well assembled VFO, however I suggest not to exceed a 20/25 MHz limit, although the counter capability may reach 35/40 MHz.

The Control Circuit schematic. LD- LD+ DB7 + 12 C2 R1 180 1W U2 78L05 R2 22K 18K R6 10K R7 10K Vc out DB6 DB5 DB4 DB3 DB2 1µ 18K 10K 1µ 0.47µ 220n DB1 DB0 E R/W RS Vo Vdd Vss + 5 10K PI6F628 + 5 1K X1 LD1 0 33 SET 1 33 > 470 470 T1 2N2369 10K 22 330 T2 2N2369 33K Freq in 3 22 The hearth of the circuit is the software running on a PI6F628 microcontroller. The logic of the locking system is quite simple : at power-on an initial 30 seconds delay is provided to allow somewhat stabilization of the VFO. Then the actual frequency reading is stored as a reference for the locking mechanism. The counter reading period is 200 ms and corresponds to a 5 Hz accuracy, at every reading the new frequency is compared with the previously stored reference value and the following actions will be taken : Difference within +/- 10 Hz limits no action will be taken, the drift is considered within lock limits Difference beyond +/- 10 Hz limits, but within user defined lock range limits (20 / 100 Hz) the compensation mechanism is activated, it will vary the PWM duty cycle by one or more steps accordingly to the difference measured. Every correction step corresponds to a 15 Hz frequency compensation. Difference beyond the user defined lock range limits (manual tuning) the UNLOCK condition is activated, the LED is powered and the actual frequency reading becomes the new reference value. Furthermore the PWM duty cycle is re-aligned a few steps towards the initial (central) value, so as to improve the long term compensation capability. Should the PWM duty cycle limits be exceeded (0 / 1023), a special condition is entered, permanently deactivating the lock mechanism (till the next power-on). This condition is signalled by a continuous LED lighting.

Device programming is accomplished by means of two push buttons : SET and > in the following manner : - Pressing the SET button a first time, the IF value will be displayed ("IFset" function) and the flashing cursor is positioned on the first digit you may modify (ten MHz), now you may modify the digit value by means of the > push button in the 0-9 range. After changing this digit you may go to the next digit by pressing again the SET button, and so on until you reach the last digit to the right. - Another pressing of the SET button starts the "Mode set" function, and now you may choose, by means of > button, between the three operating modes : "VFO + IF", "IF - VFO", "VFO - IF". - A further pushing of SET button enters the Lock set mode, allowing to modify the locking range limits (that is the frequency drift allowed during a single reading period) between a minimum 20 Hz value and a maximum of 100 Hz (default 25 Hz). This may be useful to allow the control circuit compensate a short time, fast frequency drift, up to 500 Hz/sec, provided that the overall long term drift remains within +/- 7.5 KHz. With the VFO circuit described below I recommend to leave unchanged the 25 Hz default. - Finally, a last SET button pressure closes the menu, saves the setting parameters in the PIC EEPROM (non volatile memory), and re-activate the frequency reading function. Keep in mind that, when operating in the "IF - VFO" or "VFO - IF" modes, the read frequency value will be displayed only if the result of the subtraction is positive. Control circuit components list : R1 : 180 Ω - 1W : 10 KΩ - trimmer : 100 nf : 220 nf : PI6F628 R2 : 22 KΩ : 1 KΩ C2 : 10 µf : 10 µf U2 : 78L05 : 18 KΩ : 470 Ω : 1 µf 0 : 33 pf LD1 : LED diode : 18 KΩ : 470 Ω : 100 nf 1 : 33pF (see text) X1 : 4 MHz xtal : 10 KΩ : 10 KΩ : 10 µf : 22 pf : 10 µh R6 : 10 KΩ : 330 Ω : 1 µf tantalum 3 : 22 pf T1 : 2N2369 R7 : 10 KΩ : 33KΩ : 0.47 µf tantalum : 100 nf T2 : 2N2369 LCD : 1x16 LCD alphanumeric module (Optrex DMC-16117A, Hantronix HDM16116H-2, )

The Control Circuit assembly and adjustment. Vss Vdd Vo RS R/W E DB0 DB1 DB2 DB3 DB4 DB5 DB6 DB7 LD+ LD- 1 16 + 12V LED R1 T1 U2 C2 + 0 XTAL + 1 R2 + 12V Vcontrol R7 Set > R6 3 T2 input This circuit is assembled on a single side 68x52 mm PCB. To avoid possible interferences with the VFO working, I recommend to make a good shielding by housing the PCB into a little metallic enclosure. A single multi-pin connector may be employed towards LCD module, LED diode, push buttons and power supply, while two pieces of RG174 coax cable are used for the connection to VFO (RF input and V control). The initial adjustment will be carried out in the following manner : Remove the PIC from its socket and verify that the T1 collector voltage is in the range 1,5 to 1,7 volts, otherwise some adjustment will be required to the value. After inserting the PIC, turn the trimmer completely toward ground side, then adjust it for the desired LCD contrast If a precision tuning of the counter is required, you may replace 1 with a little 30 pf capacitive trimmer. Employing an high impedance frequency meter or a digital receiver you ll may adjust the XTAL frequency exactly to 4.000.000 Hz. If necessary, set the IF value and mode by the apposite push buttons. Now the control circuit is ready to be connected to the VFO.

The VFO schematic. + 12 78L08 C2 150 150 150 Vc from control unit 1 47K 5 6 R1 2K R2 180 82K D1 D2 56K 56K R6 82K 20 D3 D4 60 0 10 D5 T1 BF244 R7 100K 3.3 390 T2 2N2369 220 47K 3 1 390 T3 2N2369 7 220 OUT VFO To counter Although any good quality VFO may be coupled to the PIC control device, I d like to propose a basic circuit, tested on several frequencies in conjunction with the controller. It is a common Hartley oscillator, which employs a FET whose source is inductively coupled to the gate by means of an intermediate tap on the resonant circuit. The coil is wound on a T50-6 toroidal core, and must be well fixed on the PCB. Some care must also be taken in the choice of the other components, the capacitors must be NPO type, the capacitive trimmer should be ceramic and not too small. The frequency tuning is obtained by means of a varicap diode, in conjunction with a 2 KΩ multi-turn potentiometer, so as to have a good resolution on the entire band. A second varicap is used for the frequency compensation function, this diode must provide a 15 KHz span when varying the control voltage from 0 to 5V. Two outputs are provided, one for the locking system (about 200/300mV pp output) and the other towards the connected rig (about 600/800mV pp output). The performances I observed are quite good; testing for stability a 14 MHz unit for 30 minute I measured about 700 Hz at room temperature and -1600 Hz when heating 10 o C the circuit. These drift values may be easily compensated by the PIC controller. VFO components list : R1 : 2 KΩ 10 turns pot : 47 KΩ : 100 nf 3 : 1 pf : 78L08 R2 : 180 Ω : 150 Ω : 10 nf : 220 pf T1 : BF244 : 82 KΩ : 390 Ω : 20 pf trimmer 5 : 10 nf T2 : 2N2369 : 56 KΩ : 47 KΩ : 10 nf 6 : 10 nf T3 : 2N2369 : 56 KΩ : 390 Ω : 60 pf trimmer 7 : 220 pf R6 : 82 KΩ : 150 Ω 0 : 10 pf D1/D2 : BB204 double varicap R7 : 100 KΩ : 100 nf 1 : 10 nf D3/D4 : BB204 double varicap : 150 Ω C2 : 10 µf : 3.3 pf D5 : 1N4148

Band specific components : Band D1 / D2 use 5 5.5 MHz 7 7.3 MHz 2 x BB204 parallel connected 2 x BB204 parallel connected 1 nf 82 pf 150 pf 180 pf 14 14.35 MHz single BB204 82 pf 120 pf 21 21.45 MHz single BB204 33 pf 82 pf 36 t. φ 0.4 mm, tap at 10 t. from ground on T50-6 toroid core 21 t. φ 0.5 mm, tap at 6 t. from ground on T50-6 toroid core 12 t. φ 0.5 mm, tap at 4 t. from ground on T50-6 toroid core 9 t. φ 0.5 mm, tap at 3 t. from ground on T50-6 toroid core single conversion, 9 MHz IF rig direct conversion rig direct conversion rig direct conversion rig The VFO assembly and adjustment. D1/D2 D3/D4 + 12V Vc To R1 C2 + 8V R6 5 OUT VFO 0 T2 T1 + R7 D5 T3 7 1 3 6 out counter The VFO circuit is assembled on a little single side PCB measuring 68x39 mm. Consider that it is important to make a good shielding by housing the PCB into a metallic enclosure, using coax cables (RG174) to bring the output signals and the control voltage. R2 is soldered directly on the R1 potentiometer and is not shown on the PCB. The tuning of VFO will be accomplished in the following manner : Wait some minutes after power-on to allow stabilization of the circuit. Apply a 2.5 voltage to the Vc pin by means of a 10 KΩ trimmer temporarily connected to +8V. Adjust the capacitive trimmer so as to measure the desired frequency range when completely rotating the R1 potentiometer. To obtain this result some little adjustment could be required to and R2 values. Turn R1 all clockwise (upper frequency) and then adjust the capacitive trimmer so as to measure about 15 KHz frequency range when varying the control voltage from 0 to 5V (use the temporary trimmer for this purpose). I recommend not to exceed this limit. Now the VFO circuit is ready to be connected to the PIC controller.

References. (1) see the PI6F84 µ-counter project at my WEB site : www.qsl.net/ik3oil, see also : AN592 - Frequency Counter Using PI6X, application note from Microchip: www.microchip.com/1010/suppdoc/appnote/all/an592/index.htm, and : - A PIC based Digital Frequency Display, by Neil Heckt, QST, May 1997 - The Unicounter, a multipurpose frequency counter/electronic dial, by Ron Stone KA3J, QST, Dec 2000