MATLAB Coder™,Simulink Coder™, andEmbedded Coder®generate ANSI/ISO C/C++ code that can be compiled and executed onTexas Instruments™ (TI) C2000 microcontrollers (MCUs)usingCode Composer Studio IDE. Embedded Coder lets you easily configure the code generated fromMATLAB®and万博1manbetx®algorithms to control software interfaces, optimize execution performance, and minimize memory consumption.
Capabilities and Features
Embedded Coder Support Package for TI C2000 Processors provides the following features:
- Automated build and execution
- Block libraries for on-chip and on-board peripherals such as ADC, digital I/O, ePWM, SPI, I2C, and more
- Real-time parameter tuning and logging using external mode
- Processor optimized code including DMC and IQMath libraries
- Ability to perform processor-in-the-loop (PIL) tests with execution profiling
- Generate code that runs on the Control Law Accelerator (CLA), a co-processor available on select TI processors.
Supported Processor Families
TI C2000 32-bit microcontrollers are designed for real-time closed loop control applications such as motor control, digital power supplies, industrial drives, and solar inverters. The following families are supported with the Embedded Coder Support Package for Texas Instruments C2000 Processors. The LaunchPads and ControlCards for these processors are also supported, including most board peripherals.
TI C2000 Generation 2 Processors
- F2806x
- F2805x
- F2803x
- F2802x
- F2833x
- F281x
- F280x
TI C2000 Generation 3 Processors
- F2838xD
- F2838xS
- F2837xD
- F2837xS
- F28004x
- F28002x
- F2807x
- F28003x
TI C2000 Concerto Processors
- F28M35x
- F28M36x
Reference Examples
Digital DC/DC Buck Converter Using Peak Current Mode Control
Use the Comparator Subsystem (CMPSS) to regulate buck converter output voltage (BOOSTXL-BUCKCONV) using Peak Current.
Using the Control Law Accelerator (CLA)
Use the Control Law Accelerator (CLA) available on some of the TI Piccolo processors.
Sensorless Field-Oriented Control of PMSM Using C2000 Processors
Implements the field-oriented control (FOC) technique to control the speed of a three-phase permanent magnet synchronous motor (PMSM).