ECEN 3213 Fall 2001 Lab Assignment #2

98765

You have two weeks to work on this lab. This lab is due at the end of your assigned lab period the week of September 18th.


For this Lab use the M68HC11A8, which is the version diagramed in Figure 1.28 on page 24 of the Valvano book. The complete technical information is located on the Books CD in the file: D:\PDF\6811\HC11A8.pdf For all labs you are to bring your pre-lab design work, which may include diagrams, flow charts, Pseudo code, test case descriptions, and some text descriptions of the project. For this lab the pre-lab design work is just a flow chart of your program. At the beginning of the lab, submit your pre-lab design work. At the end of the lab turn in the disk with be all of your simulation files. This disk will be returned to you each lab to submit the results of that lab. Label the disk with your name, ECEN3213, and the meeting day and time for your lab. The files for the project should include at least the assembly program and the simulation results for your test cases. You must demonstrate correct (error free) assembly and at least one test case execution to the lab instructor before you submit your disk.

Program requirements:
Initialize register a to 0.
Load a value from Port E and add it to register a.
Use the simulator switches to set values on Port E.
Output the result to Port B.
Connect port B to the LCD for display.
Check for the value to be 255, and stop when the value hits 255.
Questions to be demonstrated: Does your program always stop at 255 when the input on Port E is 1? Does it stop if the input is 2? Does it always stop if you change the input value while it is running?
Answer the questions by demonstrating your program to the TA running with inputs of 1, and then 2, and then changing the input on Port E while the program is running.


Feel free to email comments and suggestions to John_M_Acken@acken.com

Red Stars red