You are on page 1of 3

Electrical and Computer Engineering Department

American University in Dubai


Course EECE 340: Introduction To µprocessor w/lab, Fall 2020

Course Name: EECE 340: Introduction To µprocessor


Course Code: EECE340
w/lab, Fall 2020
Semester & Year: Fall 2020 Date: 21/10/2020
Instructor: Vinod PANGRACIOUS Assignment III DUE Date: 28/10/2020

Name: ……………………………………………………………

ID / Major: ………………………………………………

Learning Outcomes Lab Report

O1. Analyze memory and I/O interfaces, address decoding, interrupts, system timing, and bus
X
transactions in digital and computer systems
O2. Describe, using proper technical language, microprocessor architecture and operation as well as the
components and functional requirements of digital and computer systems X

O3 Conduct lab experiments to study the instruction set architecture of modern microprocessors and
write assembly language code to perform computational and I/O functions, given specific computer
systems design requirements.
O4 Work effectively in teams of electrical and computer engineering students to evaluate interrupt-
based control models including software and hardware interrupts

Q1 Q2 Q3 Total

/30 /30 /40 /100

Homework and/or lab reports are to be handed in at the beginning of the session on the due date.
Late homework and reports will NOT be accepted.
Each homework grade can be one of the followings:
R1: 90-100 All correct answers
R2: 61-89 Few mistakes or some missing answers
R3: 40-60 Too many mistakes
R4: 0 No Submission/Completely wrong answers
Homework must be neatly written and logically organized. Each submitted homework must have a COVER PAGE.
The cover page includes the name of student and a summary of the final answers to each problem. In the following
pages where the derivations are given, the final result of each problem must be put in a box. Unstapled homework
or homework with no cover page will lose 1 point (10%) of the grade. Working in groups for the purpose of solving
homework problems is encouraged; however, you must ultimately submit your own personal solution to the problem
sets. It is essential that you understand the methods that you use in solving the homework problems. Assignment 1
day late will receive 50% grade and more than a day will receive a 0 grade
Electrical and Computer Engineering Department
American University in Dubai
Course EECE 340: Introduction To µprocessor w/lab, Fall 2020

Q1: (30 points)

Write a simple ARM7 program to calculate the value of n!, which is a relatively short loop using
only a few instructions. Recall that n! is defined as

For a given value of n, the algorithm iteratively multiplies a current product by a number that is
one less than the number it used in the previous multiplication. The code continues to loop until
it is no longer necessary to perform a multiplication, that is, when the multiplier is equal to zero

Q2: (30 points)


Write a ARM 7 Assembly program that inputs a data value of “a” and “x” in register R0 and R1
and compute y and stores in memory location 0x40000000. The function returns
y = a + bx + cx2 where a, b, c are parameters your program should load from the memory.

Q3: (40 points)

Write a ARM7 assembly program to copy string from the location pointed at by R0 to the
location pointed at by R1. The copied version must be in reverse order. Assume the string you
are copying is non‐null (it contains at least one character) and that it is terminated.

Use the String “Goodness Gracious Pan, 0xD”


Electrical and Computer Engineering Department
American University in Dubai
Course EECE 340: Introduction To µprocessor w/lab, Fall 2020

Note: A model question you may expect in your midterm or final examination and
grade division as shown above.

Grading Rubrics

Criteria R1 R2 R3 R4
Correctness Correctly identified the Fairly identified the Fail to identify the Provided wrong
problem and solution problem and solution problem correctly and answers with
method. Answers to the method. Answers to however took steps in completely wrong
microprocessor and the microprocessor solving it and also solution method,
assembly language program and assembly provide partially correct Answers to
analysis show excellent language program answers due to more microprocessor and
understanding of analysis show solid than 2 conceptual assembly language
microprocessor architecture understanding with 1 errors, Answers to the program analysis
and ARM7 assembly minor mistakes about microprocessor and questions shows lack
language work. Provided the microprocessor assembly language of understanding of
correct answers and step by architecture and program analysis microprocessor
step explanation provided ARM7 assembly questions shows only architecture and
in a clear and precise language. Provided basic understanding on ARM7 assembly
manner correct answers and microprocessor language works.
step by step architecture and ARM7
explanation assembly language
works.

Remedial ---- --- Contact your instructor Contact your


instructor

You might also like