You are on page 1of 3

Ahsanullah University of Science and Technology

Dhaka, Bangladesh Department of Electrical and Electronic Engineering 3Rd Year 2nd Semester Carryover/Improvement/Clearance Examination (Fall-2007)
Course No: EEE-441 Course Title: Microprocessors Marks: 70 Time: 3 Hrs There are 8 questions. Answer any 7 questions. All questions carry equal marks. Numerals shown at the end of question indicate full marks. .

1 Given below the block diagram of a simple microprocessor based system. Read it
carefully (10) and then answer to the questions that follow:

i c r o p r o Mc e e s m s o o r r y / p o r t
D e c o d e r L S Q 1 0 R 0 0 / M M / / 0 0 1 V E D 1 7 A A A A 3 2 1 0 U 2 4 1 3S 8 0 S 1 B S 2 A S 3 C W A A

R W

C R W A A

S D 1 0

1 /

C R A A

S D 1 0

2 /

Figure-1 for Question-1

D 3 - D 0 Questions: i. How many memory locations the MPU can address? M 3 ii. How many port locations the MPU can address? K C S 3 / iii. Indicate the function of the chip U2. I o iv. Indicate the circuit designation for RAM chip. R D / v. What is the bit storage capacity for the device M2? A 1 0 V vi. Why do we need to install the interface controller Mo A 0 between the LED1 MPU? 1 : 0 8 5 vii. Write pseudo code to Uread 8a data byte from the interface controller, M3.3 2 2 viii. Which device (M0 or M1 or M2 or M3) does contain a storage location with 7h? ix What will be the value of the variable Io when the switch K1 is not closed?

and the address

1/2

x.

How many secondary decoders are there in this system? Define a Bus Structured Diagram. Write down the names of the categories into which the pins of a microprocessor are classified. (10) Copy the following 'CPU Assembly Statement in your answer script and then insert Braces across the appropriate places to indicate its various parts like: Label, Opcode, Destination, Source, Operand, CPU Instruction, CPU Assembly Statement. (10)
L21: mov DWORD PTR ds:[bx] + [si]+ [12h], 12345678h ; data move instruction

2 3

OR
28h. Write Pseudo code, Flow Chart and 8086 ASM codes to multiply the numbers 2Bh and (10) Assume that the Cbyte 80h configures the direction of PBR of the following circuit as output. Now, write complete 8086 assembly codes to blink LED11 only for 5 times. The addresses of the CR and PBR are indicated in the diagram. (10)

D M R W

A 7 - D - I O D R / /

0 /

A D I O R W / /

/ P B R 1 B h C S / P B 3 P B 2 C R P B 1 Figure-1(c) P B 0

1 3

8 2 5 5 : U 2 9 L E D s (5) 8 0 8 6 : U 1 G M (b) Given that the Cbyte 90h allows writing data into PAR of the 8255 PIO controller. : 6 2 Assume that the addresses of the CR, PAR are 50000h and 50002h respectively. Write 8086 ASM codes to write 45h into PAR. (5)
5
Define the following: (5x2=10) i. Interrupting the 8086 CPU ii. Interrupt Vector diagram iii. Hardware Interrupt iv. Software Interrupt v. Interrupt Type Code

(a)

0 3 4 1 F OR h L D 1 L1 D How can you initialize an 8255 for interfacing with 8086? 2 L D 1

01 V4 5 : 0

2/2

6 7
(10)

Write Flow Chart and Pseudo code to convert two-digit Binary (00h-63h) into equivalent BCD number (00 99). (10) Draw the block diagram for an 8086 based Digital Weighing Machine. Answer to the following questions: (5x2=10) (a) Write short note on PVAM Mode operation of 80286+ microprocessors. (b) Draw Bus-mode operational diagram for the 8051 microcontroller.
Txtb8086\aust_fall06_referred.doc

3/2

You might also like