Sunteți pe pagina 1din 5

University of Sharjah

College of Engineering

Department of Computer Engineering

0403302 Microprocessors & Interfacing

Fall 2000 Semester

Examination 1

Student ID

Question 1 10
Question 2 15
Question 3 20
Total 45
Question 1. (10 points)
Answer True or False for each of the following statements (1 point each)

1. The 3 units that make up the microprocessor are:


- The Data Transfer Unit
- The Externally Initiated Operations Unit T F
- The Internally Initiated Operations Unit

2. The data bus is bidirectional. Therefore, many devices can write to it


at the same time. T F

3. The Operating System is the first program to execute after startup


and the last program to quit. T F

4. An 8-bit microprocessor has 8 address lines. T F

5. A 128 K Byte memory chip has 17 address lines and 8 data lines T F

6. A compiler translates a program written in a high level programming


language into assembly T F

7. C++ is an example of Ultra-High Level programming languages T F

8. Chip select is an input of a memory chip used to determine the


upper part of the address of the chip. T F

9. It is possible to have F132H as the first address of a 1K memory


chip. T F

10. ALL Arithmetic and Logic operations in the 8085 use the
accumulator. T F

Dr. Bassel Soudan 2


Question 2. (15 points)

A12 A14

A MSB E1 E2 E3
15
O4
A13
A11

74138
A10
CE

2K Bytes

A0

2.1 Determine the starting and ending addresses of the above setup (4 Points)

ADDRESS
A15
A14
A13
A12
A11
A10
A9
A8
A7
A6
A5
A4
A3
A2
A1
A0
in Hex.

Starting
Ending

2.2 How would you change the connections above so that the address range becomes
E000 E7FF (4 Points)
- Draw a new picture of the decoder only.
- You may NOT use any other gates.
- You may change the decoder output that the memory chip is connected to.

Dr. Bassel Soudan 3


2.3 Disconnect A13 from the input of the 74138 decoder. Draw a memory map that shows
the location(s) of the chip after the change. (7 Points)

Dr. Bassel Soudan 4


Question 3 (20 Points)
3.1 Execute the following program and show the state of the flags after each instruction.
(10 Points)

Z S CY
MVI A FEH
ADI 01H
MOV B A
INR B
ANI 55H
MVI C 80H
ORA C
JM NEG
LDAX D
RAR
NEG HLT

3.2 The following program has some errors. Find them. (5 Points)

TOP MVI F 02H


MOV B A
ANA D
JNP TOP
ORA B
LDA 4000H
XOR A
ADD 0CH
CMP D
JNZ TOP
NOP
MOV M M
HLT

3.3 Given the following program, fill in the memory table with the results (5 Points)

MVI A 48H 4000 Using the ASCII table in


STA 4000H 4001 Appendix E, translate the
SUI 03H 4002 Contents into the text
STA 4001H 4003 Message and write it in the
ADI 07H 4004 Box below
STA 4002H
STA 4003H
ADI 03H
STA 4004H

Dr. Bassel Soudan 5

S-ar putea să vă placă și