You are on page 1of 4

design

Edited by Bill Travis


ideas
Two DDS ICs implement amplitude-shift keying
Noel McNamara, Analog Devices, Limerick, Ireland
any communications systems,

M including RFID systems and cable


modems, use AM (amplitude
modulation). This Design Idea shows
6.8k RSET
FSADJUST
how two DDS (direct-digital- PSEL FSEL
Figure 1
synthesis) devices can imple- FSYNC
ment AM and ASK (amplitude-shift key- SCLK IOUTA
ing) over a range of frequencies. The IC1
SDATA AD9834
AD9834 complete 50-MHz DDS IC (Fig-
ure 1) has a current output, so you can MCLK IOUTB
easily sum the outputs of two or more of RESET
them by connecting them to a common 100
termination resistor. Each AD9834 has
two internal phase registers, P0 and P1,
and two internal frequency registers, F0
and F1 (not shown). With each AD9834
generating a sine wave at the same fre-
quency, the amplitude of the summed 6.8k RSET
FSADJUST
signal depends on the phase of each sig-
nal. You can achieve four preset ampli- RESET
MCLK
tude levels—or any on-the-fly level—by
SUM OF SIGNALS
summing the outputs of two AD9834s. SCLK IOUTA
FROM BOTH
IC2
Table 1 shows two AD9834s, IC1 and SDATA AD9834 AD9834s
IC2, configured to give four output lev- IOUTB
FSYNC
els. P0A is phase register 0 for IC1, P1A is
phase register 1 for IC1, and so on. You PSEL FSEL RTERM
can select the desired output level with 100 100
either the PSEL pins or with the PSEL
bits in the control register. Figure 2
shows the waveforms at the RTERM sum-
ming junction for the phases used in You can use two DDS chips to implement amplitude modulation and amplitude-shift keying.
Table 1. You can achieve any signal level
from 0V to a full-scale voltage of ap- values. Both devices use the same MCLK ther method ensures that both parts si-
proximately 600 mV by programming (master clock), and you need to syn- multaneously exit the reset state.
the phase registers with the appropriate chronize them to get the correct signal You can easily implement 100% AM
levels at the RTERM output. You achieve with a single AD9834 by toggling the Re-
synchronization by simultaneously ap- set pin or the reset bit in the control reg-
Two DDS ICs implement plying a Reset signal to both parts after ister. When the part is in reset, the DAC’s
amplitude-shift keying ..................................57 programming both parts with the cor- output is at midscale. The predetermined
VCO produces positive and rect phase and frequency. You can ac- sine wave is available at IOUT when the
negative output frequencies........................58 complish the synchronization by apply- DDS exits reset. To calculate the magni-
ing a positive pulse to the Reset pins, or tude of the sum of the two signals from
16-bit adjustable reference uses
you can implement a software synchro- the AD9834s, represent each signal as a
8-bit digital potentiometers ........................62
nization by setting the reset bit in the rotating vector (Figure 3). You can easi-
Publish your Design Idea in EDN. See the control register to one, stopping MCLK, ly calculate the magnitude and phase of
What’s Up section at www.edn.com.
setting the reset bit in the control regis- the resulting summed vector as follows:
ter to zero, and then starting MCLK. Ei- If the length of each vector is 1, then:
www.edn.com December 25, 2003 | edn 57
design
ideas
TABLE 1—THE PHASE-REGISTER CONTENTS YIELD FOUR OUTPUT LEVELS FROM THE CIRCUIT IN FIGURE 1
Device Phase-register Normalized level Output level with RTERM
number values () of summed signal  and RSET6.8 k
100  (mV)
P0 A 45 P0AP0B(45180) 0.765 223
P1 A 95 P0AP1B(45210) 0.426 128
P0 B 180 P1AP0B(95180) 1.47 435
P1 B 210 P1AP1B(95210) 1.191 350

95+80º 0.765⳯SIN(2f105)
95+210º Figure 3
(SUM OF VECTORS A AND B)
45+180º 45+210º B⳱SIN
(2fⳭ180)
233 mV 350 mV
y3 A⳱SIN
y1 (2f45)
y2
x2 x3 x1
300 mV

You can calculate the magnitude of the summed


Figure 2
GND signals from the DDS chips by representing
each signal as a rotating vector.
The waveforms at the RTERM summing junction use the phases in Table 1.
input vector change. To avoid phase dis-
continuity at the transition, you can set
● x1  Cos(45)0.707: y1 The maximum output-voltage level the resultant phase, P3, to a fixed angle,
Sin(45)0.707; that any one AD9834 can develop across say 180욷p2360p1.
● x2Cos(180)1.00: y2 the 100 termination resistor with Sin(2fp1)Sin(2fp2)2Cos
Sin(180)0; RSET6.8 k is 320 mV p-p. Therefore, (0.5(p1p2))Sin(2f(p1p2)/2).
● x3x1x20.293: y3y1y2 the voltage level this example achieves is Desired amplitude: A2Cos [0.5(p1
0.707; 320 mV0.765244.8 mV. This exam- p2)]; p1p2  2Cos1(A/2).
● Magnitude of resulting vector: ple shows that the phase of the resulting Resultant phase: P3(p2p2)/2.
(x3)2(y3)20.765; summed vector depends on the phase of Therefore, p1180Cos1(A/2), and
● Phase of summed vector: 112.5 two input vectors and may result in a p2180Cos1(A/2) gives amplitude A
(180Tan1(y3/x3)). phase discontinuity as the phases of the with no phase shift at the transition.왏

VCO produces positive and


negative output frequencies
Henry Walmsley, Farnborough, UK
he circuit in Figure 1 is a quadra- lators to one and uses no mixers (Figure tive. The TL072 op amps, IC2A and IC2B,

T ture-output VCO that provides both


positive and negative output fre-
quencies, depending on the polarity of
1). As a result, the output has fewer spu-
rious harmonics and unharmonically re-
lated frequency products, resulting in a
are merely buffers to enable an easier
choice of resistor values for IC4B’s input
and to avoid excessive loading of the in-
the control-voltage input. The circuit cleaner output overall. tegrator capacitors. The resistor values set
provides a function that designers tradi- The two lower transconductance am- the Q (quality factor) to exceed unity.
tionally implement in analog music-ef- plifiers, IC4A and IC4B, form a standard, Positive feedback from the bandpass out-
fects units, such as Bode/Moog frequen- double-integrator bandpass/lowpass fil- put to the noninverting input makes the
cy shifters. Bode/Moog shifters use ter. The lower amplifiers are active for filter oscillate. Adjusting the R3 trimmer
fixed-beat-frequency oscillators at 20 positive control voltages, and the upper allows you to adjust the output amplitude
kHz and variable sine oscillators that go amplifiers, IC3A and IC3B, are effectively and lets you set the drive to the diodes at
higher and lower than 20 kHz. Both os- turned off for lack of bias current. The a level that ensures oscillation but mini-
cillators feed into mixers. The circuit in upper amplifiers thus play no part in the mizes distortion. This fairly standard
this design reduces the number of oscil- circuit when the control voltage is posi- configuration yields quadrature outputs
58 edn | December 25, 2003 www.edn.com
design
ideas

Figure 1 R1
5k 15V 15V
1k
1k 11 11
1 16
3.3k 10k ABC V+ 22k ABC V+
10k 3 14
IN+ IC 5 IN+ IC
2
DI 3A O 15 DI 3B O 12
4 LM13700 13 LM13700
7 INⳮ 8 INⳮ 9
BO 10
47 pF BI Vⳮ BI Vⳮ BO
15V
CV 6 6
3 BC559
+ 8
IC1A 1 ⳮ15V 100k ⳮ15V
OPA2277
2 4

22k
ⳮ15V 1k 1k 1k 1k

1N4148 22k GND GND

R2
1N4148 1N4148
100k
1
10k
10k

15V 15V
10k
47 pF 1k 11 1k 11
15V
1 15V 16 15V
5 + BC559 10k ABC V+ 22k ABC V+
3 14
8 IN+ IC4A IN+ IC
IC1B 2 5 3 + 15 4B O 12 5 +
7 DI LM13700 O 8 DI 8
OPA2277 4 IC2A 1 13 LM13700 IC2B 7
6 7 INⳮ 8 INⳮ 9
ⳮ 4 BO TL072 10 BO TL072
BI Vⳮ BI Vⳮ 6 ⳮ
2ⳮ 4 4
6 6
ⳮ15V

ⳮ15V ⳮ15V ⳮ15V ⳮ15V


1N4148 OUTPUT
100k 90 0
NOTES:
CONTROL-VOLTAGE INPUT: ⳮ10V TO +10V
22k C1 OUTPUT
FOR APPROXIMATELY ⳮ10 TO +10-kHz OUTPUT, 1k 1k 1k 1k C2
8.2 nF 0 90
DEPENDING ON CAPACITOR VALUES C1 AND C2. 8.2 nF
SET CV INPUT TO 1V AND ADJUST R3 FOR
2VPP OUTPUT.
SET CV INPUT TO ⳮ1V AND ADJUST R2 FOR
2VPP OUTPUT. 22k
R3 1N4148 1N4148
ADJUST R1 SO THAT THE OUTPUT FREQUENCY IS 100k
THE SAME FOR EQUAL-MAGNITUDE POSITIVE AND
NEGATIVE CONTROL VOLTAGES.

This quadrature-output VCO produces both positive and negative output frequencies.

from the two buffers with the highest dis- dot becomes slower as you adjust the the two separate dual-amplifier packages.
tortion product approximately 40 dB control voltage near zero and then per- The diodes across the current-source op
down from the fundamental. fectly reverses direction as the control amps avoid heavy saturation when the
For negative control voltages, the up- voltage goes negative. This transition respective source turns off. You trim the
per transconductance amplifiers, IC3A occurs without any unwanted crossing R2 potentiometer to obtain equal ampli-
and IC3B, receive bias current, and the of the circle or drifting off beyond the tudes from the upper and the lower sec-
lower amplifiers shut off. The upper circle. tions. The circuit in Figure 1 uses stan-
amplifiers work in exactly the same way The two current sources, IC1A and IC1B, dard, inexpensive, multiple-sourced
as the lower ones, but they cross-con- are fairly self-explanatory; the upper components. It requires only minimal
nect to the inputs and integrator ca- source operates for negative control volt- (and easy) trimming, with no interacting
pacitors. In this way, the in-phase and ages and vice versa. The R1 gain trimmer trims. A 0V control input results in a
quadrature outputs are reversed for on the upper source allows you to adjust guaranteed 0-Hz output, dependent only
negative control voltages, thus creating the oscillator such that a given negative on well-controlled op-amp offsets. With
a smooth transition to what you can control voltage yields the same frequen- the Bode/Moog system, you must make
consider a “negative frequency.” In op- cy as does the equal-magnitude positive a front-panel adjustment to zero-beat
eration, when viewing the outputs on control voltage. This trim compensates two oscillators running at 20 kHz.왏
an X-Y trace, the circular rotation of the for differences in transconductance of
60 edn | December 25, 2003 www.edn.com
design
ideas
16-bit adjustable reference uses
8-bit digital potentiometers
Bonnie Baker, Tucson, AZ
t may be easy to find a precision volt-

I age reference for your application;


however, a programmable precision
reference is another matter. The circuit in VREF=4.096V
STAGE ONE
V
V1 AND V2= REF XB
(R )
(RXA+RXB)

Figure 1 yields a precision reference with _ STAGE TWO

an LSB of 62.5 V. The circuit is a 16-bit RA IC3A


IC4A
V1
DAC using three 8-bit digital poten- +
RB _
tiometers and three CMOS op amps. IC2A
RA IC5A V4
Each digital potentiometer operates as an
+
8-bit multiplying DAC. On the left side of VREF
RB V3
_
Figure 1, two digital potentiometers, IC3A
IC4B NOTES:
and IC3B, span across VREF to ground, and RA IC3B
V2
[(V1)(R2B)+(V2)(R2A)]
.
+ V3=V4=
the wiper outputs are connected to the RB
(R2A+R2B)

noninverting inputs of two amplifiers, IC1=PIC16F876.


IC3=IC2=MCP42010.
IC4A and IC4B. In this configuration, the DUAL DIGITAL 10-k POTENTIOMETERS.
IC1
inputs to the amplifiers have high im- 3 3 IC4=IC5=MCP6022.
SPI SPI
pedance levels, thus isolating DUAL 10-MHz, SINGLE-SUPPLY OP AMPS.
Figure 1
the digital potentiometers from VREF=MCP1541, 4.096V PRECISION
VOLTAGE REFERENCE.
the rest of the circuit. The microcon-
troller, IC1, programs digital poten- You can design a precision 16-bit DAC by using three digital potentiometers and three op amps.
tiometers IC3A and IC3B through its SPI
port. If VREF is equal to 4.096V, the LSB tentiometer. If VREF is 4.096V, you can in 0.2%. Given the size of the voltage
at the outputs of IC4A and IC4B is 16 mV. program IC3A and IC3B such that the out- across the third digital potentiometer,
To make this circuit perform as a 16- put difference of op amps IC4A and IC4B the LSB of the complete circuit from left
bit DAC, a third digital potentiometer, is 16 mV. You can achieve high accuracy to right is 62.5 V (VREF/216). Table 1
IC2A, spans across the outputs of the two with this circuit by using a dual digital shows the critical device specifications
amplifiers, IC4A and IC4B. The pro- potentiometer for IC3A and IC3B. With to obtain optimum performance with
grammed setting of IC3A and IC3B sets the dual structure, the resistances of this circuit.왏
the voltage across this third digital po- these two devices match typically with-

TABLE 1—DEVICE SPECIFICATIONS FOR OPTIMUM PERFORMANCE


Device Specification Purpose
Digital potentiometers Number of bits 8 bits Determines the overall LSB and resolution of the circuit.
(IC2, IC3) (MCP42010) Nominal resistance 10 k (typical) Achieve better noise performance by using lower resistance
(potentiometer element) potentiometers. The trade-off for low-noise potentiometers is
higher current consumption.
Differential nonlinearity
1 LSB (maximum) Good differential linearity ensures that the circuit exhibits no
missing codes.
Voltage-noise density 9 nV/Hz at 1 kHz (typical) If the noise contribution of these devices is too high, it reduces
(for half the resistive element) the possibility of achieving 16-bit, noise-free performance.
Selecting lower resistance elements can reduce the
potentiometer noise.
Operational amplifiers Input bias current (IB) 1 pA at 25C (maximum) Higher input bias current causes a dc error across the
(IC4, IC5) (MCP6022) potentiometer. CMOS amplifiers are, therefore, good choices.
Input offset voltage 500 V (maximum) A difference in amplifier offset error between IC4A and IC4B
could compromise the differential linearity to the overall system;
50 V is considerably lower than 1 LSB in Stage 1 of the circuit.
Voltage-noise density 8.7 nV/Hz at 10 kHz (typical) If the noise contribution of these devices is too high, it reduces
the possibility of achieving 16-bit, noise-free performance.
Selecting lower noise amplifiers can reduce overall system noise.

62 edn | December 25, 2003 www.edn.com

You might also like