AN-605: Synchronizing Multiple AD9852 DDS-Based Synthesizers (Rev. 0)

a
AN-605
APPLICATION NOTE
One Technology Way • P.O. Box 9106 • Norwood, MA 02062-9106 • Tel: 781/329-4700 • Fax: 781/326-8703 • www.analog.com
Synchronizing Multiple AD9852 DDS-Based Synthesizers
by David Brandon
INTRODUCTION
Many applications require the generation of two or
more sinusoidal or square wave signals with a known
phase relationship between them. The AD9852 DDS IC
from Analog Devices is capable of providing such signals. This application note offers detailed instructions
on how to synchronize two or more of these devices and
considers possible sources of phase error. For a quadrature application, see the AD9854 DDS with its built-in
quadrature configuration; however, this application
note would also apply to the AD9854 as well.
For successful synchronization, the user must have control over the timing relationship between REFCLK and
the rising edge of the EXT I/O UPDATE CLK. The goal is
to have all DDSs operating on the same SYSTEM CLK
count and not off by ±1 or more counts from each DDS.
Therefore, the EXT I/O UPDATE CLK must be made synchronous with the REFCLK.
For phase errors due to DAC output filtering mismatches, the AD9852 features programmable phase
adjust that can null out these types of mismatches.
REF CLOCK
The first requirement for successful synchronization of
multiple AD9852s is that there must be minimal phase
error between the REFCLK inputs to all DDSs. Any difference in-phase between the REFCLK edges will result in a
proportional phase difference at the DDS outputs.
Therefore, the user must employ a careful clock distribution practice in the layout of the PCB (see Figure 1).
The AD9852 REFCLK input circuitry has an option of
using differential inputs or a single-ended configuration.
Differential REFCLK mode is recommended for its optimum switching characteristics. The REFCLK edges
should have minimum input jitter and fast rise/fall times
(less than 1 ns is recommended). A slow rise time on
REFCLK can increase the phase error time because the
voltage trip point of the input circuit varies from
device to device.
REV. 0
OPTIMUM LAYOUT
A=B=C
DDS NO.1
A
B
REFCLK
DDS NO. 2
C
DDS NO. 3
DDS NO. 1
DDS NO. 2
REFCLK
DDS NO. 3
Figure 1. REFCLK Distribution
I/O UPDATE CLOCK
The I/O UPDATE CLK is responsible for transferring the
contents of the I/O port buffer to the programming
registers where the data becomes active. This clock
has two modes of operation in which the DDS can
supply the I/O UPDATE CLK, or the user can supply it.
For synchronization reasons, external mode is highly
recommended. Internal mode was not given consideration for complexity reasons.
AD9852 I/O INTERFACE DETAILS
Once a fast-edged and properly routed REFCLK signal is
provided, the next timing requirement is the coincident
transfer of the data into the DDS programming registers.
The I/O UPDATE CLK transfers the contents of the I/O
port buffer to the programming registers where data
becomes active. Synchronization of multiple DDSs
requires that the EXT I/O UPDATE CLK’s rising edge
occur simultaneously at all DDSs, just like the REFCLK.
In addition, the rising edge of the EXT I/O UPDATE CLK
must occur at the proper time with respect to REFCLK.
© 2003 Analog Devices, Inc.
AN-605
I/O UPDATE CLK will be made synchronous to the SYSTEM
CLK via the edge detection circuitry (see Figure 3). However, it is incumbent upon the user to make it
synchronous with the REFCLK to avoid a SYSTEM CLK
count mismatch between DDSs.
The AD9852 can be programmed in serial or parallel
mode. Figure 2 depicts the parallel mode. If shown, the
serial mode would display an additional 7-bit shift register and other support circuitry in front of the parallel
data path. However, the main reason for showing this
diagram is to view the paths of REFCLK and EXT I/O
UPDATE CLK.
Depending on the setting of the REFCLK mode (singleended or differential) and/or the use of the on-chip
REFCLK multiplier (PLL), the timing relationship
between REFCLK and EXT I/O UPDATE CLK will change.
These timing changes will be addressed later.
A few things to note in Figure 2 are how the SYSTEM
CLK is derived and the inversion of REFCLK in singleended REFCLK mode. Also note, an asynchronous EXT
PROGRAMMING
REGISTERS
I/O PORT BUFFERS
ADDRESS
6
RD
320
8
READBACK
MUX
8
DATA
8
8
6
ADDRESS
D
E
C
O
D
E
1 OF 40
40
0
D L
A
T
C
H
EN
8
1 OF 40
D
Q
F/F
CK
UPDATE REGS
(SEE TIMING FOR
EDGE DETECT BELOW)
1 OF 40
WR
M
U
1 X
8
EXT
I/O UPDATE
CLOCK
DDS
EDGE
DETECT
REFCLK
MULTIPLIER
REFCLKB
DIFFERENTIAL
MODE
REFCLK
0
M
U
1 X
1
M
U
0 X
DIFF/SINGLE
SYSTEM CLOCK
Figure 2. AD9852 Parallel Interface Block Diagram
I/O PORT BUFFERS CONTENTS
ARE REGISTERED INTO
PROGRAMMING REGISTERS
FORMS RISING EDGE
OF UPDATE REGS
FIRST SYSTEM TO SEE
EXT I/O UPDATE CLK
0
SYSTEM CLK
FORMS FALLING EDGE
OF UPDATE REGS
2
1
3
EXT I/O UPDATE CLK
UPDATE REGS
Figure 3. Ext I/O Update CLK's Edge Detect Timing
–2–
REV. 0
AN-605
In Figure 4, the D flip-flop enables the EXT I/O UPDATE
CLK to be synchronous with the REFCLK and provides a
setup time. Proper operation may require additional
time delay in the REFCLK path. This delay
depends on the CK–to–Q propagation time of the flipflop. The recommended timing relationship between the
EXT I/O UPDATE CLK (Pin 20) and the REFCLK (Pin 69) is
depicted in Figures 5 and 6, depending on single-ended
or differential REFCLK mode. Timing for the REFCLK
multiplier enabled is depicted in Figures 8 and 9.
From the timing in Figure 3, it is essential that a proper
time relationship exist between EXT I/O UPDATE CLK
and the SYSTEM CLOCK for synchronization to occur. If
this time relationship is met, then all SYSTEM CLOCKs
are on the same count across all DDSs and not off by ±1
or more SYSTEM CLOCK counts. The user would control
this relationship with the control of the rising edge of the
EXT I/O UPDATE CLK with respect to the REFCLK. This
timing relationship will be addressed in the SYNCHRONIZATION INSTRUCTIONS section.
Here are some general instructions and recommendations for placing two DDSs into the same phase
relationship (refer to Figure 4).
RESET—BACKGROUND
A RESET must be given after power-up and prior
to transferring any data to the DDS. This places the
DDS output into a known phase, which becomes the
common reference point that allows the synchronization
of multiple DDSs.
Note that there are two sets of instructions, with and
without the REFCLK multiplier enabled.
Instructions (without the AD9852’s REFCLK multiplier
enabled) to synchronize two DDSs.
RESET forces the AD9852’s phase accumulator state to
become COS(0). When new data is sent simultaneously
to multiple DDSs, a coherent phase relationship can be
maintained, or the relative phase offset between
multiple DDSs can be predictability shifted by means of
the phase offset adjustment register. The AD9852 has
14 bits of phase-offset adjustment that amounts to
a phase resolution of 0.022°. The phase-offset feature is
located between the phase accumulator and the phaseto-amplitude converter.
1. Power up all devices and apply the common REFCLK.
2. Send a common RESET with a minimum high time
of 10 REFCLK periods.
3. Program all DDSs for EXT I/O UPDATE CLK mode
(bypass digital multipliers and inverse sync, if desired).
4. Program DDS No. 1 to the desired frequency and a
phase offset of 0° without issuing an EXT I/O
UPDATE CLK.
SYNCHRONIZATION INSTRUCTIONS
Figure 4 presents one possible reference design for
the successful synchronization of multiple DDSs. This
example shows how to place two DDSs into the same
phase relationship.
5. Program DDS No. 2 to the exact same frequency
and a phase offset of 0° without issuing an EXT I/O
UPDATE CLK.
DELAY
REFCLK
CK
AD9852 NO. 1
D FLOP
EN
D
DATA/ADDRESS
Q
WRB
THREE STATE
EXT I/O UPDATE CLK
EXT I/0 UPDATE CLK
RESET
RESET
MICROPROCESSOR
OR FPGA
DATA/ADDRESS BUS
RESET
WRB NO.1
EXT I/O UPDATE CLK
WRB NO.2
WRB
AD9852 NO. 2
DATA/ADDRESS
REFCLK
Figure 4. Application Circuit
REV. 0
–3–
ZERO
PHASE
DIFFERENCE
AN-605
EXT I/O UPDATE CLK MUST
OCCUR WITHIN THIS RANGE
REFCLK (PIN 69)
EXT I/O
UPDATE CLK (PIN 20)
VALID
1.2ns
0.5ns
AVOID THESE WINDOWS OF
TIME WITH RESPECT TO THE
RISING EDGE OF THE EXT
I/O UPDATE CLK AND THE
RISING EDGE OF REFCLK
NOTE: EXT I/O UPDATE CLK'S RISING EDGE TIMING IS RELATIVE TO REFCLK'S RISING EDGE.
Figure 5. Proper Timing Relationship between REFCLK and EXT I/O Update CLK in Differential REFCLK Mode
EXT I/O UPDATE CLK MUST
OCCUR WITHIN THIS RANGE
REFCLK (PIN 69)
EXT I/O
UPDATE CLK (PIN 20)
VALID
1.5ns
0.3ns
AVOID THESE WINDOWS OF
TIME WITH RESPECT TO THE
RISING EDGE OF THE EXT
I/O UPDATE CLK AND THE
FALLING EDGE OF REFCLK
NOTE: EXT I/O UPDATE CLK'S RISING EDGE TIMING IS RELATIVE TO REFCLK'S FALLING EDGE.
THIS IS DUE TO THE INVERSION OF THE REFCLK IN SINGLE-ENDED MODE. SEE FIGURE 2 FOR INVERSION.
Figure 6. Proper Timing Relationship between REFCLK and EXT I/O Update CLK in Single-Ended REFCLK Mode
interval is not predictable. Therefore, the tuning word
must be zero during this time period, which is the
default if preceded with a RESET. A tuning word of zero
prevents the phase accumulator from incrementing
while the PLL locks.
6. See the diagrams above for the recommended
timing between EXT I/O UPDATE CLK and REFCLK.
Choose the appropriate diagram given differential
or single-ended REFCLK mode.
7. Assert a common EXT I/O UPDATE CLK. This will
result in the DAC outputs becoming active simultaneously at the correct frequency and phase offset
as programmed.
Since all the devices are clocked by a common REFCLK
and the PLLs are phase locked to REFCLK, all SYSTEM
CLK signals should also be in-phase, assuming a proper
REFCLK signal is routed to each DDS as discussed
previously.
USING THE REFCLK MULTIPLIER (PLL) ON THE AD9852
The REFCLK multiplier of the AD9852 must be used with
care when synchronizing multiple DDSs because the
PLL lock time will vary from device to device.
This means that the number of SYSTEM CLK cycles
delivered to the phase accumulator during the PLL lock
A typical PLL lock time is approximately 400 µs. Due to
variations in IC processing and temperature effects on
lock time, it is recommended to allow at least 1.0 ms for
locking to occur (refer to Figure 7).
–4–
REV. 0
AN-605
TEK STOP: 1.00MS/s
Note: The REFCLK multiplier will lock to the falling edge
of REFCLK; therefore, the EXT I/O UPDATE CLK signal
should be referenced to the falling edge of REFCLK in
differential REFCLK mode and to the rising edge in
single-ended mode. The recommended timing relationship between the rising edge of the EXT I/O UPDATE
CLK (Pin 20) and the REFCLK (Pin 69) is depicted in Figures 8 and 9.
⌬: 378␮s
@: –101␮s
PLL LOCK TIME
DAC OUTPUT
2
3
VCO INPUT
EXT I/O UPDATE CLK
1
CH1 50.0mV⍀
CH3 1.00V⍀
CH2 100.0mV⍀
M 50␮s
CH3
700mV
Figure 7. Typical PLL Lock Time
0.3ns
1.5ns
EXT I/O UPDATE CLK
MUST OCCUR WITHIN THIS
RANGE IF SYSTEM CLK IS
@ 300MSPS OR ELSE REFER
TO THE NOTE BELOW
REFCLK (PIN 69)
EXT I/O
UPDATE CLK (PIN 20)
@300MSPS
VALID
0.3ns
NOTE: THE VALID TIMING
RANGE WILL INCREASE
WITH A DECREASE IN THE
SYSTEM CLK FREQUENCY
THE EDGE IS FIXED AS THE
OUTER LIMIT FOR
I/O UPDATE CLK
(MAX 1.8ns FROM FALLING
EDGE OF REFCLK)
THE EDGE CAN BE MOVED
TO THE LEFT PROPORTIONALLY
WITH A DECREASE IN
SYSTEM CLK FREQUENCY
NOTE: THE RISING EDGE OF EXT I/O UPDATE CLK IS RELATIVE TO THE FALLING EDGE OF REFCLK DUE TO THE FACT THAT THE PLL LOCKS TO THE FALLING EDGE OF REFCLK.
Figure 8. Proper Timing Relationship Using the REFCLK Multiplier in Differential REFCLK Mode
1.8ns
EXT I/O UPDATE CLK MUST
OCCUR WITHIN THIS RANGE
IF SYSTEM CLK IS @ 300MSPS
OR ELSE REFER TO THE
NOTE BELOW
0.3ns
REFCLK (PIN 69)
EXT I/O
UPDATE CLK (PIN 20)
@ 300MSPS 0.3ns
VALID
NOTE: THE VALID TIMING
RANGE WILL INCREASE
WITH A DECREASE IN
SYSTEM CLK FREQUENCY
THE EDGE CAN BE MOVED
TO THE LEFT PROPORTIONALLY
WITH A DECREASE IN
SYSTEM CLK FREQUENCY
THE EDGE IS FIXED AS THE
OUTER LIMIT FOR
I/O UPDATE CLK
(MAX 1.5ns FROM RISING
EDGE OF REFCLK)
Figure 9. Proper Timing Relationship Using the REFCLK Multiplier in Single-Ended REFCLK Mode
REV. 0
–5–
AN-605
INSTRUCTIONS WITH THE AD9852’S REFCLK
MULTIPLIER ENABLED TO SYNCHRONIZE TWO DDSs.
SUMMARY
With proper care and procedure, synchronization can be
achieved among multiple DDSs. The following illustrations show how two AD9852s are synchronized to one
another. In Figure 10, the REFCLK frequency is set to
100 MHz, and in Figure 11, it is 300 MHz. Both are in nonPLL mode. For Figure 12, REFCLK is set to 75 MHz with
the REFCLK multiplier programmed for 43 (System
Clock = 300 MHz). Figure 13 shows two DDSs remaining
in quadrature, even as the frequency changes are made.
Quadrature is denoted by the cursor positioning in
Figure 13.
1. Power up all devices and apply the common REFCLK.
2. Send a common RESET with a minimum high
time of 10 REFCLK periods.
3. Program all DDSs for EXT I/O UPDATE CLK mode
(bypass digital multipliers and inverse sync, if desired).
4. Program all DDSs for PLL mode along with the
REFCLK multiplier value.
5. Send a EXT I/O UPDATE CLK and wait 1.0 ms for
PLLs to lock.
⌬: 370ns
@: 366ns
DDS NO.1 OUTPUT
6. Program DDS No. 1 to the desired frequency and a
phase offset of 0° without issuing an EXT I/O
UPDATE CLK.
T
2
7. Program DDS No. 2 to the exact same frequency
and a phase offset of 0° without issuing an EXT
I/O UPDATE CLK.
DDS NO.2 OUTPUT
FTW1S
LATENCY THROUGH
DEVICE GIVEN THE
CONFIGURATION
(INV SINC AND DIG
MULT BYPASSED)
T
EXT I/O UPDATE
3
1
8. See the diagrams below for the recommended
timing between EXT I/O UPDATE CLK and
REFCLK. Choose the appropriate diagram for dif
ferential or single-ended REFCLK mode.
100MHz REFERENCE CLOCK
(NON-PLL MODE)
4
CH1 50.0mV⍀
CH3 2.00⍀
IMPORTANT: Users must remember to keep the REFCLK
multiplier enabled as they write each new tuning word
and/or phase offset.
CH2 50.0mV⍀
CH4 2.00V⍀
M 100ns
CH3
1.88V
Figure 10. DDS Synchronization – (Conditions: VCC = 3.3 V,
REFCLK = 100 MHz, Non-PLL Mode, 25ºC)
9. Assert a common EXT I/O UPDATE CLK. This will
result in the DAC outputs becoming active simultaneously at the correct frequency and phase offset
as programmed.
⌬: 123.0ns
@: 119.0ns
DDS NO.1 OUTPUT
T
2
T
DDS NO.2 OUTPUT
FTW1S
LATENCY THROUGH
DEVICE GIVEN THE
CONFIGURATION
(INV SINC AND DIG
MULT BYPASSED)
EXT I/O UPDATE
3
1
300MHz REFERENCE CLOCK (NON-PLL MODE)
4
CH1 50.0mV⍀
CH3 2.00V⍀
CH2 50.0mV⍀
CH4 2.00V⍀
M 25ns
CH3
2.08V
Figure 11. DDS Synchronization – (Conditions: VCC = 3.3 V,
REFCLK = 300 MHz, Non-PLL Mode, 25ºC)
–6–
REV. 0
AN-605
⌬: 123.0ns
@: 118.5ns
DDS NO.1 OUTPUT
T
⌬: 1.13␮s
@: 1.64␮s
DDS NO.2 OUTPUT
T
2
T
T
EXT I/O UPDATE
3
1
75MHz REFERENCE CLOCK (PLL MODE 4ⴛ = 300MHz)
2
4
CH1 50.0mV⍀
CH3 2.00V⍀
CH2 50.0mV⍀
CH4 2.00V⍀
M 25ns
CH3
CH1 100mV⍀
2.08V
M 500ns
CH4
2.70V
Figure 13. DDS Quadrature Synchronization – (Conditions:
VCC = 3.3 V, REFCLK = 40 MHz, Non-PLL Mode, 25ºC)
Figure 12. DDS Synchronization – (Conditions: VCC = 3.3 V,
REFCLK = 75 MHz, PLL (4⫻) Mode Enable, 25ºC)
REV. 0
CH2 100mV⍀
–7–
–8–
PRINTED IN U.S.A.
E03074–0–1/03(0)