5 Pages

Lab2_sp09

Course: ECE 263, Fall 2009
School: UMass Dartmouth
Rating:
 
 
 
 
 

Word Count: 1706

Document Preview

263 ECE Lab 2 Programming & Cosmic Lab 2 Programming & Cosmic Spring 09 Page 2 of 5 Object: For this lab you will be using the Cosmic CX6811 Integrated Development Environment (IDE). The IDE is a graphical interface which combines all of the software tools needed to enter a source program in either assembly language or in C, a C compiler, an Assembler, a linker, and a simulator. For this lab...

Register Now

Unformatted Document Excerpt

Coursehero >> Massachusetts >> UMass Dartmouth >> ECE 263

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
263 ECE Lab 2 Programming & Cosmic Lab 2 Programming & Cosmic Spring 09 Page 2 of 5 Object: For this lab you will be using the Cosmic CX6811 Integrated Development Environment (IDE). The IDE is a graphical interface which combines all of the software tools needed to enter a source program in either assembly language or in C, a C compiler, an Assembler, a linker, and a simulator. For this lab you will be using the editor to generate a text file containing the assembly language source file, then you will convert the source program into machine language using the assembler and linker. Finally, you will debug your program using the simulator. Material: You will need the HC11 Programming Reference Manual and a USB memory stick to save your project. Preparation: Before coming to the lab you must have Programming Assignment 3 (Sort Program) completed and entered into text file using a simple text editor such as Microsoft Notepad - do not use Microsoft WORD. Note: If you do not have the completed source code for this program do not bother to come to lab - you will be asked to leave and return when it is ready. Lab: Working with your assigned lab group, complete the following steps. 1. Start the Cosmic software by double clicking on the COSMIC CX6811 icon on the Windows desktop. 2. The IDE (aptly named IDEA6811) will start and show the main screen. On the top line, click on PROJECT, then in the drop down menu click on NEW: this will bring up the Project Navigator which is a set of selections on the left side of the screen. These selection make up the elements of the project. 3. Click on PROJECT again, then click on WORKING DIRECTORY in the drop down menu. 4. In the pop-up window, select a working directory in one of the following locations: on the USB memory stick or in a sub-folder on you engineering account. You will point to an existing directory in one of those locations so you need to use Windows Explorer or My Computer to create the folder before you do this step. Typically you will create a new folder for each project to keep your work organized. In the Project Navigator, make sure that the working directory appears. As you add files to the working directory, they will be listed here. Note: You will not be able to store your work on the hard drive of the computer you are using. Lab 2 Programming & Cosmic Spring 09 Page 3 of 5 5. You should now make sure the text file containing your program is in the directory that you just specified as the WORKING DIRECTORY and that it has a .s extension. Note: The following instructions refer to file names as <filename>. Replace <filename> with a name of your choice, such as Lab2_xx (use your initials in place of the xx), and the extension specified. You should avoid the use of spaces in any file names - Cosmic can get confused. Be sure to include the assignment name, your name(s), and the date as comment lines at the beginning of all Lab programs. 6. Click on PROJECT again, this time select ADD FILE and select the source file for your program. 7. In cases where you want to use the text editor in Cosmic to create the source file you would do the following: Click on FILE, then NEW. In the pop-up window, select Assembly Source File. When you hit OK the text editor will open and you can use it to enter the program. 8. When you have finished entering the entire program save it by clicking on FILE, then SAVE AS. You will be asked for a file name and a location to store the file - save it in your working directory. The system will and append a .s extension to the file name you entered. The .s extension is the way that the IDE identifies that the file is an assembly language source file. A "C" source file would have a .c extension. Note: You can create the file with any text editor - just be sure to save the file with the extension .s not .txt. You will have to be careful if you use Microsoft Notepad because it has the tendency to always append a .txt even if you specify something else. 9. In the Project Navigator, right click on SOURCE FILES then select ADD FILE. In the popup window, go select the <filename>.s file you just created with the text editor. You should see the file name appear below the SOURCE FILES. If you click on the + in front of the filename, it opens file specific information related to that file. 10. In the Project Navigator, click on the TOOLS selection at the bottom of the window. In the TOOLS menu, click on the + in front of ASM CA6811. Right click on the OPTIONS selection. This opens a dialog box where you set up the command line options to be used when the CA6811 Assembler program is called. These options are global in scope and will affect all files with a .s extension. 11. In the GENERAL ckeck all four selections. At the bottom of this window you can see the command line built being - you should see ca6811 -xx -x -a -v Lab 2 Programming & Cosmic Spring 09 Page 4 of 5 12. In the LISTING section, highlight OUTPUT A LISTING: -l (lower case L) should be added to the command line window. 13. In the MISCELLANEOUS section, select ACCEPT OLD MOTOROLA SYNTAX then click on OK. 14. Now left click on the + in front of LINKER then right click on CREATE COMMAND FILE. This opens a file named untitled.lkf which we need to edit. Edit the default linker command file by first deleting all of the lines in the file. Next enter the name of the file and add a .o extension, e.g. <filename.o>. The .o extension indicates to the IDE the the file is an object file. When you have finished, save the edited file as <filename>.lkf. The linker is normally used to resolve the absolute memory addresses from a number of object files and/or library functions and combine them into a single load file. Since you only have a single file and you have already set the memory address by means of the ORG assembler directive, we are shortcutting the functions performed by the linker program. 15. Now right click on the OPTIONS selection under LINKER. In the pop-up window, check the box next to the Output to File and then enter <filename>.h11. Check the box in front of Command File and enter <filename>.lkf. Finish the selection by clicking on OK. 16. Now left click on the + in front of BUILDER then right click on OPTIONS. In the pop-up window check the box labeled CONVERT TO S_RECORDS then click on the OPTIONS box. In the next pop-up window, check the box labeled OUTPUT TO FILE, then enter <filename>.s19 in the blank space. Click on OK to close the window and then repeat for the next window. 17. At this point all of the settings for your project are complete so you should save the project. Select PROJECTS from the top line and then select SAVE AS and enter <filename>.prj 18. The icons at the top of the window are shortcuts for various operations. The icon that looks like a white/green ice cream sandwich is the command to compile or assemble your program, depending on the extension of the file that is highlighted. The program will try to compile/assemble whatever file is highlighted. If the highlighted file is not appropriate, such as the linker control file, nothing happens and there is no error indication and no entry in the error file. 19. The two icons next to the COMPILE icon are BUILD and RE_BUILD ALL. The REBUILD ALL runs all of the processes (compiler/assembler, linker, etc) one after the other and creates all new output files. The BUILD command only recompiles any file that has changed since the last build and then only runs the rest of the process if a new object file exists.. Lab 2 Programming & Cosmic Spring 09 Page 5 of 5 20. If the ERROR window is not currently displayed, click on the WINDOWS selection at the top of t...

Textbooks related to the document above:
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

UMass Dartmouth - ECE - 257
Fundamentals of UNIX ECE 257External System connectivity DatabasesCollege of Engineering: Electrical and Computer Engineering DepartmentFeatures of data in Database Shared: multiple concurrent access allowed Persistent: data does not disappea
UMass Dartmouth - ECE - 201
Inductance Inductor A coil of wire wrapped around a supporting core (magnetic or non-magnetic) The time-varying current in the wire produces a time-varying magnetic field around the wire A voltage is induced in any conductor linked by the magneti
UMass Dartmouth - ECE - 201
Natural Response of an RC CircuitECE 201 Circuit Theory I1Typical RC CircuitECE 201 Circuit Theory I2Circuit Conditions Assume that the switch has been in position a for a very long time.ECE 201 Circuit Theory I3The Capacitor is Ch
UMass Dartmouth - ECE - 257
Fundamentals of UNIX ECE 257Week 4 Advanced file processing along with awk, sed and PerlCollege of Engineering: Electrical and Computer Engineering DepartmentIntroduction File processing Regular expressions cmp and diff Awk / gawk Sed / Gr
UMass Dartmouth - ECE - 257
Fundamentals of UNIX ECE 257Network ProgrammingCollege of Engineering: Electrical and Computer Engineering DepartmentUNIX IPC &amp; Network Communications I/O to a process IPC with a pipe Two way Pipe connection Network communication with soc
UMass Dartmouth - ECE - 257
Fundamentals of UNIX ECE 257Week 6 Introduction to UNIX Processes and system programmingCollege of Engineering: Electrical and Computer Engineering DepartmentUNIX Processes UNIX supports concurrent execution of processes Concurrent Processes s
UMass Dartmouth - ECE - 201
Response of First-Order CircuitsRL Circuits RC CircuitsECE 201 Circuit Theory I1The Natural Response of a Circuit The currents and voltages that arise when energy stored in an inductor or capacitor is suddenly released into a resistive circui
UMass Dartmouth - ECE - 257
ECE 257 Fundamentals of UNIXLecture Introduction to hardware Design Tools Using VHDLCollege of Engineering: Electrical and Computer Engineering DepartmentOutline Introduction to ASIC design: What is FPGA? Xilinx FPGA Xilinx ISE Design flow Mo
UMass Dartmouth - ECE - 257
Fundamentals of UNIX ECE 257Topic 9 Redirection, Piping and NetworkingCollege of Engineering: Electrical and Computer Engineering DepartmentLINUX Data movement Standard files (input, output, error files) Input and Output file redirection E
UMass Dartmouth - ECE - 257
Fundamentals of UNIX ECE 257Week 2 Introduction to UNIX FilesCollege of Engineering: Electrical and Computer Engineering DepartmentReview Q: What is the order of Unix Command Components?A. B. C. D. command args -options command -options args a
UMass Dartmouth - ECE - 257
Fundamentals of UNIX ECE 257Week 8 Program management and UNIX Make filesCollege of Engineering: Electrical and Computer Engineering DepartmentUNIX CompilingSource Code HLL compiler Assembly code Assembler Object code Linker Executable code Col
UMass Dartmouth - ECE - 260
UNIVERSITY OF MASSACHUSETTS DARTMOUTH Department of Electrical and Computer Engineering ECE 260 Laboratory 1 An Introduction to Logic Circuits Objective- To learn how to breadboard and simulate logic circuits by setting up several different gates and
UMass Dartmouth - ECE - 260
UNIVERSITY OF MASSACHUSETTS DARTMOUTH Department of Electrical and Computer Engineering ECE 260 Laboratory 8 D Flip Flop Preliminary: You are franticly trying to complete a design project that uses a 4-bit binary counter but you just blew out the las
UMass Dartmouth - ECE - 260
ECE 260 Digital Logic &amp; Computer Design Spring 2008 SyllabusCredits: 3.5 (3 class hours per week and 1.5 laboratory hours per week) Instructor: David Lincoln Office: Grp II, Room 209B Phone: 401-619-1915 Email: dlincoln@umassd.edu Office Hours: Mon
UMass Dartmouth - ECE - 263
ECE263 Homework9 Feb 09 Assignment 4: Due Feb 13 Write a short assembly language program for the following task. Write a program to convert the contents of a block of RAM into ASCII hex and leave the results in another block of RAM. Upon startup, th
UMass Dartmouth - ECE - 160
= ACTIVE TEMPLATE LIBRARY : pizzah Project Overview=AppWizard has created this pizzah project for you to use as the starting point forwriting your Executable (EXE).This file contains a summary of what you will find in each of the files tha
UMass Dartmouth - ECE - 264
= DYNAMIC LINK LIBRARY : asfd Project Overview=AppWizard has created this asfd DLL for you. This file contains a summary of what you will find in each of the files thatmake up your asfd application.asfd.vcproj This is the main projec
UMass Dartmouth - ECE - 263
MC68HC11 Timer Sub-systemTMSK2$1024 00 = DIV BY 1 01 = DIV BY 4 10 = DIV BY 8 11 = DIV BY 161 0from/to CPUDATA BUSEPRE- SCALE$100E/0FCOUNTERTCNTOFLOWto TFLG2, bit 71616TOCxPA2 = TIC1 PA1 = TIC2 PA0 = TIC3 PA3 = TIC4 *x4/5L
UMass Dartmouth - ECE - 591
ECE591-S'09ECE591: Dependable Computing and NetworkingLecture #9 Network Reliability Instructor: Dr. Liudong Xing Spring 2009Administrative Issues (Thursday; March 12) No classes next week Have a great and safe spring break! Homework #2 due
UMass Dartmouth - ECE - 591
A Modular Approach for Analyzing Static and Dynamic Fault TreesRohit Gulati; Alta Group of Cadence Design Systems, Sunnyvale Joanne Bechta Dugan; University of Virginia, Charlottesville Key Words: Static and Dynamic Fault trees, Markov chain, Binary
UMass Dartmouth - ECE - 591
ECE591-S'08Variable Ordering in BDD The size of BDD depends heavily on the input variable ordering used to build the BDD The poor ordering can significantly affect the size of the BDD, thus the reliability analysis solution time for large systems
UMass Dartmouth - ECE - 560
ECE560 Computer Systems Performance Evaluation (Spring 2009) Solution to Homework#24
UMass Dartmouth - ECE - 560
ECE560:ComputerSystemsPerformance EvaluationLecture#7 ProbabilityTheory(PartIII) JointlyDistributedR.V. Instructor:Dr.LiudongXing Spring2009Administrative Issues (Feb. 24, Tuesday) Solution to Homework #1&amp;2 Available from the course website H
UMass Dartmouth - ECE - 456
L#2 Review Questions (True/False)1. 2. 3. 4. _F_ Computer architecture is concerned with the hardware details that are transparent to the machine language programmer _T_ Different models in the same computer family may have different organizations,
UMass Dartmouth - ECE - 456
ECE456/ECE561 Project DescriptionInstructor: Dr. Liudong Xing Department of Electrical and Computer Engineering University of Massachusetts Dartmouth Fall 20081IntroductionThe project in ECE456/ECE561 is designed to allow everyone in the class
UMass Dartmouth - ECE - 591
ECE591: Dependable Computing and NetworkingLecture #10 Midterm ReviewInstructor: Dr. Liudong Xing Spring 2009Midterm Exam Time and place 6:30 ~ 8:10pm, Thursday, March 26 II-222 Form: Open book, open notes, in-class exam Calculators are
UMass Dartmouth - CIS - 381
2/15/09 CIS 381OverviewTo frame our discussion, consider:Outline Decision Making Developing Responses1 2/15/09 Adapted from Muriel J. Bebeau (1995) Moral Reasoning in Scientific Research: Cases for Teaching and Assessment.Decisions
UMass Dartmouth - CIS - 362
1/30/09CIS 362OverviewTo frame our discussion, consider:OutlineActivities Types of Data Representations Guidelines 11/30/09Research ActivitiesData Gathering Data Summarization Data Interpretation Types of DataNominal Ordinal D
UMass Dartmouth - CIS - 362
1/25/09CIS 362Progress in ScienceGeneralGeneralizationprogre ssSpecic Description Prediction Causal ExplanationUnderstandingDescriptionDescription requires little to no understanding. Beginning with descriptions, you provide acces
UMass Dartmouth - CIS - 381
Software PatentsCIS 362Why Software Patents Whatprotection does the patent provide that copyright does not?http:/www.bitlaw.com/software-patent/why-patent.htmlComparisonPatentCopyright Owner of a patent may prevent all others from
CSU Sacramento - BIO - 181
Southern hybridization of RT-PCR clone(antibody light chain) OBJECTIVE OF SOUTHERN BLOTTING: To confirm the RT-PCR clone (white colony growing on kanamycin) contains the antibody light chain gene. 13A CONCEPT OUTLINE We will probe plasmid DNA, so n
LSU - I - 503060
Department of DefenseINSTRUCTIONNUMBER 5030.60September 17, 1993DA&amp;MSUBJECT: Reimbursable Work Authorization Procedures for Washington Headquarters Services (WHS) -Operated Facilities References: (a) Public Law 101-510, &quot;National Defense Autho
CSU Sacramento - M - 107
Author: Group Members:Cross Multiply and Numbers Between1. Determine algebraically which fraction is larger. (a) 7 3 and 5 10 3 32 6 = = 5 52 10 So3 5&lt;7 10 .(b)5 3 and 6 4 5 52 10 = = 6 62 12 3 33 9 = = 4 43 12 So5 6&gt; 3. 4(c)8 11
CSU Sacramento - M - 107
HW #1 ch. 1 problems 1-5 SOLUTIONS 1. Explain why the parts of the whole model cannot be used to understand the following fractions. Be sure to indicate specically where the problem occurs in the parts of the whole model. 2 3 We can designate a who
CSU Sacramento - M - 107
Math 107BExam 1 Solutions11. True or False. Determine whether the following statements are true or false. If the statement is always true, give a brief justification. If the statement is sometimes false, give a counterexample or brief justifica
CSU Sacramento - M - 107
Author: Group Members:Negatives, Mixed Numbers and Improper Fractions1. Compute4 4 + algebraically. Justify each equality. 5 54 4 (i) 4 + 4 (ii) 0 (iii) = = 0 + = 5 5 5 5 (i) Addition in Q (ii) Addition in Z (iii) 0 as a fraction 2. Compute 4
CSU Sacramento - M - 107
HW #1 ch. 1 problems 11-15 SOLUTIONS 3 1 13. You give Max the problem 2 + 1 . Max does the problem in the following way. 4 5 2+1 = 3 3 1 15 4 19 + = + = 4 5 20 20 20 3 1 19 Therefore Max concludes that 2 + 1 = 3 . 4 5 20 (a) Is Maxs method and answ
Youngstown - CHEM - 1506
Chemistry 1506Dr. Hunters ClassSection 7 Notes - Page 1/23Chemistry 1506: Allied Health Chemistry 2Section 7: Carbohydrates Biochemical Alcohols and EthersOutlineSECTION SECTION SECTION SECTION SECTION SECTION SECTION7.1 INTRODUCTION ..
Youngstown - CHEM - 822
1 Crystallography-Diffraction Methods Texts Dr. Allen D. Hunter Youngstown State University Department of Chemistry The following is a table of selected texts on various aspects of crystallography and diffraction methods. [YSU Column: Y = in YSUs Maa
Youngstown - CHEM - 832
1 Crystallography-Diffraction Methods Texts Dr. Allen D. Hunter Youngstown State University Department of Chemistry The following is a table of selected texts on various aspects of crystallography and diffraction methods. [YSU Column: Y = in YSUs Maa
Youngstown - CHEM - 500
Youngstown - CHEM - 720
Department of Chemistry Chemistry 720 Professor: Dr. Allen D. Hunter Organic Chemistry II Summer 1996(Office - Room 5015, Ward Beecher Hall) 742-7176. (NMR and X-Ray Labs, Rooms 5031 and 5020/24) 742-2261Textbooks:1. 2. 3. 4.Fox and Whitesell
Youngstown - CHEM - 500
Youngstown - CHEM - 500
Youngstown - CHEM - 832
1Chemistry 832: Solid State Structural Methods Syllabus Dr. Allen D. Hunter Department of Chemistry, Youngstown State University Spring 2000 April 6th, 2000 Version of Syllabus Course Credit: Q2S Notice: 3 Quarter Hours of Credit (2 Hours per Week
Youngstown - CHEM - 506
Youngstown - CHEM - 500
Chemistry 500Dr. Hunters ClassTopic 9.1Chemistry 500: Chemistry in Modern Living Topic 9: The World of Plastics and Polymers Polymer/Materials ScienceChemistry in Context, 2nd Edition: Chapter 10, Pages 319-350 Chemistry in Context, 3rd Edi
Youngstown - CHEM - 506
Chemistry 506Dr. Hunter's ClassChapter 15. 1Chemistry 506: Allied Health Chemistry 2 Chapter 15: Amines and Amides Functional Groups with Single Bonds to NitrogenIntroduction to General, Organic &amp; Biochemistry, 5th Edition by Bettelheim and M
Youngstown - CHEM - 720
Department of Chemistry Chemistry 720 Professor: Textbooks: Dr. Allen D. Hunter 1. 2. 3. 4. Lecture: Office Hours: Organic Chemistry II Summer 1996(Office - Room 5015, Ward Beecher Hall) 742-7176. (NMR and X-Ray Labs, Rooms 5031 and 5020/24) 742-22
Youngstown - CHEM - 500
Chemistry 500Dr. Hunters ClassTopic 5.1Chemistry 500: Chemistry in Modern Living Topic 5: The Fires of Nuclear Fission Atomic Structure, Nuclear Fission and Fusion, and Nuclear WeaponsChemistry in Context, 2nd Edition: Chapter 8, Pages 245-
Youngstown - CHEM - 500
Chemistry 500Dr. Hunters ClassTopic 1.1Chemistry 500: Chemistry in Modern Living Topic 1: The Air We Breathe States of Matter, Reactions, and RiskChemistry in Context, 2nd Edition: Chapter 1, Pages 1-34 Chemistry in Context, 3rd Edition: Ch
Youngstown - CHEM - 506
Chemistry 506Dr. Hunters ClassChapter 18. 1Chemistry 506: Allied Health Chemistry 2 Chapter 18: Proteins Biochemical AmidesIntroduction to General, Organic &amp; Biochemistry, 5th Edition by Bettelheim and March: Chapter 18, Pages 591-622 Outline
Youngstown - CHEM - 721
Department of Chemistry Chemistry 721 Professor: Textbooks: Dr. Allen D. Hunter 1. 2. 3. 4. 5. Lecture: Office Hours: Organic Chemistry III Fall 1996(Office - Room 5015, Ward Beecher Hall) 742-7176. (NMR and X-Ray Labs, Rooms 5031 and 5020/24) 742-
Youngstown - CHEM - 832
Chemistry 832: Solid State Structural Methods Outline Notes1 for the Spring 2000 Class Dr. Allen D. Hunter Youngstown State University Department of ChemistryMarch 17th, 2000 Edition of Notes (i.e., Rough Draft to the end of Topic V)1Based part
Youngstown - CHEM - 832
1 Crystallography-Diffraction Methods Texts Dr. Allen D. Hunter Youngstown State University Department of Chemistry The following is a table of selected texts on various aspects of crystallography and diffraction methods. [YSU Column: Y = in YSUs Maa
Youngstown - CHEM - 969
1 Crystallography-Diffraction Methods Texts Dr. Allen D. Hunter Youngstown State University Department of Chemistry The following is a table of selected texts on various aspects of crystallography and diffraction methods. [YSU Column: Y = in YSUs Maa
Youngstown - CHEM - 969
1 HIGH SCHOOL TEACHERS INTERESTED IN THE DIFFRACTION THROUGHOUT THE CURRICULUM PROJECT Please feed free to suggest other names for this list and/or correct the information on it to me. March 10th, 2000 Name (1) (2) (3) (4) (5) (6) (7) (8) (9) Brandy
Youngstown - CHEM - 506
Chemistry 506Dr. Hunters ClassChapter 12. 1Chemistry 506: Allied Health Chemistry 2 Chapter 12: Alchols, Phenols, Ethers, and Halides Functional Groups with Single Bonds to OxygenIntroduction to General, Organic &amp; Biochemistry, 5th Edition by
Youngstown - CHEM - 832
Chemistry 832: Solid State Structural Methods Outline Notes1 for the Spring 2000 Class Dr. Allen D. Hunter Youngstown State University Department of ChemistryMarch 17th, 2000 Edition of Notes (i.e., Rough Draft to the end of Topic V)1Based part
Youngstown - CHEM - 719
1Chemistry 719 Syllabus, Summer 1999 Lecturer: Dr. Allen Hunter (Office 5015, NMR Lab 5031, X-Ray Lab 5024/5020, Advanced Synthesis Lab 5005) Phone: 742-7176 (Office), 742-2261 (NMR and X-Ray Labs) E-mail: adhunter@cc.ysu.edu Dr. Hunter's Home Page
Youngstown - CHEM - 825
Literature Paper Format for Dr. Hunter General Points: (Follow ACS Format, i.e. Inorg. Chem., JACS, JOC, Macromolecules) 1) 2) 3) 4) Each section is on a separate page. Use equations and pictures liberally in the text. Since a paper usually takes man