Professional Documents
Culture Documents
DDS RF
Signal Generator
Frequency range: 50 Hz to over 70 MHz
Design by G. Baars, PE1GIC. pe1gic@amsat.org
Radio amateurs and RF engineers in general will welcome this design. This
contemporary RF signal generator has many bells and whistles and is just
the ticket for testing HF/VHF receivers, aligning filters, IF amplifiers and
AM/FM demodulators. The instrument can even act as a source for very
low frequencies starting at 50 Hz.
4µH7 4µH7
L4 L2 L5 L3 C2 C1 L18 C30
C15 C25
4µH7 4µH7 4µH7 4µH7 100n 100n 5p6 0V075 100n 4µH7 100n
C8 C5 C3
C
100n 100n 100n C7 C4 C9 C6 L7 L8 L9 C29
53Ω6
D0 4 16 20
D0 VINP VCC
D1 3 18p 68p 68p 18p 4V
D1 A IC3
K1 D2 2 21 18 6
C31
D2 IOUT VIN+ PD 100n
C20 C26
1 2 D3 1
D3 B 5p6 0V075 100n
IC2
3 4 D3 D4 28 20 19
D4 IOUTB 0V075 VIN–
D2 5 6 D1 D5 27 D 10
D5 R1 R2 L12 L13 L14 VOUT
D0 7 8 D6 26 13 4V
VOUTN
49Ω9
49Ω9
D6 C37 R8
9 10 D7 D7 25 14 150nH 220nH 150nH 1 AD8321 47µ
VOUTP
86Ω6
D7 C36 SDATA 10V
D6 11 12 D5 17 L11 L15 22µ 2 5
DACBP CLK BYP1
10V
D4 13 14 RESET 22 120nH 150nH 3 14 E
RST AD9851 ENN BYP2
15 16 WRCLK 7 R4
WCLK C16 C17 C18 C19
53Ω6
FQUD 8 12 AM 4 16 R7
FQUD RSET GND GND C28 C27
43Ω2
18p 68p 68p 18p GND GND GND GND
9 15 R3
VCC
DATA
CLK
VINN
ENN
REFCLK 11 12 13 15 100n 100n
6k8
0V75 RMS 1 2
4V1 C10
IC1.F C39
8
13 12 100n
1 IC1.D
IC1 = 74HCU04 1 R30 100n
C40
100k
9 T4
C38 10n
AMH 0V55 RMS +9V +9V +9V 50Ω
100n BS170
2V5 2V5 2V5 2V5 D1 RE1 D2 RE2 D3 RE3
2V5 0V4
R5 R6
R31 R29
12k 10k
150k
560Ω
1µH2 32 64 64
C22 X1 10p R12 R13 R10 R11 R18 R19 R16 R17 R24 R25 R22 R23
C24 C32 C33 C34
105Ω
105Ω
105Ω
105Ω
105Ω
105Ω
105Ω
105Ω
105Ω
105Ω
105Ω
105Ω
40p 10MHz 220p 100n 100n 100n
020299 - 11
B1 and IC3 are the main parts in the power will typically be used at room tem- part of the complex chip. To keep
supply. The circuit around IC1 is part of an perature. spurious signal levels to a minimum,
AM modulator and only happens to sit here IC1b, IC1c and surrounding com- all supply connections are powered
because it could not be accommodated on the ponents form the oscillator. The fre- via a separate supply filter consist-
other board (Figure 2). quency tripler is built around IC1e, ing of a choke and a decoupling
The operation and functionality of each of while IC1d acts as a buffer. capacitor.
the above circuit sections will be discussed The combination of X1 and IC1 The resistor at pin 12 of the DDS
in the following paragraphs. may be replaced with a 14-way DIP (here, R3) serves to defines the DDS
30-MHz quartz oscillator module (if output current. However, by allow-
Clock generator you can get it) which may be ing an audio signal to vary this resis-
Because a 30-MHz TCXO can only be plugged into the socket for IC1. tance, AM modulation is obtained.
obtained as an expensive custom-made com- Unfortunately, 8-pin oscillator blocks
ponent, and 30.000 MHz quartz crystals are will not fit the board and require a Filter
few and far between, a solution was found in small modification which you will Inherent to its design, the DDS gen-
the use of a 10-MHz oscillator in combination have to work out for yourself. erates not only the desired frequency
with a tripler. In this way we’re able to f0, but also the spurious products fclk,
employ a cheap and commonly available DDS fclk–f0 and multiples of these.
quartz crystal while the oscillator frequency The circuitry around IC2 largely fol- Arguably a good filter is in order to
is easily adjusted (here, with C22). Of course, lows the application suggestions keep spurious levels at the output as
the oscillator is not totally immune to tem- supplied by the manufacturer. The low as possible. The filter used here
perature variations, but in practice it will DDS chip has several voltage con- is a modified Butterworth low-pass
operate satisfactorily because the equipment nections, each supplying its own dimensioned for a roll-off frequency
82Ω
7 8
5W K4 C8
9 10
15 16 K2
100n
KEYPAD 13 14 1 2
+5VA 11 12 +5VA 40 3 4 D3
S2 S3 S4 S5
9 10 D2 5 6 D1
7 8 9 30 D0 7 8
RESET ALE
A B C D 5 6 EN 9 10 D7
P1
IC2
3 4 R/S 10 39 D0 D6 11 12 D5
C1 PD0(RXD) PA0(AD0)
S6 S7 S8 S9 1 2 11 38 D1 D4 13 14
S1 PD1(TXD) PA1(AD1)
12 PD2(INT0) 37 D2 15 16
PA2(AD2)
3 6 9 # 100n 10k LC DISPLAY 13 PD3(INT1)
14
PA3(AD3)
36
35
D3
D4
PD4 PA4(AD4)
15 34 D5
S10 S11 S12 S13 PD5(OC1A) PA5(AD5)
ENCODER 16 33 D6
PD6(WR) PA6(AD6)
PB3 17 32 D7
PD7(RD) PA7(AD7)
2 5 8 0 PB2
PB1 EXP 31 29
ICP OC1B
S14 S15 S16 S17 PB0
AT90S8515
PB0 1 21 64 K3
PB0(T0) PC0(A8)
PB1 2 22 32 9 10
1 4 7
* 1
K1
2
PB2
PB3
3
4
PB1(T1)
PB2(AIN0)
PC1(A9)
PC2(A10)
23
24
ENN
CLK
7
5
8
6
PB3 PC3(A11)
020299 - 12a 3 4 PB4 5 25 DATA 3 4
PB4(SS) PC4(A12)
5 6 PB5 6 26 RST 1 2
PB5(MOSI) PC5(A13)
7 8 PB6 7 27 FQUD
PB6(MISO) PC6(A14)
9 10 PB7 8 28 WRCLK
PB7(SCK) PC7(A15)
5 4 3 2 X1 X2
KEYPAD
20 19 18
+5VA
X1
R1 1 4x 22k
C4 C3 C2
F1 IC1
TR1 33p 8MHz 33p 100n
MAX7400 4
K5 32mA T 1V2
IC3
7 5 AMH
7805 +5VA R3 C5 SHDN OUT
AMI 2 6
B1 10k IN OS
8 1
100n CLK COM
C9 C10 R4
C6 C7
330Ω
3
4700µ 25V 100n
270p 100n
B80C1500
Figure 3. Control, supply and user
interface. 020299 - 12
R29
R30
R28
R31
C24 D1 D2 C10 D3
T4
020299-1
L15
C31
C40 C17 C19
L5
O1
L18
R8
L11
C3
R2
C27
IC1 C39 C18
R3
R4
RE1
RE2
RE3
L3 L14 C37
L12 L13 T
C21
L4
R7
C9
IC2
L2
C6 C20 C26
IC3
R14 R20 R26
L7
R5
L6
R1
R13
R12
R10
R19
R18
R17
R16
R25
R24
R23
R22
R11
C15
L10
R9
C12 C13 C14
C35 1-992020
C22 C11 ROTKELE )C(
(C) ELEKTOR
020299-1
Figure 4. The PCB for the signal generator circuitry is marked by very short connections and a generous earth plane.
18 Elek-
RF&COMMs
C1
H1
020299-2 C8 H2
K5 C10 IC3 K1
C6 IC1
C7
R2
C2
R4
R3
C5
IC2
P1 R1
TR1 B1
K2
K3
S1
EXP
F1 32mAT
C4 C3
C9
H3
2-992020
H4
ROTKELE )C( K4 X1
Miscellaneous:
Resistors: K1,K3 = 10-way boxheader (2x5)
and the VGA is really out of the question with
R1 = 4-way 22kΩ SIL array K2,K4 = 16-way boxheader (2x8)
the risk of increased spurious levels in mind.
R2 = 82Ω 5W K5 = 2-way PCB terminal block, lead
R3 = 10kΩ pitch 7.5mm
R4 = 330Ω S1 = rotary encoder, Bourns ECW1J Keyboard, display and encoder
P1 = 10kΩ preset or ddm427 (Conrad Electronics) The user interface designed into the RF Sig-
X1 = 8MHz quartz crystal, parallel nal Generator consists of a 2 × 16 character
Capacitors: resonance, CL 32pF matrix LCD, a 4 × 4 matrix keyboard (con-
C1,C2,C5,C7,C8,C10 = 100nF, 5mm TR1 = 12V/4.8VA mains transformer, nected to K1 in Figure 3) and a rotary encoder
lead pitch e.g., Gerth 1x12V/400 mA (S1). The LCD connected to K4 provides a
C3,C4 = 33pF F1 = fuse, 32 mAT with PCB mount readout for frequency, frequency step and
C6 = 270pF fuse holder output level. The keypad allows the desired
C9 = 4700µF 25V radial 5 wire links frequency to be entered as well as various
Keypad: 16 keys, matrixed (Velleman)
other functions to be controlled. The rotary
Semiconductors: Display: LCD 2x16 characters with
encoder is used to adjust the signal fre-
B1 = B80C1500, rectangular case backlight
(80V piv, 1.5 A) PCB, order code 020299-2 (see quency, select the frequency step size and
IC1 = MAX7400CPA Readers Services page) adjust the output signal level.
The LCD backlight current is limited to a
safe value using series resistor R2. In prac- The keyboard allows you to select Timer interrupt
tice, one third of the recommended current FM modulation with a deviation of The timer interrupt is activated at a
guarantees a sufficiently bright display. The 3 kHz, 10 kHz, 20 kHz, 30 kHz and so rate of 2,000 Hz or 32,000 Hz for AM
saving in current then amounts to 200 mA! on up to 90 kHz. The 3-kHz setting and FM respectively. With AM, the
Preset P1 acts as the LCD contrast adjust- will typically be used for NBFM timer interrupt causes a square
ment. equipment like personal mobile wave to appear on an I/O pin. With
radios, while 70 kHz is the nominal FM, a frequency sample from the
AM modulator value for broadcast FM. sinewave look-up table is added to
Most RF signal generators of the affordable The sinewave tables for the FM the current frequency and the result
kind use fixed 30%, 1000-Hz AM modulation. modulation function of the instru- is sent to the DDS.
Because the DDS has no internal provision for ment have been developed using a
amplitude modulation, an external add-on specially written Pascal program. Encoder interrupt
had to be devised. The resistance at pin 12 of When an encoder interrupt occurs,
the DDS determines the DDS output level. By either the frequency, frequency step
using a FET (T4), this resistance can be var- Software size or the output level is increased
ied dynamically. The sinewave applied to the The microcontroller executable code or decreased. Next, besides other
FET is obtained by filtering a square wave was created using an assembler pro- ‘chores’, the display readout is
from processor pin 15. The filter in question gram with well over 2,000 lines. updated. The function of the encoder
is a pretty steep one, built around a Maxim Broadly speaking, this program con- is determined using the keyboard.
integrated elliptic low-pass (IC1 in Figure 3). sists of three flows:
The filter suppresses the fundamental fre-
quency of the square wave, which results in Main flow Keyboard functions
a clean 1-KHz sinewave. In the main flow, the keyboard is The complete functionality of the
scanned and the keyboard presses instrument is accessible to the user
FM modulation are linked to their associated func- via the keypad and the rotary
Frequency modulation (FM) is realised in soft- tions. From the main flow, a number encoder. The keyboard functions
ware, with the microcontroller employing an of subroutines are called controlling, have been defined as follows:
internal processor timer and a sinewave look- among others, the LCD. Here, too,
up table containing frequency steps. FM with the interrupt timer is initialised for * rotary encoder controls fre-
1000-Hz sinewave modulation is obtained by AM and FM. quency step size
sending 32 samples to the DDS at a timer rate The main flow is preceded by a 0 rotary encoder controls out-
of 32 kHz. The number of samples and the reset interrupt which arranges for all put signal frequency
sampling frequency distance are large hardware and software initialisa- # rotary encoder controls out-
enough to warrant a reasonably clean modu- tions to be carried out. put signal level
lated spectrum. 0-9 output signal frequency
IC4
++
IC5
K2 C32 T1 C33 T2 C34 T3 Components
L17
C8
R6
C30
C38 C16 0
R29
R30
R28
R31
C24 D1 D2 C10 D3
T4
020299-1
L15
C31
C40 C17 C19
L5
O1
L18
R8
L11
C3
R2
IC1 C39 C18 C27
The author obtained all components
R3
R4
RE1
RE2
RE3
L3 L14 C37
L12 L13 T
C21
L4
R7
C9
IC2
L2
C6 C20 C26
IC3
R14 R20 R26
L7
R5
L6
R1
R13
R12
R11
R10
R19
R18
R17
R16
R25
R24
R23
R22
C15
L10
R9
C12 C13 C14
C35 1-992020
C22 C11 ROTKELE )C(
Netherlands (www.xs4all.nl/
~barendh/Indexeng.htm).
The keyboard used in the proto-
type was a 16-key matrixed type
supplied to us by Velleman
(www.velleman.be). The LCD is an
industry-standard 2 × 16 character
alphanumeric type (Mitsubishi,
H2
H3
K3
C8
C3
X1
IC2
finally, is a Bourns type with 24
detents per revolution.
C4
EXP
R1
S1
K4
K1
Sensitivity measurements
C2
C9
IC1
C1
C5
P1
C7
R4
B1
F1 32mAT
H1