ZHCU734A January   2017  – March 2020

 

  1.   修订历史记录

Debug Environment Windows

It is standard debug practice to watch local and global variables while debugging code. There are various methods for doing this in CCS, such as memory windows and watch windows. Additionally, CCS has the ability to make time (and frequency) domain plots, which allows the user to view waveforms using graph windows.

  1. Populate the Expressions Window entries by clicking View > Scripting console on the menu bar and then opening thesetupdebugenv_lab1.js file from the project directory using the scripting console Open File ( TIDM-1001 tidm-1001-for-sections-4.1.2.4-and-4.2.2.4-inline-graphic.png) command. The Expressions Window should look like Figure 24.
  2. TIDM-1001 Expressions Window.pngFigure 24. Lab One: Expressions Window at Reset

    Table 4. Lab 1 Description of Expressions Window Entries

    VARIABLE DESCRIPTION
    LLC_buildLevel Shows which lab is loaded.
    LLC_startFlag Set this variable to 1 to start the powerstage.
    LLC_vPri_Volts Input voltage in Volts. Only valid if jumper J15 is populated on the TIDM-1001 board.
    LLC_iPri_PH1_Amps The primary tank current in phase 1 in Amps.
    LLC_iPri_PH2_Amps The primary tank current in phase 2 in Amps.
    LLC_iSec_Amps Secondary (output) current in Amps.
    LLC_periodRef_debug_pu The variable used to control the switching period in lab 1. It is in per unit format.
    LLC_dutySet_PH1_debug_pu The variable used to control the switching duty for phase 1. It is in per unit format.
    LLC_dutySet_PH2_debug_pu The variable used to control the switching duty for phase 2. It is in per unit format.