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.

TPS65982: Host interface

Part Number: TPS65982


Hi,

I would like to know if user can select PDO in SNK Automatic mode. Could you please support below?

1. How to select PDO using with SRDO command during SNKAutomaticMode
   ->The FW_Users_guide (slvuah7b) explains the best PDO is selected automatically in chapter 9.3.1.1. Is it possible to select PDO which user would like to use during SNKAutomaticMode?

   For instance, User would like to select 5V as sink capabilities of Type-C when AC barrel adaptor is connected. Is it possible to select 5V in the AutomaticMode?

2. How to set SNKIntrusiveMode from SNKAutomaticMode

  -> If user cannot select PDO in AutomaticMode, he should change the mode to IntrusiveMode. Could you please check about the mode.

      Default setting is SNKAutomaticMode. And 0x29 register can switch to SNKIntrusiveMode by setting 1 in bit 9. Is it correct?

Regards,

Nagata.

  • Hello Nagata-san,

    1. How to select PDO using with SRDO command during SNKAutomaticMode
    The PDO can be selected based on highest power, highest voltage, or highest current. This can be configured through register (0x37) Autonegotiate Sink. You can offer priority to the different PDOs based on their voltage, power, or current levels.

    2. How to set SNKIntrusiveMode from SNKAutomaticMode
    You can enable PDO intrusive mode in register 0x29.

    Thank you,
    Eric
  • Hi, Eric -san,

    Could you please give your advice how to set the 0x37 register for below condition of TX sink in SNKAutomaticMode?
    1-1. Select 5V as sink capabilities of Type-C when AC barrel adaptor is connected and Type-C source is not attached.
    1-2. Request 5V when AC barrel adaptor is connected.
    1-3. Select an PDO from source capabilities which isn't listed in 0x33 register (e.g. 14.8V or 19V,etc...)

    And I have questions for Customizaton tool. Could you please support them?
    2-1. User should set limited items in Customization tool. Will the rest of item be set automatically?
    2-2. Can Host MCU can set the rest of item in #2-1? If yes, how does the MCU set the item?


    2-3.  Customizaton tool cannot set 7 PDOs even if user set  7 in Nunber of Sink PDOs in 0x33. (It seems the maximum number PDOs are #6.) Could you please check it?

    Regards,
    Nagata.

  • Hi, Eric -san,

    Could you please update my question? I would like to know 1-1,1-2 and 1-3 at first.

    For 1-1, Host MCU may detect if Adaptor is attached or not. In the case, the MCU would like to request 5V output to Source with 0x37 register. Can MCU request the 5V by setting Battery PDO Parameters (Minimum, Maximum Voltage and Maximum Power) in 0x37 register? Or should user set his reqirement parameter in the byte 9-12(RDO Current Parameters) and byte 5-8 (RDO Power Parameters)?

    For 1-2, this condtion is similar as #1-1. Host MCU would like to request 5V output to Source from pervious voltage setting with 0x37. Can MCU request same way of #1-1?

    For 1-3, I guess it is possible if external power voltage which user require is supplied at HV. Is it correct?

    Regards,
    Nagata.

  • Hi Nagata-san,

    1-1: User should set his requirement in the RDO Current Parameters and RDO Power Parameters.

    1-2: Host MCU can send a ANeg 4CC command to the device. The ANeg Command instructs PD Controller to re-evaluate the Auto Negotiate Sink register (0x37). If the re-evaluation produces a different RDO than the Active Contract RDO then a new Request message is sent.

    1-3: I'm not sure I fully understand your question. User can provide 20V to be used with 20V Source PDOs

    Thank you,
    Eric
  • Hi, Eric -san,

    Thank you very much for your supports.

    For 1-3, user would like to select the voltage such as 14.9V or 19V which aren't listed in 0x33 register. But I guess TPS65982 has only switch in HV line (It is not regulator.)  So if user would like to select the voltage, he should set the voltage on 0x33 register and supply the voltage at HV. Is it correct?

    And could you please support Customization tool?

    2-1. The tool seems not to have all items to set in each register setting. Will the rest of item be set automatically?
    2-2. Can Host MCU can set the rest of item in #2-1? If yes, how does the MCU set the item?


    2-3.  Customizaton tool cannot set 7 PDOs even if user set  7 in Nunber of Sink PDOs in 0x33. (It seems the maximum number PDOs are #6.) Could you please check it?

    Regards,
    Nagata.

  • Hi Nagata-san,

    For 1-3, you are correct. User must set the PDO in source capabilities register and be able to supply that voltage at HV.

    2-1, hidden registers are set automatically to the best fit value. "Full" templates reveal more fields than "reduced" templates. However, reduced templates are easier to configure as there is less chance of user error input.

    2-2, host MCU can write to registers and also read from registers through I2C commands.

    2-3, Version 2.15 of the applications customization tool is able to set a maximum of 7 Source PDOs in register 0x32

    Thank you,
    Eric
  • Hi, Eric -san,

    Thank you very much for your advice.
    In this time, could you please give me your infomation for SNKIntrusiveMode.

    During SNKIntrusiveMode, if host is proccessing some tasks and it cannot respond to INT of  SourceCapMsgReady, and it cannot send RDO during a specified period determined by USB PD spec, will it cause hard reset?

    Regards,
    Nagata.

  • Hi Nagata-san,

    During SNKIntrusiveMode, a delayed RDO or not sending an RDO will not cause a hard reset.

    According to Host Interface technical reference manual Section 2.3 (www.ti.com/.../slvuan1a.pdf):
    When the PD Controller is in SNKIntrusiveMode it will hold--off, allowing the Host as much time as possible to make its own request, using the SRDO Task. PD policy requires a response to a Source Capabilities message within a specified time. If the PD Controller is in danger of violating that limit because it has not yet received a SRDO Task, it may proceed to send its prepared Request to satisfy the PD policy requirements. If the SRDO task comes in past this time, it may force the PD Controller to issue a second Request the next time PD policy allows it, or if this Request matches the one the PD Controller generated automatically, then no action is taken except to mark the SRDO Task as completed successfully (assuming the previous Request also completed successfully).

    Thank you,
    Eric