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.

USB-TO-GPIO: Adapter not attached

Part Number: USB-TO-GPIO

When we tried to use the Adapter with the SDK GUI. We couldn't use the GPIO Pins and under Help->About->Firmwareversion it says "Adapter not attached. The device is connected via USB, the green Led is on and it is listed in the Device Manager as a HID -> USB-Inputdevice.

OS: Win10 Pro x64

  • Hello,

    Which device are you communicating with?

  • We are only using the USB-TO-GPIO Adapter. No I²C Devices. We wnat to use the GPIO functionallity to control leds and read (physical) switches.

  • Hello,

    can you clarify which SDK GUI you are referring to?

  • Hello,
    We are using the: USB Interface Adapter GUI-v1.10
    from the download:
    Reference GUIs and Libraries for Eval and Usage of the USB Inteface Adapter
    [http://www.ti.com/lit/zip/sllc288]
    from the site: www.ti.com/.../USB-to-gpio
  • When attempting to use the driver dll in the above download we have managed to rad the Firmware version and set GPIO Pins as output, but we couldn't use them as input.

    Example Code:

    USB_Adapter_Driver.USB_Adapter ad = new USB_Adapter();
    USB_Adapter.Status status;
    string s = "";
    int data = 20;
    
    status = ad.version(ref s);  //Status is Success and s contains the Firmwareversion
    
    status = ad.gpioReadWrite(0x01, 0x00, ref data); //Status is DriverError and data is always unchanged.

    Could you please check if the above code Contains an error. We havn't been able to track down where the "DriverError" Originates.

  • Hello Stefan,

    Sorry for the late reply, needed to do some digging as this isn’t a part of the GUI used often. Firstly the SDK/GUI you pointed to is very old and the functionality regarding the GPIO bits has moved into the Fusion Digital Power Studio found here http://www.ti.com/tool/FUSION-DIGITAL-POWER-STUDIO .

    The Fusion Digital Power Studio comes with some other tools, and the one of interest here is the UCD3xxx Device GUI. You can get that by going to Menu>Texas Instruments>Fusion Digital Power Studio> Device GUIs>UCD3xxx Device GUI.

    If you click the SMBus/I2C tab you will see a tool called “SMBus Debug”

     

    In this tool you’ll find the GPIO bits in the bottom right:

    Now I will try to give an example of read/writing to it.

    In the USB Interface Adapter Evaluation Module user guide (http://www.ti.com/lit/ml/sllu093/sllu093.pdf) the info for reading and writing is here is on page 37-38.

    So if I wanted to write the 4 last bits I can do it as follows:

    I would need to configure the first row as an output so I will leave the bits unset. In the second row I would set the last 4 bits and then click Read/Write.

    See screenshot below:

    The log of the main window behind will show the transaction.

    -          readMask 0x00

    • This sets all the bits for writing

    -          writeData 0x0F

    • sets the last 4 bits to be high

    The ACK value of 0x00 is the read value of Port 0. Currently from what we set there were no read bits set in the readMask since we set it for writing so it makes sense that it is 0x00.

    Now to read the last 4 bits set (writeData 0x0F) we can now configure for reading the last 4 bits by setting them high and removing the writes for the last 4 bits:

    Now we see that it says ACK 0x0F which is 0x00001111 – indicating the last 4 bits are high that we had initially written.

    After you get something working you can then use those commands in your code as you'll find the API call is very similar to the log.  I would also like to mention that the SAA Adapter has a new API that can be found here 

    Hope this helps!.