Name: Student ID: Date:

Time: 1hour 15 Minutes Answer all Questions

Question No. 1 a.

Define the terms microprocessor and micro-controller.

(2)

b.

With the aid of a diagram describe the typical microprocessor architecture.

(6)

c.

Write the name of the operations that should be supported by a microprocessor.

(2)

Question No. 2 a.

With the help of appropriate example define the terms pooling and interrupt.

(2)

b.

How many types of Interrupts are there? What do you know about them?

(2)

c.

What do you know about interrupt priority? How do we change the default priorities? What happens if the priorities are set incorrectly? (3)

d.

What do you understand from the term context switching? How do you think this can be achieved?

(3)

Question No. 3 a.

Briefly explain the term DMA.

(2)

b.

Describe the various types of DMA.

(6)

c.

What is the name of the hardware that performs DMA operations? Name the major components of this hardware system. (2)

Question No. 4 a.

Write a 5 millisecond Delay Routine assuming that the Microprocessor finishes 250K cycles in 10 seconds. The program should make use of Timer 0. (8)

b.

Describe the phenomenon called bouncing.

(2)

Question No. 5 What is Harvard Architecture? Describe External and Internal Memory organization of 8051

(10)

Page 1 of 2

Question No. 6 Consider the System in Figure 1. Pressing Switch 1 toggles the Green Light (connected to P1.0) and pressing Switch 2 toggles the Red Light (connected to P1.1). Switch 1 can trigger external interrupt 0 (INT0) and Switch 2 can trigger external interrupt 1 (INT1). Write an Assembly program for the 8051 to toggle the lights when the respective switches are pressed. In your program Switch 2 Should have Higher Priority than Switch 1 (i.e. if Switch 1 and Switch 2 are pressed simultaneously, Red Light should be toggled). Your program should also be able to handle bouncing effect of the switches.

Switch 1

INT 0

(Marks 10)

P1.0

Green

P1.1

Red

8051

Switch 2

INT 1

Figure 1

Required Figures: Figures for Question 1 and 2:

Page 2 of 2

Mock Midterm -

(3). Question No. 3 a. Briefly explain the term DMA. (2) b. Describe the various types of DMA. (6) c. What is the name of the hardware that performs DMA operations? Name the major components of this hardware system. (2). Question No. 4 a. Write a 5 millisecond Delay Routine assuming that the Microprocessor finishes ...

151KB Sizes 1 Downloads 93 Views

Recommend Documents

midterm examination - Ning
FIN622- Corporate Finance (Session - 5) Spring 2009 MIDTERM PAPERS .... Which of the following statements is Correct regarding the fundamental analysis?

cs402-Midterm-SubjectivesWithReferencesbyMoaaz.pdf ...
Q. Point of Kleen Theory. ... 2) Write the first step to convert GTG to FA? ... labeled by the RE which is the concatenation of corresponding two REs in the existing.

Mock trading - NSE
May 26, 2017 - Kindly do not transfer any data files for this session. 2. ... Kindly participate actively in the mock trading session from all trading software and re-.

Mock trading - NSE
Apr 28, 2017 - Kindly do not transfer any data files for this session. 2. Members having ... faoftp/faocommon/NEATPlus722 to your local hard disk drive (C:\).

KVS Mock Test.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. KVS Mock Test.

EOT Mock test.pdf
... SC037733 (Scotland). Page 1 of 3. Page 2 of 3. Vocabulary: Phrases and adjectives. Verb patterns. Page 2 of 3. Page 2 of 3 ... Page 3 of 3. EOT Mock test.pdf.