This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Modeling

Prepare model for hardware connection, add blocks to support hardware protocols

The guidelines in Overview of Creating Models for C2000 Processors describe how to create and build models for Texas Instruments™ C2000™ processors.

For information about configuring the models, see Hardware Implementation Pane: Texas Instruments C2000 Processors.

Topics

ADC-PWM Synchronization Using ADC Interrupt

This example shows how to use the ADC block to sample an analog voltage and use the PWM block to generate a pulse waveform.

LIN-Based Control of PWM Duty Cycle

This example shows how to use the C28035 LIN Receive, LIN Transmit, and PWM blocks to generate a pulse waveform.

Asynchronous Scheduling

This example shows how to use the Texas Instruments™ c28x peripherals and Hardware Interrupt blocks to control the real-time execution of Simulink® function-call subsystems in an asynchronous fashion.

Using CAN Calibration Protocol in External Mode

This example shows how to use the CAN Calibration Protocol (CCP) block to monitor model signals and tune parameter values in the application code running on the target hardware.

Simulation of FOC Using PMSM Model

This example shows how to simulate field-oriented control (FOC) using a Permanent Magnet Synchronous Machine (PMSM) model.

Permanent Magnet Synchronous Motor Field-Oriented Control

This example shows how to control the speed of a three-phase Permanent Magnet Synchronous Motor in a closed-loop fashion via Field-Oriented Control (FOC)using the C28x peripherals and DMC library blocks.

Using the Control Law Accelerator (CLA)

This example shows how to use the Control Law Accelerator (CLA) available on some of the TI Piccolo processors.

Schedule a Multi-Rate Controller for a Permanent Magnet Synchronous Machine

This example shows how to create a real-time executable for a Texas Instruments F28335 embedded target.

Parameter Tuning and Signal Logging with Serial External Mode

This example shows how to perform parameter tuning and data logging with a Simulink® model running in External mode on the Texas Instruments™ C2000 targets.

Using the I2C Bus to Access Sensors

This example shows how to use the I2C blocks to communicate with I2C based devices.

Modeling a Voltage Controller for the DC/DC Buck Converter

This example shows how to model a controller for the DC/DC buck converter using the Embedded Coder Support Package for Texas Instruments® C2000 Processors.

Using SPI to Read and Write Data to SPI EEPROM

This example shows how to configure and use SPI blocks to read and write data.

Inter-Processor Communication Using IPC Blocks

This example shows how to use the IPC blocks to communicate between the two CPUs of Texas Instruments™ Delfino F2837xD using Simulink® models.

Modify Duty Cycle of ePWM Using DMA

This example shows how to configure the direct memory access (DMA) parameters to modify the ePWM duty cycle.

Photovoltaic Inverter with MPPT Using Solar Explorer Kit

This example shows how to implement a photovoltaic (PV) inverter system using the Embedded Coder® Support Package for Texas Instruments™ C2000™ Processors.