SPRUJ26A September 2021 – April 2024
To migrate the reference code to a new TI motor driver kit or to a custom board, the user needs to configure the hardware parameters and the motor control parameters in the user_mtr1.h file according to the motor driver circuit, and configure the relevant peripherals in the hal.h and hal.c files as described in the following sections.
The following block diagram summarizes the function calls that are used to configure the motor control settings and the C2000 MCU peripherals (Figure 4-1).
In this lab project, there are several HAL functions that are called only once, related to the configuration of the Hardware. All of these functions deal with the configuration of either a peripheral or of a motor driver IC.