Midterm

  • 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 Midterm as PDF for free.

More details

  • Words: 599
  • Pages: 5
University of Sharjah College of Engineering Department of Computer Engineering 0403302 Microprocessors & Interfacing Spring 1999 Semester Midterm Examination

Student ID Question 1 Question 2 Question 3 Total

15 30 25 70

Question 1. (15 points) Answer True or False for each of the following statements (1 point each) 1.

The microprocessor is made up of a Control Unit, an Arithmetic and Logic Unit, and Registers.

T

F

2.

The system bus is a shared resource. Therefore, many devices can write to it at the same time.

T

F

3.

A register is very fast memory located inside the microprocessor.

T

F

4.

High level language is a name used to refer to programming languages written in mnemonics.

T

F

5.

All operations in the 8085 microprocessor involve at least three registers.

T

F

6.

Compiler and interpreter are exactly the same.

T

F

7.

Everything in a computer system is controlled by the operating system.

T

F

8.

The lower half of the address bus is multiplexed with the data bus on the 8085 microprocessor.

T

F

9.

Because the 8085 is an 8-bit microprocessor, the flags register has 8 bits.

T

F

10. The 8085 is an 8-bit microprocessor, therefore, it can only address 32768 unique memory locations.

T

F

11. In a memory design, the upper part of the address bus is connected to the register select lines on the memory chip and the lower part is connected to the chip select circuit.

T

F

12. A 2 Mega Byte memory chip has 21 address lines and 8 data lines.

T

F

13. AAAAA is the last address of a 1 Mega Byte chip whose starting address is 00000

T

F

14. T-State is the amount of time it takes the microprocessor to complete a sub-division of an operation

T

F

15. An instruction that has 2 machine cycles would require 2 clock cycles to complete

T

F

Question 2. (30 points) a.) Given the following 1024 X 2 memory chip, design a 4K Byte memory system whose starting address is 000H. (15 Points)

A9 A8 A7 A6 A5 A4 A3 A2 A1 A0

CS

D1

D0

b.) Determine the starting and ending addresses of the following setup (8 Points) A12

IO/M

A13 A15

MSB

E1

A14

E2 E3 O5

A11

O2

74138 A10

CE

A10

RAM 2 2K Bytes A0 A9

CE

RAM 1 1K Bytes A0

c.) How would you change the connections above so that the address range for RAM 2 is 9000 97FF and the address range for RAM 1 does not change. (7 Points) 16. Draw a new picture of the decoder. 17. You may NOT use any other gates. 18. You may change the decoder outputs that the memory chips are connected to.

Question 3 (25 Points) a.) Using the information from Appendix F, calculate the amount of time needed to execute the following program. (15 Points) - The microprocessor is running at 3 MHz. - Memory location 4000 has the value 10H in it) L0 MVI LXI MOV ADD CPI JNZ LHLD MOV JP L1 MVI MOV INX MVI MOV HLT

B 00 H 4000 A M B 00 L1 2134 A M L0 A 48 M A H A 69 M A

b.) The following program has some errors. Find them. L1 LXI LDAX MVI ADD MVI SUI JB MVI ADI MVI MVI STAX INX STOP

(5 Points)

H 4000 H B 1F B C 01 C L1 A 23 1 B 00 C 40 C B

c.) What is it?? (Hint, look in appendix E)

(5 Points)

Related Documents

Midterm
May 2020 23
Midterm
November 2019 37
Midterm
October 2019 31
Midterm
November 2019 43
Midterm
October 2019 34
Midterm
May 2020 22