lab 0 2011 - milwaukee area technical collegeecampus.matc.edu/lokkenr/elctec-141/lab_0_2011.pdf ·...

14
Milwaukee Area Technical College Richard Lokken 1/19/2009 2005 Richard Lokken ELCTEC-141 Laboratory Unit 0 Introduction Lab Introduction The purpose of this lab is to introduce the student to the MinIDE software that will be used in this course. The student will also be introduced to the report template and shown how to complete the lab report. Laboratory Exercise Create a flow chart to add two numbers in memory. Store the result in the memory location immediately after the last number. This can be done using Word. This can also be done in paint or any drawing program. Figure One: Flowchart for Lab 0 Launch the Minide program from the desktop.

Upload: vukiet

Post on 12-Jul-2019

213 views

Category:

Documents


0 download

TRANSCRIPT

Milwaukee Area Technical College Richard Lokken 1/19/2009

2005 Richard Lokken

ELCTEC-141 Laboratory Unit 0 Introduction Lab

Introduction The purpose of this lab is to introduce the student to the MinIDE software that will be used in this course. The student will also be introduced to the report template and shown how to complete the lab report. Laboratory Exercise Create a flow chart to add two numbers in memory. Store the result in the memory location immediately after the last number. This can be done using Word. This can also be done in paint or any drawing program.

Figure One: Flowchart for Lab 0

Launch the Minide program from the desktop.

Milwaukee Area Technical College Richard Lokken 1/19/2009

2005 Richard Lokken

Figure Two: Opening screen This is the opening screen you will see. You will type your program in the top window.

Figure Three: Source code screen

Once you have typed in your program you save it to your flash drive with the .asm file extension.

Milwaukee Area Technical College Richard Lokken 1/19/2009

2005 Richard Lokken

Figure Four: Build Current Screen Then click on the build current icon. The middle pane is the assembler pane. If all went well you should have 0 warnings and 0 errors. Now you made the connection of the board to the terminal. Power up the board. Using a USB to serial cable connect the EZ MICRO board to the computer.

Milwaukee Area Technical College Richard Lokken 1/19/2009

2005 Richard Lokken

Figure Five: Load t Ensure that the terminal connect button is on. In the bottom pane type in load t and enter. Next click on the load program icon. The following window will open.

Milwaukee Area Technical College Richard Lokken 1/19/2009

2005 Richard Lokken

Figure Six: Load Program. Find your program and click on open.

Figure Seven: Set program counter. Once you get the done after loading you can start to test your program. Type in r. This will show you the contents of the registers. Set the P register to the org of your program and enter.

Milwaukee Area Technical College Richard Lokken 1/19/2009

2005 Richard Lokken

Figure Eight: Memory dump prior to running. Perform a memory dump prior to running the program. Type in md [starting address] [ending address]

Figure Nine: Single step through program. Type t. After this you can just hit the enter key to single step through the program. Now perform a memory dump to verify your result was stored correctly.

Figure Nine: Memory dump after running the program. Now you can start on writing the report. Launch blackboard and login Find the class ELCTEC-141 on your list of courses enrolled in. Click on that course.

Milwaukee Area Technical College Richard Lokken 1/19/2009

2005 Richard Lokken

Figure Ten: Opeing screen for ELCTEC-141 Opening screen. Click on the button label Labs.

Milwaukee Area Technical College Richard Lokken 1/19/2009

2005 Richard Lokken

Figure 11: Labs screen. Click on sample_test_report_141.doc.

Milwaukee Area Technical College Richard Lokken 1/19/2009

2005 Richard Lokken

Figure 12: Saving lab template. Click on the save button and save this to your flash drive. Now open the sample test report document. You will obtain the document in the next section. Complete this document and save it to your flash drive. The file name MUST be in the format: Lab_#_yourlastname.doc. Then e-mail the completed document to your lab instructor.

Milwaukee Area Technical College Richard Lokken 1/19/2009

TITLE:

Lab # Test Report

Lab Partner(s):

1200 South 71st Street West Allis, WI 53214, USA (414) xxx-xxxx FAX: (414) xxx-xxxx Email: [email protected]

PROJECT:

Lab #

DRAWN BY:

Your Name DATE:

July 6, 2007 SIZE:

DRAWING NUMBER:

Lab #

REVISION:

0.0 CHECKED BY:

DATE:

July 6, 2007 APPROVED BY:

DATE:

July 6, 2007 FILENAME, FILES AFFECTED:

lab_0_2011 SCALE:

NOT TO SCALE SECURITY CLASSIFICATION:

COMMERCIAL CONFIDENTIAL SHEET:

10 OF 14 Design Report v0.6

ELCTEC-141 MICROCONTROLLERS

Milwaukee Area Technical College

Preliminary

TITLE:

Lab # Test Report

ELCTEC-141 Microcontrollers

1200 South 71st Street West Allis, WI 53214, USA (414) xxx-xxxx FAX: (414) xxx-xxxx Email: [email protected]

PROJECT:

Lab # DATE:

July 6, 2007

FILENAME, FILES AFFECTED:

lab_0_2011 REVISION:

0.0 DRAWING NUMBER:

Lab # SECURITY CLASSIFICATION:

COMMERCIAL CONFIDENTIAL

PAGE:

11 OF 14 Design Report v0.6

TABLE OF CONTENTS   

BACKGROUND INFORMATION ........................................................................ 12 REVISION CONTROL ........................................................................................ 12 FLOWCHART ..................................................................................................... 12 PROGRAM CODE .............................................................................................. 13 PROGRAM RESULTS ........................................................................................ 13 

TITLE:

Lab # Test Report

ELCTEC-141 Microcontrollers

1200 South 71st Street West Allis, WI 53214, USA (414) xxx-xxxx FAX: (414) xxx-xxxx Email: [email protected]

PROJECT:

Lab # DATE:

July 6, 2007

FILENAME, FILES AFFECTED:

lab_0_2011 REVISION:

0.0 DRAWING NUMBER:

Lab # SECURITY CLASSIFICATION:

COMMERCIAL CONFIDENTIAL

PAGE:

12 OF 14 Design Report v0.6

BACKGROUND INFORMATION

REVISION CONTROL

DATE CHANGES REVISION

6/8/2007 INITIAL DRAFT 0.0

FLOWCHART

TITLE:

Lab # Test Report

ELCTEC-141 Microcontrollers

1200 South 71st Street West Allis, WI 53214, USA (414) xxx-xxxx FAX: (414) xxx-xxxx Email: [email protected]

PROJECT:

Lab # DATE:

July 6, 2007

FILENAME, FILES AFFECTED:

lab_0_2011 REVISION:

0.0 DRAWING NUMBER:

SECURITY CLASSIFICATION:

COMMERCIAL CONFIDENTIAL

PAGE:

13 OF 14 Design Report v0.6

PROGRAM CODE

PROGRAM RESULTS

TITLE:

Lab # Test Report

ELCTEC-141 Microcontrollers

1200 South 71st Street West Allis, WI 53214, USA (414) xxx-xxxx FAX: (414) xxx-xxxx Email: [email protected]

PROJECT:

Lab # DATE:

July 6, 2007

FECTED:

lab_0_2011 REVISION:

0.0 DRAWING NUMBER:

SECURITY CLASSIFICATION:

COMMERCIAL CONFIDENTIAL

PAGE:

14 OF 14 Design Report v0.6

THIS PAGE LEFT INTENTIONALLY BLANK