TIDUET7G September 2019 – October 2023
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.
Populate the Expressions Window entries by clicking View > Scripting console on the menu bar and then opening the setupdebugenv_lab1.js file from the project directory using the scripting console Open File () command. The Expressions Window should look like Figure 3-26.
VARIABLE | DESCRIPTION |
---|---|
LLC_buildLevel | Shows which lab is loaded. |
LLC_board_Status | Show the board status: Fault types or normal operation |
LLC_startFlag | Set this variable to 1 to start the powerstage. |
LLC_vSec_Volts | Output voltage in Volts. |
LLC_iPriReso_Amps | The primary tank current 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_debug_pu | The variable used to control the switching duty It is in per unit format. |
EPwm1Regs.CMPA.CMPA | Compare A register in ePWM1. |
EPwm1Regs.CMPB.CMPB | Compare B register in ePWM1. |
EPwm1Regs.TBPRD | Time-based period register in ePWM1. |
EPwm2Regs.CMPA.CMPA | Compare A register in ePWM2. |
EPwm2Regs.CMPB.CMPB | Compare B register in ePWM2. |
EPwm2Regs.TBPRD | Time-based period register in ePWM2. |
EPwm1Regs.TZFLG | TZ flag of ePWM1. For debugging protection use. |
EPwm2Regs.TZFLG | TZ flag of ePWM2. For debugging protection use. |