ECEN 3213 Spring 2001 Lab Assignment #2

98765


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 Book's 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 bring a 3.5 inch disk to turn in at the end of the lab. On the disk should 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.

ECEN 3213 Lab #2: BCD translator.

Your program should:
-Input 2 BCD digits on PORT E.
-Input the digits when bit0 of PORT A goes high (becomes a logic 1).
-Translate the 2 BCD digits to a binary value.
-Save up to 100 translated binary values.
-Output the translated binary value on PORT B when bit 0 of PORT A goes low (becomes a login 0).
-Output a 0 on bit 4 of PORT A when PORT E reads a legal BCD input.
-Count the number of values translated.
-Initially output logic 0 on bit 4 and bit 3 of PORTA.
- Output logic one on bit 3 of PORT A when the number of values translated hits 100.
-Check for illegal BCD input digits.
-Count the number of read bytes containing illegal BCD digits.
- Output logic one on bit 4 of PORT A whenever the PORT E input reads illegal BCD digits.
-Stop execution when then count of illegal reads his 255 or when the number of translated values hits 100.


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

Red Stars red