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.

TPS65400: PI-Commander-PMU EVM GUI SCRIPT Guide

Part Number: TPS65400

Hello TI;

 I have an Evaluation board for the TPS65400, and I downloaded the PI-Commander-PMU EVM GUI . I have been using it to do some testing but I have notice that there is a Scripting capability but the EVAL BRD datasheet nor the PI-Commander-PMU EVM GUI  zip file have examples or guide on how to use this feature.

 Can you please provide that information?

 

Regards;

Luis Guevara

  • Hi Luis,

    Do you mean that you want to save the configurations as a script, and it can be imported in the GUI?
    You may use the "File"--"Save as" button, save the current configuration as an .xml file. When you want to import the script, use "File"--"Open".

    Regards,
    Hao
  • Hello Hao;

    Thanks for your quick response, it is helpful.

    I also want to create the scripts, creating sequences to change values on the registers of the TPS65400, for example changing Vref by using scripts commands. Is this possible? If it is possible, what is the syntax of those commands?

    Regards;
    Luis
  • I was able to create a basic script to change VREF and therefore VOUT, but when I try to read the value of a register I cannot see any result in the Script output of the GUI, please also provide a method/command to visualize the register values of the TPS65400 using scripts in the GUI.

    Regards;
    Luis
  • Hi Luis,

    You can open the .xml file in "Notepad", and then you can read the value of each register. Thanks!

    Regards,
    Hao
  • Hello Hao,

    Please check the .XML file attached, I can see some registers but not all, how can access the value of any of the registers?

    Also please check the image attached, how can I get results directly in the script output? I have tried the read commands and I get nothing.

    For example, how do get the value of (ADh IC_DEVICE_ID) using the XML file and the script output?

    <?xml version="1.0" encoding="UTF-8"?>
    <PI-Commander_TPS65400 version="1.0">
        <register code="10">0000</register>
        <register code="D0">0000</register>
        <register code="D1">0000</register>
        <register code="D2">003C</register>
        <register code="D4">0000</register>
        <register code="DC">0002</register>
        <registerWithPage code="D3" page="03">0000</registerWithPage>
        <registerWithPage code="D3" page="02">0000</registerWithPage>
        <registerWithPage code="D3" page="00">0000</registerWithPage>
        <registerWithPage code="D5" page="03">0000</registerWithPage>
        <registerWithPage code="D5" page="02">0000</registerWithPage>
        <registerWithPage code="D5" page="00">0000</registerWithPage>
        <registerWithPage code="D6" page="03">0001</registerWithPage>
        <registerWithPage code="D6" page="02">0001</registerWithPage>
        <registerWithPage code="D6" page="00">0001</registerWithPage>
        <registerWithPage code="D7" page="03">000C</registerWithPage>
        <registerWithPage code="D7" page="02">0004</registerWithPage>
        <registerWithPage code="D7" page="00">0000</registerWithPage>
        <registerWithPage code="D8" page="03">0014</registerWithPage>
        <registerWithPage code="D8" page="02">0014</registerWithPage>
        <registerWithPage code="D8" page="00">0028</registerWithPage>
        <registerWithPage code="D9" page="03">0003</registerWithPage>
        <registerWithPage code="D9" page="02">0003</registerWithPage>
        <registerWithPage code="D9" page="00">0004</registerWithPage>
        <registerWithPage code="DD" page="03">0000</registerWithPage>
        <registerWithPage code="DD" page="02">0000</registerWithPage>
        <registerWithPage code="DD" page="00">0000</registerWithPage>
        <registerWithPage code="DE" page="03">0002</registerWithPage>
        <registerWithPage code="DE" page="02">0002</registerWithPage>
        <registerWithPage code="DE" page="00">0002</registerWithPage>
        <registerWithPage code="DF" page="03">0098</registerWithPage>
        <registerWithPage code="DF" page="02">0098</registerWithPage>
        <registerWithPage code="DF" page="00">0098</registerWithPage>
        <registerWithPage code="F0" page="03">0001</registerWithPage>
        <registerWithPage code="F0" page="02">0001</registerWithPage>
        <registerWithPage code="F0" page="00">0001</registerWithPage>
        <registerWithPage code="F1" page="03">0001</registerWithPage>
        <registerWithPage code="F1" page="02">0001</registerWithPage>
        <registerWithPage code="F1" page="00">0001</registerWithPage>
        <SchematicLabel id="CSS1">0.01uF</SchematicLabel>
        <SchematicLabel id="CSS2">0.01uF</SchematicLabel>
        <SchematicLabel id="CSS3">0.01uF</SchematicLabel>
        <SchematicLabel id="CSS4">0.01uF</SchematicLabel>
        <SchematicLabel id="RFB1SW1">9.53kΩ</SchematicLabel>
        <SchematicLabel id="RFB1SW2">12.7kΩ</SchematicLabel>
        <SchematicLabel id="RFB1SW3">21.5kΩ</SchematicLabel>
        <SchematicLabel id="RFB1SW4">22.1kΩ</SchematicLabel>
        <SchematicLabel id="RFB2SW1">40.2kΩ</SchematicLabel>
        <SchematicLabel id="RFB2SW2">10.2kΩ</SchematicLabel>
        <SchematicLabel id="RFB2SW3">6.81kΩ</SchematicLabel>
        <SchematicLabel id="RFB2SW4">10.5kΩ</SchematicLabel>
        <ENSW id="ENSW1">2</ENSW>
        <ENSW id="ENSW2">2</ENSW>
        <ENSW id="ENSW3">2</ENSW>
        <ENSW id="ENSW4">2</ENSW>
    </PI-Commander_TPS65400>
    

    Regards;

    Luis

  • Hi Luis,

    The script is used to keep the configuration information, which means all these settings will be written into the device. The registers not show up in the script are read-only registers. Thanks!

    Regards,
    Hao
  • Hi Hao;

    Thanks for your response.

    I have a question.

    Then where/how do I get the result of the "read" commands?

    Regards;

    Luis

  • Hi Luis,

    The results should be show up in the "PMBus register page". 

    Regards,

    Hao

  • Hi Hao;

    What do you mean by "PMBus register page"? Is that pages shown in the GUI in the picture below?

    I would expect a reply from the command like another byte or word when I use the read command , is it possible?

    My intention is to run a script and obtain on the fly readings from the TPS65400, readings from the status registers and other registers if possible, can this be done?

    Regards;

    Luis

  • Hi Luis,

    Yes, I mean this page. I think the script is a sequence of writing command. This GUI doesn't support to read and save the register vaules...

    Regards,

    Hao