TIDUD61E October 2020 – April 2021
Once the project is imported, the project explorer appears inside CCS as shown in Figure 3-4.
The general structure of the project is shown in Figure 3-5.
Figure 3-5 shows the project for F28004x; 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 consist of the main.c file of the project and is responsible for the control structure of the solution.
For 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 results in project not functioning properly.
The setupdebugenv_build.js are provided to autopoulate the watch window variables for different builds
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-6 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 nine labs. The lab from 1 to 4 are designed to validate PFC operation and the lab from 5 to 9 are designed to validate the inverter operation.
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.