Embedded Software and Motor Control Libraries Block Diagram
This NXP real-time control embedded software libraries – RTCESL (former
Freescale embedded software libraries – FSLESL) is a group of
algorithms ranging from basic mathematics operations to advanced
transformations and observers, which can be easily incorporated into complex
real-time control applications, and used in our motor control reference
designs. The algorithms help to speed development and ease of use in
applications that require intensive math computation and control, such as
advanced high-efficiency motor control and power conversion.
The libraries are highly optimized, tested on our hardware and are easy to use
as they are implemented with a C-callable function interface. If the device
has a hardware accelerator for specific calculations like Memory-Mapped
Divide and Square Root Module (MMDVSQ) in some Cortex® M0+ core
based devices or PowerQuad (PQ) hardware accelerator in some Cortex® M33 core-based devices the RTCESL can process some algorithms using such hardware
accelerators to provide quicker calculations. The functions have been tested
against NXP's reference models in MATLAB.
The up to date version of the libraries is available on NXP GitHub.
Math Library (MLIB): Simple math functions
(addition, subtraction, multiplication, division, shifts...) with
and without saturation. This aim of this block is to have efficient
and fast mathematics built on the MCU’s instructions.
General Function Library (GFLIB): Contains the
basic building blocks of a real-time control application. Functions
for basic mathematical calculations, trigonometric functions, simple
look-up table and control functions such as PI and PID controllers.
General Motor Control Library (GMCLIB): The
fundamental blocks of a motor control application. The libraries
include vector modulation, Park and Clarke transformations and
specific motor-related functions to build digitally controlled motor
drives.
General Digital Filter Library (GDFLIB): Includes
filter functions for signal conditioning.
Advanced Motor Control Library (AMCLIB): Functions
that enable the construction of a variable speed, AC motor drive
system that implements field oriented control techniques without
position or speed sensors to provide the lowest cost solution.
Power Conversion Library (PCLIB): Contains control
loop algorithms required in power conversion applications such as
PI, PID and PID with low pass filter controller, 2P-2Z and 3P-3Z
controller algorithms.
Supported Cores:
Arm® Cortex®-M0+
Arm® Cortex®-M4
Arm® Cortex®-M7
Arm® Cortex®-M33
DSP56800E
DSP56800EX
DSP56800EF
Many basic math, filter and motor control related functions
Written in assembler
Optimized for speed and size
Supplied as binary files
Easy to link to the project
Supported Devices
KV1x: Kinetis® KV1x-75 MHz, Entry-Level 3ph FOC / Sensorless Motor Control MCUs based on Arm® Cortex®-M0+
KV3x: Kinetis® KV3x-100–120 MHz, Advanced 3ph FOC / Sensorless Motor Control MCUs based on Arm® Cortex®-M4
KV4x: Kinetis KV4x-168 MHz, High Performance Motor / Power Conversion MCUs based on Arm® Cortex®-M4
KV5x: Kinetis® KV5x-240 MHz, Motor Control and Power Conversion, Ethernet, MCUs based on Arm® Cortex®-M7
MC56F82xxx: MC56F826xx and MC56F827xx Digital Signal Controllers
MC56F83xxx: Performance Level Digital Signal Controllers, USB FS OTG, CAN FD