Post Go back to editing

No output for AD9175 NCO ONLY mode

Category: Hardware
Product Number: 1
Software Version: 1

Hello,

I'm using AD9175 on a custom board and I want to use NCO only mode by enabling DC test mode for main page.I control the register by SPI.After the configuration, I read back some registers and found that the frequency word register had been written, the DLL was locked, and the JESD204B interpolation was correct.The problem is that the registers (0x148, 0x149) that set the amplitude of the DC test tone are both 0, while I set it to 50FF. Looking through the manual, I found that in order to set the DC test tone amplitude, I need the bit 0 of register 0x130 to be set to 1, which I have also set, but the value of 0x130 read back is still 0.Do you know what this is about?

I have one more question. If I want to use DAC0 output signal, can I always pull the TXEN0 pin up? Once you have configured all the registers, pull TXEN0 up.

Here is my register configuration.I am using JESD204B mode 2, single link, channel interpolation 6x, main interpolation 8x.

//Table50 Power up and required register writes:
0x000:0x81//soft reset
0x000:0x3C
0x001:0x80//single instuction SPI
0x085:0x12
0x091:0x00
0x206:0x01
0x705:0x01
0x090:0x00

//Table51  Close DAC_PLL
0x095:0x01
0x790:0xFF
0x791:0x1F

//Table 52 DLL configure
0x0C0:0x00
0x0DB:0x00
0x0DB:0x01
0x0DB:0x00
0x0C1:0x68
0x0C1:0x69
0x0C7:0x01

//Table53 Calibration
0x050:0x2A
0x061:0x68
0x051:0x82
0x051:0x83
0x081:0x03

//Table54 JESD204B Mode
0x100:0x00
0x110:0x2
0x111:0x86
0x084:0x1
0x312:0x0
0x300:0x1
0x475:0x0
0x453:0x01
0x458:0x0F
0x475:0x01
//Table55  Channel Datapath Setup

0x008:0x1

0x146:0x0

0x147:0x8

0x130:0x41

0x132:0x0

0x133:0x0

0x134:0x0

0x135:0x0

0x136:0x0

0x137:0x0

0x138:0x0

0x139:0x0

//Table56 Main DAC Datapath Setup
0x008:0x40//DAC0
0x148:0xFF
0x149:0x50
0x1E6:0x02
0x112:0xE
0x114:0x7D 
0x115:0xF8
0x116:0xC
0x117:0xBB
0x118:0x2
0x119:0x0
0x11C:0x0
0x11D:0x0
0x124:0x77
0x125:0x1
0x126:0x0
0x127:0x0
0x128:0x0
0x129:0xE5
0x12A:0x00
0x12B:0x00
0x12C:0x00
0x12D:0x00
0x12E:0x00
0x12F:0x00
0x113:0x00

0x113:0x01


//Table59 . Cleanup Registers
0x085:0x1
0x1DE:0x03
0x008:0xC0
0x596:0x0C

Parents
  • Hello, in order to set the test tone amplitude for dac0 you have to first page channel 0 (W 0x01 to 0x008, then W values to 0x148/149). If you want to set the amplitude for dac1 you do so by paging channel 1 prior to setting the amplitude values. Then return to paging the main dac itself for all other path-specific settings. The test tone is shared between the main and channel paths, so the amplitude value gets set at the channel level (a bit confusing!)

    If you want to use the test tone on the main path you should leave 0x130[0] as 0 for all the channels to keep the channel NCOs disabled. Then you should set 0x1E6[1] to 1 to enable test tone input to the main NCO. Let me know if these updates work for you.

    Regarding the TXEN0 pin, it's fine to tie it high, but by setting 0x596=0x0C transmission is already enabled via SPI and set high. If 0x03F does not have bit 4 set (which gives the TXEN0 pin control of muting the dac0 output) then values on the TXEN0 pin will not affect the output anyway and only changing 0x596[3] will do so.

  • Hello,

        Thank you for your answer.

        I tried what you said: I page channel0 and channel1,and I set the amplitude values respectively. This is done after setting up the main DAC path. I can read back the values of registers 0x148 and 0x149, but at this time the FTW register reads back the value is 0!!!(I tried writing the main DAC FTW registers, 0x148, 0x149 in different order, and I found that the test sound amplitude and the FTW register could not read back the values I had set at the same time.)The above phenomenon makes me very confused. I thought the DC test tone was the input to the main NCO, and the amplitude of the output signal from the main NCO was the same as the amplitude of the DC test tone. Is there a problem with my understanding? Can you describe the following relationship between the DC test tone and the main NCO, and how the two work? (Suppose I want to use the main NCO to output a 1MHz signal in "NCO only mode", do I just need to set the FTW word of the main NCO and make sure the DC test tone is fed into the main NCO?)

  • Hello, 

    To set and readback the DC amplitude values you must be paged into the respective channel (0x01 for dac0, 0x02 for dac1). Then to set/read the main FTW you page into the MAIN dac, so 0x40 for dac0 and 0x80 for dac1. The only time you page into the channels for anything related to the main dacs is for the test tone setting. Otherwise you always want to be paged ito the respective main dac to check main path settings. So if you have set the test tone using the channel paging, and then set the main FTWs using the main dac paging you should be all set. In order to read those values back you have to do the appropriate paging, so you can't read both "at the same time" without changing to the correct page. Does that make sense?

    For your example case you will want to set the main 1MHz FTW while paged into the main dac, and make sure the test tone value is set to the desired amplitude by paging into the correct channel to r/w. If you have the other settings as discussed previously (muxing the test tone into the main path using 0x1E6 (not paged)) then you should see the expected output. Let me know if this works for you!

  • Hello,

    I have tried the configuration you mentioned (I accidentally got the signal output before, but after the modification, the signal disappeared=.=). The following is a register value I read, please take a look at the reason why there is no output.

    In the above figure, I set 0x008 to 0x01 and read the test tone amplitude (0x148, 0x149). I also set 0x130 [0] to 0.

    Similarly, I set 0x008 to 0x02 and also read the corresponding test tone amplitude.

    In the above figure, I set 0x008 to 0x40 (main dac0), read the FTW register value (0x114), and set 0x1E6 [1] to 1 (routing the DC test tone to the main data path).

    Besides these, is there anything else that could cause the main DAC to fail to output? Do you have any testing suggestions? Thank you very much for your help!

    The above picture is a signal that I accidentally output before. I set it to full scale output. May I ask if the amplitude of the full scale output is around 70mV? Or other values?

    Thank you again for your help!

  • I forgot to add just now. This is the signal I am measuring now. I don't think it's the correct signal, it's just noise.....

  • Hello,

    Do you have main NCO enabled with 0x112[3]=1 (with paging 0x008=0x40)? For dac0 NCO-only steps are: page channel 0 and write amplitude, page dac0 and mux in dc with 0x1e6[1]=1, set ftw with 0x114-119 and enable the nco with 0x112[3]=1. Do you also have 0x596=0x0C for dac0 to enable transmission?

    In your spi-write screenshots does the progression go bottom to top? You have to page the dac or channels before reading or writing a value. In the screenshots it looks like you read amplitude before you page channel 0, but maybe the commands are shown in the other direction?

Reply
  • Hello,

    Do you have main NCO enabled with 0x112[3]=1 (with paging 0x008=0x40)? For dac0 NCO-only steps are: page channel 0 and write amplitude, page dac0 and mux in dc with 0x1e6[1]=1, set ftw with 0x114-119 and enable the nco with 0x112[3]=1. Do you also have 0x596=0x0C for dac0 to enable transmission?

    In your spi-write screenshots does the progression go bottom to top? You have to page the dac or channels before reading or writing a value. In the screenshots it looks like you read amplitude before you page channel 0, but maybe the commands are shown in the other direction?

Children
  • Hello,

        Thank you for your help. Based on your suggestion, I have found the problem!I read the value of 0x112 (paginated to the main DAC0) and found it to be 0. However, I have already paginated to DAC0 and set it to 0x9, so I made modifications based on the register configuration exported by ACE: after paginated to DAC0, I first write 0x112 as 0x40, then write 0x112 as 0xd, and then there is output!

        I have another question: I configured according to the following formula, writing FTW (X: integer part) and A and B (decimal part), but the frequency measured by the oscilloscope is different from what I set: I set DAC0 to output 10MHz, and the actual output frequency is 7.85M; Set DAC0 to output 500kHz, with an actual output frequency of 393kHz; Set DAC0 to output 50MHz, and the actual output frequency is 39.1MHz. I have set 0x112 to 1101 (enable analog-to-digital mode) and can read back the values of A and B. Is this what should happen? Or is there a problem with my configuration?

        Thank you again for your help!

           

  • Hello,

    Glad to hear you were able to get output! 

    For the NCO values you listed you should just use the "X" value (written in 0x114-119) and disable the modulus enable bit 0x112[2]=0, since you don't need fractional frequencies beyond 48 bit accuracy (which would use A/B in 0x12A-12F and 0x124-129). Try removing your A/B values and disabling the modulus nco.

  • Hello,

        Thank you for your suggestion. I tried your suggestion (setting 0x112 [2]=0 and clearing A/B), which may not match my hardware circuit.

        In the hardware circuit, the clock frequency of the input CLKIN pin is 12GHz, and I bypassed the PLL, so the fDAC is 12GHz.

        According to the description in the manual, for the main DAC, fNCO, CLK=fDAC=12GHz

        Therefore, if I want to enable DAC0 to output frequencies such as 10MHz or 50MHz, I need to use analog-to-digital mode because M/N has decimal parts.

        The values I calculated for X, A, and B should be correct, so I think there may be a problem with the clock frequency. May I ask if my previous understanding of fNCO and CLK is correct? Do you have any suggestions?

        Thank you again for your help and wish you success in your work!

  • Hello,

    You are correct that Fdac=Fnco=12Ghz, but you do not need to use the A/B modulus portion.

    For example, to get the main path FTW for a 50Mhz output using a 12Ghz Fdac you divide the 50Mhz carrier by the 12Ghz Fdac and then multiply by the NCO resolution of 2^48:

    (50e^6/12e^9)*2^48=1,172,812,402,961 rounded to the nearest integer, which gives you a FTW in hex of 0x011111111111. If you page dac0, put this hex value in 0x114 through 0x119 where 0x119 is the MSB of 0x01, and enable the NCO and the DC test tone as before and you will see an output at dac0 of 50MHz. Technically, the output is 49.99999999999716MHz -- is there a reason you need to be closer than this to 50Mhz?

  • Hello,

    Thank you for your explanation. I may have noticed a problem: when I burned the program into FPGA, it did not output 12GHz correctly. When I burned the program again, it could output the correct frequency.

    I tried to control AD9175 to continuously output signals of different frequencies, such as 1MHz, 2MHz, 3MHz But I encountered a problem updating the frequency, and I did this:

    After writing the registers in Table 59, I page 0x008 to the main DAC0, write 0x114-0x119, set 0x113 to 0, set 0x113 to 1, page 0x008 to 0xC0, and write 0x596 to 0x0C.The problem is that when I use the above operation to update the frequency for the third time, I cannot output the correct signal (set 10MHz first, output correctly, update to 11MHz, output correctly, update to 12MHz, output still 11MHz).

    I have also tried other register write sequences, but they cannot update the frequency continuously correctly. Do you have any suggestions?

    Thank you for your help.

  • Hello,

    I don't think you need to write 0x0C to 0x596 after each update, that register just enables transmission via SPI. Once it is set transmission stays enabled unless you clear either bit. I'm not sure why the FTW request transition (0x113[0] low to high) would work once and then not work a second time. You are sure you are still paged into dac0 when you write the new FTW and toggle the load request bit? As a side note, if you are looking for frequency hopping the AD9174 offers 31 additional FTW banks so that new FTWs can be programmed on start-up and then loaded into the NCO with a single SPI write during operation.

  • Hello,

    Thank you for your suggestion. I would like to inquire about the function of register 0x085. When my program does not write 0x085 as 0x1 at the end, there is no signal output. So, when I want to modify register 0x114-0x119, do I need to set 0x085 as 0x12 every time? After writing 0x114-0x119, Set 0x085 to 0x1 again I have tried the above operation and found a strange phenomenon: the first time I set the output frequency to 10MHz, the second time I set it to 11MHz, and the oscilloscope measured the output frequency to 10MHz, but it can read 0x114-0x119 as 11MHz; the second time I set it to 14MHz, the oscilloscope measured the signal to 14MHz. This phenomenon puzzled me because I had no problem outputting 11MHz in a single operation, and under the same operation, the second time The second setting of 14MHz can output, while 11MHz outputs the first setting of 10MHz. The only difference is the value of 0x114-0x119.
    Do you have any suggestions for configuring 0x085?
    Thank you for recommending AD9174. In the future, we may consider 9174 or other chips with frequency scanning function. It may be troublesome to update the frequency points one by one......

  • Hello, you should not need to modify 0x85, which is the non-volatile memory clocking control register. Bit 0 turns the clock off, so I don't know why there would be a difference in behavior between 0x13 and 0x1 as register values, but it should not affect your dac output or FTW loading.

    The only registers that need to be changed for frequency updates for the main NCO are 0x114-0x119 and then 0x113[0] toggled from 0 to 1 to request the FTW update. For the channel NCOs use 0x132-135 for the desired FTW and 0x130[0] toggled 0 to 1 to update the channel NCO FTW. Anytime you are re-writing and updating an FTW you must be paged into the appropriate channel or main dac, and the associated NCOs must be enabled. 

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.