LAB 1
LAB 1
Abdul Wahab
Name
FA20-BEE-010
Registration Number
BEE-6A
Class
Lab Assessment
To run codes in Code Composer Studio, you need to follow these steps:
1. Create a new project: Start by creating a new project in CCS. Go to the "File"
menu, select "New" and then choose "CCS Project." Follow the prompts to set up
your project with the appropriate settings.
2. Import or create source code: Once your project is set up, you can either import
existing source code files or create new ones within CCS. To import code, right-
click on the project in the "Project Explorer" view, select "Import," and choose the
appropriate option. To create new code files, right-click on the project, select
"New" and then choose the appropriate file type.
3. Build the project: After importing or creating your code, you need to build the
project to compile the code and generate the executable file. Right-click on the
project, select "Build Project" or simply press Ctrl + B. The build process will
check for syntax errors, compile the code, and produce the binary output.
5. Run the code: Once your code is successfully compiled and any debugging is
complete, you can run the code on your DSP device. Make sure the device is
connected, and select the appropriate run configuration. Click on the "Run" button
or press F8 to execute the code on the target DSP.
Regarding the DSP Starter Kits you mentioned (C6711, C5416, C6416, C6713),
these are specific development boards designed by Texas Instruments to facilitate
the development and evaluation of DSP applications.
Each DSP Starter Kit comes with its own set of hardware features, including a DSP
chip, peripherals, and connectors, along with software tools such as Code
Composer Studio. These kits are designed to provide an easy and convenient
platform for developers to work with TI's DSP devices.
To get acquainted with the specific process and features of each DSP Starter Kit, it
is recommended to refer to the respective documentation provided by Texas
Instruments. The documentation typically includes information about the hardware
features, connections, software setup, and examples to help you get started with the
specific kit. You can find the documentation on the Texas Instruments website or
the kit's product page.
Pre-Lab Task:
Behavior:
• Blinks LED #0 at a rate of about 2.5 Hz (s-1 ) using the LED module of the
6416DSK Board Support Library
• Reads the state of DIP switch #3
• Lights LED #3 if the switch is pressed
• Turns it off if the switch is not pressed
Header Files:
Figure 1 shows the code that the light LED # 0 turns ON continuously
and Read the state of DIP switch #3. If the switch is pressed light LED #3
Turns ON and Turns it OFF if the switch is not pressed.
Figure 2 shows that the LED # 0 is ON and LED # 3 is off because switch is not pressed
In Lab Tasks:
Task 1:
The model shown below simply takes input from user via Microphone and then
sends it to anoutput device e.g. Headphones or Speakers. Make, build and run
the following model using SIMULINK and CCS v3.1
Simulink Block Diagram:
ADC Properties:
DAC properties:
Critical Analysis:
In the lab, you were introduced to Code Composer Studio
(CCS), an integrated development environment (IDE) for developing digital
systems on DSP kits. You learned how to run codes in CCS by following the
provided instructions.
The lab also familiarized you with several DSP Starter Kits, namely the C6711,
C5416, C6416, and C6713. These kits are designed for academic and research
purposes and come with digital signal processors, memory, ports, and special chips
for specific tasks. Each kit has its own specifications in terms of processing
capacity, codec quality, memory, and power supply.
The lab also introduced you to the process of designing a system using SIMULINK
and implementing it on the DSK6713. SIMULINK is a graphical programming
environment within MATLAB that allows you to design and simulate systems
using block diagrams. The designed system can be converted to C code by
SIMULINK and transferred to CCS for further processing.
In CCS, the C code is compiled into assembly language and then into machine
language, which can be executed on the DSK6713. During the lab task, you used
headphones along with the DSP kit to hear the sound output. The DSK6713 board
includes an on-board audio codec that serves as an A/D (Analog-to-Digital) and
D/A (Digital-to-Analog) converter.
The audio input is sampled at different rates, and the DSP processes the samples
according to the designed system. The processed samples are then converted back
to analog format and played through the headphones or speakers connected to the
DSK6713.
Overall, this lab provided you with hands-on experience in working with CCS,
DSP Starter Kits, SIMULINK, and audio processing. It allowed you to gain
practical knowledge in digital signal processing and system design.