This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DAC34SH84EVM: DLL of DAC34SH84 Software GUI

Part Number: DAC34SH84EVM
Other Parts Discussed in Thread: DAC34SH84,

Hello,

I am trying to make automated code for the DAC34SH84EVM similar to the high speed data converter pro automation DLL, something that is very user friendly. I have been using the labview code from a post I found in the E2E forums, here the person is provided with SPI utilities labview code and a pattern text for the DAC5682 in a txt file. Is there any way I could get a pattern text file similar to the one provided in the forums but for the DAC34SH84 that can be used with the DAC34SH84EVM? 

Here is the link I am referring to:  e2e.ti.com/.../1652224

Thank you,

Joshua Johnson

  • Hi Joshua,

    The first reply, from Kang Hsia, in the thread that you shared includes a suite of files. The DAC348x.txt pattern file 

    DAC348x.txt
    Write																																																			
    0	0	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	0
    1	0	0	0	A6	A6	A5	A5	A4	A4	A3	A3	A2	A2	A1	A1	A0	A0	D15	D15	D14	D14	D13	D13	D12	D12	D11	D11	D10	D10	D9	D9	D8	D8	D7	D7	D6	D6	D5	D5	D4	D4	D3	D3	D2	D2	D1	D1	D0	D0	0	0
    2	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    3	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    4	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    5	1	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	1
    6	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    7	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    																																																			
    Read																																																			
    0	0	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	1	0	0
    1	0	1	1	A6	A6	A5	A5	A4	A4	A3	A3	A2	A2	A1	A1	A0	A0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    2	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    3	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    4	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1
    5	1	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	1
    6	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	D15	D15	D14	D14	D13	D13	D12	D12	D11	D11	D10	D10	D9	D9	D8	D8	D7	D7	D6	D6	D5	D5	D4	D4	D3	D3	D2	D2	D1	D1	D0	D0	0	0
    7	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    
     ,as I understand, may work for the DAC34SH84 as well. Have you tried to use this pattern file for your code?

    Best Regards,

    Dan

  • Hi Dan,

    I actually have tried this text file and I did not have a successful output. Is there any way I could get an file similar to the file I attached from the configuration files but in a format for the FTDI pattern generator? Also an explanation as to how I would go about convertering a configuration file from the DAC348x GUI to a txt file for the FTDI generator?

    Thank you,

    Joshua Johnson

    DAC34SH84_FDAC1474p56MHzPLL_2x_NCOoff_QMCoff_CDCE62005_VCO_737p28MHz.txt
       x00	   x019C
       x01	   x000E
       x02	   x0002
       x03	   xA001
       x04	   xFFFF
       x05	   x0000
       x06	   x3800
       x07	   xFFFF
       x08	   x0000
       x09	   x8000
       x0A	   x0000
       x0B	   x0000
       x0C	   x05A6
       x0D	   x05A6
       x0E	   x05A6
       x0F	   x05A6
       x10	   x0000
       x11	   x0000
       x12	   x0000
       x13	   x0000
       x14	   x0000
       x15	   x0640
       x16	   x0000
       x17	   x0640
       x18	   x2454
       x19	   x1074
       x1A	   x6800
       x1B	   x0800
       x1C	   x0000
       x1D	   x0000
       x1E	   x1112
       x1F	   x8882
       x20	   x2400
       x22	   x1B1B
       x23	   xFFFF
       x24	   x1000
       x25	   x7A7A
       x26	   xB6B6
       x27	   xEAEA
       x28	   x4545
       x29	   x1A1A
       x2A	   x1616
       x2B	   xAAAA
       x2C	   xC6C6
       x2D	   x0004
       x2E	   x0000
       x2F	   x0000
       x30	   x0000
       x7F	   x0000
    CDCE62005 Registers
    Freq:0.000000MHz
    Address	Data
    00		00400000
    01		81400321
    02		800C0302
    03		C1840303
    04		C1840304
    05		00101A85
    06		04BF1B36
    07		151877F7
    08		20001808

  • Hi Josh,

    I used the aforementioned "FTDI Pattern Generator Example Code - Modified.vi" to verify that the "DAC348xEVM.txt" pattern file works with the DAC34SH84EVM. I used the program FT_Prog to verify that the device name is the same.

    If you follow the procedure "DAC348x Labview_SPI_Software.pptx" (while entering desired register values), you will be able to write/read the registers of the DAC. Please ensure that the DAC34SH84EVM GUI is closed, otherwise the "FTDI Pattern Generator Example Code - Modified.vi" will not be able to use the EVM.

    To test this, I set the NCO to output a 60 MHz tone using the config file "DAC34SH84_FDAC_1474p56MHz_4xint_NCO_30MHz_QMCon.txt" (included in the EVM GUI) and verified the output tone. I then closed the GUI, and launched the FTDI Pattern Generator Example, and directly wrote to the DAC to turn off/on the Digital Mixer.

    You should observe that the output will toggle off/on in accordance with the register writes.

    As far as the format goes, I'm not sure as to how you could make the pattern file look like the configuration file that you attached since these files serve two different functions. The pattern file is telling the FTDI chip how to operate(when to pull chip select low, how many bits are in the address, etc...), and the configuration file is providing address and data values for the FTDI chip to write.

    I hope that helps.

    Best Regards,

    Dan