Docsity

Compiling Simple Programs and Logic Analyzer - Lab 1 | ECGR 4101, Lab Reports of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECGR 4101/5101 Spring 2009
Lab 1
Compiling Simple Programs and Logic Analyzer
Due: 2/4/09, at the 2:00pm. Assignment should be typed, a hard copy turned in to Lab TA.
The TA will be in the lab from 11:00-2:00pm on the due date (but you may turn it in any time
before the deadline). Use the template below to prepare your lab report.
Objectives
A pre-requisite skill to developing embedded computing system applications is knowing how
to use the tools. In our case, this is the integrated development environment (used to compile
programs) and the mixed signal scope (used to observe hardware conditions on the board).
The goal of this lab is to familiarize you with the QSK26A’s development environment
called High-Performance Embedded Workshop (HEW) and the bench equipment, namely, the
Agilent Mixed Signal Oscilloscope (analog oscilloscope and logic analyzer).
Prelab Assignment
You may use the PCs in Woodward Hall 203 or your own PC to compile and test the soft-
ware aspects of this project. However, for credit you must demonstrate the lab on one of the
machines in WH 203. If you want to work on the project from home, you should install the
software from the CD that comes with the QSK26A board.
To be prepared for this lab, you should test out your with the pre-configured application,
review the documentation that describes HEW, and look at the on-line user’s guide for the
mixed signal scope. To help you, consider the following questions before beginning.
1. Where should your “working directory” be located when using the lab computers?
2. How many lines do the development tools allow in a C source file?
3. Where is the first place to look for help with labs in this class?
4. How many analog inputs does the mixed signal scope have? How many digital inputs?
5. Where can you find the pin-outs of the QSK26A board? Specifically, what breakout pins
are connected to the LED outputs?
6. What steps will you take to ensure that your lab assignment will not be copied by an
unscrupulous team?
1
pf3

Partial preview of the text

Download Compiling Simple Programs and Logic Analyzer - Lab 1 | ECGR 4101 and more Lab Reports Electrical and Electronics Engineering in PDF only on Docsity!

ECGR 4101/5101 Spring 2009

Lab 1

Compiling Simple Programs and Logic Analyzer

Due: 2/4/09, at the 2:00pm. Assignment should be typed, a hard copy turned in to Lab TA. The TA will be in the lab from 11:00-2:00pm on the due date (but you may turn it in any time before the deadline). Use the template below to prepare your lab report.

Objectives

A pre-requisite skill to developing embedded computing system applications is knowing how to use the tools. In our case, this is the integrated development environment (used to compile programs) and the mixed signal scope (used to observe hardware conditions on the board). The goal of this lab is to familiarize you with the QSK26A’s development environment called High-Performance Embedded Workshop (HEW) and the bench equipment, namely, the Agilent Mixed Signal Oscilloscope (analog oscilloscope and logic analyzer).

Prelab Assignment

You may use the PCs in Woodward Hall 203 or your own PC to compile and test the soft- ware aspects of this project. However, for credit you must demonstrate the lab on one of the machines in WH 203. If you want to work on the project from home, you should install the software from the CD that comes with the QSK26A board. To be prepared for this lab, you should test out your with the pre-configured application, review the documentation that describes HEW, and look at the on-line user’s guide for the mixed signal scope. To help you, consider the following questions before beginning.

  1. Where should your “working directory” be located when using the lab computers?
  2. How many lines do the development tools allow in a C source file?
  3. Where is the first place to look for help with labs in this class?
  4. How many analog inputs does the mixed signal scope have? How many digital inputs?
  5. Where can you find the pin-outs of the QSK26A board? Specifically, what breakout pins are connected to the LED outputs?
  6. What steps will you take to ensure that your lab assignment will not be copied by an unscrupulous team?

Laboratory Procedure

  1. Follow the instructions on the QuickStart Guide, numbers 4.0 and 5.0. Note carefully the steps required to build, download, and debug a program. Note the change of behavior of the board.
  2. You will next build a new project based on the “demo” (on QuickStart Guide step 4c, choose “demo” instead of “test”). Download and run this new code. Note the change in behavior on the board.
  3. In the project editor, choose main skpdemo.c as the file to edit. You will need to change the program in three places to meet the following requirements:

(a) Instead of flashing G → Y → R → G → change it to sequence

G → Y → R → off → G → Y → R → off → G →

(This will require you to change the code.) (b) Keep all of the other code the same. (c) In the header comments (bottom of the comment block), add a few lines stating your name, the date, and what you changed. (d) Add an appropriate comment to the procedure you changed that describes your intent. (What are the changes supposed to do?)

  1. In the project editor, add your names to the boot-up sequence of the board (instead of Renesas).
  2. Save the file.
  3. Now use the rebuild button on the toolbar to compile all of your source files in the project. This will pull up the builder and show the status as the project is cleaned and rebuilt from scratch. The memory totals should be adjusted to reflect the fact that you have changed the code.
  4. Reload the software onto the board and test. Verify that the new functionality works as specified.
  5. Using the scope, hook up three digital inputs to the breakout pins associated with the three LEDs. Take a reading for three cycles. Save the reading and include in your lab report.

Complete your lab report and bring your board to the TA to demonstrate the new code. (Note: you do not need to start up HEW.) For the lab report, you do not need to print the entire program: just include printouts of the parts you changed.