SPRAD24 august 2023 AM2631 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1 , AM263P4 , AM263P4-Q1
The general structure of the project is shown in Figure 3-15. The device peripheral configuration is based on AM263x Driverlib and is partially generated using SysConfig, making the code portable across hardware and devices. To port the reference design software to a different board or device, the user only needs to change the trinv_hal.c, trinv_hal.syscfg, and trinv_hal.h files and the parameters in trinv_settings.h.
??? Figure shows the project software flow diagram of the firmware that includes one ISR for real time motor control, a main loop that allows the user to update motor control parameters through debug window. The ISR is triggered by ADC End of Conversion (EOC). The functions that run in the main ISR are defined in trinv.h header file. In addition, in this design, accurate motor position is sensed through a resolver interface. The function that reads the ADC values for the resolvers signals and performs corresponding position, speed calculations runs in the control law accelerator (CLA) which is an independent processing core. The function is defined in trinv_cla_tasks_cpu1.cla file.