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.

DDC264EVM: Dialog with DDC264EVM ?

Part Number: DDC264EVM
Other Parts Discussed in Thread: DDC264

Hi everyone,

I realized a PCB to read 64 current input that i plug on the FCI84500 connecteur of the DDC264EVM. I would like communicate with the DDC264EVM with my own GUI for real time data acquisiton.

So, i found on this forum the "USB_IO_for_VB6.dll", "USB_IO_for_VB6.cpp" and "USB_IO_for_VB6.dl.h"

Is it possible to use python with this elements ? Somebody can help me to start a data reading out. I didn't understand how to use libraries with the "DLL User’s Guide for DDC 264 EVM" .

I already succeed to read idVendor and idProduct of DDC264evm with Python.... :)

Please help me.

Best regards.

Anthony Duranti

  • Hi Anthony,

    I can provide you with the latest version of the "USB_IO_for_VB6.dll" User guide, which might be newer to the one you acquired:

    0216.USB_IO_for_VB6_DLL_User_Guide.pdf

    Unfortunately we do not have any source code we can provide and it's something you would need to build on your own doing some research.

    The DLL User Guide should have enough information on how to interact with the DLL to configure and capture data from the DDC264 device.

    Hope this can help you further.

    Simon

  • Hi Simon,

    The DLL User guide update is better than the first than i found.Thanks you very much for your quick help!

    You give me more hope.

    Bye

    Anthony

  • Hi Simon,

    I success to communicate with DDC264evm via Labview and the function "WriteFPGARegsC".
    Anyway i didn't see the opcode or register Adress to configure the range.

    Can you help me ?

    Best Regards.

    Anthony
  • Hi Anthony,

    I will look into this and see if I can find out the information for that particular opcode.

    Simon.
  • Hi Anthony,

    Sorry for the delay.

    After confirming the FPGA opcodes, I've added some additional information to the DLL's Users Guide that you can use to set the Range, among other things, in the DDC Configuration Register, as follows (from Section 2.Configuring DDC Registers, page 5):

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    2. Configuring DDC Registers:

    First use XferINTDataOut() to send data to board and configure DDC register.

    Since the function at a time writes to only one register, the function has to be executed for multiple times to write to the below mentioned registers in FPGA. The first two digits represent RegH & RegL and the last two digits represent DataH & DataL.

    Data to be sent in sequence: 0000, 0000, 1100, 1200, 1C<DDC_High_Reg Value>, 1D<DDC_Low_Reg Value>, 1F01, 0000, 0000, 1E01.

    The configuration register (opcodes) of DDC264 to be configured are the following:

    Register Address (hex)

    Register Value

    1C

    DDC Configuration register[15:8]

    1D

    DDC Configuration register[7:0]


    As an example, to set the Range[1:0] bit-field you would send the following data sequences:

    • For a range of 3, Range[1] == 1 AND Range[0] == 1:
      0000, 0000, 1100, 1200, 1C06, 1D00, 1F01, 0000, 0000, 1E01.
    • For a range of 2, Range[1] == 1 AND Range[0] == 0:
      0000, 0000, 1100, 1200, 1C04, 1D00, 1F01, 0000, 0000, 1E01.
    • For a range of 1, Range[1] == 0 AND Range[0] == 1:
      0000, 0000, 1100, 1200, 1C02, 1D00, 1F01, 0000, 0000, 1E01.
    • For a range of 0, Range[1] == 1 AND Range[0] == 0:
      0000, 0000, 1100, 1200, 1C00, 1D00, 1F01, 0000, 0000, 1E01.

    Then use XferINTDataIn() to receive data from board which gives the read back values from DDC device....

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

     Refer to the DDC264EVM GUI or the DDC264 Datasheet (Section 8.6 Register Maps, page 23) for more information on each of the bitfields you may want to configure.

    Hope this can help you further,

    Simon

  • Hi Simon,

    Thanks a lot of for you quick answer ! I continue to work on this project and i might have soon some other questions  ...

    Best Regards.

    Anthony

  • Hi Anthony,

    If you were satisfied with the answer, can you mark it as Answered. In that way, I know that it was useful for you.

    I'll be happy to answer to any of your future questions, but if you don't mind open a new thread for that.

    Thanks and best of luck,
    Simon