Mechatronics Laboratory Assignment #1 Programming a Digital Signal Processor and the TI OMAPL138 DSP/ARM

Size: px
Start display at page:

Download "Mechatronics Laboratory Assignment #1 Programming a Digital Signal Processor and the TI OMAPL138 DSP/ARM"

Transcription

1 Mechatronics Laboratory Assignment #1 Programming a Digital Signal Processor and the TI OMAPL138 DSP/ARM Recommended Due Date: By your lab time the week of January 29 th Possible Points: If checked off before your lab time the week of Feb. 5 th 10 points If checked off after your lab time the week of Feb. 5 th and before your lab time the week of Feb. 12 th 7 points If work not finished before your lab time the week of Feb. 12 th 0 points Goals for this Lab Assignment: 1. Learn about the rules and responsibilities of access to the lab room and its PCs 2. Discuss the use of the PCs, location of your data, etc. 3. Begin the semester with a quick introduction to the DSP controller and its development software called Code Composer Studio. Specifically: a. Present a quick introduction to Spr2018OMAPL138ProjCreator b. Manually step through the process of creating a CCS Project in order to see what Spr2018OMAPL138ProjCreator is doing for you. c. Introduce the DSP/BIOS kernel and its Configuration Manager. d. Learn how to manage compiler errors and to debug your source code with Breakpoints and the Expressions Window. DSP/BIOS Objects Used: PRD object Daughter Card Library Functions Used: MACROS SETLED1-5, CLRLED1-5, GETSWITCH1-2 Matlab Functions Used: None Prelab: You may wish to install the demonstration version of Code Composer Studio v7 (CCS) provided by TI. There are a few different free licenses for CCS. The one you will be most interested in is for your HW and allows you to develop programs for your MSP430 chip. There is also a 90-day trial license that allows you to use all the features of CCS. You can download CCS v7 at By installing CCS v7 you will have access to the help files referenced in lab and homework assignments and be able to program your microcontroller on your home PC. Laboratory Exercise 1 Read the handout on rules of the lab. Laboratory Exercise 2 Disk space and file management. Recommended Drive Usage: C: Drive Use a temporary directory on this drive to develop and debug code. Save the results at the end of lab to the U: drive. N: Drive This drive is a read only share where many of your lab and homework files are located. There is a scratch directory on the N:\ drive that does give you write permissions. Use N:\scratch only to transfer files from one account to another and not to save work because it is flushed periodically. GE423, Mechatronic Systems Lab 1, Page 1 of 5

2 U: Drive When you login onto the stations in the Mechatronics Lab, the computer will automatically map to your own personal drive labeled U:. This directory is only accessible by your login name, and is your personal space to store your DSP projects and other files related to the class. Every individual s U: drive will be backed up regularly, so make sure to copy your code off your C: drive at the end of class to this drive because we cannot insure the safety of your data on the lab PCs. Laboratory Exercise 3 For your lab assignments all the given code is stored in an SVN repository. You will be periodically checking out code from this repository. Your Instructor/TA will explain the check-out procedures. Spr2018OMAPL138ProjCreator.exe is found in the Spr2018OMAPL138ProjCreatorFiles directory of the repository. Your instructor/ta will step you through creating and running your first project in Part a. Part (a): Building a Project with Spr2018OMAPL138ProjCreator.exe. For the first part of the Lab Exercise, your Instructor/TA is going to walk you through the creation of your first DSP project for the semester. This includes creating a project, building the DSP code, and finally running the code on the DSP. Part (b): Explore a little bit how you could make you own DSP project for the OMAPL138 processor. There are quite a number of details that go into creating a Code Composer project for a specific DSP platform. This is why we will be using a number of different Project Creators throughout the semester to give you a good starting point for the source code you will be developing. With this exercise I want you to explore your projects properties to see all the possible options that can be set/modified to build your source code appropriately for this DSP system. Right click on your project s name that you created in part (a) above and select Properties. Take a few minutes and browse through the different property settings. As you become more experienced with embedded system software design you will understand these properties better. Towards the end of the semester when you understand CCS and the source code build process much better you may want to come back to these properties and try to make better sense of them. Also as another resource we have defined the steps to create a Code Composer Studio project manually. The procedure to perform the manual project creation is located in the directory Spr2018OMAPL138ProjCreatorFiles\manualProject of your repository. In that directory open the howto.txt file and find the steps needed to create your own project. Do not perform all these steps, but do take a few minutes to read through this file to get an idea of what the project creator is generating automatically for you. Part (c): DSP Bios Kernel and Configuration Manager Example: The Period Object In this section you will create a new application that uses the PRD (Period) object in DSP/BIOS. First use Spr2018OMAPL138ProjCreator.exe to generate a new project (do NOT go through the steps of part (b)). Give the project a name that describes it and also identifies you and your partner s group. Say something like dblocklab1c. As the project creator states, you must place your new projects in the bottom most directory of your repository. Then in CCS v7 GE423, Mechatronic Systems Lab 1, Page 2 of 5

3 select menu Project->Import Existing CCS/CCE Eclipse Project. In the import dialog select Select search-directory and Browse for your project directory just created with the project creator. 10. Open your project inside CCS and find the configuration (*.tcf) file for your project. Double click on the TCF file and the Configuration Tool will open. The Configuration Tool shows the DSP/BIOS kernel setup for your project. Modify your DSP/BIOS configuration to add a period object by selecting the tab: Scheduling PRD. Right click over the PRD tab, and select Insert PRD. You should see a new PRD object created. Give the period a name other than PRD0. While the name can be anything, the Texas Instruments convention is that period objects should begin with PRD_. Thus, one good name for the period object might be PRD_checkswitches. 11. Set the period object to call a function every second. To set the PRD object properties, right click over the name and select Properties. A menu will appear with the following options: i. Comments: can be anything descriptive ii. Period (ticks): The number of clock ticks to wait before executing the function. A tick is equal to 1 millisecond. FYI: A tick s default value is 1 ms but in the DSP/BIOS CLK properties you can change the tick resolution. We will be using a tick=1ms throughout the entire semester more than likely. iii. Mode: Select Continuous so that the function will be repeatedly called. iv. Function: The name of your c-function (see Step 12) that will be executed each period, with the function name prefaced with an underscore. For example, if your function is called CheckMe, then the entry should be _CheckMe (this is how assembly code accesses C-functions). v. Arg1/Arg2: Leave these set to 0x These are used to pass constant arguments to the function if needed. We don t use this option. 12. Write a global function in the project s C file (i.e. if your project name was danlab1c than this file would be called user_danlab1c.c) to read the status of the 2 LCD push buttons and echo their state to two of the LEDS. The name of this function should be the same name you selected in part iv above, minus the beginning _. (i.e. if you used the suggested function name above _CheckMe than you would write a function void CheckMe(void).) (IMPORTANT: Your DSP/BIOS objects (PRD, SWI, TSK etc) CANNOT have the same name as the function the object calls!) Use the MACRO s GETSWITCH1 and GETSWITCH2 to read the switch state and SETLED1, SETLED2, CLRLED1, CLRLED2 to turn on an off the LEDs. Compile and download your code to the DSP, and when finished demonstrate your application to your TA. If you are working with a partner on this exercise, trade places and give the other person a chance to do the coding for this next project. 13. To give you some more practice, create another new project with Spr2018OMAPL138ProjCreator.exe. As above, import this new project into your workspace and open it. 14. Again add a PRD object to the DSP/BIOS configuration, and have the period object call a global function every second. You could call this function void countit(void). Note that the function called by a PRD GE423, Mechatronic Systems Lab 1, Page 3 of 5

4 must have void parameters and void return. Have this function increment a global integer variable by one each time it is called. NOTE: When you setup a PRD object in DSP/BIOS, whatever function you specify to be called by the PRD is automatically called by the scheduler. You will come back to this function after the next step. 15. Write a second global function that is passed an integer (int) and returns void; i.e. void set5leds(int cnt). This function should check the state of the first 5 bits of the passed integer and turn on or off the corresponding LED 1 5. For example if the value 18 (0x12, 10010b) is passed to this function then LED5 =on, LED4=off, LED3=off, LED2=on, LED1=off. Use bit masking to determine the state of each individual bit. For example to check if bit 3 is 1 or 0: void myfunction(int cnt) { if ((cnt & 0x8) == 0x8) { turn LED4 on; } else { turn LED4 off; } 16. Now that you created the above function that displays to the five LEDS the state of the last five bits of a number, call it inside your PRD function, i.e. countit(), and pass it your global count variable. Build and run your code and see that the LEDS start counting in binary. Show your instructor/ta. 17. As a final step, add one more feature to your program. If switch 1 is pressed do not increment the count. Build and run this code and show it to your instructor/ta. Part (d):: Breakpoints and Expressions Window. Using the code you just finished, we want you to experiment with adding breakpoints to your code and using the Expressions Window to edit the values of your variables. 18. In your previous code and with the DSP halted, put your cursor over the integer variable that you are incrementing. You should see a value appear corresponding to the value of the variable. Run your code, halt it again. Put your cursor over the same variable to confirm that it changes. 19. An easier method than using the cursor repeatedly is to add the variable to the expressions window. When the DSP is halted, the expressions window displays the current values of each variable in the expressions window. To add your counting integer variable to the expressions window, highlight the variable and then right-click, then select Add Watch Expression. The variable will appear in a window with the current value of the variable listed alongside. The Expressions Window dialog is also found under the View menu. 20. IMPORTANT! BREAKPOINTS! IMPORTANT! Breakpoints (along with the Expressions Window) make debugging source code so much easier. In fact as a general rule for your lab assignments, you will need to set a few breakpoints and try to figure out your source code errors before asking an instructor for help. A large part of this mechatronics course is teaching you how to debug an embedded control system. GE423, Mechatronic Systems Lab 1, Page 4 of 5

5 A breakpoint is a location where the program will literally halt during execution. This allows you to check the values of your variables midway during operation. Have your instructor/ta come to your computer and show you how to set breakpoints and step through your code. It is much less confusing to show you then describe the process. After halted at a breakpoint, you can single step through your code using the (F6) key and watch the variables update as different calculations are performed. You remove breakpoints by double clicking on the blue breakpoint circle that is created. Note: The DSP compiler is very advanced and is optimized to produce assembly code that has a speed, on average, of approximately 70% of that of hand-coded assembly, i.e. the theoretical maximum usage of the DSP. If your code contains simple loop instructions or if statements, then the C compiler may optimize your code to a point that seems to eliminate portions of your code, thus making it impossible to set breakpoints at each line. To get around this, you can turn off optimizations in the compiler options or you can declare the variables of interest as volatile. This will allow you to single step through your code in the sections you are debugging. You will learn more about this volatile variable type in upcoming labs. 21. As a final step, if you have been lucky and have not yet received any compiler errors during any of the above exercises, you should intentionally add some errors to your code so that you will see how CCS will alert you during the build process. Lab Check Off: 1. Demonstrate you have completed Parts A and B. 2. Demonstrate your first application, the one that continually checks the status of the two push buttons and displays their current state on two of the LEDs. (First half of Part C) 3. Demonstrate your second application, the one that updates a counter every second and outputs the last five bits of the count to the five LEDs. The count should stop if button 1 is pressed and resume when it is released. (Second half of Part C) 4. Demonstrate that you know how to use Breakpoints and the Expressions Window to debug your source code. (Part D) GE423, Mechatronic Systems Lab 1, Page 5 of 5

Mechatronics Laboratory Assignment 2 Serial Communication DSP Time-Keeping, Visual Basic, LCD Screens, and Wireless Networks

Mechatronics Laboratory Assignment 2 Serial Communication DSP Time-Keeping, Visual Basic, LCD Screens, and Wireless Networks Mechatronics Laboratory Assignment 2 Serial Communication DSP Time-Keeping, Visual Basic, LCD Screens, and Wireless Networks Goals for this Lab Assignment: 1. Introduce the VB environment for PC-based

More information

GE420 Laboratory Assignment 3 More SYS/BIOS

GE420 Laboratory Assignment 3 More SYS/BIOS GE420 Laboratory Assignment 3 More SYS/BIOS Goals for this Lab Assignment: 1. Introduce Software Interrupt Objects (Swis) 2. Introduce 2 X 20 character LCD functions. 3. Investigate an issue with 32 bit

More information

Lab 0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio

Lab 0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio ECE2049 Embedded Computing in Engineering Design Lab 0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio In this lab, you will be introduced to the Code Composer Studio

More information

ICOM 4015 Advanced Programming Laboratory. Chapter 1 Introduction to Eclipse, Java and JUnit

ICOM 4015 Advanced Programming Laboratory. Chapter 1 Introduction to Eclipse, Java and JUnit ICOM 4015 Advanced Programming Laboratory Chapter 1 Introduction to Eclipse, Java and JUnit University of Puerto Rico Electrical and Computer Engineering Department by Juan E. Surís 1 Introduction This

More information

Objectives. Part 1: forward kinematics. Physical Dimension

Objectives. Part 1: forward kinematics. Physical Dimension ME 446 Laboratory #1 Kinematic Transformations Report is due at the beginning of your lab time the week of February 20 th. One report per group. Lab sessions will be held the weeks of January 23 rd, January

More information

Lab 4- Introduction to C-based Embedded Design Using Code Composer Studio, and the TI 6713 DSK

Lab 4- Introduction to C-based Embedded Design Using Code Composer Studio, and the TI 6713 DSK DSP Programming Lab 4 for TI 6713 DSP Eval Board Lab 4- Introduction to C-based Embedded Design Using Code Composer Studio, and the TI 6713 DSK This lab takes a detour from model based design in order

More information

Section 2: Getting Started with a FPU Demo Project using EK-LM4F232

Section 2: Getting Started with a FPU Demo Project using EK-LM4F232 Stellaris ARM Cortex TM -M4F Training Floating Point Unit Section 2: Getting Started with a FPU Demo Project using EK-LM4F232 Stellaris ARM Cortex TM -M4F Training: Floating Point Unit Section 2 Page 1

More information

Lab 3a: Scheduling Tasks with uvision and RTX

Lab 3a: Scheduling Tasks with uvision and RTX COE718: Embedded Systems Design Lab 3a: Scheduling Tasks with uvision and RTX 1. Objectives The purpose of this lab is to lab is to introduce students to uvision and ARM Cortex-M3's various RTX based Real-Time

More information

ECE 5655/4655 Laboratory Problems

ECE 5655/4655 Laboratory Problems Assignment #1 ECE 5655/4655 Laboratory Problems Make note of the following: Due Monday February 10, 2014 Each team of two will turn in documentation for the assigned problem(s), that is, assembly or C

More information

You have a PC with a USB interface, running Microsoft Windows XP (SP2 or greater) or Vista You have the Workshop Installation Software Flash Drive

You have a PC with a USB interface, running Microsoft Windows XP (SP2 or greater) or Vista You have the Workshop Installation Software Flash Drive 03- COMPOSER STUDIO Stellaris Development and Evaluation Kits for Code Composer Studio The Stellaris Development and Evaluation Kits provide a low-cost way to start designing with Stellaris microcontrollers

More information

Mechatronics Laboratory Assignment 2 Text LCD screen, DSP/BIOS and Transmission Control Protocol/Internet Protocol (TCPIP) Communication

Mechatronics Laboratory Assignment 2 Text LCD screen, DSP/BIOS and Transmission Control Protocol/Internet Protocol (TCPIP) Communication Mechatronics Laboratory Assignment 2 Text LCD screen, DSP/BIOS and Transmission Control Protocol/Internet Protocol (TCPIP) Communication Recommended Due Date: By your lab time the week of February 5 th

More information

As CCS starts up, a splash screen similar to one shown below will appear.

As CCS starts up, a splash screen similar to one shown below will appear. APPENDIX A. CODE COMPOSER STUDIO (CCS) v5.1: A BRIEF TUTORIAL FOR THE OMAP-L138 A.1 Introduction Code Composer Studio (CCS) is Texas Instruments integrated development environment (IDE) for developing

More information

Resource 2 Embedded computer and development environment

Resource 2 Embedded computer and development environment Resource 2 Embedded computer and development environment subsystem The development system is a powerful and convenient tool for embedded computing applications. As shown below, the development system consists

More information

DSP II: ELEC STS Module

DSP II: ELEC STS Module Objectives DSP II: ELEC 4523 STS Module Become familiar with STS module and its use Reading SPRU423 TMS320 DSP/BIOS Users Guide: Statistics Object Manager (STS Module) (section) PowerPoint Slides from

More information

Mechatronics Laboratory Assignment 4 Parallel Communication Glue Logic, Hardware Interrupts, Analog to Digital Conversions, and Board Fab

Mechatronics Laboratory Assignment 4 Parallel Communication Glue Logic, Hardware Interrupts, Analog to Digital Conversions, and Board Fab Mechatronics Laboratory Assignment 4 Parallel Communication Glue Logic, Hardware Interrupts, Analog to Digital Conversions, and Board Fab Goals for this Lab Assignment: 1. Gain a better understanding of

More information

Dual Tone Multi-Frequency (DTMF) Generation with TI-DSP TMS320C6713 Processor

Dual Tone Multi-Frequency (DTMF) Generation with TI-DSP TMS320C6713 Processor Dual Tone Multi-Frequency (DTMF) Generation with TI-DSP TMS320C6713 Processor Objective The goals of this lab are to gain familiarity with TI DSP code composer studio and the TI-DSP Starter Kit (DSK).

More information

An Introduction to Komodo

An Introduction to Komodo An Introduction to Komodo The Komodo debugger and simulator is the low-level debugger used in the Digital Systems Laboratory. Like all debuggers, Komodo allows you to run your programs under controlled

More information

We first learn one useful option of gcc. Copy the following C source file to your

We first learn one useful option of gcc. Copy the following C source file to your Lecture 5 p.1 Faculty of Computer Science, Dalhousie University CSCI 2132 Software Development Lab 5: gcc and gdb tools 10-Oct-2018 Location: Teaching Labs Time: Thursday Instructor: Vlado Keselj Lab 5:

More information

As CCS starts up, a splash screen similar to one shown below will appear.

As CCS starts up, a splash screen similar to one shown below will appear. APPENDIX A. CODE COMPOSER STUDIO (CCS) v6.1: A BRIEF TUTORIAL FOR THE DSK6713 A.1 Introduction Code Composer Studio (CCS) is Texas Instruments Eclipse-based integrated development environment (IDE) for

More information

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science. EECS 150 Spring 2000

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science. EECS 150 Spring 2000 University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science EECS 150 Spring 2000 Lab 1 Introduction to Xilinx Design Software 1 Objectives In this

More information

Techniques for Profiling on ROM-Based Applications

Techniques for Profiling on ROM-Based Applications Application Report SPRA761 June 2001 Techniques for Profiling on ROM-Based Applications Harsh Sabikhi Code Composer Studio, Applications Engineering ABSTRACT This application report describes the methods

More information

ECE2049 Embedded Computing in Engineering Design. Lab #0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio

ECE2049 Embedded Computing in Engineering Design. Lab #0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio ECE2049 Embedded Computing in Engineering Design Lab #0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio In this lab you will be introduced to the Code Composer Studio

More information

DSP Development Environment: Introductory Exercise for TI TMS320C55x

DSP Development Environment: Introductory Exercise for TI TMS320C55x Connexions module: m13811 1 DSP Development Environment: Introductory Exercise for TI TMS320C55x Thomas Shen David Jun Based on DSP Development Environment: Introductory Exercise for TI TMS320C54x (ECE

More information

ECE372 CodeWarrior Simulator Andreou/Michaelides

ECE372 CodeWarrior Simulator Andreou/Michaelides CodeWarrior simulator demo The code can be written in C language (higher level) as well as in Assembly language (lower level). General C commands are applied across microcontroller families as opposed

More information

Lab Objectives. 2. Preparations. 3. Signing in. 4. Examining the Host Environment. 5. Part A: Introduction to AVR Studio. 5.

Lab Objectives. 2. Preparations. 3. Signing in. 4. Examining the Host Environment. 5. Part A: Introduction to AVR Studio. 5. Lab 0 1. Objectives Learn how to use AVR studio, an Integrated Development Environment (IDE) for developing AVR applications in Windows environments, to debug and run an AVR assembly program. Understand

More information

Programming Model 2 A. Introduction

Programming Model 2 A. Introduction Programming Model 2 A. Introduction Objectives At the end of this lab you should be able to: Use direct and indirect addressing modes of accessing data in memory Create an iterative loop of instructions

More information

ECGR 4101/5101, Fall 2016: Lab 1 First Embedded Systems Project Learning Objectives:

ECGR 4101/5101, Fall 2016: Lab 1 First Embedded Systems Project Learning Objectives: ECGR 4101/5101, Fall 2016: Lab 1 First Embedded Systems Project Learning Objectives: This lab will introduce basic embedded systems programming concepts by familiarizing the user with an embedded programming

More information

Intro to MS Visual C++ Debugging

Intro to MS Visual C++ Debugging Intro to MS Visual C++ Debugging 1 Debugger Definition A program used to control the execution of another program for diagnostic purposes. Debugger Features / Operations Single-Stepping 100011101010101010

More information

Computer Science 62 Lab 8

Computer Science 62 Lab 8 Computer Science 62 Lab 8 Wednesday, March 26, 2014 Today s lab has two purposes: it is a continuation of the binary tree experiments from last lab and an introduction to some command-line tools. The Java

More information

COMP2121 Introductory Experiment

COMP2121 Introductory Experiment COMP2121 Introductory Experiment Objectives: In this introductory experiment, you will: Learn how to use AVR studio, an Integrated Development Environment (IDE) for developing AVR applications in Windows

More information

CS 150 Lab 3 Arithmetic and the Debugger. Lab 3.0 We are going to begin using the Visual Studio 2017 debugger to aid with debugging programs.

CS 150 Lab 3 Arithmetic and the Debugger. Lab 3.0 We are going to begin using the Visual Studio 2017 debugger to aid with debugging programs. CS 150 Lab 3 Arithmetic and the Debugger The main objective of today s lab is to use some basic mathematics to solve a few real world problems. In doing so, you are to begin getting accustomed to using

More information

Texas Instruments Code Composer and ez-dsp Setup Notes

Texas Instruments Code Composer and ez-dsp Setup Notes Texas Instruments Code Composer and ez-dsp Setup Notes By Calvin Walden and Edward Sandor 21 February 2017 Table of Contents Preliminary Information Texas Instruments Software Setup Code Composer Studio

More information

Code Composer Studio Getting Started Guide

Code Composer Studio Getting Started Guide Code Composer Studio Getting Started Guide Literature Number: SPRU509 May 2001 Printed on Recycled Paper IMPORTANT NOTICE Texas Instruments and its subsidiaries (TI) reserve the right to make changes to

More information

C Programming in Atmel Studio 7 Step by Step Tutorial

C Programming in Atmel Studio 7 Step by Step Tutorial C Programming in Atmel Studio 7 Step by Step Tutorial Sepehr Naimi NicerLand.com 1/1/017 Contents Introduction... Downloading and Installing Atmel Studio... 3 Opening Atmel Studio... 3 Creating the first

More information

New Perspectives on Word 2016 Instructor s Manual 1 of 10

New Perspectives on Word 2016 Instructor s Manual 1 of 10 New Perspectives on Word 2016 Instructor s Manual 1 of 10 New Perspectives Microsoft Office 365 And Word 2016 Introductory 1st Edition Shaffer SOLUTIONS MANUAL Full download at: https://testbankreal.com/download/new-perspectives-microsoft-office-365-

More information

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science EECS 150 Fall 2000 Original Lab By: J.Wawrzynek and N. Weaver Edited by B. Choi, R.

More information

Lab 6 Debugging. Objective. Introduction. Prelab

Lab 6 Debugging. Objective. Introduction. Prelab UNIVERSITY OF CALIFORNIA AT BERKELEY COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCE Lab 6 Debugging Objective You will explore several techniques for debugging a digital

More information

APPENDIX A. CODE COMPOSER STUDIO (CCS) v5: A BRIEF TUTORIAL FOR THE DSK6713

APPENDIX A. CODE COMPOSER STUDIO (CCS) v5: A BRIEF TUTORIAL FOR THE DSK6713 APPENDIX A. CODE COMPOSER STUDIO (CCS) v5: A BRIEF TUTORIAL FOR THE DSK6713 A.1 Introduction Code Composer Studio (CCS) is Texas Instruments integrated development environment (IDE) for developing routines

More information

COPYRIGHTED MATERIAL. Starting Strong with Visual C# 2005 Express Edition

COPYRIGHTED MATERIAL. Starting Strong with Visual C# 2005 Express Edition 1 Starting Strong with Visual C# 2005 Express Edition Okay, so the title of this chapter may be a little over the top. But to be honest, the Visual C# 2005 Express Edition, from now on referred to as C#

More information

Code Composer Studio. MSP Project Setup

Code Composer Studio. MSP Project Setup Code Composer Studio MSP Project Setup Complete the installation of the Code Composer Studio software using the Code Composer Studio setup slides Start Code Composer Studio desktop shortcut start menu

More information

BASICS OF THE RENESAS SYNERGY TM

BASICS OF THE RENESAS SYNERGY TM BASICS OF THE RENESAS SYNERGY TM PLATFORM Richard Oed 2018.11 02 CHAPTER 9 INCLUDING A REAL-TIME OPERATING SYSTEM CONTENTS 9 INCLUDING A REAL-TIME OPERATING SYSTEM 03 9.1 Threads, Semaphores and Queues

More information

Introduction. Key features and lab exercises to familiarize new users to the Visual environment

Introduction. Key features and lab exercises to familiarize new users to the Visual environment Introduction Key features and lab exercises to familiarize new users to the Visual environment January 1999 CONTENTS KEY FEATURES... 3 Statement Completion Options 3 Auto List Members 3 Auto Type Info

More information

Implement an ADT while using Subversion

Implement an ADT while using Subversion 1 Objectives Learn to use Subversion Implement an ADT while using Subversion In this lab, you learn about the version control tool called Subversion and you will implement a Java class given an interface.

More information

Codewarrior for ColdFire (Eclipse) 10.0 Setup

Codewarrior for ColdFire (Eclipse) 10.0 Setup Codewarrior for ColdFire (Eclipse) 10.0 Setup 1. Goal This document is designed to ensure that your Codewarrior for Coldfire v10.0 environment is correctly setup and to orient you to it basic functionality

More information

Migration from HEW to e 2 studio Development Tools > IDEs

Migration from HEW to e 2 studio Development Tools > IDEs Migration from HEW to e 2 studio Development Tools > IDEs LAB PROCEDURE Description The purpose of this lab is to allow users of the High-performance Embedded Workbench (HEW) to gain familiarity with the

More information

April 4, 2001: Debugging Your C24x DSP Design Using Code Composer Studio Real-Time Monitor

April 4, 2001: Debugging Your C24x DSP Design Using Code Composer Studio Real-Time Monitor 1 This presentation was part of TI s Monthly TMS320 DSP Technology Webcast Series April 4, 2001: Debugging Your C24x DSP Design Using Code Composer Studio Real-Time Monitor To view this 1-hour 1 webcast

More information

F28069 ControlCard Lab1

F28069 ControlCard Lab1 F28069 ControlCard Lab1 Toggle LED LD2 (GPIO31) and LD3 (GPIO34) 1. Project Dependencies The project expects the following support files: Support files of controlsuite installed in: C:\TI\controlSUITE\device_support\f28069\v135

More information

CPE 323: Laboratory Assignment #1 Getting Started with the MSP430 IAR Embedded Workbench

CPE 323: Laboratory Assignment #1 Getting Started with the MSP430 IAR Embedded Workbench CPE 323: Laboratory Assignment #1 Getting Started with the MSP430 IAR Embedded Workbench by Alex Milenkovich, milenkovic@computer.org Objectives: This tutorial will help you get started with the MSP30

More information

EDITING GUIDE (EDIT SUITES)

EDITING GUIDE (EDIT SUITES) PREMIERE PRO CC (VERSION 2015.2) EDITING GUIDE (EDIT SUITES) Version 3.3 (FEB 2016) PREMIERE PRO CC EDIT GUIDE - La Trobe University 2015 latrobe.edu.au 2 What do you want to do? 3 1. Back up SD card footage

More information

Programming Studio #9 ECE 190

Programming Studio #9 ECE 190 Programming Studio #9 ECE 190 Programming Studio #9 Concepts: Functions review 2D Arrays GDB Announcements EXAM 3 CONFLICT REQUESTS, ON COMPASS, DUE THIS MONDAY 5PM. NO EXTENSIONS, NO EXCEPTIONS. Functions

More information

An Introductory Guide to SpecTRM

An Introductory Guide to SpecTRM An Introductory Guide to SpecTRM SpecTRM (pronounced spectrum and standing for Specification Tools and Requirements Methodology) is a toolset to support the specification and development of safe systems

More information

Project #1 Exceptions and Simple System Calls

Project #1 Exceptions and Simple System Calls Project #1 Exceptions and Simple System Calls Introduction to Operating Systems Assigned: January 21, 2004 CSE421 Due: February 17, 2004 11:59:59 PM The first project is designed to further your understanding

More information

By the end of Class. Outline. Homework 5. C8051F020 Block Diagram (pg 18) Pseudo-code for Lab 1-2 due as part of prelab

By the end of Class. Outline. Homework 5. C8051F020 Block Diagram (pg 18) Pseudo-code for Lab 1-2 due as part of prelab By the end of Class Pseudo-code for Lab 1-2 due as part of prelab Homework #5 on website due before next class Outline Introduce Lab 1-2 Counting Timers on C8051 Interrupts Laboratory Worksheet #05 Copy

More information

Using Virtual EEPROM and Flash API for Renesas MCUs RX600 Series

Using Virtual EEPROM and Flash API for Renesas MCUs RX600 Series Using Virtual EEPROM and Flash API for Renesas MCUs RX600 Series Description: This lab will take the user through using the Virtual EEPROM (VEE) project for RX. The user will learn to use the Virtual EEPROM

More information

Getting started with UNIX/Linux for G51PRG and G51CSA

Getting started with UNIX/Linux for G51PRG and G51CSA Getting started with UNIX/Linux for G51PRG and G51CSA David F. Brailsford Steven R. Bagley 1. Introduction These first exercises are very simple and are primarily to get you used to the systems we shall

More information

ECE QNX Real-time Lab

ECE QNX Real-time Lab Department of Electrical & Computer Engineering Concordia University ECE QNX Real-time Lab User Guide Dan Li 9/12/2011 User Guide of ECE Real-time QNX Lab Contents 1. About Real-time QNX Lab... 2 Contacts...

More information

Familiarity with data types, data structures, as well as standard program design, development, and debugging techniques.

Familiarity with data types, data structures, as well as standard program design, development, and debugging techniques. EE 472 Lab 1 (Individual) Introduction to C and the Lab Environment University of Washington - Department of Electrical Engineering Introduction: This lab has two main purposes. The first is to introduce

More information

1.2 - Introduction to the IAR Workbench IDE *

1.2 - Introduction to the IAR Workbench IDE * OpenStax-CNX module: m13621 1 1.2 - Introduction to the IAR Workbench IDE * Naren Anand Based on Introduction to CrossStudio MSP430 IDE by Kileen Cheng This work is produced by OpenStax-CNX and licensed

More information

Introduction to Computation and Problem Solving

Introduction to Computation and Problem Solving Class 3: The Eclipse IDE Introduction to Computation and Problem Solving Prof. Steven R. Lerman and Dr. V. Judson Harward What is an IDE? An integrated development environment (IDE) is an environment in

More information

CS 315 Software Design Homework 3 Preconditions, Postconditions, Invariants Due: Sept. 29, 11:30 PM

CS 315 Software Design Homework 3 Preconditions, Postconditions, Invariants Due: Sept. 29, 11:30 PM CS 315 Software Design Homework 3 Preconditions, Postconditions, Invariants Due: Sept. 29, 11:30 PM Objectives Defining a wellformed method to check class invariants Using assert statements to check preconditions,

More information

Using the DSK In CalPoly EE Courses - Dr Fred DePiero

Using the DSK In CalPoly EE Courses - Dr Fred DePiero Using the DSK In CalPoly EE Courses - Dr Fred DePiero The DSK by Texas Instruments is a development platform for DSP applications. The platform includes Code Composer Studio (CCS) with a high performance

More information

ET156 Introduction to C Programming

ET156 Introduction to C Programming ET156 Introduction to C Programming Unit 1 INTRODUCTION TO C PROGRAMMING: THE C COMPILER, VARIABLES, MEMORY, INPUT, AND OUTPUT Instructor : Stan Kong Email : skong@itt tech.edutech.edu Figure 1.3 Components

More information

JCreator. Starting JCreator

JCreator. Starting JCreator 1 of 12 9/29/2005 2:31 PM JCreator JCreator is a commercial Java environment available from http://www.jcreator.com. Inexpensive academic licenses and a free "limited edition" are available. JCreator runs

More information

Starting Embedded C Programming CM0506 Small Embedded Systems

Starting Embedded C Programming CM0506 Small Embedded Systems Starting Embedded C Programming CM0506 Small Embedded Systems Dr Alun Moon 19th September 2016 This exercise will introduce you to using the development environment to compile, build, downnload, and debug

More information

Software Setup and Introductory Assembly programs for the MSP430 *

Software Setup and Introductory Assembly programs for the MSP430 * OpenStax-CNX module: m15976 1 Software Setup and Introductory Assembly programs for the MSP430 * Texas Instruments This work is produced by OpenStax-CNX and licensed under the Creative Commons Attribution

More information

Note that FLIP is an Atmel program supplied by Crossware with Atmel s permission.

Note that FLIP is an Atmel program supplied by Crossware with Atmel s permission. INTRODUCTION This manual will guide you through the first steps of getting the SE-8051ICD running with the Crossware 8051 Development Suite and the Atmel Flexible In-System Programming system (FLIP). The

More information

Assembly Programming in Atmel Studio 7 Step by Step Tutorial

Assembly Programming in Atmel Studio 7 Step by Step Tutorial Assembly Programming in Atmel Studio 7 Step by Step Tutorial Sepehr Naimi BIHE University 12/1/2017 Contents Introduction... 2 Downloading and Installing Atmel Studio... 3 Opening Atmel Studio... 3 Creating

More information

INF 111 / CSE 121. Homework 3: Code Reading

INF 111 / CSE 121. Homework 3: Code Reading Homework 3: Code Reading Laboratory Date: Thursday, July 2, 2009 Take Home Due: Monday, July 2, 2009 Name : Student Number : Laboratory Time : Instructions for the Laboratory Objectives Open a project

More information

CPSC Tutorial 4

CPSC Tutorial 4 CPSC 481 - Tutorial 4 Visual Studio and C# (based on previous tutorials by Alice Thudt, Fateme Rajabiyazdi, David Ledo, Brennan Jones, Sowmya Somanath, and Kevin Ta) Introduction Contact Info li26@ucalgary.ca

More information

How to: Flash the DC/DC LED Lighting Kit s F28035 controlcard so that it works with the GUI

How to: Flash the DC/DC LED Lighting Kit s F28035 controlcard so that it works with the GUI How to: Flash the DC/DC LED Lighting Kit s F28035 controlcard so that it works with the GUI Hardware Setup In this guide each component is named first with their macro number follow by the reference name.

More information

Micrium OS Kernel Labs

Micrium OS Kernel Labs Micrium OS Kernel Labs 2018.04.16 Micrium OS is a flexible, highly configurable collection of software components that provides a powerful embedded software framework for developers to build their application

More information

Setup the environment for first time use

Setup the environment for first time use SGN-16006 Bachelor s Laboratory Course in Signal Processing Signal processor assignment (June 2, 2014) Setup the environment for first time use Use the following procedure to start Code composer studio

More information

Section Objective: Acquaint with specifications of Launchpad Acquaint with location of switches, LEDs, power-on switch, powering the board.

Section Objective: Acquaint with specifications of Launchpad Acquaint with location of switches, LEDs, power-on switch, powering the board. Lab-0: Getting started with Tiva C Series Launchpad and Code Composer Studio IDE ERTS Lab, CSE Department IIT Bombay Lab Objective: 1. 2. 3. 4. Familiarization with Tiva C series Launchpad Install Code

More information

ENSC 350 ModelSim Altera Tutorial

ENSC 350 ModelSim Altera Tutorial ENSC 350 ModelSim Altera Tutorial This is a quick guide get you started with the ModelSim Altera simulator. ModelSim is only a functional verification tool so you will also have to use Quartus II to complete

More information

EMBEDDED SYSTEMS: Jonathan W. Valvano INTRODUCTION TO THE MSP432 MICROCONTROLLER. Volume 1 First Edition June 2015

EMBEDDED SYSTEMS: Jonathan W. Valvano INTRODUCTION TO THE MSP432 MICROCONTROLLER. Volume 1 First Edition June 2015 EMBEDDED SYSTEMS: INTRODUCTION TO THE MSP432 MICROCONTROLLER Volume 1 First Edition June 2015 Jonathan W. Valvano ii Jonathan Valvano First edition 3 rd printing June 2015 The true engineering experience

More information

Embedded Systems - FS 2018

Embedded Systems - FS 2018 Institut für Technische Informatik und Kommunikationsnetze Prof. L. Thiele Embedded Systems - FS 2018 Lab 0 Date : 28.2.2018 Prelab Filling the gaps Goals of this Lab You are expected to be already familiar

More information

EE C Program Elements

EE C Program Elements EE 1910 C Program Elements Development process need Requirements Specification Program Flow Pseudo Code Code Development Tool Chain Test Executable Code Production 2 tj Requirements Specification Identify

More information

DOMAIN TECHNOLOGIES. Getting Started Guide Version 1.1. BoxView IDE. Integrated Development Environment

DOMAIN TECHNOLOGIES. Getting Started Guide Version 1.1. BoxView IDE. Integrated Development Environment Getting Started Guide Version 1.1 BoxView IDE Integrated Development Environment Table of Contents INTRODUCTION...3 System Requirements...3 INSTALLATION...4 License Server...4 Registration...5 Node Locked

More information

ToolStick-EK TOOLSTICK USER S GUIDE. 1. Kit Contents. 2. ToolStick Overview. Green and Red LEDs. C8051F321 provides USB debug interface.

ToolStick-EK TOOLSTICK USER S GUIDE. 1. Kit Contents. 2. ToolStick Overview. Green and Red LEDs. C8051F321 provides USB debug interface. TOOLSTICK USER S GUIDE 1. Kit Contents The ToolStick kit contains the following items: ToolStick Silicon Laboratories Evaluation Kit IDE and Product Information CD-ROM. CD content includes: Silicon Laboratories

More information

ECEN 449: Microprocessor System Design Department of Electrical and Computer Engineering Texas A&M University

ECEN 449: Microprocessor System Design Department of Electrical and Computer Engineering Texas A&M University ECEN 449: Microprocessor System Design Department of Electrical and Computer Engineering Texas A&M University Prof. Sunil P Khatri (Lab exercise created and tested by Ramu Endluri, He Zhou, Andrew Douglass

More information

Laboratory Assignment #3 Eclipse CDT

Laboratory Assignment #3 Eclipse CDT Lab 3 September 12, 2010 CS-2303, System Programming Concepts, A-term 2012 Objective Laboratory Assignment #3 Eclipse CDT Due: at 11:59 pm on the day of your lab session To learn to learn to use the Eclipse

More information

Tool Setup. Code Composer Studio

Tool Setup. Code Composer Studio Tool Setup Code Composer Studio Code Composer Studio Integrated Development Environment (IDE) Free for non-commercial use Eclipse based We will use this for our MSP432 and Console Based code development

More information

MSP430 Interface to LMP91000 Code Library

MSP430 Interface to LMP91000 Code Library Application Note 2230 Vishy Viswanathan July 13, 2012 MSP430 Interface to LMP91000 Code 1.0 Abstract The MSP430 is an ideal microcontroller solution for low-cost, low-power precision sensor applications

More information

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 3: SEP. 13TH INSTRUCTOR: JIAYIN WANG

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 3: SEP. 13TH INSTRUCTOR: JIAYIN WANG CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 3: SEP. 13TH INSTRUCTOR: JIAYIN WANG 1 Notice Reading Assignment Chapter 1: Introduction to Java Programming Homework 1 It is due this coming Sunday

More information

Laboratory IV LCD Framebuffer

Laboratory IV LCD Framebuffer Introduction Laboratory IV In this laboratory you will explore different ways of creating video images. There are four projects. In the first one you will create an image on the fly using PAL macros to

More information

Implementation Techniques for DSP

Implementation Techniques for DSP Implementation Techniques for DSP 1 Implementation Techniques for DSP Part 1: Development Tools (3 hours) Part 2: FFT Implementation (6 hours) Introduction The laboratory exercises presented in this handout

More information

ME 365 EXPERIMENT 3 INTRODUCTION TO LABVIEW

ME 365 EXPERIMENT 3 INTRODUCTION TO LABVIEW ME 365 EXPERIMENT 3 INTRODUCTION TO LABVIEW Objectives: The goal of this exercise is to introduce the Laboratory Virtual Instrument Engineering Workbench, or LabVIEW software. LabVIEW is the primary software

More information

Introduction to C/C++ Programming

Introduction to C/C++ Programming Chapter 1 Introduction to C/C++ Programming This book is about learning numerical programming skill and the software development process. Therefore, it requires a lot of hands-on programming exercises.

More information

ECEN 449: Microprocessor System Design Department of Electrical and Computer Engineering Texas A&M University

ECEN 449: Microprocessor System Design Department of Electrical and Computer Engineering Texas A&M University ECEN 449: Microprocessor System Design Department of Electrical and Computer Engineering Texas A&M University Prof. Sunil Khatri TA: Monther Abusultan (Lab exercises created by A. Targhetta / P. Gratz)

More information

Debugging in AVR32 Studio

Debugging in AVR32 Studio Embedded Systems for Mechatronics 1, MF2042 Tutorial Debugging in AVR32 Studio version 2011 10 04 Debugging in AVR32 Studio Debugging is a very powerful tool if you want to have a deeper look into your

More information

A Microprocessor Systems Fall 2009

A Microprocessor Systems Fall 2009 304 426A Microprocessor Systems Fall 2009 Lab 1: Assembly and Embedded C Objective This exercise introduces the Texas Instrument MSP430 assembly language, the concept of the calling convention and different

More information

Eclipse CDT Tutorial. Eclipse CDT Homepage: Tutorial written by: James D Aniello

Eclipse CDT Tutorial. Eclipse CDT Homepage:  Tutorial written by: James D Aniello Eclipse CDT Tutorial Eclipse CDT Homepage: http://www.eclipse.org/cdt/ Tutorial written by: James D Aniello Hello and welcome to the Eclipse CDT Tutorial. This tutorial will teach you the basics of the

More information

Laboratory Exercise 3 Comparative Analysis of Hardware and Emulation Forms of Signed 32-Bit Multiplication

Laboratory Exercise 3 Comparative Analysis of Hardware and Emulation Forms of Signed 32-Bit Multiplication Laboratory Exercise 3 Comparative Analysis of Hardware and Emulation Forms of Signed 32-Bit Multiplication Introduction All processors offer some form of instructions to add, subtract, and manipulate data.

More information

Instructions PLEASE READ (notice bold and underlined phrases)

Instructions PLEASE READ (notice bold and underlined phrases) Lab Exercises wk02 Lab Basics First Lab of the course Required Reading Java Foundations - Section 1.1 - The Java Programming Language Instructions PLEASE READ (notice bold and underlined phrases) Lab Exercise

More information

CS311 Lecture: The Architecture of a Simple Computer

CS311 Lecture: The Architecture of a Simple Computer CS311 Lecture: The Architecture of a Simple Computer Objectives: July 30, 2003 1. To introduce the MARIE architecture developed in Null ch. 4 2. To introduce writing programs in assembly language Materials:

More information

ECE-6170 Embedded Systems Laboratory Exercise 3

ECE-6170 Embedded Systems Laboratory Exercise 3 ECE-6170 Embedded Systems Laboratory Exercise 3 The purpose of this exercise is to learn how to connect simple input and output devices to an FPGA chip and use the Nios II processor to interface with parallel

More information

1.00 Lecture 2. What s an IDE?

1.00 Lecture 2. What s an IDE? 1.00 Lecture 2 Interactive Development Environment: Eclipse Reading for next time: Big Java: sections 3.1-3.9 (Pretend the method is main() in each example) What s an IDE? An integrated development environment

More information

Laboratory 1: Eclipse and Karel the Robot

Laboratory 1: Eclipse and Karel the Robot Math 121: Introduction to Computing Handout #2 Laboratory 1: Eclipse and Karel the Robot Your first laboratory task is to use the Eclipse IDE framework ( integrated development environment, and the d also

More information

SANOG VI IP Services Workshop: FreeBSD Install

SANOG VI IP Services Workshop: FreeBSD Install SANOG VI IP Services Workshop: FreeBSD Install FreeBSD is designed to be a server operating system. This becomes apparent during the installation process. The FreeBSD installer is a console-based (not

More information

Embedded Systems - FS 2018

Embedded Systems - FS 2018 Institut für Technische Informatik und Kommunikationsnetze Prof. L. Thiele Embedded Systems - FS 2018 Sample solution to Lab 0 Date : 28.2.2018 Prelab Filling the gaps Goals of this Lab You are expected

More information