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.

TIDM-HV-1PH-DCAC: SFRA connection Problem

Part Number: TIDM-HV-1PH-DCAC
Other Parts Discussed in Thread: SFRA, C2000WARE,

Tool/software:

Hi,

i have connection issue in running the SFRA. I have used the following (f280049c controller)

#define SFRA_GUI_SCI_BASE SCIA_BASE
#define SFRA_GUI_SCIRX_GPIO 28
#define SFRA_GUI_SCIRX_GPIO_PIN_CONFIG GPIO_28_SCIRXDA
#define SFRA_GUI_SCITX_GPIO 29
#define SFRA_GUI_SCITX_GPIO_PIN_CONFIG GPIO_29_SCITXDA
#define SCI_VBUS_CLK 25000000
#define SFRA_GUI_SCI_BAUDRATE 57600

Used a ttl to usb connector non isolated for UART with a Opto in controller side.

Also running the SFRA i can see the RX and Tx signals in oscilloscope. But the connection is not established..

Need help in solving the same.

Thanks,

Sivarajan

  • Sivarajan,

    Apologies for delay response!

    There is a sfra example in "C2000Ware_DigitalPower_SDK_xx\libraries\sfra\examples" for this f280049 device - You can try out connecting GUI with that and let me know it is working or not after selecting correct COM port and baud rate

    I believe "#define SCI_VBUS_CLK 50000000" need to be used

    Can you provide more info on what speed these following functions are called?
    SFRA_F32_runBackgroundTask()
    SFRA_GUI_runSerialHostComms()

    Thanks & Regards,

    Shashank

  • Hi Shashank,

    The following is set in TIDM-HV-1PH-DCAC project that I am using.

     

    #define SFRA_GUI_SCI_BASE               SCIA_BASE

    #define SFRA_GUI_SCIRX_GPIO             28

    #define SFRA_GUI_SCIRX_GPIO_PIN_CONFIG  GPIO_28_SCIRXDA

    #define SFRA_GUI_SCITX_GPIO             29

    #define SFRA_GUI_SCITX_GPIO_PIN_CONFIG  GPIO_29_SCITXDA

    #define SCI_VBUS_CLK 25000000 ( to be changed to 50000000 ?)

    #define SFRA_GUI_SCI_BAUDRATE 57600

    My question is

    1. Can the jtag connection be used to get data of SFRA or need to use SCIRX AND SCITX AS DEFINED ABOVE.
    2. IF SCIRX AND SCITX  is used then can I use “ttl to usb UART CONVERTER” to get data of SFRA IN PC.
    3. Can sci be used as UART?

     

    For

    SFRA_F32_runBackgroundTask()
    SFRA_GUI_runSerialHostComms()

    It is called from task A1 which is 1ms

    /////////////////////////////////////////////////////////

    void A1(void) // 1ms

    //--------------------------------------------------------

    {

    #if(INCR_BUILD==1)||(INCR_BUILD==2)||(INCR_BUILD==3)

        if(rlyConnect==1)

        {

        //    closeRelay();

        }

        else

        {

      //      openRelay();

            invVoRef = 0;

            invIiRef = 0;

        }

    #endif

     

        SFRA_GUI_runSerialHostComms(&sfra1);

        SFRA_F32_runBackgroundTask(&sfra1);

     

    ////////////////////////////////////////////////////////////////////////

     

    Regards,

    Sivarajan

  • Sivarajan,

    Need to use SFRA TX and RX as defined above only to plot in SFRA GUI tool.

    You can get SFRA data without using GUI too, which is mentioned in the documentation through expression window of CCS - "https://www.ti.com/lit/ug/spruik4a/spruik4a.pdf" chapter 7.

    SCI and UART are using the same baseline command protocol, but this GUI tool has low level driver APIs used for SCI and not for UART. 

    Thanks & Regards,

    Shashank

  • Hi Shashank,

    thanks for your quick and informative response.

    As mentioned earlier I am using the Rx Tx and using a ttl to usb converter to plot the graph , but I cannot connect. What hardware and driver need to be used to get this sci data in usb port? Please help to resolve.

    Regards 

    Sivarajan

  • There is a need of UART bridge which will help you send data through USB following SCI/UART protocol and you can use XDS110 E3 (which will be corresponding pins that would help to translate and send information through USB)

    You can refer to this e2e: TMS320F28035: How to use onboard XDS110 to program TMS320F28035 - C2000 microcontrollers forum - C2000Tm︎ microcontrollers - TI E2E support forums

    Thanks,

    Shashank