Question: Lab 9 : ASCII Converter Max Grade: 2 5 Points Page 1 of 1 Assignment: Design and demonstrate a 6 8 HC 1 1 program

Lab 9: ASCII Converter Max Grade: 25 Points
Page 1 of 1
Assignment:
Design and demonstrate a 68HC11 program to perform as an ASCII Code Converter that will accept and display a
user input key with its equivalent ASCII code as a 2-digit hexadecimal number. You should be valid for any typeable
ASCII character.
Example:
If you press the character C, your program should display the following C = $43
The program should also:
1. Display a greeting message with usage instructions
2. Display a prompt
3. Accept and display a single user input character
4. Display = $(with spaces)
5. Output the 2-digit hexadecimal code for the ASCII character typed
6. Advance to a new line
7. Repeat from step 2
Requirement:
1. You are to make use of a subroutine (i.e., for step 5)
2. You may only use the flowing BUFFALO subroutines for this lab: INCHAR, OUTA, OUTSTRG, and OUTSTRG0.
3. You CANNOT use the BUFFALO subroutines which convert to HEX for you. (will result in Zero grade)
4. Must include Flowchart or pseudo code evidence of the program design use created. DO YOUR DESIGN
FIRST, then code from the design.
5. In your solution, create a NumToHex subroutine, which takes the lower 4 bits of ACCA ONLY, and outputs the
ASCII character (0 through 9 and A through F) corresponding to the lower nibble binary value. (i.e., output the
HEX digit for the lower nibble value.
6. In your solution, create another subroutine OUTHEX, which takes an 8-bit value in Accumulator A and uses the
NumToHex subroutine you wrote to output both the high nibble and the low nibble of the 8-bit value.
Grading Rubric:
(7 pts.) Program Works and Output matches the output format shown in the procedure. Program operation works
according to the requirements.
(6 pts.) Comments are not redundant but explain how or why the instruction is needed and/or what it does. If a small
group of instructions works together, they can have one comment telling what the group does. Template comments for
header, main and subroutine descriptions are included, and appropriate and subroutine parameters are described.
(1 pts.) Equates, Code, and Variables are placed in correct sections of the Assembly template.
(2 pts.) Cover Page is Correctly filled in.
(3 pts.) Listing file is neat. Instruction columns Line up. Listing is printed in CONDENSED format.
(3 pts.) All other Requirements in procedure have been fulfilled.
(3 pts.) Design matches Requirements, works. Code matches Design.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!