400 MSPS, 14-Bit, 1.8 V CMOS, Direct Digital Synthesizer AD9954 FEATURES GENERAL DESCRIPTION 400 MSPS internal clock speed Integrated 14-bit DAC Programmable phase/amplitude dithering 32-bit frequency tuning accuracy 14-bit phase tuning accuracy Phase noise better than –120 dBc/Hz Excellent dynamic performance >80 dB narrowband SFDR Serial I/O control Ultrahigh speed analog comparator Automatic linear and nonlinear frequency sweeping 4 frequency/phase offset profiles 1.8 V power supply Software and hardware controlled power-down 48-lead TQFP Integrated 1024 word × 32-bit RAM Support for 5 V input levels on most digital inputs PLL-based REFCLK multiplier Internal oscillator, can be driven by a single crystal Phase modulation capability Multichip synchronization The AD9954 is a direct digital synthesizer (DDS) that uses advanced technology, coupled with an internal high speed, high performance DAC to form a complete, digitally programmable, high frequency synthesizer capable of generating a frequencyagile analog output sinusoidal waveform at up to 160 MHz. The AD9954 enables fast frequency hopping coupled with fine tuning of both frequency (0.01 Hz or better) and phase (0.022° granularity). The AD9954 is programmed via a high speed serial I/O port. The device includes static RAM to support flexible frequency sweep capability in several modes, plus a user-defined linear sweep mode of operation. Also included is an on-chip high speed comparator for applications requiring a square wave output. An on-chip oscillator and PLL circuitry provide users with multiple approaches to generate the device’s system clock. The AD9954 is specified to operate over the extended industrial temperature range (see Table 2). APPLICATIONS Agile LO frequency synthesis Programmable clock generators FM chirp source for radar and scanning systems Automotive radars Test and measurement equipment Acousto-optic device drivers BASIC BLOCK DIAGRAM AD9954 400MSPS DDS CORE DIGITAL SINE WAVE 14-BIT DAC COMPARATOR TIMING AND CONTROL USER INTERFACE 03374-038 REF CLOCK INPUT CIRCUITRY Figure 1. Rev. B Information furnished by Analog Devices is believed to be accurate and reliable. However, no responsibility is assumed by Analog Devices for its use, nor for any infringements of patents or other rights of third parties that may result from its use. Specifications subject to change without notice. No license is granted by implication or otherwise under any patent or patent rights of Analog Devices. Trademarks and registered trademarks are the property of their respective owners. One Technology Way, P.O. Box 9106, Norwood, MA 02062-9106, U.S.A. Tel: 781.329.4700 www.analog.com Fax: 781.461.3113 ©2003–2009 Analog Devices, Inc. All rights reserved. AD9954 TABLE OF CONTENTS Features .............................................................................................. 1 Serial Interface Port Pin Descriptions ..................................... 24 Applications ....................................................................................... 1 MSB/LSB Transfers .................................................................... 24 General Description ......................................................................... 1 RAM I/O via Serial Port ............................................................ 24 Basic Block Diagram ........................................................................ 1 Instruction Byte .......................................................................... 25 Revision History ............................................................................... 2 Register Maps and Descriptions ............................................... 25 Functional Block Diagram .............................................................. 3 Control Register Bit Descriptions ............................................ 29 Electrical Specifications ................................................................... 4 Other Register Descriptions ..................................................... 31 Absolute Maximum Ratings............................................................ 7 Layout Considerations ............................................................... 32 Explanation of Test Levels ........................................................... 7 Detailed Programming Examples ................................................ 33 ESD Caution .................................................................................. 7 Single-Tone Mode ...................................................................... 33 Pin Configuration and Function Descriptions ............................. 8 Linear Sweep Mode .................................................................... 33 Typical Performance Characteristics ........................................... 10 RAM Mode.................................................................................. 33 Theory of Operation ...................................................................... 13 Suggested Application Circuits ..................................................... 35 Component Blocks ..................................................................... 13 Evaluation Board Schematics........................................................ 36 Modes of Operation ................................................................... 16 Outline Dimensions ....................................................................... 39 Synchronization—Register Updates (I/O UPDATE) ............ 21 Ordering Guide .......................................................................... 39 Serial Port Operation ................................................................. 23 REVISION HISTORY 5/09—Rev. A to Rev. B Changes to Figure 29 and Figure 30 ............................................. 24 Changes to Table 12 ........................................................................ 26 Changes to Figure 34 ...................................................................... 35 Updated Outline Dimensions ....................................................... 39 Changes to Ordering Guide .......................................................... 39 1/07—Rev. 0 to Rev. A Changes to Layout .............................................................. Universal Changes to Features, General Description, and Figure 1 ............ 1 Changes to Figure 2 .......................................................................... 3 Changes to Table 1 ............................................................................ 4 Changes to Table 4 ............................................................................ 8 Changes to Figure 5 to Figure 10 .................................................. 10 Changes to Figure 12 ...................................................................... 11 Changes to Figure 17 to Figure 18 Captions ............................... 12 Deleted Figure 19; Renumbered Sequentially ............................ 12 Added Table 5; Renumbered Sequentially .................................. 13 Changes to Component Block Section and Table 6 ................... 13 Changes to Figure 20 ...................................................................... 15 Changes to Modes of Operation Section and Table 8................ 16 Changes to Table 9 .......................................................................... 17 Changes to Synchronization; Register Updates (I/O UPDATE) Section and Figure 24 ..................................................................... 21 Changes to Serial Port Operation Section................................... 23 Changes to Serial Interface Port Pin Description Section, MSB/LSB Transfers Section, and RAM I/O Via Serial Port Section.............................................................................................. 24 Inserted Figure 29 and Figure 30; Renumbered Sequentially .. 24 Changes to Instruction Byte Section, Register Maps and Descriptions Section, and Table 12 .............................................. 25 Changes to Table 13 ....................................................................... 26 Changes to Table 14 ....................................................................... 28 Added Single-Tone Mode Section, Linear Sweep Mode Section, Table 15, and RAM Mode Section ............................................... 33 Added, and Table 16 ....................................................................... 34 Inserted Figure 35 ........................................................................... 36 Inserted Figure 36 ........................................................................... 37 Inserted Figure 37 ........................................................................... 38 Updated Outline Dimensions ....................................................... 39 Changes to Ordering Guide .......................................................... 39 10/03—Revision 0: Initial Version Rev. B | Page 2 of 40 AD9954 FUNCTIONAL BLOCK DIAGRAM DDS CORE M U X FREQUENCY TUNING WORD 32 DDS CLOCK 10 14 COS(X) 14 DAC SYSTEM CLOCK MUX SYNC_IN θ OSK TIMING AND CONTROL LOGIC M U X PWRDWNCTL 0 SYNC CONTROL REGISTERS ÷4 COMPARATOR OSCILLATOR/BUFFER 4× TO 20× CLOCK MULTIPLIER REFCLK REFCLK M U X COMP_IN COMP_IN SYSTEM CLOCK COMP_OUT ENABLE CRYSTAL OUT IOUT IOUT Z–1 RAM DATA 14 <31:18> I/O UPDATE SYNC_CLK 19 14 3 32 32 CLEAR PHASE ACCUMULATOR 32 DAC_R SET PHASE OFFSET Z–1 32 DDS CLOCK RAM CONTROL RAM DATA RAM DATA AD9954 PHASE ACCUMULATOR PS<1:0> I/O PORT Figure 2. Rev. B | Page 3 of 40 RESET 03374-001 32 STATIC RAM 1024 × 32 RAM ADDRESS DELTA FREQUENCY TUNING WORD DELTA FREQUENCY RAMP RATE FREQUENCY ACCUMULATOR AD9954 ELECTRICAL SPECIFICATIONS Unless otherwise noted, AVDD, DVDD = 1.8 V ± 5%, DVDD_I/O = 3.3 V ± 5%, RSET = 3.92 kΩ, external reference clock frequency = 400 MHz. DAC output must be referenced to AVDD, not AGND. Table 1. Parameter REF CLOCK INPUT CHARACTERISTICS Frequency Range REFCLK Multiplier Disabled REFCLK Multiplier Enabled at 4× REFCLK Multiplier Enabled at 20× Crystal Oscillator Operating Frequency Input Capacitance Input Impedance Duty Cycle Duty Cycle with REFCLK Multiplier Enabled REFCLK Input Voltage Swing DAC OUTPUT CHARACTERISTICS Full-Scale Output Current Gain Error Output Offset Differential Nonlinearity Integral Nonlinearity Output Capacitance Residual Phase Noise @ 1 kHz Offset, 40 MHz AOUT REFCLK Multiplier Enabled @ 20× REFCLK Multiplier Enabled @ 4× REFCLK Multiplier Disabled Voltage Compliance Range Wideband SFDR 1 MHz to 10 MHz Analog Out 10 MHz to 40 MHz Analog Out 40 MHz to 80 MHz Analog Out 80 MHz to 120 MHz Analog Out 120 MHz to 160 MHz Analog Out Narrow-Band SFDR 40 MHz Analog Out (±1 MHz) 40 MHz Analog Out (±250 kHz) 40 MHz Analog Out (±50 kHz) 40 MHz Analog Out (±10 kHz) 80 MHz Analog Out (±1 MHz) 80 MHz Analog Out (±250 kHz) 80 MHz Analog Out (±50 kHz) 80 MHz Analog Out (±10 kHz) 120 MHz Analog Out (±1 MHz) 120 MHz Analog Out (±250 kHz) 120 MHz Analog Out (±50 kHz) 120 MHz Analog Out (±10 kHz) 160 MHz Analog Out (±1 MHz) 160 MHz Analog Out (±250 kHz) 160 MHz Analog Out (±50 kHz) 160 MHz Analog Out (±10 kHz) Temp Test Level Full Full Full Full 25°C 25°C 25°C 25°C Full VI VI VI IV V V V V IV 25°C 25°C 25°C 25°C 25°C 25°C I I V V V 25°C 25°C 25°C 25°C V V V I 25°C 25°C 25°C 25°C 25°C V V V V V 73 67 62 58 52 dBc dBc dBc dBc dBc 25°C 25°C 25°C 25°C 25°C 25°C 25°C 25°C 25°C 25°C 25°C 25°C 25°C 25°C 25°C 25°C V V V V V V V V V V V V V V V V 87 89 91 93 85 87 89 91 83 85 87 89 81 83 85 87 dBc dBc dBc dBc dBc dBc dBc dBc dBc dBc dBc dBc dBc dBc dBc dBc Rev. B | Page 4 of 40 Min Typ 1 20 4 20 Max Unit 400 100 20 30 MHz MHz MHz MHz pF kΩ % % mV p-p 3 1.5 50 35 100 5 –10 65 1000 10 15 +10 0.6 1 2 5 –105 –115 –132 AVDD – 0.5 AVDD + 0.5 mA %FS μA LSB LSB pF dBc/Hz dBc/Hz dBc/Hz V AD9954 Temp Test Level 25°C 25°C 25°C 25°C V IV I IV Full Full 25°C 25°C 25°C 25°C 25°C VI VI IV IV IV IV IV 25°C 25°C 25°C 25°C V V V V Full Full Full Full Full Full Full Full Full Full IV IV IV IV IV IV IV IV IV IV Full Full Full I I I 4 6 0 25°C IV 24 I/O UPDATE to Phase Offset Change Prop Delay 25°C IV 24 I/O UPDATE to Amplitude Change Prop Delay 25°C IV 16 PS0, PS1 to RAM Driven Frequency Change Prop Delay 25°C IV 28 PS0, PS1 to RAM Driven Phase Change Prop Delay 25°C IV 28 PS0 to Linear Frequency Sweep Prop Delay 25°C IV 28 Parameter COMPARATOR INPUT CHARACTERISTICS Input Capacitance Input Resistance Input Current Hysteresis COMPARATOR OUTPUT CHARACTERISTICS Logic 1 Voltage, High-Z Load Logic 0 Voltage, High-Z Load Propagation Delay Output Duty-Cycle Error Rise/Fall Time, 5 pF Load Toggle Rate, High-Z Load Output Jitter1 COMPARATOR NARROW-BAND SFDR 10 MHz to 160 MHz FOUT Measured over a 1 MHz BW Measured over a 250 kHz BW Measured over a 50 kHz BW Measured over a 10 Hz BW TIMING CHARACTERISTICS Serial Control Bus Maximum Frequency Minimum Clock Pulse Width Low Minimum Clock Pulse Width High Maximum Clock Rise/Fall Time Minimum Data Setup Time DVDD_I/O = 3.3 V Minimum Data Setup Time DVDD_I/O = 1.8 V Minimum Data Hold Time Maximum Data Valid Time Wake-Up Time2 Minimum Reset Pulse Width High I/O UPDATE, PS0, PS1 to SYNC_CLK Setup Time, DVDD_I/O = 3.3 V I/O UPDATE, PS0, PS1 to SYNC_CLK Setup Time, DVDD_I/O = 1.8 V I/O UPDATE, PS0, PS1 to SYNC_CLK Hold Time Latency I/O UPDATE to Frequency Change Prop Delay Rev. B | Page 5 of 40 Min Typ Max Unit 45 pF kΩ μA mV 3 500 ±12 30 1.6 0.4 3 ±5 1 200 1 80 85 90 95 dBc dBc dBc dBc 25 Mbps ns ns ns ns ns ns ns ms SYSCLK cycles3 ns ns ns 7 7 2 3 5 0 25 1 5 V V ns % ns MHz ps rms SYSCLK cycles SYSCLK cycles SYSCLK cycles SYSCLK cycles SYSCLK cycles SYSCLK cycles AD9954 Parameter CMOS LOGIC INPUTS Logic 1 Voltage @ DVDD_I/O (Pin 43) = 1.8 V Logic 0 Voltage @ DVDD_I/O (Pin 43) = 1.8 V Logic 1 Voltage @ DVDD_I/O (Pin 43) = 3.3 V Logic 0 Voltage @ DVDD_I/O (Pin 43) = 3.3 V Logic 1 Current Logic 0 Current Input Capacitance CMOS LOGIC OUTPUTS (1 mA Load) DVDD_I/O = 1.8 V Logic 1 Voltage Logic 0 Voltage CMOS LOGIC OUTPUTS (1 mA Load) DVDD_I/O = 3.3 V Logic 1 Voltage Logic 0 Voltage POWER CONSUMPTION (AVDD = DVDD = 1.8 V) Single-Tone Mode (Comparator Off ) With RAM or Linear Sweep Enabled With Comparator Enabled With RAM and Comparator Enabled Rapid Power-Down Mode Full-Sleep Mode SYNCHRONIZATION FUNCTION4 Maximum Sync Clock Rate (DVDD_I/O = 1.8 V) Maximum Sync Clock Rate (DVDD_I/O = 3.3 V) SYNC_CLK Alignment Resolution5 Temp Test Level 25°C 25°C 25°C 25°C 25°C 25°C 25°C I I I I V V V 1.25 25°C 25°C I I 1.35 25°C 25°C I I 2.8 25°C 25°C 25°C 25°C 25°C 25°C I I I I I I 25°C 25°C 25°C VI VI V 1 Min Typ Max 0.6 2.2 3 0.8 12 12 2 162 175 180 198 150 20 62.5 100 ±1 Unit V V V V μA μA pF 0.4 V V 0.4 V V 171 190 190 220 160 27 mW mW mW mW mW mW MHz MHz SYSCLK cycles Represents the cycle-to-cycle residual jitter from the comparator alone. Wake-up time refers to the recovery from analog power-down modes (see section on Power-Down Modes of Operation). The primary limiting factor is the settling time of the PLL multiplier in the reference circuitry. The wake-up time assumes there is no capacitor on DAC BP and that the recommended PLL loop filter values are used. 3 SYSCLK cycle refers to the clock frequency used on-chip to drive the DDS core. This is equal to the frequency of the reference source times the value of the PLL-based reference clock multiplier. 4 SYNC_CLK = ¼ SYSCLK rate. Be sure the high speed sync enable bit, CFR2<11>, is programmed appropriately. 5 This parameter indicates that the digital synchronization feature cannot compensate for phase delays (timing skew) between system clock rising edges. If the system clock edges are aligned, the synchronization function should not increase the skew between the two edges. 2 Rev. B | Page 6 of 40 AD9954 ABSOLUTE MAXIMUM RATINGS EXPLANATION OF TEST LEVELS Table 2. Parameter Maximum Junction Temperature DVDD_I/O (Pin 43) AVDD, DVDD Digital Input Voltage (DVDD_I/O = 3.3 V) Digital Input Voltage (DVDD_I/O = 1.8 V) Digital Output Current Storage Temperature Range Operating Temperature Range Lead Temperature (10 sec Soldering) θJA θJC I II Rating 150°C 4V 2V –0.7 V to +5.25 V –0.7 V to +2.2 V 5 mA –65°C to +150°C –40°C to +105°C 300°C 38°C/W 15°C/W III IV V VI 100% production tested. 100% production tested at 25°C and sample tested at specified temperatures. Sample tested only. Parameter is guaranteed by design and characterization testing. Parameter is a typical value only. Devices are 100% production tested at 25°C and guaranteed by design and characterization testing for industrial operating temperature range. ESD CAUTION Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a stress rating only; functional operation of the device at these or any other conditions above those indicated in the operational section of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. DVDD_I/O IOUT IOUT INPUT AVOID OVERDRIVING DIGITAL INPUTS. FORWARD BIASING ESD DIODES MAY COUPLE DIGITAL NOISE ONTO POWER PINS. COMPARATOR INPUTS COMPARATOR OUTPUT AVDD COMP IN COMP IN MUST TERMINATE OUTPUTS TO AVDD FOR CURRENT FLOW. DO NOT EXCEED THE OUTPUT VOLTAGE COMPLIANCE RATING. Figure 3. Equivalent Input and Output Circuits Rev. B | Page 7 of 40 03374-032 DIGITAL OUTPUTS DIGITAL INPUTS AD9954 IOSYNC SDO CS SCLK SDIO DGND DVDD_I/O SYNC_IN SYNC_CLK OSK PS0 PS1 PIN CONFIGURATION AND FUNCTION DESCRIPTIONS 48 47 46 45 44 43 42 41 40 39 38 37 I/O UPDATE 1 DVDD 2 DGND 3 36 PIN 1 RESET 35 PWRDWNCTL 34 DVDD 33 DGND 32 AGND 31 COMP_IN 30 COMP_IN 8 29 AVDD 9 28 COMP_OUT CRYSTAL OUT 10 27 AVDD AVDD 4 AGND 5 AVDD 6 AGND 7 OSC/REFCLK OSC/REFCLK AD9954 TOP VIEW (Not to Scale) 26 AGND CLKMODESELECT 11 LOOP_FILTER 12 25 AVDD 03374-002 DAC_R SET DACBP AGND IOUT IOUT AVDD AVDD AGND AVDD AGND AVDD AGND 13 14 15 16 17 18 19 20 21 22 23 24 Figure 4. Pin Configuration Note that the exposed paddle on the bottom of the package forms an electrical connection for the DAC and must be attached to analog ground. Note that Pin 43, DVDD_I/O, can be powered to 1.8 V or 3.3 V. The DVDD pins (Pin 2 and Pin 34) must be powered to 1.8 V. Table 3. Pin Function Descriptions Pin No. 1 Mnemonic I/O UPDATE I/O I 2, 34 3, 33, 42 4, 6, 13, 16, 18, 19, 25, 27, 29 5, 7, 14, 15, 17, 22, 26, 32 8 DVDD DGND AVDD I I I Description The rising edge transfers the contents of the internal buffer memory to the I/O registers. See Synchronization—Register Updates (I/O UPDATE) section for details. Digital Power Supply Pins (1.8 V). Digital Power Ground Pins. Analog Power Supply Pins (1.8 V). AGND I Analog Power Ground Pins. OSC/REFCLK I 9 10 11 OSC/REFCLK CRYSTAL OUT CLKMODESELECT I O I 12 LOOP_FILTER I 20 21 23 24 IOUT IOUT DACBP DAC_RSET O O I I 28 30 COMP_OUT COMP_IN O I Oscillator Input/Complementary Reference Clock. When the REFCLK port is operated in single-ended mode, REFCLK should be decoupled to AVDD with a 0.1 μF capacitor. Oscillator Input/Reference Clock. See Table 5 for details on the OSC/REFCLK operation. Output of the Oscillator Section. Control Pin for the Oscillator Section (1.8 V logic only). See REFCLK Input section for detailed instructions. This pin provides the connection for the external zero compensation network of the REFCLK multiplier’s PLL loop filter. The network varies based on the multiplication value in the PLL loop. See Table 4 for details. Complementary DAC Output. Should be biased through a resistor to AVDD, not AGND. DAC Output. Should be biased through a resistor to AVDD, not AGND. DAC Band Gap Decoupling Pin. A 0.1 μF capacitor to AGND is recommended. A resistor (3.92 kΩ nominal) connected from AGND to DAC_RSET establishes the reference current for the DAC. See equation in DAC Output section. Comparator Output. Comparator Input. Rev. B | Page 8 of 40 AD9954 Pin No. 31 35 36 Mnemonic COMP_IN PWRDWNCTL RESET I/O I I I 37 IOSYNC I 38 39 40 41 43 44 SDO CS SCLK SDIO DVDD_I/O SYNC_IN O I I I/O I I 45 46 SYNC_CLK OSK O I 47, 48 PS0, PS1 I <49> AGND I Description Comparator Complementary Input. Input Pin Used as an External Power-Down Control (see Table 9 for details). Active High Hardware Reset Pin. Assertion of the RESET pin forces the AD9954 to the default state, as described in the right-hand column of Table 12, which is the I/O port register map. Asynchronous Active High Reset of the Serial Port Controller. When high, the current I/O operation is immediately terminated, enabling a new I/O operation to commence once IOSYNC is returned low. If unused, ground this pin; do not allow this pin to float. See Serial Interface Port Pin Description section for details. See Serial Interface Port Pin Description section for details. See Serial Interface Port Pin Description section for details. See Serial Interface Port Pin Description section for details. Digital Power Supply. This pin is for I/O cells only, 3.3 V. Input Signal Used to Synchronize Multiple AD9954s. This input is connected to the SYNC_CLK output of a master AD9954. Clock Output Pin that Serves as a Synchronizer for External Hardware. Input Pin Used to Control the Direction of the Shaped On-Off Keying Function When Programmed for Operation. OSK is synchronous to the SYNC_CLK pin. When OSK is disabled, this pin should be tied to DGND. Input Pins Used to Select One of the Internal Phase/Frequency Profiles. PS1 and PS0 are synchronous to the SYNC_CLK pin. Change on these pins triggers a transfer of the contents of the chosen internal buffer memory to the I/O registers (sends an internal I/O UPDATE). The Exposed Paddle on the Bottom of the Package. It is a ground connection for the DAC and must be attached to AGND in any board layout. Rev. B | Page 9 of 40 AD9954 TYPICAL PERFORMANCE CHARACTERISTICS MKR1 101MHz –70.68dB ATTEN 10dB REF 0dBm 0 PEAK LOG 10dB/ –10 –20 –20 –30 –30 MARKER 101MHz –70.68dB –50 –40 –60 W1 S2 S3 FC –70 AA –80 03374-016 1 –90 –100 CENTER 100MHz #RES BW 3kHz VBW 3kHz –90 SPAN 200MHz SWEEP 55.56 s (401 PTS) CENTER 100MHz #RES BW 3kHz REF 0dBm 0 PEAK LOG 10dB/ –10 –20 –20 –30 –30 MARKER 90MHz –69.12dB –40 –50 –40 03374-017 –90 –100 VBW 3kHz ATTEN 10dB CENTER 100MHz #RES BW 3kHz VBW 3kHz SPAN 200MHz SWEEP 55.56 s (401 PTS) Figure 9 fOUT = 120 MHz, fCLK = 400 MSPS, WBSFDR MKR1 80MHz –68.44dB REF 0dBm 0 PEAK LOG 10dB/ –10 1R ATTEN 10dB MKR1 80MHz –53.17dB 1R –20 –30 –50 1 –90 SPAN 200MHz SWEEP 55.56 s (401 PTS) –20 –40 1R –100 Figure 6. fOUT = 10 MHz, fCLK = 400 MSPS, WBSFDR REF 0dBm 0 PEAK LOG 10dB/ –10 MKR1 160MHz –56.2dB ATTEN 10dB –60 W1 S2 S3 FC –70 AA –80 1 CENTER 100MHz #RES BW 3kHz SPAN 200MHz SWEEP 55.56 s (401 PTS) MARKER 160MHz –56.2dB –50 –60 W1 S2 S3 FC –70 AA –80 VBW 3kHz Figure 8. fOUT = 80 MHz, fCLK = 400 MSPS, WBSFDR MKR1 90MHz –69.12dB ATTEN 10dB 1 –100 Figure 5. fOUT = 1 MHz, fCLK = 400 MSPS, WBSFDR REF 0dBm 0 PEAK 1R LOG 10dB/ –10 MARKER 160MHz –61.55dB –50 –60 W1 S2 S3 FC –70 AA –80 1R 03374-019 –40 MKR1 160MHz –61.55dB ATTEN 10dB 03374-020 REF 0dBm 0 PEAK 1R LOG 10dB/ –10 –30 MARKER 80MHz –68.44dB –40 –50 MARKER 80MHz –53.17dB 1 –60 –60 W1 S2 S3 FC –70 AA –80 03374-018 1 –90 –100 CENTER 100MHz #RES BW 3kHz VBW 3kHz SPAN 200MHz SWEEP 55.56 s (401 PTS) Figure 7. fOUT = 40 MHz, fCLK = 400 MSPS, WBSFDR 03374-021 W1 S2 S3 FC –70 AA –80 –90 –100 CENTER 100MHz #RES BW 3kHz VBW 3kHz SPAN 200MHz SWEEP 55.56 s (401 PTS) Figure 10. fOUT = 160 MHz, fCLK = 400 MSPS, WBSFDR Rev. B | Page 10 of 40 AD9954 REF –4dBm 0 PEAK LOG 10dB/ –10 ATTEN 10dB 1 MKR1 1.105MHz –5.679dBm REF –4dBm 0 PEAK LOG 10dB/ –10 –20 –20 –30 –30 –40 –40 MARKER 1.105000MHz –5.679dBm –50 –50 CENTER 1.105MHz #RES BW 30Hz VBW 30Hz SPAN 2MHz SWEEP 199.2 s (401 PTS) REF 0dBm 0 PEAK LOG 10dB/ –10 CENTER 80.25MHz #RES BW 30Hz Figure 14. fOUT = 80.3 MHz, fCLK = 400 MSPS, NBSFDR, ±1 MHz MKR1 10MHz –93.01dB ATTEN 10dB –90 ST –100 SPAN 2MHz SWEEP 199.2 s (401 PTS) Figure 11. fOUT = 1.1 MHz, fCLK = 400 MSPS, NBSFDR, ±1 MHz REF –4dBm 0 PEAK LOG 10dB/ –10 1R –20 –20 –30 –30 –40 –40 MARKER 10MHz –93.01dB –50 –50 ATTEN 10dB 1 MKR1 120.205MHz –6.825dBm MARKER 120.205000MHz –6.825dBm –60 W1 S2 S3 FC –70 AA –80 –90 03374-023 W1 S2 S3 FC –70 AA –80 1 –100 CENTER 10MHz #RES BW 30Hz VBW 30Hz ATTEN 10dB 1 –90 ST –100 SPAN 2MHz SWEEP 199.2 s (401 PTS) CENTER 120.2MHz #RES BW 30Hz Figure 12. fOUT = 9.5 MHz, fCLK = 400 MSPS, NBSFDR, ±1 MHz REF 0dBm 0 PEAK LOG 10dB/ –10 03374-026 –60 VBW 30Hz SPAN 2MHz SWEEP 199.2 s (401 PTS) Figure 15. fOUT = 120.2 MHz, fCLK = 400 MSPS, NBSFDR, ±1 MHz MKR1 39.905MHz –5.347dBm REF –4dBm 0 PEAK LOG 10dB/ –10 –20 ATTEN 10dB 1 MKR1 600kHz –0.911dB –20 –30 –30 –40 MARKER 39.905000MHz –5.347dBm CENTER 160.5000000MHz –50 –60 W1 S2 S3 FC –70 AA –80 03374-024 –60 W1 S2 S3 FC –70 AA –80 –90 –100 CENTER 39.9MHz #RES BW 30Hz VBW 30Hz SPAN 2MHz SWEEP 199.2 s (401 PTS) Figure 13. fOUT = 39.9 MHz, fCLK = 400 MSPS, NBSFDR, ±1 MHz 03374-027 –50 VBW 30Hz MARKER 80.301000MHz –6.318dBm 03374-025 –90 ST –100 –40 MKR1 80.301MHz –6.318dBm –60 W1 S2 S3 FC –70 AA –80 03374-022 –60 W1 S2 S3 FC –70 AA –80 1 ATTEN 10dB –90 ST –100 CENTER 160.5MHz #RES BW 30Hz VBW 30Hz SPAN 2MHz SWEEP 199.2 s (401 PTS) Figure 16. fOUT = 160 MHz, fCLK = 400 MSPS, NBSFDR, ±1 MHz Rev. B | Page 11 of 40 AD9954 –20 –30 –40 –50 –60 –70 –80 –90 –100 –110 R1 R2 100 1k 10k f (Hz) 100k 1M 10M –20 –30 –40 –50 –60 –70 –80 –90 –100 –110 03374-029 L(f) (dBc/Hz) 0 –10 100 1k 10k 100k REF2 200mV 500ns M 500PS 20.0GS/S IT 10.0PS/PT –100PS A CH1 708mV Figure 19. Comparator Rise and Fall Time at 160 MHz Figure 17. Residual Phase Noise with fOUT = 159.5 MHz, fCLK = 400 MSPS; PLL Bypassed (Green), PLL Set to 4× (Red), and PLL Set to 20× (Blue) –120 –130 –140 –150 –160 –170 10 03374-030 –120 –130 –140 –150 –160 –170 10 FALL (R1) = 396.4PS RISE(R2) = 464.3PS 03374-028 L(f) (dBc/Hz) 0 –10 1M f (Hz) Figure 18. Residual Phase Noise with fOUT = 9.5 MHz, fCLK = 400 MSPS; PLL Bypassed (Green), PLL Set to 4× (Red), and PLL Set to 20× (Blue) Rev. B | Page 12 of 40 AD9954 THEORY OF OPERATION COMPONENT BLOCKS REFCLK Input The AD9954 supports several methods for generating the internal system clock. An on-chip oscillator circuit is available for initiating the low frequency reference signal by connecting a crystal to the clock input pins. The system clock can be generated using an internal, PLL-based reference clock multiplier, allowing the part to operate with a low frequency clock source while still providing a high sample rate for the DDS and DAC. For best phase noise performance, a clean, stable clock with a high slew rate should be used to drive the REFCLK pin and bypass the multiplier. The available modes are configured using the CLKMODESELECT pin, CFR1<4> and CFR2<7:3>. Note that the CLKMODESELECT pin is a 1.8 V logic only and does not apply to 3.3 V logic. Pulling CLKMODESELECT high enables the on-chip crystal oscillator circuit. With the on-chip oscillator enabled, users of the AD9954 connect an external crystal to the REFCLK and REFCLK inputs to produce a low frequency reference clock (see Table 1 for the crystal frequency range supported). The signal generated by the oscillator is buffered, and then delivered to the rest of the chip. This buffered signal is provided on the CRYSTAL OUT pin. When the internal oscillator is disabled, an external oscillator must provide the REFCLK and/or REFCLK signals. For differential operation, these pins are driven with complementary signals. For single-ended operation, a 0.1 μF capacitor should be connected between the unused pin and the analog power supply. With the capacitor in place, the clock input pin bias voltage is 1.35 V. Table 5 summarizes the clock modes of operation. Note the PLL multiplier is controlled via the CFR2<7:3> bits, independent of the CFR1<4> bit. Clock Multiplier An on-board PLL allows multiplication of the REFCLK frequency. The multiplication factor is set using CFR2<7:3>. When programmed for values ranging from 0x04 to 0x14 (decimal 4 to 20), the PLL multiplies the REFCLK input frequency by the programmed value. The user must consider the specified maximum frequency for the PLL when programming. If the multiplication factor is changed, the user must allocate time to allow the PLL to lock (approximately 1 ms). The PLL is bypassed by programming a value outside the range of 4 to 20 (decimal). When bypassed, the PLL is shut down to conserve power. The VCO in the PLL has a selectable frequency range. Use the VCO range bit (CFR2<2>) to set the appropriate range. The PLL in the clock multiplier has a loop filter comprised of on-chip components as well as external components. Recommended values for the external resistor/capacitor are provided in Table 4. Table 4. External Loop Filter Components for Clock Multiplier Multiply Value 4× 10× 20× Resistor Value 0Ω 1 kΩ 243 Ω Capacitor Value (μF) 0.1 0.1 0.01 DAC Output Unlike many DACs, the DAC output on the AD9954 is referenced to AVDD, not AGND. Two complementary outputs provide a combined full-scale output current (IOUT). Differential outputs reduce the amount of common-mode noise that may be present at the DAC output, resulting in a better signal-to-noise ratio. The full-scale current is controlled by means of an external resistor (RSET) connected between the DAC_RSET pin and the DAC ground pin (Pin 49, the exposed paddle). The full-scale current is proportional to the resistor value by the equation RSET 39.19/I OUT Ω The maximum full-scale output current of the combined DAC outputs is 15 mA. Limiting the output to 10 mA maximum provides the best spurious-free dynamic range (SFDR) performance. The DAC output compliance range is AVDD + 0.5 V to AVDD − 0.5 V. Voltages developed beyond this range result in excessive DAC distortion and could potentially damage the DAC output circuitry. Proper attention should be paid to the load termination to keep the output voltage within this compliance range. Table 5. Clock Input Modes of Operation CFR1<4> Low Low Low Low High CLKMODESELECT High High Low Low X CFR2<7:3> 4 ≤ M ≤ 20 M < 4 or M > 20 4 ≤ M ≤ 20 M < 4 or M > 20 X Oscillator Enabled? Yes Yes No No No Rev. B | Page 13 of 40 System Clock fCLK = fOSC × M fCLK = fOSC fCLK = fOSC × M fCLK = fOSC fCLK = 0 Frequency Range (MHz) 80 < fCLK < 400 20 < fCLK < 30 80 < fCLK < 400 10 < fCLK < 400 N/A AD9954 Comparator Frequency Tuning Word Mux Some applications (for example, clocking) prefer a square-wave signal rather than a sine wave. In support of such applications, the AD9954 includes an on-chip comparator. The comparator has a bandwidth greater than 200 MHz and a common-mode input range of 1.3 V to 1.8 V. The comparator can be turned off to reduce power consumption using the comparator powerdown bit, CFR1<6>. As shown in Figure 2, there are three sources for the FTW that are fed to the DDS core as the seed value for the phase accumulator: a frequency accumulator, the static RAM, and the registers of the control logic. Frequency Accumulator This block is used for linear sweep mode; transitioning from the start frequency (F0) to the terminal frequency (F1) is not instantaneous but instead is implemented in a swept or ramped fashion. This frequency ramping is accomplished by stepping through intermediate frequencies between F0 and F1. The linear sweep block uses the falling and rising delta frequency tuning words, the falling and rising delta frequency ramp rates, and the frequency accumulator. The Linear Sweep Enable Bit CFR1<21> enables the linear sweep block. The linear sweep no dwell bit establishes the action to be performed upon reaching the terminal frequency in a sweep. See the Modes of Operation section for more details. DDS Core The output frequency (fO) of the DDS is a function of the frequency of system clock (SYSCLK), the value of the frequency tuning word (FTW), and the capacity of the phase accumulator (232, in this case). The exact relationship is given below with fs defined as the frequency of SYSCLK. fO = (FTW)(fS)/232 with 0 ≤ FTW ≤ 231 fO = fS × (1 − (FTW/232)) with 231 < FTW < 232 − 1 Each system clock cycle, the FTW is added to the value previously held in the phase accumulator. The value at the output of the phase accumulator is then summed with a userdefined, 14-bit phase offset value (POW). The most significant 19 bits of that summation are then translated to an amplitude value via the cos(x) functional block. Truncation of the LSBs is implemented to reduce the power consumption of the DDS core. This truncation does not reduce frequency resolution. In certain applications, it is desirable to have the ability to force the output signal to zero phase. Simply setting the FTW to 0 does not accomplish this; it only stalls the core at its current phase value. A control bit is provided to force the phase accumulator output to zero. At power-up, the clear phase accumulator bit is set to Logic 1, but the buffer memory for this bit is cleared (Logic 0). Therefore, upon power-up, the phase accumulator remains clear until the first I/O UPDATE is issued. I/O UPDATE transfers data from the input buffers to the active control registers. See the Functionality of the SYNC_CLK and I/O UPDATE section for more details. For applications where a static output frequency or more than four predefined output frequencies need to be switched between, in some variable or undefined order, the primary method of setting the FTW is by programming the desired value into the FTW0 register. For applications where up to four specific sets of FTWs, or predefined series of FTWs are needed, the on-board RAM can be programmed with the desired FTWs, and the profile pins can be used to toggle between those sets/series. For applications where a steady sweeping of frequency is desired, a second frequency accumulator is provided. The seed value and minimum/maximum numbers for the frequency accumulator are user programmable, although certain rules must be followed to avoid overflowing that accumulator. Phase Offset Word Mux As shown in Figure 2, there are two sources for the POW that are fed to the DDS core as an adder to the output of the phase accumulator: the static RAM and the registers of the control logic. Using this feature enables synchronization of the DDS output to other system signals as well as phase modulation. For applications where a static output phase or more than four predefined output phases need to be switched between, in some variable or undefined order, the primary method of setting the POW is by programming the desired value into the POW0 register. For applications where up to four specific sets of POWs, or predefined series of POWs are needed, the on-board RAM can be programmed with the desired POWs, and the profile pins can be used to toggle between those sets/series. The phase offset formula is POW 14 360 2 A digital delay block exists in the phase offset programming path to ensure matched latency with changes to the frequency tuning word. This enables users to easily program the device to change from one combined phase/frequency combination to another smoothly and seamlessly. Continuous and Clear-and-Release Frequency and Phase Accumulator Clear Functions The AD9954 allows for a continuous zeroing of the frequency sweep logic and the phase accumulator as well as a clear and release or automatic zeroing function. The auto clear bits are CFR1<14:13>. The continuous clear bits are CFR1<11:10>. Rev. B | Page 14 of 40 AD9954 Clear-and-Release Function When set for auto clearing, the corresponding accumulator is cleared and then begins to accumulate again upon receipt of an I/O update or change on one of the profile pins. This is repeated for every subsequent I/O update or change on one of the profile pins until the appropriate autoclear control bit is cleared. It is perfectly valid to have one accumulator set to autoclearing and the other set to continuous clear. Amplitude Control Options Shaped On-Off Keying The shaped on-off keying function is enabled/disabled using the OSK enable bit (CFR1<25>). This function allows the user to control the ramp-up and ramp-down time when turning the DAC on or off. This function is primarily used in burst transmissions of digital data to reduce the adverse spectral impact of short, abrupt bursts of data. Both auto and manual shaped on-off keying modes are supported. CFR1<24> is used to select between auto and manual on-off keying modes. Figure 20 shows the block diagram of the OSK circuitry. Note that the maximum amplitude allowed is limited by the contents of the amplitude scale factor register, allowing the user to ramp to a value less than full scale. Table 6. Autoscale Factor Internal Step Size ASF<15:14> (Binary) 00 01 10 11 Increment/Decrement Size 1 2 4 8 OSK Ramp Rate Timer The OSK ramp rate timer is a loadable down counter, which generates the clock signal to the 14-bit counter that generates the internal scale factor. The ramp rate timer is loaded with the value of the autoscale factor register (ASFR) every time the counter reaches 1 (decimal). This load and countdown operation continues for as long as the timer is enabled, unless the timer is forced to load before reaching a count of 1. If the load ARR control bit (CFR1<26>) is set, the ramp rate timer is loaded upon an I/O update, upon a change in profile input, or upon reaching a value of 1. The ramp timer can be loaded before reaching a count of 1 by three methods. Autoshaped On-Off Keying Mode Operation When autoshaped on-off keying mode is enabled, a single-scale factor is internally generated and applied to the multiplier input for scaling the output of the DDS core block (see Figure 20). The scale factor is the output of a 14-bit counter that increments/ decrements at a rate determined by the contents of the 8-bit output ramp rate register. The scale factor increments if the OSK pin is high and decrements if the OSK pin is low. The scale factor is an unsigned value; all 0s multiply the DDS core output by 0 (decimal), and 0x3FFF multiplies the DDS core output by 16,383 (decimal). The first method is by toggling the OSK pin or sending a rising edge to the I/O UPDATE pin (or changing the state of a profile pin). For this method, the ASFR value is loaded into the ramp rate timer, which then proceeds to count down as normal. The second method is if the load ARR control bit (CFR1<26>) is set and an I/O update (or change in profile) is issued. The last method is by setting the sweep enable bit. This switches from inactive autoshaped on-off keying mode to the active autoshaped on-off keying mode. Table 6 details the increment/decrement step size of the internally generated scale factor per the ASF<15:14> bits. DDS CORE 0 TO DAC 1 COS(X) AUTO OSK ENABLE CFR1<24> OSK ENABLE CFR<25> SYNC_CLK 1 OSK PIN AMPLITUDE RAMP RATE REGISTER (ASF) 0 0 1 AMPLITUDE SCALE FACTOR REGISTER (ASF) OUT LOAD OSK TIMER CFR1<26> HOLD UP/DN LOAD INC/DEC ENABLE DATA EN CLOCK AUTOSCALE FACTOR GENERATOR RAMP RATE TIMER Figure 20. On-Off Shaped Keying, Block Diagram Rev. B | Page 15 of 40 03374-005 0 AD9954 In single-tone mode, the DDS core uses a static tuning word. Whatever value is stored in FTW0 is supplied to the phase accumulator. This value can only be changed manually by writing a new value to FTW0 and then by issuing an I/O update. Phase adjustments are made using the phase offset register. To perform 4-tone shift keying, the user programs each RAM segment control word for direct switch mode and a unique beginning address value. Program the RAM enable and RAM destination bits (CFR1<31:30>) to enable the RAM and direct the RAM output to be the FTW (FSK) or the POW (PSK). The PS1 and PS0 inputs are the 4-tone FSK/PSK data inputs. When the profile is changed, the data stored at the new profile is loaded into either the phase accumulator (FSK) or the phase offset adder (PSK). When set for PSK, Bits<17:0> of the RAM output are unused when the RAM destination bit is set. Twotone shift keying only uses one profile pin. RAM-Controlled Modes of Operation Ramp-Up Mode Three important points apply to the RAM-controlled modes: Ramp-up mode, in conjunction with the segmented RAM capability, allows up to four different sweep profiles to be programmed into the AD9954. The AD9954 is programmed for ramp-up mode by enabling the RAM using the RAM enable bit (CFR1<31>) and programming the RAM mode control bits of each profile to be used to 001(b). Manual Shaped On-Off Keying Mode Operation When configured for manual shaped on-off keying, the content of the ASFR sets the scale factor for the data path. MODES OF OPERATION Single-Tone Mode The user must ensure that the beginning address is lower than the final address. Changing profiles or issuing an I/O update automatically terminates the current sweep and starts the next sweep, unless otherwise stated. Setting the RAM destination bit true such that the RAM output drives the phase offset adder is valid. While the sections that follow describe frequency sweeps, phase sweep operation is also available. The RAM destination bit (CFR1<30>) controls whether the RAM output drives the phase accumulator (frequency) or the phase offset adder (phase). The AD9954 offers five modes of RAM-controlled operation (see Table 7). Table 7. RAM Modes of Operation RSCW<7:5> (Binary) 000 Mode Direct Switch 001 Ramp Up 010 Bidirectional Ramp 011 100 101, 110, 111 Continuous Bidirectional Ramp Continuous Recirculation Invalid mode Notes No sweeping, profiles valid, no dwell ignored Sweeping, profiles valid, no-dwell valid Sweeping, PS0 is a direction control pin, no-dwell ignored Sweeping, profiles valid, no-dwell ignored Sweeping, profiles valid, no-dwell ignored Default to direct switch Direct Switch Mode Direct switch mode enables frequency shift keying (FSK) or phase shift keying (PSK) modulation. The AD9954 is programmed for direct switch using the RAM enable bit (CFR1<31>) and programming the RAM segment mode control bits of each desired profile to 000(b). This mode simply reads the RAM contents at the RAM segment beginning address for the current profile. No address ramping occurs in this mode. When a sweep is initiated (via an I/O update or change in profile bits), the RAM address generator loads the RAM segment beginning address bits of the current RSCW, driving the RAM output from this address, and the ramp rate timer loads the RAM segment address ramp rate bits. When the ramp rate timer finishes a cycle, the RAM address generator increments to the next address, the timer reloads the ramp rate bits and begins a new countdown cycle. This sequence continues until the RAM address generator has incremented to an address equal to the RAM segment final address bits of the current RSCW. At this point, the next state is dependent upon whether no-dwell mode is active. See the no-dwell bit (CFR1<2>) in the register maps (see Table 12 and Table 13). In this mode, asymmetrical FSK modulation can be implemented by configuring the RAM for two segments, and using the PS0 pin as the data input. Bidirectional Ramp Mode Bidirectional ramp mode allows the AD9954 to offer a symmetrical sweep between two frequencies using the PS0 signal as the control input. The AD9954 is programmed for bidirectional ramp mode using the RAM enable bit (CFR1<31>) and programming the RAM segment mode control bits of each desired profile to 010(b). PS1 input is ignored; the PS0 input is the ramp direction indicator. The memory is not segmented, using only one beginning and one final address. The address registers for controlling RAM are located in the RAM segment control word (RSCW) associated with Profile 0. Rev. B | Page 16 of 40 AD9954 Upon entering this mode (via an I/O update or changing the PS0 pin), the RAM address generator loads the RAM segment beginning address bits of RSCW0 and the ramp rate timer loads the RAM segment address ramp rate bits. The RAM drives data from the beginning address, and the ramp rate timer begins counting down to 1. When the timer reaches zero, the RAM address is incremented if PS0 is high and decrements if PS0 is low. Toggling the PS0 pin does not cause the device to generate an internal I/O update; transfers of data from the I/O buffers to the internal registers are only initiated by a rising edge on the I/O UPDATE pin. RAM address control is now a function of the PS0 input. When polarity of the PS0 bit is changed, the RAM address generator increments/decrements to the next address and the ramp rate timer is reloaded. As in the ramp-up mode, this sequence continues until the RAM address generator has incremented/ decremented to an address equal to the final/beginning address as long as the PS0 input remains high/low. Once the final/ beginning address is reached, the sweep stalls until the polarity on PS0 is changed. All data in the RAM segment control words associated with Profile 1, Profile 2, and Profile 3 are ignored. Only the information in the RAM segment control word for Profile 0 is used to control the RAM. Continuous Bidirectional Ramp Mode Continuous bidirectional ramp mode allows the AD9954 to offer an automatic, symmetrical sweep between two frequencies. The AD9954 is programmed for continuous bidirectional ramp mode using the RAM enable bit (CFR1<31>) and programming the RAM segment mode control bits of each desired profile to 011(b). In general, this mode is identical in control to the bidirectional ramp mode, except the ramp up and down is automatic (no external control via the PS0 input), and switching profiles are valid. This mode enables generation of an automatic saw tooth sweep characteristic. Upon entering this mode (via an I/O update or changing the PS1 or PS0 pins), the RAM address generator loads the RAM segment beginning address bits of the current RSCW and the ramp rate timer loads the RAM segment address ramp rate bits. The RAM drives data from the beginning address, and the ramp rate timer begins counting down to 1. When the ramp rate timer completes the countdown, the RAM address generator increments to the next address, and the timer reloads the ramp rate bits and continues counting down. This continues until the RAM address generator has incremented to an address equal to the RAM segment final address bits of the current RSCW. Upon reaching this final address, the RAM address generator begins decrementing each time the ramp rate timer completes a countdown cycle until it reaches the RAM segment beginning address. Upon reaching the beginning address, the entire sequence repeats until a new mode is selected. Continuous Recirculation Mode Continuous recirculation mode allows the AD9954 to offer an automatic, continuous unidirectional sweep between two frequencies. The AD9954 is programmed for continuous recirculation mode using the RAM enable bit (CFR1<31>) and programming the RAM segment mode control bits of each desired profile to 100(b). Upon entering this mode (via an I/O update or changing Pin PS1 or Pin PS0), the RAM address generator loads the RAM segment beginning address bits of the current RSCW and the ramp rate timer loads the RAM segment address ramp rate bits. The RAM drives data from the beginning address, and the ramp rate timer begins to count down to 1. When the ramp rate timer completes a cycle, the RAM address generator increments to the next address, and the timer reloads the ramp rate bits and continues counting down. This sequence continues until the RAM address generator has incremented to an address equal to the RAM segment final address bits of the current RSCW. Upon reaching this terminal address, the RAM address generator reloads the RAM segment beginning address bits and the sequence repeats until a new mode is selected. Internal Profile Control The AD9954 offers a mode in which a composite frequency sweep can be built with software-programmable timing control. Internal profile control capability disengages the PS1 pin and the PS0 pin and enables the AD9954 to take control of switching between profiles. Modes are defined that allow continuous or single-burst profile switches for three combinations of profile selection bits (see Table 8). Internal profile control mode is engaged using Bits CFR1<29:27> per Table 8. Internal profile control is only valid when the device is operating in RAM mode. There is no internal profile control for linear sweeping operations. When the internal profile control mode is engaged, the RAM segment mode control bits are ignored; the device operates all profiles in ramp-up mode. Switching between profiles occurs when the RAM address generator has exhausted the memory contents for the current profile. Rev. B | Page 17 of 40 AD9954 Table 8. Internal Profile Control CFR1<29:27> (Binary) 000 001 010 011 100 101 110 111 Mode Description Internal control inactive Internal control active, single-burst, activate Profile 0, then Profile 1, then stop Internal control active, single-burst, activate Profile 0, then Profile 1, then Profile 2, then stop Internal control active, single-burst, activate Profile 0, then Profile 1, then Profile 2, then Profile 3, then stop Internal control active, continuous, activate Profile 0, then Profile 1, then Loop Starting 0 Internal control active, continuous, activate Profile 0, then Profile 1, then Profile 2, then Loop Starting 0 Internal control active, continuous, activate Profile 0, then Profile 1, then Profile 2, then Profile 3, and then Loop Starting 0 Invalid A single-burst mode is one in which the composite sweep is executed once. For example, assume the device is programmed for ramp-up mode and the CFR1<29:27> bits are written to Logic 010(b). Upon receiving an I/O update, the internal control logic signals the device to begin executing the ramp-up mode sequence for Profile 0. Upon reaching the RAM segment final address value for Profile 0, the device jumps to the beginning address of Profile 1 and begins executing that ramp-up sequence. Upon reaching the RAM segment final address value for Profile 1, the device jumps to the beginning address of Profile 2 and begins executing that ramp-up sequence. When the RAM segment final address value for Profile 2 is reached, the sequence is over and the composite sweep has completed. Issuing another I/O update restarts the burst process. A continuous internal profile control mode is one in which the composite sweep is continuously executed for as long as the device is programmed into that mode. Using the previous example, except programming the CFR1<29:27> bits to Logic 101(b), the operation would be identical until the RAM segment final address value for Profile 2 is reached. At this point, instead of stopping the sequence, the device jumps back to the beginning address of Profile 0 and continues sweeping. ramps from FTW0 to FTW1 and the RSRR register is loaded into the sweep rate timer. When the timer counts down to one, the frequency accumulator cycles once, increasing by the seed value. This accumulation of the RDFTW at the rate given by the ramp rate (RSRR) continues until the output of the frequency adder is equal to the FTW1 register value, or PS0 is pulled low. When PS0 is low, the 32-bit falling delta frequency tuning word (FDFTW) is the seed value for the frequency accumulator, it ramps down from FTW1 to FTW0 and the FSRR register is loaded into the sweep rate timer. When the timer counts down to one, the frequency accumulator cycles once, decreasing by the seed value. This accumulation of the FDFTW at the rate given by the ramp rate (FSRR) continues until the output of the frequency adder is equal to the FTW0 register value, or PS0 is pulled high. Pin PS0 controls the direction of the sweep, rising to FTW1 or falling to FTW0. Upon reaching the destination frequency, the AD9954 linear sweep function either holds at the destination frequency until the state on PS0 is changed or immediately returns to the initial frequency, FTW0, depending on the state of the Linear Sweep No-Dwell Bit CFR1<02>. While operating in linear sweep mode, toggling PS0 does not cause the device to generate an internal I/O update. When PS0 is acting as the sweep direction indicator, any transfer of data from the I/O buffers to the internal registers can only be initiated by a rising edge on the I/O UPDATE pin. The linear sweep function of the AD9954 requires the lowest frequency to be loaded into the FTW0 register and the highest frequency into the FTW1 register. For piece-wise, nonlinear frequency transitions, it is necessary to reprogram the registers while the frequency transition is in process. After a reset, the device is initially in single-tone mode. The programming steps to operate in linear sweep mode are: 0) 1) 2) 3) Linear Sweep Mode The AD9954 is placed in linear sweep mode using the Linear Sweep Enable Bit CR1<21>. PS1 must be tied low. When in linear sweep mode, the AD9954 output frequency ramps up from a starting frequency, programmed by FTW0 to a finishing frequency FTW1, or down from FTW1 to FTW0. The delta frequency tuning words and the ramp rate word determine the rate of this ramping. The Linear Sweep No-Dwell Bit CFR1<2> controls the behavior of the device upon reaching the final frequency. When PS0 is high, the 32-bit rising delta frequency tuning word (RDFTW) is the seed value for the frequency accumulator, it 4) 5) PS1:0 = 00. Set the linear sweep enable bit (CFR1<21>) and set or clear the linear sweep no-dwell bit (CFR1<2>) as desired. Program the rising and falling delta frequency tuning words and ramp rate values. Program the lower and higher output frequencies into the FTW0 and FTW1 registers, respectively. Apply an I/O update to move this data into the registers (the instantaneous output frequency is FTW0). Change the PS0 input as desired to sweep between the lower to higher frequency and back. Figure 21 depicts a typical frequency ramping operation. The device initially powers up in single-tone mode. The profile inputs are low, setting FTW0 as the seed value for the phase accumulator. The user then writes to the linear sweep enable bit, the rising and falling delta frequency tuning words, and ramp rates via the serial port (Point A in Figure 21. In this example, the linear sweep no-dwell bit is cleared (CFR1<2>). Rev. B | Page 18 of 40 AD9954 fOUT B FTW1 A FTW0 TIME SINGLE-TONE MODE LINEAR SWEEP MODE PS<0> = 1 PS<0> = 0 03374-003 PS<0> = 0 AT POINT A: LOAD RISING RAMP RATE REGISTER, APPLY RISING DFTW. AT POINT B: LOAD FALLING RAMP RATE REGISTER, APPLY FALLING DFTW. Figure 21. Linear Sweep Frequency Plan fOUT B FTW1 A FTW0 B B A A TIME PS<0> = 0 PS<0> = 1 PS<0> = 0 PS<0> = 1 PS<0> = 0 PS<0> = 1 LINEAR SWEEP MODE ENABLE–NO DWELL BIT SET 03374-004 SINGLE-TONE MODE Figure 22. Linear Sweep Using No-Dwell Frequency Plan Linear Sweep No-Dwell Feature Resetting the Ramp Rate Timer See CFR1<2> in the register maps (see Table 12 and Table 13) for general details of the no-dwell mode. Figure 22 depicts the linear sweep mode operation when the linear sweep no-dwell bit is set. The Label A points indicate where a rising edge on PS0 is detected; the Label B points indicate where the AD9954 has determined fOUT has reached the terminal frequency and automatically returns to the starting frequency. Note that in this mode, only sweeps from FTW0 to FTW1 using the positive linear sweep control word are supported. Toggling PS0 from 1 to 0 neither initiates a falling sweep when the no-dwell bit is set, nor interrupts a positive sweep already underway. The ramp timer can be reset before reaching a count of 1 by three methods. Method one is by changing the PS0 input pin. When the PS0 input pin toggles from 0 to 1, the RSRRW value is loaded into the ramp rate timer, which then proceeds to countdown as normal. When the PS0 input pin toggles from 0 to 1, the falling sweep ramp rate word (FSRRW) value is loaded into the ramp rate timer, which then proceeds to countdown as normal. The second method uses the LOAD SRR @ I/O UD bit (CFR1<15>), see Table 12 for details. Rev. B | Page 19 of 40 AD9954 The last method in which the sweep ramp rate timer can be reset is changing from inactive linear sweep mode to active linear sweep mode using the linear sweep enable bit (CFR1<21>). For methods two and three, the ramp rate timer loads a value determined by the state of PS0 (0 = FSRRW, 1 = RSRRW). Power-Down Functions of the AD9954 The AD9954 supports an externally controlled (or hardware) power-down feature as well as software-programmable powerdown bits capable of individually powering down specific unused circuit blocks. Software-controlled power-down enables individual powering down of the DAC, comparator, PLL, input clock circuitry, and the digital logic (CFR1<7:4>). With the exception of CFR1<6>, these bits are superseded when the externally controlled powerdown pin (PWRDWNCTL) is high. External power-down control is supported on the AD9954 via the PWRDWNCTL input pin. When the PWRDWNCTL input pin is high, the AD9954 enters a power-down mode based on the CFR1<3> bit. When the PWRDWNCTL input pin is low, it operates normally. See CFR1<3> in Table 12 for details. Table 9 details the logic level for each power-down bit that drives out of the AD9954 core logic to the analog section and the digital clock generation section of the chip for the external power-down operation. Table 9. Power-Down Control Functions Control PWRDWNCTL = 0, CFR1<3> don’t care Mode Active Software control PWRDWNCTL = 1, CFR1<3> = 0 External control, fast recovery power-down mode PWRDWNCTL = 1, CFR1<3> = 1 External control, full power-down mode Rev. B | Page 20 of 40 Description Digital power-down = CFR1<7> Comparator power-down = CFR1<6> DAC power-down = CFR1<5> Clock input power-down = CFR1<4> Digital power-down = 1’b1 Comparator power-down = 1’b0 or CFR1<6> DAC power-down = 1’b0 Clock input power-down = 1’b0 Digital power-down = 1’b1 Comparator power-down = 1’b1 DAC power-down = 1’b1 Clock input power-down = 1’b1 AD9954 The I/O update signal coupled with SYNC_CLK is used to transfer internal buffer contents into the control registers. The combination of the SYNC_CLK pin and the I/O UPDATE pin provides the user with constant latency relative to SYSCLK and ensures phase continuity of the analog output signal when a new tuning word or phase offset value is asserted. SYNCHRONIZATION—REGISTER UPDATES (I/O UPDATE) Functionality of the SYNC_CLK and I/O UPDATE Data into the AD9954 is synchronous to the SYNC_CLK signal (supplied externally to the user on the SYNC_CLK pin). The I/O UPDATE pin is sampled on the rising edge of the SYNC_CLK. Figure 23 and Figure 24 demonstrate an I/O update timing cycle and synchronization. Internally, SYSCLK is fed to a divide-by-four frequency divider to produce the SYNC_CLK signal. The SYNC_CLK signal is made available to the system on the SYNC_CLK pin. This enables synchronization of external hardware with the device’s internal clocks. This is accomplished by providing the SYNC_CLK signal as an output that external hardware can then use to synchronize against. Synchronization logic notes include the following: The I/O update signal is edge detected to generate a singlecycle clock signal that drives the register bank flops. The I/O update signal has no constraints on duty cycle. The minimum low time on I/O update is one SYNC_CLK clock cycle. The I/O UPDATE pin is set up and held around the rising edge of SYNC_CLK. Setup and hold time specifications can be found in Table 2. SYNC_CLK DISABLE 1 0 SYSCLK 0 ÷4 OSK PS<1:0> D I/O UPDATE D Q D Q Q EDGE DETECTION LOGIC TO CORE LOGIC REGISTER MEMORY SCLK SDIO CS I/O BUFFER LATCHES 03374-006 SYNC_CLK GATING Figure 23. I/O Synchronization Block Diagram SYSCLK A B SYNC_CLK I/O UPDATE DATA IN I/O BUFFERS N N–1 N N+1 THE DEVICE REGISTERS AN I/O UPDATE AT POINT A. THE DATA IS TRANSFERRED FROM THE ASYNCHRONOUSLY LOADED I/O BUFFERS AT POINT B. Figure 24. I/O Synchronization Timing Diagram Rev. B | Page 21 of 40 N+1 N+2 03374-007 DATA IN REGISTERS AD9954 Synchronizing Multiple AD9954s RAM There are three modes of synchronization available to the user: an automatic synchronization mode, a software-controlled manual synchronization mode, and a hardware-controlled manual synchronization mode. The following requirements apply to all modes. First, all units must share a common clock source. Trace lengths and path impedance of the clock tree must be designed to keep the phase delay of the different clock branches as closely matched as possible. Second, the I/O update signal’s rising edge must be provided synchronously to all devices being synchronized. Finally, the DVDD_I/O supply should be set to 3.3 V for all devices that are to be synchronized. AVDD and DVDD should be left at 1.8 V. The AD9954 incorporates a block of SRAM. The RAM is a bidirectional single port. Read and write operations cannot occur simultaneously. Write operations to the serial I/O port take precedence; therefore, if an attempt to write to RAM is made during a read operation, the read operation is halted. The RAM is configurable using the RAM Segment Control Word<7:5> and data in the control function register. In automatic synchronization mode, one device is chosen as a master, the other device(s) is slaved to this master. All slaves automatically synchronize their internal clocks to the SYNC_CLK output signal of the master device. Use the automatic synchronization bit (CFR1<23>) to configure each slave. Connect the SYNC_IN input(s) to the master SYNC_CLK output. Slave devices continuously update the phase relationship of their SYNC_CLK until it is in phase with the SYNC_IN input. The high speed sync enhancement enable bit (CFR2<11>) must be programmed correctly. In software manual synchronization mode, the user can force the device to advance the SYNC_CLK rising edge one SYSCLK cycle (¼ SYNC_CLK period). Manual synchronization mode is established using the slave device’s software manual synchronization bit (CFR1<22>). See the bit description in Table 12 for more details. In hardware manual synchronization mode, the SYNC_IN input pin is configured such that it now advances the rising edge of the SYNC_CLK signal each time the device detects a rising edge on the SYNC_IN pin. Hardware manual synchronization mode is established using the hardware manual synchronization bit (CFR2<10>). See the bit description in Table 12 for more details. Using a Single Crystal to Drive Multiple AD9954 Clock Inputs The AD9954 crystal oscillator output signal is available on the CRYSTAL OUT pin, enabling one crystal to drive multiple AD9954s. To drive multiple AD9954s with one crystal, the CRYSTAL OUT pin of the AD9954 using the external crystal should be connected to the REFCLK input of the other AD9954. The CRYSTAL OUT pin must be enabled using the CRYSTAL OUT Pin Active Bit CFR2<9>. The drive strength of the CRYSTAL OUT pin is fairly low; therefore, the signal should be buffered if multiple loads are being driven. Using the RAM enable bit (CFR1<31>), the RAM output can be enabled to drive the input to either the phase accumulator or the phase offset adder; the RAM destination bit (CFR1<30>) sets the routing. When the RAM output drives the phase accumulator, the phase offset word (POW, Address 0x05) drives the phase-offset adder. Conversely, when the RAM output drives the phase-offset adder, the frequency tuning word (FTW, Address 0x04) drives the phase accumulator. When CFR1<31> disables the RAM, it is inactive unless being written to via the serial port. The RAM is mapped into one of four profiles determined by the PS1 and PS0 input pins. Note that these profiles may overlap. For example, Profile 0 may use RAM Address Location 0 to Address Location 12, and Profile 1 may use RAM Address Location 5 to Address Location 20, and so forth. All RAM write or read operations to/from the RAM are controlled by the PS1 and PS0 input pins and the respective RAM segment control word. To write to the RAM, a RAM segment must be defined in a RAM segment control word. The RAM segment that was defined must then be selected by use of the profile select pins, PS0 and PS1. With the correct RAM segment selected, the special instruction byte of 0xB0 should be sent. When the instruction byte to write to the RAM is sent to the part, the serial port controller immediately polls the corresponding RAM segment control word. From this register, the serial port controller makes note of the start address and the stop address. It then calculates how many entries there are in the segment, and how many bytes of data to expect. After sending the special instruction byte of 0xB0, the user must send all RAM entries for the currently selected profile to the part. For example, consider a case where RAM Segment 2 begins at Address 21 and ends at Address 120. First, write to RAM Segment Control Word 2 with a starting address of 21, with a stop address of 120, and specify a ramp rate and a mode of operation. Next, set PS1 to 1 and PS0 to 0 to select RAM Segment 2 and then send the instruction byte of 0xB0. The part is now ready to put the first 32-bit word into the RAM at Address 21, to expect 100 32-bit words, and to store the last one at Address 120. It automatically controls sending the data from the serial port to the correct RAM address. Therefore, precede sending 100 32-bit words of data to the part. After the 3200th SCLK cycle, the write operation is complete, and all 100 words are stored in the RAM, from Address 21 to Address 120. Rev. B | Page 22 of 40 AD9954 Serial I/O Port There are two phases to a communication cycle with the AD9954. Phase 1 is the instruction cycle, which is the writing of an instruction byte into the AD9954, coincident with the first eight SCLK rising edges. The instruction byte provides the AD9954 serial port controller with information regarding Phase 2, the data transfer cycle. The instruction byte defines whether the upcoming data transfer is a read or a write and the serial address of the register being accessed. The AD9954 serial port is a flexible, synchronous, serial communications port that easily interfaces to many industrystandard microcontrollers and microprocessors. The serial I/O port is compatible with most synchronous transfer formats, including both the Motorola 6905/11 SPI® and Intel® 8051 SSR protocols. The interface accesses all registers that configure the AD9954. MSB first and LSB first transfer formats are supported. In addition, the AD9954’s serial interface port can be configured as a single pin I/O (SDIO), which allows a 2-wire interface, or two unidirectional pins for in/out (SDIO/SDO), which enables a 3-wire interface. Two optional pins, IOSYNC and CS, provide further flexibility for system design with the AD9954. The first eight SCLK rising edges of each communication cycle are used to write the instruction byte into the AD9954. The remaining SCLK edges are for Phase 2 of the communication cycle. Phase 2 is the actual data transfer between the AD9954 and the system controller. The number of bytes transferred during Phase 2 of the communication cycle is a function of the register being accessed. For example, when accessing the Control Function Register 2, which is three bytes wide, Phase 2 requires that three bytes be transferred. If accessing the frequency tuning word, which is four bytes wide, four bytes must be transferred. After transferring all data bytes per the instruction byte, the communication cycle is complete. SERIAL PORT OPERATION With the AD9954, the instruction byte specifies read/write operation and register address. Serial operations on the AD9954 only occur at the register level, they do not occur on the byte level. For the AD9954, the serial port controller recognizes the instruction byte register address and automatically generates the proper register byte address. In addition, the controller expects to access all bytes of that register. It is a requirement that all bytes of a register be accessed during serial I/O operations, with one exception; the IOSYNC function can be used to abort an I/O operation, thereby allowing less than all bytes to be accessed. At the completion of any communication cycle, the AD9954 serial port controller expects the next eight rising SCLK edges to be the instruction byte of the next communication cycle. All data input to the AD9954 is registered on the rising edge of SCLK. All data is driven out of the AD9954 on the falling edge of SCLK. Figure 25 through Figure 28 are provided to aid in understanding the general operation of the AD9954 serial port. INSTRUCTION CYCLE DATA TRANSFER CYCLE CS SDIO I7 I6 I5 I4 I3 I2 I1 I0 D7 D6 D5 D4 D3 D2 D1 03374-008 SCLK D0 Figure 25. Serial Port Write Timing–Clock Stall Low INSTRUCTION CYCLE DATA TRANSFER CYCLE CS SCLK I7 I6 I5 I4 I3 I2 I1 I0 DON'T CARE DO 7 SDO DO 6 DO 5 DO 4 DO 3 DO 2 DO 1 DO 0 03374-009 SDIO Figure 26. 3-Wire Serial Port Read Timing–Clock Stall Low INSTRUCTION CYCLE DATA TRANSFER CYCLE CS SDIO I7 I6 I5 I4 I3 I2 I1 I0 D7 D6 D5 D4 Figure 27. Serial Port Write Timing–Clock Stall High Rev. B | Page 23 of 40 D3 D2 D1 D0 03374-010 SCLK AD9954 INSTRUCTION CYCLE DATA TRANSFER CYCLE CS SDIO I7 I6 I5 I4 I3 I2 I1 I0 DO 7 DO 6 DO 5 DO 4 DO 3 DO 2 DO 1 DO 0 03374-011 SCLK Figure 28. 2-Wire Serial Port Read Timing—Clock Stall High SCLK—Serial Clock. The serial clock pin is used to synchronize data to and from the AD9954 and to run internal state machines. SCLK maximum frequency is 25 MHz. CS—Chip Select. CS is an active low input that enables devices sharing a serial communications line to be individually programmed. The SDO and SDIO pins go to a high impedance state when this input is high. If driven high during any communications cycle, that cycle is suspended until CS is reactivated low. Chip select can be tied low if it is not needed. SDIO —Serial Data I/O. Data written to the AD9954 must be sent to this pin. However, this pin can be used as a bidirectional data line. CFR1<9> controls the configuration of this pin. SDO—Serial Data Out. Data is read from this pin for protocols that use separate lines for transmitting and receiving data. When in 2-wire serial programming mode, this pin is set to a high impedance state. the register at this memory location and notes that the ASF is 2 bytes wide. The serial port controller’s state machines sets to 16 and awaits 16 rising edges on the SCLK and 16 bits of data on the SDIO line. Send 16 rising edges on SCLK, and the binary data 10000000 00000000 on the SDIO line. To write the amplitude scale factor register in LSB first format, the process is the same as in MSB first; however, the data is bit wise inverted on a word-by-word basis. The instruction byte is 0x40. The binary data for the ASF is 00000000 00000001. CS ●●● SCLK ●●● ●●● SDIO TCSU IOSYNC—synchronizes the I/O port state machines without affecting the addressable registers contents. An active high input on the IOSYNC pin aborts the current communication cycle. After IOSYNC returns low (Logic 0), another communication cycle may begin, starting with the instruction byte write. TDSU TDH DVDD I/O = 3.3V DVDD I/O = 1.8V TCSU = 3ns TDSU = 3ns TDH = 0ns TCSU = 5ns TDSU = 5ns TDH = 0ns TDH 03374-036 SERIAL INTERFACE PORT PIN DESCRIPTIONS Figure 29. Timing Diagram for Data Write to AD9954 SCLK MSB/LSB TRANSFERS The AD9954 serial port can support either MSB first or LSB first data formats. This functionality is controlled by the LSB First Bit CFR1<8>. If the LSB mode is active, the serial port controller generates the least significant byte address first followed by the next greater significant byte addresses until the I/O operation is complete. All data written to (read from) the AD9954 must be in LSB first order. Example Operation As an example, consider the case of writing the amplitude scale factor (ASF) register to a value of 0.5 full scale. First, calculate the binary equivalent of 0.5. As the ASF is 16 bits wide, the hexadecimal equivalent is 0x80. Next, for MSB first format, transmit an instruction byte of 0x02 (serial address of ASF is 00010(b)). From this instruction, the internal controller polls TDV = 25ns 03374-037 For MSB first operation, the serial port controller generates the most significant byte (of the specified register) address first followed by the next lesser significant byte addresses until the I/O operation is complete. All data written to (read from) the AD9954 must be in MSB first order. SDIO SDO Figure 30. Timing Diagram for Data Read to AD9954 RAM I/O VIA SERIAL PORT Accessing the RAM via the serial port is identical to any other serial I/O operation except that the number of bytes transferred is determined by the address space between the beginning address and the final address as specified in the current RAM segment control word (RSCW). The final address describes the most significant word address for all I/O transfers and the beginning address specifies the least significant address. RAM I/O supports MSB/LSB first operation as set using the LSB First Bit CFR1<8>. When in MSB first mode, the first data byte is for the most significant byte of the memory address described by the final address with the remaining three bytes making up the lesser significant bytes of that address. The remaining bytes come in most significant to least significant, destined for RAM addresses generated in descending order Rev. B | Page 24 of 40 AD9954 until the final four bytes are written into the address specified as the beginning address. When in LSB first mode, the first data byte is for the least significant byte of the memory (specified by the beginning address) with the remaining three bytes making up the greater significant bytes of that address. The remaining bytes come in least significant to most significant, destined for RAM addresses generated in ascending order until the final four bytes are written into the memory address described by the final address. The RAM uses Serial Address 01011(b); therefore, the instruction byte to write the RAM is 0x0B, in MSB first notation. As previously mentioned, the RAM addresses generated are specified by the beginning and final address of the RSCW currently selected by Pin PS1 and Pin PS0. Notes on serial port operation The configuration changes made using CFR1<9:8> are implemented immediately upon writing to this register. For multibyte transfers, writing to this register may occur during the middle of a communication cycle. Care must be taken to compensate for this new configuration for the remainder of the current communication cycle. The system must maintain synchronization with the AD9954 or the internal control logic cannot recognize further instructions. For example, if the system sends an instruction byte that describes writing a 2-byte register, and then pulses the SCLK pin for a 3-byte write (24 additional SCLK rising edges), communication synchronization is lost. In this case, the first 16 SCLK rising edges after the instruction cycle properly write the first two data bytes into the AD9954, but the next eight rising SCLK edges are interpreted as the next instruction byte. In the case where synchronization is lost between the system and the AD9954, the IOSYNC pin enables the user to reset the AD9954 serial port controller state machine. Any information that is written to the AD9954 registers during a valid communication cycle prior to loss of synchronization and assertion of the IOSYNC pin remain intact. Reading a RAM profile requires that the profile select pins, Pin PS1 and Pin PS0, be configured to select the desired profile. When reading a register that resides in one of the profiles, the register address acts as an offset to select one of the registers among the group of registers defined by the profile, while the profile select pins select the appropriate register group. INSTRUCTION BYTE The instruction byte contains the following information. Table 10. MSB R/W D6 X D5 X D4 A4 D3 A3 D2 A2 D1 A1 LSB A0 R/W—Bit 7 of the instruction byte defines whether a read or write data transfer occurs after the instruction byte write. Logic High indicates read operation. Logic 0 indicates a write operation. X, X—Bit 6 and Bit 5 of the instruction byte are don’t care. A4, A3, A2, A1, A0—Bit 4, Bit 3, Bit 2, Bit 1, Bit 0 of the instruction byte determine which register is accessed during the data transfer portion of the communications cycle. Addresses for registers can be found in the first column of the register maps (see Table 12 and Table 13). REGISTER MAPS AND DESCRIPTIONS The register maps are listed in Table 12 and Table 13. The active register map depends on the state of the linear sweep enable bit; certain registers are remapped depending on which mode the part is operating in. Specifically, Register 0x07, Register 0x08, Register 0x09, and Register 0x0A are affected. Because the linear sweep operation takes precedence over RAM operations, Analog Devices, Inc. recommends that the RAM be disabled using Bit CFR1<31> when linear sweep is enabled by Bit CFR1<21> to conserve power. The serial address numbers associated with each of the registers are in hexadecimal format. Angle brackets <> are used to reference specific bits or ranges of bits. For example, <3> designates Bit 3 and <7:3> designates the range of bits from Bit 7 to Bit 3, inclusive. Table 11. Register Mapping Based on Linear Sweep Enable Bit Linear Sweep Enable Bit (CFR1<21>) Cleared (= 0) Set (= 1) Rev. B | Page 25 of 40 Register Map RAM Segment Control Words Active Linear Sweep Control Words Active AD9954 Table 12. Register Map—When Linear Sweep Enable Bit Is False (CFR1<21> = 0) Note that the RAM Enable Bit CFR1<31> only activates the RAM itself, not the RAM segment control words. Register Name (Serial Address) Control Function Register No.1 (CFR1) (0x00) Bit Range <7:0> (MSB) Bit 7 Digital PowerDown <15:8> SRR Load Enable <23:16> Automatic Sync Enable RAM Enable <31:24> Control Function Register No. 2 (CFR2) (0x01) Amplitude Scale Factor (ASF) (0x02) Amplitude Ramp Rate (ARR) (0x03) Frequency Tuning Word (FTW0) (0x04) Phase Offset Word (POW0) (0x05) Frequency Tuning Word (FTW1) (0x06) Profile 0 RAM Segment Control Word No. 0 (RSCW0) (0x07) Bit 6 Comp PowerDown Bit 5 DAC PowerDown AutoClr Freq Accum Software Manual Sync RAM Destination AutoClr Phase Accum Linear Sweep Enable Internal Profile Control<2:0> <7:0> Bit 4 Clock Input PowerDown Sine/ Cosine Select Not Used REFCLK Multiplier <15:8> Not Used Bit 3 External PowerDown Mode Clear Freq Accum Not Used Bit 2 Linear Sweep NoDwell Clear Phase Accum Not Used Bit 1 SYNC_CLK Disable Load ARR Control OSK Enable VCO Range Hardware Manual Sync Enable SDIO Input Only Not Used (LSB) Bit 0 Not Used Default Value Or Profile 0x00 LSB First 0x00 Not Used 0x00 Auto OSK Enable Charge Pump Current<1:0> XTAL Not OUT Used Enable 0x00 0x00 0x00 High Speed Sync Enable Not Used Amplitude Scale Factor Register<7:0> Amplitude Scale Factor Register<13:8> 0x18 0x00 0x00 <7:0> Amplitude Ramp Rate Register<7:0> 0x00 <7:0> <15:8> <23:16> <31:24> Frequency Tuning Word No. 0<7:0> Frequency Tuning Word No. 0<15:8> Frequency Tuning Word No. 0<23:16> Frequency Tuning Word No. 0<31:24> 0x00 0x00 0x00 0x00 <23:16> <7:0> <15:8> <7:0> <15:8> <7:0> <15:8> <23:16> <31:24> <7:0> <15:8> <23:16> Auto Ramp Rate Speed Control<1:0> Not Used<1:0> Phase Offset Word No. 0<7:0> Phase Offset Word No. 0<13:8> Frequency Tuning Word No. 1<7:0> Frequency Tuning Word No. 1<15:8> Frequency Tuning Word No. 1<23:16> Frequency Tuning Word No. 1<31:24> RAM Segment 0 Beginning Address<9:6> RAM Segment 0 Mode No-Dwell Control<2:0> Active RAM Segment 0 Beginning Address<5:0> RAM Segment 0 Final Address<9:8> RAM Segment 0 Final Address<7:0> <31:24> RAM Segment 0 Address Ramp Rate<15:8> <39:32> RAM Segment 0 Address Ramp Rate<7:0> Rev. B | Page 26 of 40 0x00 0x00 0x00 0x00 0x00 0x00 PS0 = 0 PS1 = 0 PS0 = 0 PS1 = 0 PS0 = 0 PS1 = 0 PS0 = 0 PS1 = 0 PS0 = 0 PS1 = 0 AD9954 Register Name (Serial Address) Profile 1 RAM Segment Control Word No. 1 (RSCW1) (0x08) Profile 2 RAM Segment Control Word No. 2 (RSCW2) (0x09) Profile 3 RAM Segment Control Word No. 3 (RSCW3) (0x0A) RAM (0x0B) Bit Range <7:0> <15:8> (MSB) Bit 7 (LSB) Bit 3 Bit 2 Bit 1 Bit 0 RAM Segment 1 Beginning Address<9:6> Bit 6 Bit 5 Bit 4 RAM Segment 1 Mode No-Dwell Control<2:0> Active RAM Segment 1 Beginning Address<5:0> <23:16> RAM Segment 1 Final Address<7:0> <31:24> RAM Segment 1 Address Ramp Rate<15:8> <39:32> RAM Segment 1 Address Ramp Rate<7:0> <7:0> <15:8> RAM Segment 2 Mode No-Dwell Control<2:0> Active RAM Segment 2 Beginning Address <5:0> RAM Segment 2 Beginning Address<9:6> <23:16> RAM Segment 2 Final Address<7:0> <31:24> RAM Segment 2 Address Ramp Rate<15:8> <39:32> RAM Segment 2 Address Ramp Rate<7:0> <7:0> <15:8> <23:16> RAM Segment 1 Final Address<9:8> RAM Segment 2 Final Address<9:8> RAM Segment 3 Beginning Address<9:6> RAM Segment 3 Mode No-Dwell Control<2:0> Active RAM Segment 3 Beginning Address<5:0> RAM Segment 3 Final Address <9:8> RAM Segment 3 Final Address<7:0> <31:24> RAM Segment 3 Address Ramp Rate<15:8> <39:32> RAM Segment 3 Address Ramp Rate<7:0> RAM [1023:0]<31:0> (Read Instructions Write Out RAM Signature Register Data) Rev. B | Page 27 of 40 Default Value Or Profile PS0 = 1 PS1 = 0 PS0 = 1 PS1 = 0 PS0 = 1 PS1 = 0 PS0 = 1 PS1 = 0 PS0 = 1 PS1 = 0 PS0 = 0 PS1 = 1 PS0 = 0 PS1 = 1 PS0 = 0 PS1 = 1 PS0 = 0 PS1 = 1 PS0 = 0 PS1 = 1 PS0 = 1 PS1 = 1 PS0 = 1 PS1 = 1 PS0 = 1 PS1 = 1 PS0 = 1 PS1 = 1 PS0 = 1 PS1 = 1 AD9954 Table 13. Register Map—When Linear Sweep Enable Bit Is True (CFR1<21> = 1) Note that the RAM Enable Bit CFR1<31> only activates the RAM itself, not the RAM segment control words. Register Name (Serial Address) Control Function Register No. 1 (CFR1) (0x00) Bit Range <7:0> (MSB) Bit 7 Digital PowerDown <15:8> SRR Load Enable <23:16> Automatic Sync Enable RAM Enable <31:24> Control Function Register No. 2 (CFR2) (0x01) Amplitude Scale Factor (ASF) (0x02) Amplitude Ramp Rate (ARR) (0x03) Frequency Tuning Word (FTW0) (0x04) Phase Offset Word (POW0) (0x05) Frequency Tuning Word (FTW1) (0x06) Negative Linear Sweep Control Word (NLSCW) (0x07) Positive Linear Sweep Control Word (PLSCW) (0x08) Bit 6 Comp PowerDown Bit 5 DAC PowerDown AutoClr Freq Accum Software Manual Sync RAM Destination AutoClr Phase Accum Linear Sweep Enable Internal Profile Control<2:0> <7:0> REFCLK Multiplier <15:8> <23:16> <7:0> (0x07) <15:8> Bit 4 Clock Input Power Down Sine/ Cosine Select Not Used Not Used Auto Ramp Rate Speed Control<1:0> Bit 3 External PowerDown Mode Clear Freq Accum Not Used Bit 2 Linear Sweep No Dwell Bit 1 SYNC_CLK Disable Clear Phase Accum Not Used SDIO Input Only Not Used Load ARR Control OSK Enable VCO Range Hardware Manual Sync Enable High Speed Sync Enable Not Used Amplitude Scale Factor Register<7:0> Amplitude Ramp Rate Register<7:0> <7:0> <15:8> <23:16> <31:24> Frequency Tuning Word No. 0<7:0> Frequency Tuning Word No. 0<15:8> Frequency Tuning Word No. 0<23:16> Frequency Tuning Word No. 0<31:24> <7:0> <15:8> <23:16> <31:24> <7:0> <15:8> <23:16> <31:24> <39:32> <7:0> <15:8> <23:16> <31:24> <39:32> Open<1:0> Default Value Or Profile 0x00 LSB First 0x00 Not Used 0x00 Auto OSK Enable Charge Pump Current<1:0> XTAL Not OUT Used Enable 0x00 0x00 0x00 0x18 Amplitude Scale Factor Register<13:8> <7:0> <7:0> <15:8> (LSB) Bit 0 Not Used Phase Offset Word No. 0<7:0> Phase Offset Word No. 0<13:8> Frequency Tuning Word No. 1<7:0> Frequency Tuning Word No. 1<15:8> Frequency Tuning Word No. 1<23:16> Frequency Tuning Word No. 1<31:24> Falling Delta Frequency Tuning Word<7:0> Falling Delta Frequency Tuning Word<15:8> Falling Delta Frequency Tuning Word<23:16> Falling Delta Frequency Tuning Word<31:24> Falling Sweep Ramp Rate Word<7:0> Rising Delta Frequency Tuning Word<7:0> Rising Delta Frequency Tuning Word<15:8> Rising Delta Frequency Tuning Word<23:16> Rising Delta Frequency Tuning Word <31:24> Rising Sweep Ramp Rate Word<7:0> Rev. B | Page 28 of 40 0x00 0x00 0x00 0x00 0x00 0x00 PS0 = 0 PS0 = 0 PS0 = 0 PS0 = 0 PS0 = 0 PS0 = 1 PS0 = 1 PS0 = 1 PS0 = 1 PS0 = 1 AD9954 CONTROL REGISTER BIT DESCRIPTIONS Control Function Register No. 1 (CFR1) The CFR1 is used to control the various functions, features, and modes of the AD9954. The functionality of each bit follows. CFR1<31>: RAM Enable Bit CFR1<31> = 0 (default). The RAM is disabled for operation. Either single-tone mode of operation or linear sweep mode of operation is enabled. CFR1<31> = 1. The RAM is enabled for operation. Access control for normal operation is controlled via the mode control bits of the RSCW for the current profile. CFR1<22>: Software Manual Synchronization of Multiple AD9954s CFR1<22> = 0 (default). The manual synchronization feature is inactive. CFR1<22> = 1. The software-controlled manual synchronization feature is executed. The SYNC_CLK rising edge is advanced by one SYNC_CLK cycle, and this bit is autocleared. To advance the rising edge multiple times, this bit needs to be set once for each advance. CFR1<21>: Linear Frequency Sweep Enable CFR1<21> = 0 (default). The linear frequency sweep capability of the AD9954 is inactive. CFR1<30>: RAM Destination Bit If CFR1<31> is cleared, CFR1<30> is ignored. CFR1<30> = 0 (default). If CFR1<31> is set, the RAM output drives the phase accumulator (provides the FTW). CFR1<30> = 1. If CFR1<31> is set, the RAM output drives the phase-offset adder (POW). CFR1<29:27>: Internal Profile Control Bits These bits cause the profile bits to be ignored when the RAM is being used and puts the AD9954 into an automatic profile loop sequence that allows the user to implement a frequency/phase composite sweep that runs without external inputs. See the Internal Profile Control section for more details. CFR1<21> = 1. The linear frequency sweep capability of the AD9954 is enabled. See the Linear Sweep Mode section for details. CFR1<20:16>: Not Used, Leave Clear CFR1<15>: Linear Sweep Ramp Rate Load Control Bit CFR1<15> = 0 (default). The linear sweep ramp rate timer is loaded only upon timeout (timer == 1); it is not loaded due to an I/O update input signal. CFR1<15> = 1. The linear sweep ramp rate timer is loaded either upon timeout (timer == 1) or at the time of an I/O update input signal. CFR1<26>: Load Amplitude Ramp Rate Control Bit CFR1<14>: Autoclear Frequency Accumulator Bit CFR1<26> = 0 (default). The amplitude ramp rate timer is loaded only upon timeout (timer == 1); it is not loaded due to an I/O update input signal. CFR1<14> = 0 (default). The current state of the frequency accumulator is not impacted by receipt of an I/O update signal. CFR1<26> = 1. The amplitude ramp rate timer is loaded upon either timeout (timer == 1) or at the time of an I/O update input signal. CFR1<13>: Autoclear Phase Accumulator Bit CFR1<25>: Shaped On-Off Keying Enable Bit CFR1<13> = 0 (default). The current state of the phase accumulator is not impacted by receipt of an I/O update signal. CFR1<25> = 0 (default). Shaped on-off keying is bypassed. CFR1<13> = 1. The phase accumulator is automatically and synchronously cleared for one cycle upon receipt of an I/O update signal. CFR1<25> = 1. Shaped on-off keying is enabled. See also CFR1<24>. CFR1<24>: Autoshaped On-Off Keying Enable Bit CFR1<12>: Sine/Cosine Select Bit If CFR1<25> is cleared, CFR1<24> is ignored. CFR1<24> = 0 (default). Manual shaped on-off keying operation. See the Shaped On-Off Keying section for details. CFR1<24> = 1. Autoshaped on-off keying operation. See the Shaped On-Off Keying section for details. CFR1<12> = 0 (default). The angle-to-amplitude conversion logic employs a cosine function. CFR1<12> = 1. The angle-to-amplitude conversion logic employs a sine function. CFR1<11>: Clear Frequency Accumulator CFR1<23>: Automatic Synchronization Enable Bit CFR1<23> = 0 (default). The automatic synchronization feature of multiple AD9954s is inactive. CFR1<23> = 1. The automatic synchronization feature of multiple AD9954s is active. See the Synchronizing Multiple AD9954s section for details. CFR1<14> = 1. The frequency accumulator is automatically and synchronously cleared for one cycle upon receipt of an I/O UPDATE signal. CFR1<11> = 0 (default). The frequency accumulator functions as normal. CFR1<11> = 1. The frequency accumulator memory elements are cleared and held clear until this bit is cleared. Rev. B | Page 29 of 40 AD9954 CFR1<10>: Clear Phase Accumulator CFR1<2>: Linear Sweep No-Dwell Bit CFR1<10> = 0 (default). The phase accumulator functions as normal. If CFR1<21> is clear, this bit is a don’t care (ignored). CFR1<10> = 1. The phase accumulator memory elements are cleared and held clear until this bit is cleared. CFR1<9>: SDIO Input Only CFR1<9> = 0 (default). The SDIO pin is bidirectional (2-wire serial programming mode). CFR1<2> = 0 (default). The linear sweep no-dwell function is inactive. If the no-dwell mode is inactive when the sweep completes, sweeping does not restart until an I/O update or change in profile initiates another sweep as previously described. The output frequency holds at the final value in the sweep. CFR1<8>: LSB First CFR1<2> = 1. The linear sweep no-dwell function is active. If the no-dwell mode is active when the sweep completes, the phase accumulator is cleared. The phase accumulator remains cleared until another sweep is initiated via an I/O update input or change in profile. CFR1<8> = 0 (default). MSB first format is active. CFR1<1>: SYNC_CLK Disable Bit CFR1<8> = 1. LSB first format is active. CFR1<1> = 0 (default). The SYNC_CLK pin is active. CFR1<7>: Digital Power-Down Bit CFR1<1> = 1. The SYNC_CLK pin assumes a static Logic 0 state to minimize noise generated by the digital circuitry. The synchronization circuitry remains active internally to maintain normal device timing. CFR1<9> = 1. The SDIO is configured as an input-only pin (3-wire serial programming mode). CFR1<7> = 0 (default). All digital functions and clocks are active. CFR1<7> = 1. All non-I/O digital functionality is suspended, lowering the power significantly. CFR1<6>: Comparator Power-Down Bit CFR1<0>: Not Used, Leave Clear Control Function Register No. 2 (CFR2) CFR1<6> = 0 (default). The comparator is enabled for operation. CFR1<6> = 1. The comparator is disabled and is in its lowest power dissipation state. The CFR2 is used to control the various functions, features, and modes of the AD9954, primarily related to the analog sections of the chip. CFR1<5>: DAC Power-Down Bit CFR2<23:12>: Not Used, Leave Clear CFR1<5> = 0 (default). The DAC is enabled for operation. CFR2<11>: High Speed Sync Enable Bit CFR1<5> = 1. The DAC is disabled and is in its lowest power dissipation state. CFR2<11> = 0 (default). The high speed sync enhancement is off. CFR1<4>: Clock Input Power-Down Bit CFR1<4> = 0 (default). The clock input circuitry is enabled for operation. CFR1<4> = 1. The clock input circuitry is disabled and the device is in its lowest power dissipation state. CFR2<11> = 1. The high speed sync enhancement is on. This bit should be set when using the autosynchronization feature for SYNC_CLK > 50 MHz (SYSCLK > 200 MSPS). CFR2<10>: Hardware Manual Sync Enable Bit CFR2<10> = 0 (default). The hardware manual sync function is off. CFR1<3>: External Power-Down Mode CFR1<3> = 0 (default). The external power-down mode selected is the rapid recovery power-down mode. In this mode, when the PWRDWNCTL input pin is high, the digital logic and the DAC digital logic are powered down. The DAC bias circuitry, PLL, oscillator, and clock input circuitry are not powered down. CFR1<6> determines whether the comparator is powered down. CFR1<7>, and CFR1<5:4> are ignored. CFR1<3> = 1. The external power-down mode selected is the full power-down mode. In this mode, when the PWRDWNCTL input pin is high, all functions are powered down. This includes the DAC and PLL, which take a significant amount of time to power up. CFR1<7:4> are all ignored. CFR2<10> = 1. The hardware manual sync function is enabled. While this bit is set, a rising edge on the SYNC_IN pin causes the device to advance the SYNC_CLK rising edge by one REFCLK cycle. This bit does not self-clear. CFR2<9>: CRYSTAL OUT Enable Bit CFR2<9> = 0 (default). The CRYSTAL OUT pin is inactive. CFR2<9> = 1. The CRYSTAL OUT pin is active. The crystal oscillator circuitry output drives the CRYSTAL OUT pin, which can be used as a reference frequency for additional devices. CFR2<8>: Not Used, Leave Clear CFR2<7:3>: Reference Clock Multiplier Control Bits This 5-bit word controls the multiplier value out of the clockmultiplier (PLL) block. See the Clock Multiplier section for more details. Rev. B | Page 30 of 40 AD9954 CFR2<2>: VCO Range Control Bit CFR2<2> = 0 (default), VCO operates between 100 MHz and 250 MHz. CFR2<2> = 1, VCO operates between 250 MHz and 400 MHz. CFR2<1:0>: Charge Pump Current Control Bits These bits are used to control the current setting on the charge pump. The default setting, CFR2<1:0>, sets the charge pump current to the default value of 75 μA. For each bit added, 25 μA of current is added to the charge pump current: 01 = 100 μA, 10 = 125 μA, and 11 = 150 μA. OTHER REGISTER DESCRIPTIONS Amplitude Scale Factor (ASF) The ASF register stores the 2-bit auto ramp rate speed value and the 14-bit amplitude scale factor used in the output shaped keying (OSK) operation. In auto-OSK operation, ASF<15:14> tells the OSK block how many amplitude steps to take for each increment or decrement. ASF<13:0> sets the maximum value achievable by the OSK internal multiplier. In manual OSK mode, ASF<15:14> has no effect. ASF<13:0> provide the output scale factor directly. If the OSK is disabled using CFR1<25>, this register has no effect on device operation. Amplitude Ramp Rate (ARR) The ARR register stores the 8-bit amplitude ramp rate used in the auto-OSK mode. See the Amplitude Control Options section for details. Frequency Tuning Word 0 (FTW0) The frequency tuning word is a 32-bit register that controls the rate of accumulation in the phase accumulator of the DDS core. Its specific role is dependent on the device mode of operation. Phase Offset Word (POW) The phase offset word is a 14-bit register that stores a phase offset value. See the Phase Offset Word Mux section for additional details. RAM Segment Control Words (RSCW0, RSCW1, RSCW2, and RSCW3) When linear sweep is disabled, Register 0x07, Register 0x08, Register 0x09, and Register 0x0A act as the RAM segment control words for each of the RAM segments. Each of the RAM segment control words is comprised of a RAM segment address ramp rate, a final address value, a beginning address value, a RAM segment mode control, and a no-dwell bit. Note the discontinuities of the address registers, since they may make programming a little more challenging. RAM Segment Address Ramp Rate, RSCW<39:24> For RAM modes that step through address values, such as ramping, this 16-bit word defines the number of SYNC_CLK cycles the RAM controller dwells at each address. A value of 0 is invalid. Any other value from 1 to 65,535 can be used. RAM Segment Final Address RSCW<9:8>, RSCW<23:16> This discontinuous 10-bit sequence defines the final address value for the given RAM segment. The order in which the bits are previously listed is MSB first: RSCW<9> is the MSB and RSCW<16> is the LSB of the final address value. RAM Segment Beginning Address RSCW<3:0>, RSCW <15:10> This discontinuous 10-bit sequence defines the final address value for the given RAM segment. The order in which the bits are previously listed is MSB first: RSCW<3> is the MSB and RSCW<10> is the LSB of the final address value. RAM Segment No-Dwell Bit RSCW<4> This bit sets the no-dwell feature of sweeping profiles. In profiles that sweep from a defined beginning to a defined end, the RAM controller can either dwell at the final address until the next profile is selected or, when this bit is set, the RAM controller returns to the beginning address and dwells there until the next profile is selected. RAM Segment Mode Control RSCW<7:5> Frequency Tuning Word 1 (FTW1) This 3-bit sequence determines the RAM segment’s mode of operation. There are only five possible RAM modes, so only values of 0 to 4 are valid (see Table 7). The frequency tuning word is a 32-bit register that sets the upper frequency in a linear sweep operation. Register 0x07 and Register 0x08 are multifunctional registers. Negative and Positive Linear Sweep Control Word (NLSCW and PLSCW) When linear sweep bit is enabled, Register 0x07 provides the negative linear sweep control word (NLSCW) and Register 0x08 provides the positive linear sweep control word (PLSCW). Each of the linear sweep control words contains a 32-bit delta frequency tuning word (FDFTW and RDFTW) and an 8-bit sweep ramp rate word (FSRRW and RSRRW). See the Modes of Operation section for more details. Rev. B | Page 31 of 40 AD9954 LAYOUT CONSIDERATIONS For the best performance, the following layout guidelines should be observed. Always separate the analog power supply (AVDD) and the digital power supply (DVDD), even if just from two different voltage regulators driven by a common supply. Likewise, the ground connections (AGND and DGND) should be kept separate as far back to the source as possible (for example, separate the ground planes on a localized board, even if the grounds connect to a common point in the system). Bypass capacitors should be placed as close to device pins as possible. Usually a multitiered bypassing scheme consisting of a small high frequency capacitor (100 pF) placed close to the supply pin and progressively larger capacitors (0.1 μF and 10 μF) further back to the actual supply source works best. Rev. B | Page 32 of 40 AD9954 DETAILED PROGRAMMING EXAMPLES SINGLE-TONE MODE In this example, the part is programmed to output a 122 MHz single-tone carrier, the device is clocked with a 20 MHz crystal oscillator, and the clock multiplier is used to push the internal system clock up to 400 MHz. Phase offsets are then added to the carrier. The programming steps include the following: 1. Write to Control Register 1 instructing the part to autoclear the phase accumulator whenever the phase offset word changes and issues an I/O update. Set Bit 13 in the CFR1 register. The address for CFR1 is 0; therefore, an instruction byte of 0x00 is sent and 0x00 00 00 20 for data. Note that users must write to all four bytes of the register. 2. Write to Control Register 2 setting the clock multiplier value to 20, and the VCO range bit to its upper value. In CFR2, Bit 7 to Bit 3 control the multiply value. To get a multiplied value of 20 from 5 bits, the binary value is 10100. As previously mentioned, also send Bit 2 to put the VCO into its upper range (to get 400 MHz). Therefore, the instruction byte is 0x01 and 0x00 00 A4 for data. 3. Calculate the tuning word to generate a 122 MHz output from a 400 MSPS clock, load it into FTW0, and latch the data written to the I/O buffers into their respective registers. The frequency tuning word equation becomes (122 MHz/ 400 MHz) × 232, which yields 0x4E 14 7A E1. Send the Instruction Byte 0x04 and four data bytes of 0x4E 14 7A E1. Issue an I/O update, which transfers the data into the part. Whenever a phase change is desired, calculate and write the phase offset word to the part and issue an I/O update. For example, if the first value is 45°, the phase offset word is (45/360) × 214, or in decimal, 2048. Therefore, write an instruction byte of 0x05 and Data Byte 0x0800. When an I/O update is issued, the phase accumulator clears, which starts it from a known phase of 0°. It again accumulates at a 122 MHz rate, except now phase shifting each and every sample by 45°. LINEAR SWEEP MODE In this example, the part is programmed to generate a chirp from 61.53 MHz to 62.73 MHz. The chirp up is in 1.20 μs, the chirp down is in 1.8 μs, and the chirp is made as finely linearized as possible. Therefore, users must calculate and program: The last example programmed the clock multiplier; therefore, start with a 400 MSPS clock. FTW0 is (61.53/400) × 232 or 0x27611340, and FTW1 is (62.73/400) × 232 or 0x2825AEE6. To turn the linear sweep on, set CFR1<21>. The PLSCW and NLSCW are five bytes wide: one byte for the ramp rate and four bytes for the incremental frequency value. To begin, calculate the ramp rate, and cover 1.2 MHz on both sweeps. The ramp rate tells the part how many SYNC_CLK cycles (for SYSCLK cycles) to send at each incremental value. When the shortest time possible is spent at each incremental frequency, the most linearized sweep is achieved; therefore, the part should only spend one SYNC_CLK period at each incremental frequency, which ensures that the smallest frequency steps possible are taken. For a 400 MSPS SYSCLK, the result is a 100 MHz SYNC_CLK rate or a 10 ns SYNC_CLK period. This means on the finest resolution, 120 incremental steps squeeze into the rising sweep (1.2 μs/10 ns) and 180 on the falling sweep (1.8 μs/10 ns). For the rising delta frequency, a 1.2 MHz/120 steps is calculated, which means each step is approximately 10 kHz for the rising delta frequency and approximately 666.6666 Hz for the falling delta frequency. The logic in the linear sweep block ensures that FTW1 on a rising sweep or FTW0 on a falling sweep is not exceeded. If the exact incremental tuning word is not achieved using the 32-bit resolution, round up, not down, to ensure the entire range during the sweep is covered. To calculate the rising delta frequency word, simply calculate (10 K/400 M) × 232 = 0x0001A36F. Combining the rising ramp rate, first byte, and the rising delta frequency, the second byte to fifth byte yields the PLSCW: 0x010001A36F. Likewise, the NLSCW works out to 0x0100001BF4. Table 14 is a summary table of instruction and data bytes to write to. Table 14. Linear Sweep Example Write Instructions Register CFR1 FTW0 FTW1 NLSCW RLSCW Instruction Byte 0x00 0x04 0x06 0x07 0x08 Data Byte 0x00200000 0x27611340 0x2825AEE6 0x0100001BF4 0x010001A36F RAM MODE FTW0 for 61.53 MHz (the start frequency) FTW1 for 62.73 MHz (the stop frequency) CFR1 to put the part into linear sweep mode The positive linear sweep control word (PLSCW), to make as linearized a chirp in 1.20 μs The negative linear sweep control word (NLSCW), to make as linearized a chirp in 1.80 μs This example programs the RAM. Use the RAM on the AD9954 to simulate the nonlinear filter shape of a Gaussian filter response on the FSK data. Begin by plotting the filter response from F0 to F1 and from F1 to F0. The transition time specification (see Table 1) tells how long it takes to transition from F0 to F1 and from F1 to F0, either as an actual time value or as a fraction of the symbol rate. Both ways show how long it can take to change symbols, and for this application, it is 100 ns. To program the RAM, decide how many RAM segments to use, program the RAM segment control word for each of those segments, and load the RAM data for each of those segments. Rev. B | Page 33 of 40 AD9954 Because there is a ramp-up, but no ramp-down, RAM mode, two RAM segments are generated; one for the transition from F0 to F1, and one for the transition from F1 to F0. Step through the intermediary frequencies as quickly as possible, because the faster the steps, the less the output frequency deviates from the ideal frequency response of the filter. The fastest the AD9954 can step through the values in the RAM is at the SYNC_CLK rate, or ¼ of the SYSCLK rate, which works out to 10 ns, assuming the maximum SYSCLK rate of 400 MSPS. Dividing the total transition time of 100 ns by the time for each transition, 100 steps can be taken. The intermediary frequencies are solved by looking at the instantaneous frequency on the curve every 10 ns and by recording that value. This gives 200 frequency values, 100 representing the change from F0 to F1 and 100 representing the change from F1 to F0. This is the information needed to program the RAM. Begin by programming CFR1 to set the RAM enable bit. Calculate and program RSCW0 and RSCW1. Each of the RAM segment control words has an address ramp rate (16 bits), a final address (10 bits), a beginning address (10 bits), a mode control value (3 bits), and a no-dwell flag. Stepping through the intermediary frequencies as quickly as possible was previously discussed; therefore, the ramp rate for each word is 0x0000. Define RAM Segment 0 to occupy the RAM space from Address 0 to Address 99, which gives 100 values. Define RAM Segment 1 to occupy Address 100 to Address 199 (also 100 values). Look at the modes of operation choice and recognize that the ramp-up mode is used to step through each of the addresses and then holds the final value in the profile. Therefore, for each RSCW, the mode control bits are b’001. Because staying at the last value is recommended, the no-dwell bit is 0. To form the data for each RSCW, combine these values. For RSCW0, it is 0x0100630020. For RSCW1, it is 0x0100C79021. Because the words that comprise the RSCW are not contiguous, care must be taken in calculating the RSCW. Make a chart of each of the subwords in order: address ramp rate, final address, beginning address, mode, and no dwell. Write the binary values for each subword, and then, with a copy of the register map printed out, write each of the binary bits into the map. When this is completed, the individual bytes can be read from the map. For example, Table 15 shows how RSCW1 would appear. Table 15. RAM Mode Register Table Settings RAM Segment Control Word No. 1 (RSCW1) (0x08) <7:0> <15:8> <23:16> <31:24> <39:32> NoRAM Segment 1 RAM Dwell Beginning Segment 1 Mode Control Active Address <9:6> 0 0001 <2:0> 001 RAM Segment 1 RAM Segment 1 Beginning Final Address <9:8> Address <5:0> 00 100100 RAM Segment 1 Final Address <7:0> 11000111 RAM Segment 1 Address Ramp Rate <15:8> 00000000 RAM Segment 1 Address Ramp Rate <7:0> 00010000 The RSCW0 and RSCW1 values must be loaded into their registers before attempting to write data to RSCW0 and RSCW1; therefore, issue an I/O update. The next step is to convert each of the intermediary frequencies into a frequency tuning word according to ftw fi 2 32 SYSCLK where: fi is the desired intermediary frequency. SYSCLK is the system clock rate. Once this is complete, the result for each profile should be a vector of 100 32-bit words. To write RAM Segment 0, select Profile 0 (PS0 = 0, PS1 = 0), and then write the instruction byte b’00001011, which indicates a RAM write operation is going to be performed. The serial port I/O controller recognizes this and polls the profile select pins, thus determining that Profile 0 is the target storage location for the data out of RSCW0 previously entered. It now knows to put the first word at Address 0, the last word at Address 99, and that there are 100 words in total. Proceed to load all 100 32-bit frequency words into the RAM. When this is done, write the data to RAM Segment 1. First, change to Profile 1 (PS0 = 1, PS1 = 0), and then write the RAM instruction byte again. The device now knows to write the first word at Address 100, the last word at Address 199, and again that there are 100 words in total. Write all 100 32-bit words of RAM Segment 1 and issue an I/O update. Whenever the PS0 pin is toggled (from 0 to 1), the part steps through the RAM segment, which is the Gaussian-shaped pattern programmed into the RAM. Rev. B | Page 34 of 40 AD9954 SUGGESTED APPLICATION CIRCUITS 03374-012 AD9954 FREQUENCY TUNING WORD MODULATED/ DEMODULATED SIGNAL RF/IF INPUT LPF REFCLK PHASE OFFSET WORD 1 I/I-BAR BASEBAND REFCLK CRYSTAL Figure 31. Synchronized LO for Upconversion/Downconversion AD9954 DDS IOUT IOUT LPF REFCLK CRYSTAL OUT SYNC_OUT RF OUT LOOP FILTER SYNC_IN VCO AD9954 DDS AD9954 IOUT LPF REFCLK 03374-013 FILTER IOUT TUNING WORD FREQUENCY TUNING WORD Figure 32. Digitally Programmable Divide-by-N Function in PLL LPF IOUT LPF AD9954 DDS AD9954 03374-014 ON-CHIP COMPARATOR CMOS LEVEL CLOCK Q/Q-BAR BASEBAND Figure 34. Two AD9954s Synchronized to Provide I and Q Carriers with Independent Phase Offsets for Nulling TUNING WORD IOUT PHASE OFFSET WORD 2 Figure 33. Frequency Agile Clock Generator Rev. B | Page 35 of 40 03374-015 REF SIGNAL PHASE COMPARATOR Figure 35. Evaluation Board Channel 1 Rev. B | Page 36 of 40 C30 13pF L1 39nH C50 13pF C31 27pF L2 56nH C52 6.8pF R3 243Ω C29 33pF L3 68nH C51 2.2pF C35 39pF 3 C32 22pF 2 AVDD 7 AGND 8 OSC/REFCLK 9 OSC/REFCLK 10 CRYSTAL OUT 11 CLKMODESELECT 12 LOOP_FILTER DVDD DGND AVDD AGND I/O UPDATE GND 1 4 6 5 4 J2 FILTER_IN_DUT1 W1 PS1_DUT1 1 2 3 AVDD R8 25Ω AVDD NOTES 1. THE FULL-SCALE DAC OUTPUT CURRENT IS CONTROLLED BY MEANS OF AN EXTERNAL RESISTANCE (RSET ) CONNECTED BETWEEN THE DAC_R SET PIN AND GROUND. RESISTOR VALUES FOR FULL-SCALE CURRENTS ARE: 3.92kΩ = 10mA, 5.23kΩ = 7.5mA, 7.87kΩ = 5.0mA, 15.8kΩ = 2.5mA. 2. C33 IS USED FOR A SIMULATED CAPACITANCE LOAD FOR THE COMPARATOR OUT. THE CAPACITANCE VALUE SHOULD NOT EXCEED 10pF. 3. CAPACITORS C48 AND C49 SHOULD BE SOLDERED IN PLACE WHEN THE REF_CLK_DUT1 INPUT IS USED. CAPACITORS C35 AND C36 SHOULD BE SOLDERED IN PLACE WHEN CRYSTAL ×1 IS USED IN CONJUNCTION WITH THE INTERNAL OSCILLATOR. 4. USE EITHER RESISTORS R4 AND R5 (COMPARATOR INPUTS) OR R6 AND R7 (FILTERED OUTPUT) FOR THE IOUT AND IOUT. DO NOT USE BOTH SETS AT THE SAME TIME. J1 AVDD AVDD GND XTAL_DUT2 CLKMODESEL_DUT1 C36 39pF GND C34 0.01µF C49 0.1µF R1 50Ω C48 0.1µF ×1 25MHz XTAL_DUT2 J3 FILTER_OUT_DUT1 CRYSTAL OUT DUT2 J4 REF_CLK_DUT1 4 1 T1 5 3 BALUN NOTE 3 1 2 3 4 5 6 PS0_DUT1 OSK_DUT1 SYNCMULTI_DUT2 SYNCMULTI_DUT1 R6 0Ω U7 AD9954 AGND AGND AVDD AGND DVDD GND AVDD GND DVDD_I/O AVDD NOTE 4 R4 0Ω AVDD FUD_DUT1 AVDD AVDD AVDD GND SDIO SCLK CSB_DUT1 SDO GND PS1 48 47 PS0 46 OSK 45 SYNC_CLK 44 SYNC_IN 43 DVDD_I/O AVDD 13 14 15 16 17 18 GND GND AVDD GND I/O_SYNC_DUT1 42 41 40 39 38 37 DGND SDIO SCLK CS SDO AVDD IOUT IOUT AGND DACBP R9 25Ω R5 0Ω AVDD AVDD GND AVDD GND AVDD R10 3.92kΩ GND C7 0.1µF GND DVDD C47 1µF C6 0.1µF C12 0.1µF L4 18nH C37 22pF L8 20nH C46 7.5pF C11 0.1µF GND C4 0.1µF L6 20nH C39 7.5pF C42 39pF DVDD_I/O C45 22pF L7 18nH C38 33pF C5 0.1µF C10 0.1µF C44 39pF L9 12nH C41 22pF L5 12nH C40 39pF J5 COMP_OUT_DUT1 C33 SEE NOTE 2 R14 50Ω PWRDWNCTRL_DUT1 DVDD GND GND RESET_DUT1 NOTE 2 NOTE 1 R7 0Ω RESET 36 35 PWRDWNCTL 34 DVDD 33 DGND 32 AGND 31 COMP_IN 30 COMP_IN 29 AVDD 28 COMP_OUT 27 AVDD 26 AGND 25 AVDD IOSYNC DAC_R SET 19 20 21 22 23 24 GND C8 0.1µF C9 0.1µF C43 33pF C3 0.1µF C2 0.1µF C1 0.1µF 03374-033 DUT 1 AD9954 EVALUATION BOARD SCHEMATICS Rev. B | Page 37 of 40 Figure 36. Evaluation Board Channel 2 J6 C59 13pF L10 39nH C53 13pF C61 0.01µF C64 0.1µF C57 27pF L12 56nH C60 6.8pF CRYSTAL OUT DUT2 J7 XTAL_DUT2 AVDD R21 0Ω R18 50Ω C63 0.1µF C56 33pF L11 68nH C54 2.2pF 3 C55 22pF 2 AVDD 7 AGND 8 OSC/REFCLK 9 OSC/REFCLK 10 CRYSTAL OUT 11 CLKMODESELECT 12 LOOP_FILTER 4 GND 1 6 5 4 J14 FILTER_IN_DUT2 W3 XTAL_OUT R16 243Ω XTAL_OUT CLKMODESEL_DUT2 AVDD GND 1 2 3 AVDD AVDD NOTES 1. THE FULL-SCALE DAC OUTPUT CURRENT IS CONTROLLED BY MEANS OF AN EXTERNAL RESISTANCE (RSET ) CONNECTED BETWEEN THE DAC_R SET PIN AND GROUND. RESISTOR VALUES FOR FULL-SCALE CURRENTS ARE: 3.92kΩ = 10mA, 5.23kΩ = 7.5mA, 7.87kΩ = 5.0mA, 15.8kΩ = 2.5mA. 2. C58 IS USED FOR A SIMULATED CAPACITANCE LOAD FOR THE COMPARATOR OUT. THE CAPACITANCE VALUE SHOULD NOT EXCEED 10pF. 3. FOR CRYSTAL OUT CLOCK OPERATION REMOVE T4, TERMINATE THE OSC/REFCLK TO EITHER AVDD (R30) OR GND (R31) AND SOLDER R21 IN PLACE. DO NOT USE R30 OR R31 SIMULTANEOUSLY. J12 FILTER_IOUT_DUT2 REF_CLK_DUT2 4 1 T4 5 3 BALUN GND AVDD AVDD NOTE 3 PS1_DUT2 I/O UPDATE DVDD DGND AVDD AGND PS0_DUT2 OSK_DUT2 SYNCMULTI_DUT1 SYNCMULTI_DUT2 U8 AD9954 AGND AGND AVDD AGND R22 25Ω GND GND AVDD GND R31 0Ω 1 2 3 4 5 6 DVDD_I/O AVDD 13 14 15 16 17 18 AVDD DVDD GND AVDD GND AVDD FUD_DUT2 CSB_DUT2 SDO GND R30 0Ω GND SDIO SCLK AVDD IOUT IOUT R9 25Ω NOTE 1 AVDD GND J9 AVDD R2 3.3kΩ R25 10kΩ C13 0.1µF GND DVDD C14 0.1µF J11 C15 0.1µF C24 0.1µF J10 COMP_IN C65 0.1µF C16 0.1µF C18 0.1µF C17 0.1µF C19 0.1µF RB_ENABLE SDIO SDO SCLK CS_DUT2 RESET_DUT2 CLKMODESEL_DUT2 PWRDWNCTRL_DUT2 I/O_SYNC_DUT2 FUD_DUT2 OSK_DUT2 PS1_DUT2 PS0_DUT2 C23 0.1µF GND DVDD_I/O COMP_OUT_DUT2 C66 0.1µF AVDD R11 3.3kΩ R24 10kΩ GND C22 0.1µF C58 SEE NOTE 2 GND AVDD C62 1µF NOTE 2 AVDD AVDD GND AVDD PWRDWNCTRL_DUT2 DVDD GND GND GND RESET_DUT2 R15 3.92kΩ RESET 36 35 PWRDWNCTL 34 DVDD 33 DGND 32 AGND 31 COMP_IN 30 COMP_IN 29 AVDD 28 COMP_OUT 27 AVDD 26 AGND 25 AVDD IOSYNC DAC_R SET AVDD I/O_SYNC_DUT2 PS1 48 47 PS0 46 OSK 45 SYNC_CLK 44 SYNC_IN 43 DVDD_I/O 42 DGND 41 SDIO 40 SCLK 39 CS 38 SDO 37 AGND DACBP 19 20 21 22 23 24 CS_DUT1 RESET_DUT1 CLKMODESEL_DUT1 PWRDWNCTRL_DUT1 I/O_SYNC_DUT1 FUD_DUT1 OSK_DUT1 PS1_DUT1 PS0_DUT1 COMP_IN P1 P2 P3 P4 P5 P6 P7 P8 P9 P10 P11 P12 P13 P14 P15 P16 P17 P18 P19 P20 P21 P22 P23 P24 P25 C20 0.1µF U13 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 C21 0.1µF P50 P49 P48 P47 P46 P45 P44 P43 P42 P41 P40 P39 P38 P37 P36 P35 P34 P33 P32 P31 P30 P29 P28 P27 P26 GND 03374-034 DUT 2 AD9954 Figure 37. Evaluation Board Interface Logic Rev. B | Page 38 of 40 U4 C36CRPX CLOCK F C3 B7 B5 B4 CLOCK A C1 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 C2 B3 33 34 35 CLOCK D C0 A0 A1 A2 A3 A4 A5 A6 A7 B6 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 2 3 4 5 6 7 8 9 1 U12 2 R36 10kΩ 11 U12 4 10 8 74LVC14A 9 U12 SDI U12 6 5 9 U6 74LVC125A 8 10 74LVC125A 6 4 U6 U6 1 74LVC125A 2 3 PS0_DUT1 PS1_DUT1 PS0_DUT2 PS1_DUT2 OSK_DUT1 OSK_DUT2 FUD_DUT1 FUD_DUT2 GND : 10 VCC : 20 12 13 14 15 16 17 18 19 74LVC14A 5 9 8D 8 7 6 5 4 3 2 1D 74LVC574A U11 1 EN 11 C1 74LVC14A 3 74LVC14A U12 VCC RB_ENABLE R37 10kΩ VCC GND R35 10kΩ VCC SCLK1 74LVC14A VCC R34 10kΩ SDO SDIO 9 8D 8 7 6 5 4 3 2 1D 74LVC574A U10 1 EN 11 C1 12 13 14 15 16 17 18 19 I/O_SYNC_DUT1 I/O_SYNC_DUT2 PWRDWNCTRL_DUT1 PWRDWNCTRL_DUT2 CLKMODESEL_DUT1 CLKMODESEL_DUT2 RESET_DUT1 RESET_DUT2 GND : 10 VCC : 20 GND VCC C72 0.1µF GND DVDD_I/O GND AVDD C71 0.1µF C26 10µF C25 10µF 9 8D 8 7 6 5 4 3 2 1D 74LVC574A U9 1 EN 11 C1 C70 0.1µF C69 0.1µF GND VCC GND DVDD SDI SCLK CSB_DUT1 CSB_DUT2 REF_CLK GND : 10 VCC : 20 12 13 14 15 16 17 18 19 GND VCC C68 0.1µF C28 10µF C27 10µF J15 R32 0Ω DVDD AVDD DVDD_I/O GND VCC DIGITAL LOGIC REF CLK SCLK1 TB5 U3 5 4 3 2 1 03374-035 W2 AD9954 AD9954 OUTLINE DIMENSIONS 9.00 BSC SQ 1.20 MAX BOTTOM VIEW (PINS UP) 37 36 48 1 37 36 48 1 7.00 BSC SQ PIN 1 3.50 SQ TOP VIEW (PINS DOWN) 0° MIN 1.05 1.00 0.95 0.15 0.05 SEATING PLANE 0.20 0.09 7° 3.5° 0° 0.08 MAX COPLANARITY EXPOSED PAD 12 13 VIEW A 25 24 25 24 0.50 BSC LEAD PITCH VIEW A ROTATED 90° CCW 12 13 0.27 0.22 0.17 FOR PROPER CONNECTION OF THE EXPOSED PAD, REFER TO THE PIN CONFIGURATION AND FUNCTION DESCRIPTIONS SECTION OF THIS DATA SHEET. COMPLIANT TO JEDEC STANDARDS MS-026-ABC 011708-A 0.75 0.60 0.45 Figure 38. 48-Lead Thin Quad Flat Package, Exposed Pad [TQFP_EP] (SV-48-4) Dimensions shown in millimeters ORDERING GUIDE Model AD9954YSV AD9954YSV-REEL7 AD9954YSVZ1 AD9954YSVZ-REEL71 AD9954/PCBZ1 1 Temperature Range −40°C to +105°C −40°C to +105°C −40°C to +105°C −40°C to +105°C Package Description 48-Lead Thin Quad Flat Package, Exposed Pad [TQFP_EP] 48-Lead Thin Quad Flat Package, Exposed Pad [TQFP_EP] 48-Lead Thin Quad Flat Package, Exposed Pad [TQFP_EP] 48-Lead Thin Quad Flat Package, Exposed Pad [TQFP_EP] Evaluation Board Z = RoHS Compliant Part. Rev. B | Page 39 of 40 Ordering Quantity 500 500 Package Option SV-48-4 SV-48-4 SV-48-4 SV-48-4 AD9954 NOTES ©2003–2009 Analog Devices, Inc. All rights reserved. Trademarks and registered trademarks are the property of their respective owners. D03374-0-5/09(B) Rev. B | Page 40 of 40