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: Cannot get anything using stdcall XferINTDataIn

Part Number: DDC264EVM

Dear TI,

So far, I have succeded in writing and reading the FPGA registers and comparing it to how the software does things using Visual Basic by running my software and the original TI software side by side. The only problem now is that I cannot configure the DDC264EVM. I succeeded in writing to the configuration register (I think), but when I read the registers, I get nothing. I initialized my DataOut array and when I run XferINTDataIn, I get what I initialized my array with. Please help.

Regards,

Romy

  • Dear TI,
    Below is an excerpt of my program
    'Initialize DDC Regs
    '0000, 0000, 1100, 1200, 1C<DDCHighReg>, 1D<DDCLowReg>, 1F01, 0000, 0000, 1E01
    Result=Result+XferINTDataOut1(0)
    Result=Result+XferINTDataOut1(0)
    Result=Result+XferINTDataOut1(&H1100)
    Result=Result+XferINTDataOut1(&H1200)
    Result=Result+XferINTDataOut1(1C<DDCHighReg>)
    Result=Result+XferINTDataOut1(1D<DDCLowReg>)
    Result=Result+XferINTDataOut1(&H1F01)
    Result=Result+XferINTDataOut1(0)
    Result=Result+XferINTDataOut1(0)
    Result=Result+XferINTDataOut1(&H1E01)
    'Initialize DDCIN Array to &H5A
    for I=0 to 4096
    DDCIn(I)=&H5A
    Next I
    Result=XferIntDataIn(0,DDCIn(0),512)
    If Result <>0 then
    Exit Function
    End If
    Str=""
    For I=0 to 4096
    Str=Str+Hex(DDCIn(I))+vbcrlf
    Next I
    Call WriteToFile(True, "DDCIn.csv", Str)

    Public Function XferINTDataOut1(Byref RegData as Long) As Integer
    Dim I(0 to 3) As Integer, Str As String, MyLen as Integer
    Str=Hex(RegData)
    If Len(Str)<4 Then Str=String(4-Len(Str),"0)+Str
    I(0)=Hex2Int(Mid(Str, 1, 1))
    I(1)=Hex2Int(Mid(Str, 2, 1))
    I(2)=Hex2Int(Mid(Str, 3, 1))
    I(3)=Hex2Int(Mid(Str, 4, 1))
    XferINTDataOut1=CInt(XferINTDataOut(0, I(0), I(1), I(2), I(3)))
    End Function
  • Romeo,
    It's been a while since I've looked at this, but I'll see if I can help. I see you're calling functions from the usb_io...dll file, but where are you getting your code example from? I don't think that we ever released a opcode map or sample code or anything, so I'm concerned that you might be missing steps in terms of what data is being transferred to the FPGA and what data is being transfered through the FPGA to the DDC.
  • Romeo,

    We have not seen a reply to this for about a month, so we will assume this is resolved.