- To get started, click
Cyclone_Project_V01.c item in Project Explorer.
- In the srcdab_settings.h file,
change the LAB number to select different LAB to run different function as shown
in Figure 1-2.
- Right click on the project name
and click Rebuild Project. Then, click Run → Debug to launch a debugging
session.
- The project then loads on the
device and the CCS debug view becomes active. The code halts at the start of the
main routine.
- Add the variables in the
watch-expressions window. Click on the Continuous Refresh button on the
watch window to enable continuous update of values from the controller. The
watch window appears as shown in Figure 1-3.
- SRCDAB_Direction defines
the power flow, 1 represents the charging mode and 0 represents
the discharging mode, set the SRCDAB_Direction in CCS watch window before
power up.
- Lab1 is open loop check, set
phase shift angle Phase1_Alpha, Phase2_Beta, Phase2_Fai and
frequency SRCDAB_pwmPeriodRef_pu based on power level and input and
output range, then set SRCDAB_start to 1, the PWM sends out
- Lab2 is close current loop check,
the output current can be controlled by setting SRCDAB_iSecRef_pu.
Note: Supply the primary and secondary
12V auxiliary power after downloading the firmware into device and running the
code.