MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Podręcznik Użytkownika Strona 18

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 112
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 17
1 Getting Started
1-14
Using the c2000lib Blockset
This section uses an example to demonstrate how to create a Simulink model
that uses the Embedded Target for TI C2000 DSP blocks to target your board.
The example creates a model that performs PWM duty cycle control via pulse
width change. It uses the C2812 ADC block to sample an analog voltage and
the C2812 PWM block to generate a pulse waveform. The analog voltage
controls the duty cycle of the PWM and you can observe the duty cycle change
on the oscilloscope. This model is also provided in the Demos library. Note that
the model in the Demos library also includes a model simulation.
Hardware Setup
The following hardware is needed for this example:
Spectrum Digital eZdsp F2812
Function generator
Oscilloscope and probes
Connect the hardware as follows:
1 Connect the function generator output to the ADC input ADCINA0 on the
eZdsp F2812.
2 Connect the output of PWM1 on the eZdsp F2812 to the analog input of the
oscilloscope.
Starting the c2000lib Library
At the MATLAB prompt, type
c2000lib
to open the c2000lib library blockset, which contains libraries of blocks
designed for targeting your board.
Przeglądanie stron 17
1 2 ... 13 14 15 16 17 18 19 20 21 22 23 ... 111 112

Komentarze do niniejszej Instrukcji

Brak uwag