Datasheet

Project file structure
PMSM Field-Oriented Control on MIMXRT1050 EVK, User's Guide, Rev. 0, 05/2018
NXP Semiconductors 7
3. Motor-control drivers vs. MCUXpresso SDK
The motor-control examples use the MCUXpreso SDK peripheral drivers to configure the general
peripherals, such as the clocks, SPI, SIM, and ports. However, motor control requires critical application
timing because most of the control algorithm runs in a 100-µs loop. To optimize the CPU load, most of
the peripheral hardware features are implemented for the PWM signal generation, analog signal
sampling, and synchronization between the PWM and ADC units.
The standard SDK peripheral drivers do not support the configuration and handling of all required
features. The motor-control drivers are designed to configure the critical MC peripherals (eflexPWM,
FTM, ADC).
It is highly recommended not to modify the default configuration of the allocated MC peripherals due to
a possible application timing conflict. The mcdrv_evkbimxrt1050.c source file contains the configuration
functions of the allocated peripherals.
For more information about the peripherals’ configuration in the motor-control application on the
MIMXRT1050-EVK board, see PMSM Field-Oriented Control on MIMXRT1050 EVK (document
AN12169).
4. Project file structure
All the necessary files are included in one package, which simplifies the distribution and decreases the
size of the final package. The directory structure of this package is simple, easy to use, and organized in
a logical manner. The folder structure used in the IDE is different from the structure of the PMSM
package installation and described in separate sections.
4.1. PMSM project structure
The directory tree of the PMSM project is shown in Figure 4.