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.

FBPS user guide (Phase Shifted Full Bridge) questions

Hello


I'm following the FBPS user guide (Phase Shifted Full Bridge) base on EVM: TMDSACDCKIT(C2000 AC/DC Developer's Kit). On page 39 it says:

14. Run the code by using the <F5> key, or using the Run button on the vertical toolbar, or using Debug-->Run on the menu bar.

15. In the watch window, the variable Gui_VfbSet should be set to 0. -----does it mean I need to set Gui_VfbSet=0 in code before I rebuild and reload program?

16. Apply a resistive load to the phase shifted full bridge system at connector J28-J29 similar to build 1. Choose the value of the resistors and their power rating to
present a load of about 10W-30W at 6V. Power the DC input at J26-J27 with a DC power supply, set to output 48V.


17. Once the system is running in realtime and is powered with 48V at J26-J27, observe the measured output voltage (Gui_Vfb_out). This will be the output
voltage with a 0 voltage command. To observe the actions of the system increase the voltage command Gui_VfbSet (keep it less than 6 V).  ----does it mean that I can update the Gui_VfbSet value while system is running? How can I do that? by rebuild-reload?

But on page 35, it says:

16. In the watch window, set the variable Gui_IfbSet to some small value greater than 0 (say 0.1A). Power the DC input at J26-J27 with a DC power supply, set to
output about 15V or so. ----does it mean I can change the value in "watch window"? I'm afraid I couldn't understand it.

As I'm a new user of CCS4 and I have never used CCS3(I only used CCS2). Could anyone pls give me a detail explain?

Thank you very much in advance,

Violet

  • Violet,

    Please see my responses below:

    15. In the watch window, the variable Gui_VfbSet should be set to 0. -----does it mean I need to set Gui_VfbSet=0 in code before I rebuild and reload program?

    Hrishi – No. It means that once you run the code you should notice that Gui_VfbSet variable in the watch window = 0. This variable is initialized to 0 in the code and should stay 0 until changed by the user.

    17. Once the system is running in realtime and is powered with 48V at J26-J27, observe the measured output voltage (Gui_Vfb_out). This will be the output
    voltage with a 0 voltage command. To observe the actions of the system increase the voltage command Gui_VfbSet (keep it less than 6 V).  ----
    does it mean that I can update the Gui_VfbSet value while system is running? How can I do that? by rebuild-reload?

    Hrishi – Please do not rebuild-reload while 48V is connected to the system. If you have followed all the steps correctly till this point, you would already have the real time debug enabled. Real time debug mode allows you to monitor and change variable values while the system is running. This is done in steps 11 through 13.     16. In the watch window, set the variable Gui_IfbSet to some small value greater than 0 (say 0.1A). Power the DC input at J26-J27 with a DC power supply, set to
    output about 15V or so. ----
    does it mean I can change the value in "watch window"? I'm afraid I couldn't understand it.

    11.      Enable real-time mode by selecting:

      Debug à Real-time Mode

    12.     A message box may appear.  If so, select YES to enable debug events.  This will set bit 1 (DGBM bit) of status register 1 (ST1) to a “0”.  The DGBM is the debug enable mask bit.  When the DGBM bit is set to “0”, memory and register values can be passed to the host processor for updating the debugger windows.

    13.     Check to see if the windows are set to continuously refresh.  Click:

    View à Real-time Refresh Options…

    and check “Global Continuous Refresh”.

     

    Hrishi – Again, in real-time mode you can change the value from the watch window.

    You might find the following CCS wiki page helpful.

    http://processors.wiki.ti.com/index.php/CCStudio_FAQ

     

    Hrishi

  • Hi Hrishi,

    Thanks for your help. I'm learning CCS4 without CCS3 basis while the instructions are based on CCS3. May I ask a few more questions? Thanks,

    1.  The real-time mode is used for user change values/observe result on line. Right? So if I set the code, e.g. Gui_VfbSet =6 before rebuild, it shall also work. Am I understanding it correctly? The only difference is this time I skip the "change-observe" process. Right?

    2. The real-time mode seems to like a GUI to me. So it allows user changes value on line and won't cause damage. Right?

    3. In CCS4, they way to setting to real time mode is to set: Target -> Advanced -> Enable Silicon Real time mode or shall I follow the complicated process show in http://processors.wiki.ti.com/index.php/Real-Time_Mode_Debug_with_CCStudio --> Movie is here

    4. Whether I use CCS4 or CCS3, I shall set some bit. But it seems in the movie, it tells me I shall set DBGIER-BIT1 to be "1". Yet in your quoted instruction, I shall set DGBM bit to 0. Can I ingore this guide when I using CCS4?

    5. "can change the value from the watch window."--- so just by simply change the value in watch window, the next cycle for the running code will apopt the new value without "rebuild-load" process?

    Sorry for so more questions. Thanks again for your time.

    Violet

  • Hi Violet,

    I am sorry for this late reply. Please see my responses below:

    1.  The real-time mode is used for user change values/observe result on line. Right? So if I set the code, e.g. Gui_VfbSet =6 before rebuild, it shall also work. Am I understanding it correctly? The only difference is this time I skip the "change-observe" process. Right?

     HN: If you are planning on changing this value from the watch view before re-building and running - it will not work. After a rebuild and run, all variable values are initialized to values set in the code. Watch view values will take effect only when they are changed with the code already running (Please use real-time mode).

    2. The real-time mode seems to like a GUI to me. So it allows user changes value on line and won't cause damage. Right?

    HN: Yes.

    3. In CCS4, they way to setting to real time mode is to set: Target -> Advanced -> Enable Silicon Real time mode or shall I follow the complicated process show in http://processors.wiki.ti.com/index.php/Real-Time_Mode_Debug_with_CCStudio --> Movie is here

    HN: You can use the first one if you are not planning on halting the processor (with power stage powered up) during runtime. In any case, when the power stage is powered up it is a good practice to not halt the processor.

     

    HN: This is used to let the time critical ISR be serviced during debug (single stepping through the code). Like I said, I suggest not doing this with power stage powered up unless absolutely required.

    5. "can change the value from the watch window."--- so just by simply change the value in watch window, the next cycle for the running code will apopt the new value without "rebuild-load" process?

    4. Whether I use CCS4 or CCS3, I shall set some bit. But it seems in the movie, it tells me I shall set DBGIER-BIT1 to be "1". Yet in your quoted instruction, I shall set DGBM bit to 0. Can I ingore this guide when I using CCS4?

    HN: Yes.

    Sorry for so more questions. Thanks again for your time.

    HN: Not a problem. Please understand that my responses might be delayed and some of the basic questions are already answered in other forum posts and user guides and datasheets.

    I hope this helps.

      

  • Ok. Now I understand it better.

    Thank you very much for your help!

     

    Violet