|
Lab DescriptionsThere are ten scheduled labs, which are structured and mandatory. The plan for these structured labs is as follows. Please, follow the appropriate link to go for a full description of the lab contents and write-ups:
Download Software - Assembler asm11d84.zip - Wookie simulator wookie171.zip - Floating point library fp01.asm - Buffalo monitor AxIDE2.zip Lab GuidelinesEquipment
Lab WorkMost labs have an even number of people so all work should be performed with at least one lab partner. Work should be divided between the two partners. Each student should submit a lab report. Final program listings should be included in each report with each student's pre-lab program listings included in their report. SoftwareWe have the programs used in lab available as an exe file. Click here to download the file with these programs. The files are:
You will also need need the HC11 floating-point library. You can download it from the link below:
You should use as11 to assemble your programs. CleanupAt the end of each lab, all equipment used during the lab should be stored properly. Each desk should be free of equipment and/or trash. Points will be deducted for neglected cleanup. Give a hoot, don't pollute! No food or drink will be permitted in the lab. However, there is a lovely hall located adjacent to the lab that makes the perfect setting for downing a candy bar and beverage! Lab ReportsIn industry you will be expected to submit reports, both technical and non-technical, discussing the status of your projects. EECE 218 is a good tune-up to the real world with its lab reports and project progress reports that cover both technical and non-technical issues. Lab reports should be written so another engineer could reproduce your work and receive the same results you show. Progress reports should be accurate, brief, and informative. Below we present an example lab report outline with some important tips. Outline
Sample ReportCover pageby Jane Rodriguez Performed : 02/26/2001 Submitted : 03/05/2001 Lab Partner(s): John Rodriguez, Jr. T.A. : John Rodriguez, II Goal & IntroductionIn this section, you should
Goal and Introduction The goal of this lab is to familiarize the student with the HC11-VDK board through the use of the BUFFALO monitor program, a few simple assembler programs, and acquaintance with the environment of the BUFFALO software. The student expects to learn basic terminology, and commands associated with the Motorola 68HC11 microprocessor. This lab emphasizes the need and importance of the environment under which debugging takes place for user programs. It's hoped that a better understanding of the functioning of the microprocessor will be gained through this activity. Equipment ListBesides listing the equipment, describe
how it was connected. Often, a diagram of the lab-setup may be more informative.
Also mention any special hardware or connections. You have to mention all the
equipment you use. Don't write vague expressions such as "BUFFALO
monitor", "Terminal". By the way, BUFFALO monitor is not equipment.
For example Equipment List
HP Vectra PC
HC11-VDK board
power supply
Serial cable
ProcedureAgain, don't copy from the lab manual. Don't write like the lab manual, either. Try to be original. In this part, you have to explain your lab work. You have to devote at least 5-6 sentences to each program written. Explain what the requirements were, how they were met. You are not supposed to explain how you got it to work, since you have to give these details in the discussion section. The "procedure" section gives an outline of the lab work expected. Procedure The HC11-VDK board is connected to the HP Vectra PC and power supply is attached to the Vandymatic board. After BUFFALO monitor prompt was seen on the terminal screen, several BUFFALO commands were tried. Among them, d (dump memory), mm mm (memory modify), rm (register modify), rd (register display) were the most useful ones. The program given in the manual was entered into the memory and executed. The error was found and corrected using the debugging facilities of the BUFFALO monitor. Then the prelab programs entered into memory and executed. The The first program was to fill the first RAM page with .... The second program copies the first RAM page ($C100-$C1FF) to the second page ($C200-$C2FF). Two index registers, namely IX and IY are used to copy 256 bytes. The program shown in Appendix was entered into memory location $C000 and executed. The output was verified. The purpose of the third program is to print out the string NAME The letters were first stored in memory with ASCII codes. The subroutine 'outstrg' provided by the BUFFALO monitor program is cal- led to display the string pointed by Y register. DiscussionDiscuss what happened in the lab. This section is the post-mortem of your lab experience. Especially give details of what went WRONG. Explain how your final program was different from your pre-lab program. Explain which parts of the pre-lab you had to modify. Indicate whose pre-lab program (yours or your partner's) you modified to make the code working correctly. The important thing is that you should not write "there was an error in the second program, we fixed it, it worked." We would like to see what the error was, how you noticed it, how you fixed it. The explanations should not be long. For example, "The second program did not work as expected. By inserting breakpoints within the loop, we noticed that the X register should have been incremented twice. We added another INX and the program executed correctly. " The following is an example discussion section. Read it carefully to understand what you should write in the discussion section. It is important to write everything in essay format devoting a paragraph (3-4 sentences long) for each problem encountered. Use short but concise expressions. Discussion The program given in the lab manual was entered into memory and executed. Since we forgot to reset the stack pointer to $DFFF the Vandymatic board reset itself. We changed the value SP using the rm (register modify) command and the program ran. By inserting breakpoints, the error was located and corrected by changing ..... The calculation of the BNE offset is tricky especially when a backward jump is performed. Incorrect offset resulted in erratic program behavior. We were able to calculate the offset by count- ing the number of bytes between the first instruction after BNE and the jump point. Once the correct negative number was computed the program ran as expected. Answers to After-lab questionsAnswer all the questions asked in the lab text. If these questions are not answered, the lab report will be treated as incomplete. If you find any question confusing, discuss with your TA. ConclusionIn this section, we would like to see what you learned in the lab. For instance, in the first lab we expect you to learn how to use the BUFFALO monitor, i.e. entering programs, displaying and modifying the contents of registers and memory, how to debug your programs with breakpoints, trace command. Also, after some calculations (in the After lab), you must realize that computation time is cheap. You must think about how you can implement breakpoints. Therefore, plenty to learn. In this section, we would like to see that you learned what we expected you to learn. How would you use what you learned in the lab be useful in the "Real World?" It is a general question, but give it a shot. Conclusions This lab introduced us HC11-VDK board and program development environment. We were able to enter codes of our programs using the facilities of BUFFALO monitor. This program provides basic tools for modifying and displaying the content of the memory, modifying the register contents, executing and debugging programs. The debugging facilities of BUFFALO monitor were useful in locating and fixing the errors. In this lab, I learned the differences between the addressing modes of HC11 processor. Almost all addressing were used in in the lab..... All programs were using loops. The offset calculation of.... AppendixThis is the section of the report where you will list both your pre-lab and lab program listings. Even if they are identical, you should list both of them. Follow the directions given below for properly commenting your code. A detailed explanation on how to comment your programs can be found in Comments in Assembly Programs.
GradingSo that you will know precisely what you will be graded on, below is a breakdown for our grading policy. Green shaded areas represent 100% of all the parts making your Lab Report, while the rest represent deduction points for various reasons.
Comments:
| EE-218 Homepage |
Syllabus
| Schedule | Lab
News | Faculty | Contact
Information | Lab Info | Project
|
Department of Electrical Engineering and Computer Science |
Search |
Site Index
| People Finder
| Phone
Directory | VUnet |
VUmail |
VU Library | Help
|
Last Updated:
Wednesday, January 11, 2006
Juan J. Rodriguez-Moscoso
Copyright © 2005 | |||||||||||||||||||||||||||||||||