TIDUET7G September 2019 – October 2023
Once the project is imported, the project explorer appears inside CCS as shown in Figure 3-2.
Click main.syscfg file, a GUI page appears with modifiable options for the PFC solution (Figure 3-3). This GUI can be used to change the parameters for an adapted solution, like power rating, inductance, capacitance, sensing circuit parameters, and so forth.
The general structure of the project is shown in Figure 3-4.
Figure 3-4 shows the project for F28004x/F28002x/F28003x; however, if a different device is chosen from the powerSUITE page, the structure is similar.
Solution specific and device independent files are <solution>.c/h. This file consists of the main.c file of the project and is responsible for the control structure of the solution.
For this stage of this design <solution> is ttplpfc.
Board-specific and device-specific files are <solution>_hal.c/h. This file consists of device specific drivers to run the solution.
The powerSUITE page can be opened by clicking on the main.syscfg file, listed under the project explorer. The powerSUITE page generates the <solution>_settings.h file. This file is the only file used in the compile of the project that is generated by the powerSUITE page. The user must not modify this file manually as the changes are overwritten by powerSUITE every time the project is saved. User can modify several settings in <solution>_user_settings.h file.
The Kit.json and solution.js files are used internally by the powerSUITE and must also not be modified by the user. Any changes to these files result in project not functioning properly.
The setupdebugenv_build.js are provided to auto-populate the watch window variables for different labs.
The *.graphProp files is provided to auto populate settings for the data logger graph.
The project consists of an interrupt service routine, which is called every PWM cycle, and a current controller is run inside this ISR. In addition to this, there is a slower ISR of approximately 10 kHz that is called for running the voltage loop and the instrumentation ISR. A few background tasks (A0-A4 and B0-B4) are called in a polling fashion and can be used to run slow tasks for which absolute timing accuracy is not required, such as SFRA background and so on.
Figure 3-5 shows the software flow diagram of the firmware.
To simplify the system, bring up and design the software of this reference design is organized in 4 labs. The lab1 and lab2 are designed to validate Boost DC-DC operation. The lab3 and lab4 are designed to validate PFC AC-DC operation.
Lab 1: Open Loop, DC (PFC Mode)
Lab 3: Closed Current Loop, AC (PFC)
Lab 4: Closed Voltage and Current Loop (PFC)
These labs are detailed in Section 3.1.2.5. If using the reference design hardware, make sure the hardware setup is completed as outlined in Section 3.1.1.