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.

TPS23880EVM-008: USB2ANY with TPS23880EVM

Part Number: TPS23880EVM-008
Other Parts Discussed in Thread: USB2ANY, TPS23880

Hi ,

I'm trying to turn ON port 6 (4 channel) with I2C only, write to registers directly.

Is there any flow which register to write first ?

I'm trying to write using your USB2ANY with CS dll.

The mode I want to be is 60W and that I could turn it ON and OFF.

BR

Adam Malatzky

  • Hi Adam,

    I assume you use config A mode(8 bit I2C write and read operation) here's an example of configuring channel 5-8 to 4 pair and 60W.

    1. First you need to load the SRAM code to TPS23880. Please follow the steps in this app note. You can download the latest SRAM code from TPS23880 product folder.
    2. Configure ports in semi auto mode (I2C address:0x21; register 0x12, write value: 0xAA)
    3. Configure channel channel 7&8 to 4 pair mode 60W (I2C address:0x21; register 0x29, write value: 0xDD)
    4. Enable channel 5-8 detection/classification  (I2C address:0x21; register 0x14, write value: 0xFF)
    5. Plug your PD to the 4 pair port(either channel 5&6 or channel 7&8)
    6. Check status of register 0x0C~0x0F(depending on which port you plug in) 
    7. Once you see valid detection and classification status, write 0x03 (turn on channel 5&6) or 0x0C to register 0x19. 
    8. If you want to turn off the port you can write 0x30 or 0xC0 to register 0x19.

    Thanks,

    Penny

  • Hi Penny,

    thanks for the quick reply.

    1. I couldn't find the sram.

    2. How do I upload the sram?

    I'm using TI "USB2ANY_C-Sharp_Example"

    BR

    Adam Malatzky

  • Hi Adam,

    The SRAM code can be downloaded here:

    I am not so familiar with USB2ANY_C-Sharp_Example. It is better contact the USB2ANY team. 

    We have MSP430 reference code  you can refer and we also have TPS23880EVM GUI you can communicate through USB2ANY adapter. Please refer to TPS23880EVM user's guide

    Thanks,

    Best regards,

    Penny

  • Hi Penny,

    Do you have any API ?
    For C/C++ C#/.NET

    Best Regards 

    Adam

  • Hi Adam,



    The MSP430 reference code was written in C. Please take a look at it. If you are looking for USB2ANY API, you need to contact USB2ANY team. Thanks.



    Best regards,

    Penny
  • Hi Penny,

    I want to configuring channel 5-8 to 2 pair and 30W at class is it possible ?
  • Hi Adam,

    Yes. You can configure any channel to 2 pair or 4 pair mode. In order to configure channel 5-8 to 2 pair 30W, you will just need to write 0x33 to register 0x29 through I2C address of channel 5-8(I assume you are using config A mode). I2C address of channel 5-8 is channle 1-4's I2C address(decided by A1 to A4 pins) + 1. Thanks.

    Best regards,

    Penny

  • do I need to configure any other register ?
    I'm using this sequence
    "I assume you use config A mode(8 bit I2C write and read operation) here's an example of configuring channel 5-8 to 4 pair and 60W.

    First you need to load the SRAM code to TPS23880. Please follow the steps in this app note. You can download the latest SRAM code from TPS23880 product folder.
    Configure ports in semi auto mode (I2C address:0x21; register 0x12, write value: 0xAA)
    Configure channel channel 7&8 to 4 pair mode 60W (I2C address:0x21; register 0x29, write value: 0xDD)
    Enable channel 5-8 detection/classification (I2C address:0x21; register 0x14, write value: 0xFF)
    Plug your PD to the 4 pair port(either channel 5&6 or channel 7&8)
    Check status of register 0x0C~0x0F(depending on which port you plug in)
    Once you see valid detection and classification status, write 0x03 (turn on channel 5&6) or 0x0C to register 0x19.
    If you want to turn off the port you can write 0x30 or 0xC0 to register 0x19."
  • Hi Adam,

    Your sequence looks good to me. Did you have any issues powering on the PD? Thanks.

    Best regards,
    Penny