Exam 3

  • October 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Exam 3 as PDF for free.

More details

  • Words: 522
  • Pages: 5
University of Sharjah College of Engineering Department of Computer Engineering 0403302 Microprocessors & Interfacing Fall 2000 Semester Examination 1

Student ID Question 1 Question 2 Question 3 Total

10 15 20 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 - The Internally Initiated Operations Unit

T

F

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

T

F

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

Dr. Bassel Soudan

2

Question 2. (15 points) A12

A

15

MSB

E1

A13

A14

E2 E3 O4

A11

74138 A10

CE

2K Bytes

A0

A0

A1

A2

A3

A4

A5

A6

A7

A8

A9

A10

A11

A12

A13

A14

Determine the starting and ending addresses of the above setup

A15

2.1

(4 Points)

ADDRESS 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

NEG

3.2

MVI STA SUI STA ADI STA STA ADI STA

CY

A FEH 01H B A B 55H C 80H C NEG D

The following program has some errors. Find them.

TOP MVI MOV ANA JNP ORA LDA XOR ADD CMP JNZ NOP MOV HLT 3.3

MVI ADI MOV INR ANI MVI ORA JM LDAX RAR HLT

S

(5 Points)

F 02H B A D TOP B 4000H A 0CH D TOP M M

Given the following program, fill in the memory table with the results A 48H 4000H 03H 4001H 07H 4002H 4003H 03H 4004H

Dr. Bassel Soudan

4000 4001 4002 4003 4004

(5 Points)

Using the ASCII table in Appendix E, translate the Contents into the text Message and write it in the Box below

5

Related Documents

Exam 3
June 2020 7
Exam 3
October 2019 21
Exam 3
June 2020 10
Exam 3
June 2020 8
Exam 3
May 2020 12
Ntr 314, Exam #3
June 2020 3