shirdi sai engg college - navodaya institute of … · draw the timing diagram of the following...

9

Upload: dangthuan

Post on 21-Aug-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: SHIRDI SAI ENGG COLLEGE - Navodaya Institute of … · Draw the timing diagram of the following 8085 instructions with one WAIT ... What do you mean by 'assembler directives'? Explain

SHIRDI SAI ENGG COLLEGE

Page 2: SHIRDI SAI ENGG COLLEGE - Navodaya Institute of … · Draw the timing diagram of the following 8085 instructions with one WAIT ... What do you mean by 'assembler directives'? Explain

SHIRDI SAI ENGG COLLEGE

Page 3: SHIRDI SAI ENGG COLLEGE - Navodaya Institute of … · Draw the timing diagram of the following 8085 instructions with one WAIT ... What do you mean by 'assembler directives'? Explain

SHIRDI SAI ENGG COLLEGE

Page 4: SHIRDI SAI ENGG COLLEGE - Navodaya Institute of … · Draw the timing diagram of the following 8085 instructions with one WAIT ... What do you mean by 'assembler directives'? Explain

~t~ <te-~

~~~

Fourth Semester B.E. Degree Examination, May/June 2010Microprocessors

a. Explain the following with respect to a 8085 based systems:i) Programmable registers in 8085.ii) Demultiplexing of ADDRESS/DATA BUS.iii) Generation of memory and I/O control signals.

b. With examples, explain I how 8085 instructions are classified.(10 Marks)(10 Marks)

a. With examples, explain different addressing modes of 8085. (10 Marks)b. Draw the timing diagram of the following 8085 instructions with one WAIT state,

i) MOV A, B ii) DCXH (10 Marks)

a. Write an assembly language program ALP to add two multibyte Hex numbers. Give thealgorithm or flow chart. (10 Marks)

b. Assuming an external clock frequency of 6 MHz, write an ALP to implement a delay of 0.5sec. Using this delay program, implement a BCD up counter that displays the count from00-99, at an output port. (10 Marks)

a. Illustrate ) how the stack is organized in a 8085 based system. Explain the sequence ofoperations that take place when the following instructions are executed: i) PUSH and POPii) CALL and RET (10 Marks)

b. Write a subroutine to convert a given 8 bit Hex number to BCD. Give the algorithm or flowchart. (10 Marks)

a. Compare the basic features of the following:i) I/O mapped I/O Vs Memory mapped I/O.ii) Unconditional Vs Conditional data transfer. (10 Marks)

b. Interface a 2K ROM and an 8K RAM to the 8085. Draw the address map and show thedecoding scheme used. (10 Marks)

a. With the help of a neat diagram, clearly explain the interrupt, structure of 8085. (10 Marks)b. Show how an RST 5 instruction is inserted in the data bus when an interrupt occurs on

the INTR line of the 8085. (10 Marks)

a. Design a scheme to interface a 8 bit pushbutton keyboard and a 7-segment LED display tothe 8085, using a 8255 interface chip. Write a program to input the state of the switches anddisplay on the LEDs. (10 Marks)

b. Explain the different modes of operation of the 8253/54 programmable interval timer. Showthe relevant waveforms in each mode. (10 Marks)

With a neat block diagram, explain the features of the following chips:a. 8257 DMA controllers.b. 8251 serial I/O interface.

(10 Marks)(10 Marks)

SHIRDI SAI ENGG COLLEGE

Page 5: SHIRDI SAI ENGG COLLEGE - Navodaya Institute of … · Draw the timing diagram of the following 8085 instructions with one WAIT ... What do you mean by 'assembler directives'? Explain

Sixth Semester B.E. Degree Examination, May/June 2010Microprocessors

Note: Answer any FIVE full questions, selectingat least TWO questions from each part.

PART-A1 a. Explain in brief the functions of 'execution unit', with a neat block diagram. (07 Marks)

b. Explain: i) How physical address is generated by 8086?ii) 16 byte paragraph boundary.iii) Segment override prefix. (06 Marks)

c. Explain with at least two examples, the register indirect addressing and register relativeaddressing. Identify the addressing modes for the following instructions: (07 Marks)i) MOV AX, BP [100] ii) XCHG num[ BX + SI], SP iii) MOV CL, 'A'

2 a. What are the differences between 8086 and 8088 processors? (04 Marks)b. What is wrong, if any, in the following instructions? Correct them and explain the operation

performed by these instructions. (06 Marks)i) ADD [23A5H], AL ii) INC [BX] iii) LEA SI, offset num

c. Write an ALP to add N one byte BCD numbers, store the result in memory location. (10 Marks)

3 a. What do you mean by 'assembler directives'? Explain the following assembler directives:i) ALIGN 16 ii) PROC .... ENDP iii) ASSUME iv) EXTRN .... PUBLIC (05 Marks)

b. Explain any four conditional branch instructions which check the carry and zero flagssimultaneously. (06 Marks)

c. Write an ALP to convert a four digit ASCII coded hexadecimal number to its binaryequivalent using SEGMENT ASSUME directives. (09 Marks)

4 a. What are the differences between a MACRO and a PROCEDURE? Write an ALP thatdisplays a carriage return and a line feed using a MACRO. (10 Marks)

b. Write an ALP to find the GCD of four numbers using a procedure. (10 Marks)

PART-B5 a. Describe the purpose of interrupt vector table and the condition (s) which causes the

microprocessor to perform the following types of interrupts:type 0, type 1, type 2, type 3 and type 4 (07 Marks)

b. Write an interrupt procedure that sets the trap flag to enable trap. (04 Marks)c. Write a program that outputs characters to a printer using INT 17h interrupt. (09 Marks)

6 a. Explain the different types of key switches used in a computer. (05 Marks)b. Draw a block diagram of 7 - segment LED display which is interfaced to a microprocessor

using dedicated display controller. (10 Marks)o. Explain the different types of floating point numbers stored in the memory by the

coprocessor. (05 Marks)

7 a. Convert the following:i) Decimal 1259.125 to single precision number ii) Decimal -29.563 to long real form.iii) Short real 010111010110011100 .... 0 to decimal. (09 Marks)

b. Write an ALP to find the roots of a quadratic equation x2 + 3x + 2 = O. (11 Marks)

Write short notes on : a) Minimum and maximum modes of 8086bus (USB) ; c) Special registers of80386 ; d) Pentium processor.

b) Universal serial(20 Marks)

SHIRDI SAI ENGG COLLEGE

Page 6: SHIRDI SAI ENGG COLLEGE - Navodaya Institute of … · Draw the timing diagram of the following 8085 instructions with one WAIT ... What do you mean by 'assembler directives'? Explain

~t~ <te-~

~~~

Fourth Semester B.E. Degree Examination, May/June 2010Microprocessors

a. Explain the following with respect to a 8085 based systems:i) Programmable registers in 8085.ii) Demultiplexing of ADDRESS/DATA BUS.iii) Generation of memory and I/O control signals.

b. With examples, explain I how 8085 instructions are classified.(10 Marks)(10 Marks)

a. With examples, explain different addressing modes of 8085. (10 Marks)b. Draw the timing diagram of the following 8085 instructions with one WAIT state,

i) MOV A, B ii) DCXH (10 Marks)

a. Write an assembly language program ALP to add two multibyte Hex numbers. Give thealgorithm or flow chart. (10 Marks)

b. Assuming an external clock frequency of 6 MHz, write an ALP to implement a delay of 0.5sec. Using this delay program, implement a BCD up counter that displays the count from00-99, at an output port. (10 Marks)

a. Illustrate ) how the stack is organized in a 8085 based system. Explain the sequence ofoperations that take place when the following instructions are executed: i) PUSH and POPii) CALL and RET (10 Marks)

b. Write a subroutine to convert a given 8 bit Hex number to BCD. Give the algorithm or flowchart. (10 Marks)

a. Compare the basic features of the following:i) I/O mapped I/O Vs Memory mapped I/O.ii) Unconditional Vs Conditional data transfer. (10 Marks)

b. Interface a 2K ROM and an 8K RAM to the 8085. Draw the address map and show thedecoding scheme used. (10 Marks)

a. With the help of a neat diagram, clearly explain the interrupt, structure of 8085. (10 Marks)b. Show how an RST 5 instruction is inserted in the data bus when an interrupt occurs on

the INTR line of the 8085. (10 Marks)

a. Design a scheme to interface a 8 bit pushbutton keyboard and a 7-segment LED display tothe 8085, using a 8255 interface chip. Write a program to input the state of the switches anddisplay on the LEDs. (10 Marks)

b. Explain the different modes of operation of the 8253/54 programmable interval timer. Showthe relevant waveforms in each mode. (10 Marks)

With a neat block diagram, explain the features of the following chips:a. 8257 DMA controllers.b. 8251 serial I/O interface.

(10 Marks)(10 Marks)

SHIRDI SAI ENGG COLLEGE

Page 7: SHIRDI SAI ENGG COLLEGE - Navodaya Institute of … · Draw the timing diagram of the following 8085 instructions with one WAIT ... What do you mean by 'assembler directives'? Explain

Sixth Semester B.E. Degree Examination, May/June 2010Microprocessors

Note: Answer any FIVE full questions, selectingat least TWO questions from each part.

PART-A1 a. Explain in brief the functions of 'execution unit', with a neat block diagram. (07 Marks)

b. Explain: i) How physical address is generated by 8086?ii) 16 byte paragraph boundary.iii) Segment override prefix. (06 Marks)

c. Explain with at least two examples, the register indirect addressing and register relativeaddressing. Identify the addressing modes for the following instructions: (07 Marks)i) MOV AX, BP [100] ii) XCHG num[ BX + SI], SP iii) MOV CL, 'A'

2 a. What are the differences between 8086 and 8088 processors? (04 Marks)b. What is wrong, if any, in the following instructions? Correct them and explain the operation

performed by these instructions. (06 Marks)i) ADD [23A5H], AL ii) INC [BX] iii) LEA SI, offset num

c. Write an ALP to add N one byte BCD numbers, store the result in memory location. (10 Marks)

3 a. What do you mean by 'assembler directives'? Explain the following assembler directives:i) ALIGN 16 ii) PROC .... ENDP iii) ASSUME iv) EXTRN .... PUBLIC (05 Marks)

b. Explain any four conditional branch instructions which check the carry and zero flagssimultaneously. (06 Marks)

c. Write an ALP to convert a four digit ASCII coded hexadecimal number to its binaryequivalent using SEGMENT ASSUME directives. (09 Marks)

4 a. What are the differences between a MACRO and a PROCEDURE? Write an ALP thatdisplays a carriage return and a line feed using a MACRO. (10 Marks)

b. Write an ALP to find the GCD of four numbers using a procedure. (10 Marks)

PART-B5 a. Describe the purpose of interrupt vector table and the condition (s) which causes the

microprocessor to perform the following types of interrupts:type 0, type 1, type 2, type 3 and type 4 (07 Marks)

b. Write an interrupt procedure that sets the trap flag to enable trap. (04 Marks)c. Write a program that outputs characters to a printer using INT 17h interrupt. (09 Marks)

6 a. Explain the different types of key switches used in a computer. (05 Marks)b. Draw a block diagram of 7 - segment LED display which is interfaced to a microprocessor

using dedicated display controller. (10 Marks)o. Explain the different types of floating point numbers stored in the memory by the

coprocessor. (05 Marks)

7 a. Convert the following:i) Decimal 1259.125 to single precision number ii) Decimal -29.563 to long real form.iii) Short real 010111010110011100 .... 0 to decimal. (09 Marks)

b. Write an ALP to find the roots of a quadratic equation x2 + 3x + 2 = O. (11 Marks)

Write short notes on : a) Minimum and maximum modes of 8086bus (USB) ; c) Special registers of80386 ; d) Pentium processor.

b) Universal serial(20 Marks)

SHIRDI SAI ENGG COLLEGE

Page 8: SHIRDI SAI ENGG COLLEGE - Navodaya Institute of … · Draw the timing diagram of the following 8085 instructions with one WAIT ... What do you mean by 'assembler directives'? Explain

SHIRDI SAI ENGG COLLEGE

Page 9: SHIRDI SAI ENGG COLLEGE - Navodaya Institute of … · Draw the timing diagram of the following 8085 instructions with one WAIT ... What do you mean by 'assembler directives'? Explain

SHIRDI SAI ENGG COLLEGE