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.

DAC12DL3200: How to read DAC Register in DAC12DL3200EVM Board through SPI interface.

Part Number: DAC12DL3200
Other Parts Discussed in Thread: , LMX2592, ADC12DL3200EVM

Hi, 

I want to read DAC12DL3200 Register  DAC12DL3200EVM in Python 3 environment

But DAC12DL3200PG2 is base on Python 2 ver.

So I want to control direct access without your DAC12DL3200PG2 

I already know Register Access interface that FT4232HL control to DAC with SPI interface.

DAC12DL3200EVM Board's SPI PIN Map is not normal,

DAC_SDO/DAC_SDI/DAC_SCSB/DAC_SCLK are conneted GPIO Port of FT4232HL 

It is possible to control GPIO port with MPSSE

but it seem to be impossible to generate  SCLK and DAC SPI Timing.

It is possible to control GPIO port with Async Bitbang. generate SCLK and DAC SPI Timing

but  I can not read SDO value. (Read)

Could you send me SPI Control example as python?

or

Could you let me know the way how to control FT4232HL's GPIO for SPI interface in DAC12DL3200

Best Regards

Michael Lee

  • Hi Michael,

    Here is the example script to do spi reads and writes the DAC. Program_EVM.py file has script. 

    Open the Program_EVM file and change the line highlighted below to your location of your pc. PLease note this code uses the DAC GUI FOLDER LOCATION to get the necessary files. Please install the DAC gui before using. 

    The GPIO register writes are not needed. 

    Regards,

    Neeraj 

    DAC12DL3200_EVM_Automation.zip

  • Hi Neeraj

    FTDI_Device.LoadConfigFile(C:/Program Files/Texas Instruments/DAC12DL3200PG2/Configuration Files/LMK_100M_LMX_6400M_Mode2_NRZ_Single_DAC.cfg)

    Do not load Strings that are DAC_RESET / DAC_GPIO0,1,2,3,4 in Configuration file(Configuration Files/LMK_100M_LMX_6400M_Mode2_NRZ_Single_DAC.cfg)

    How Can I control it ?

    should I define FTDI_Devices like LMX2592 in code?

    ex)  FTDI_Device.InitializeDevice("LMX2592", "DAC12DL3200 D", 1228800, PatternFilePath_LMK259

    Best Regards,

    Michael

  • I resolved Configuration issue. Define functions are below.
    FTDI_Device.InitializeDevice("DAC_RESET", "DAC12DL3200 A", 1228800, PatternFilePath_DAC12DL3200)
    FTDI_Device.InitializeDevice("DAC_GPIO0", "DAC12DL3200 A", 1228800, PatternFilePath_DAC12DL3200)
    FTDI_Device.InitializeDevice("DAC_GPIO1", "DAC12DL3200 A", 1228800, PatternFilePath_DAC12DL3200)
    FTDI_Device.InitializeDevice("DAC_GPIO2", "DAC12DL3200 A", 1228800, PatternFilePath_DAC12DL3200)
    FTDI_Device.InitializeDevice("DAC_GPIO3", "DAC12DL3200 A", 1228800, PatternFilePath_DAC12DL3200)
    FTDI_Device.InitializeDevice("DAC_GPIO4", "DAC12DL3200 A", 1228800, PatternFilePath_DAC12DL3200)
    FTDI_Device.InitializeDevice("DAC_GPIO5", "DAC12DL3200 A", 1228800, PatternFilePath_DAC12DL3200)
  • Hi Neeraj

    I am also using ADC Board.

    I  want to get python source in ADC12DL3200EVM

    Could you send me ADC python source ?

    Best Regards,

    Michael