Vous êtes sur la page 1sur 8

Code No: R05311901 Set No.

1
III B.Tech I Semester Regular Examinations, November 2007
MICROPROCESSORS AND INTERFACING
( Common to Electronics & Computer Engineering and Instrumentation &
Control Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. (a) Explain various interrupt pins of 8085 Microprocessor, and also write their
functionality.
(b) What are the various status flags provided in 8085? Explain their role. [8+8]

2. (a) Write notes on the following:


i. RCL
ii. SHR
iii. JAE
iv. LOOP.
(b) Describe various addressing modes used in 8086. [8+8]

3. (a) Explain string instructions supported by 8086 processor?


(b) Give the instruction sequence that compares the first 10 bytes beginning at
STRG1with the first ten bytes beginning at STRG 2 and branches to MATCH
if they are equal, otherwise continues in sequence? [8+8]

4. (a) What are the two modes of 8086? List out various signals generated by the
CPU in these two modes respectively.
(b) Design a memory system around 8088 that has a total of 16 K 8 EPROM and
32 K × 8 RAM. Both EPROM and RAM chips are available in modules of
8K × 8. The memory map is specified as below:
EPROM 1 : F0000 H - FIFFFH.
EPROM 2 : Decide suitably for a practical system.
RAM 1 : Contains interrupt vector table.
RAM 2 : 30000 H- 31FFF H
RAM 3 : 40000 H- 41FFF H
RAM 4 : 50000 H- 51FFF H [4+12]

5. (a) Draw the block diagram of 8279 and explain each block.
(b) Interface an 8255 with 8086 at 80H as an I/O address of Port-A. Interface
Five 7-segment displays with the 8255. Write a sequence of instructions to
display 1, 2, 3, 4 and 5 over the five displays continuously as per their positions
starting with 1 at the least significant position. [8+8]

6. Write the initialization instructions for master and slave configuration to meet the
following specifications: [16]

1 of 2
Code No: R05311901 Set No. 1
(a) The INTR of slave is routed through IR2 of the master 8259 to the 8086.
(b) Master and slave are both level triggered.
(c) First interrupt types for master and slave are 32 and 64 respectively.
(d) Modes: automatic rotation and auto end of interrupt.
(e) Addresses of the master are 40H and 41H and the slave are 80H and 81H.
(f) Buffers are not used.

7. (a) Explain the following MODEM control lines:


i. DSR
ii. DTR
iii. RTS
iv. CTS.
(b) Explain the operation of 8251 a neat block diagram. [8+8]

8. (a) Discuss the advantages of microcontroller based system over microprocessor


based systems.
(b) Describe the following registers of 8051: [8+8]
i. A
ii. B
iii. SP
iv. DPTR.

⋆⋆⋆⋆⋆

2 of 2
Code No: R05311901 Set No. 2
III B.Tech I Semester Regular Examinations, November 2007
MICROPROCESSORS AND INTERFACING
( Common to Electronics & Computer Engineering and Instrumentation &
Control Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. (a) Explain what are the advantages of the memory segmentation. Discuss about
various segment registers in 8086.
(b) Explain the physical memory organization in 8086. How is it differ from 8088.
[8+8]

2. (a) List out the major steps in developing an assembly language program.
(b) What are the main advantages of top-down design approach? [8+8]

3. (a) Explain string instructions supported by 8086 processor?


(b) Give the instruction sequence that compares the first 10 bytes beginning at
STRG1with the first ten bytes beginning at STRG 2 and branches to MATCH
if they are equal, otherwise continues in sequence? [8+8]

4. (a) List the signals in minimum and maximum modes.


(b) Explain the roles of pins TEST, LOCK.
(c) Which are the pins of 8086 that are to be connected to interface 8284 and
explain their functions? [5+5+6]

5. (a) What do you mean by BSR mode? Explain the BSR mode of operation.
(b) Initialize the Port-A as input port in mode-1. Explain the data transfer scheme
used through Port-A with the help of handshaking signals. Draw the timing
diagram. [7+9]

6. (a) What are software interrupts? How 8086 responds to software interrupts?
(b) Briefly describe the conditions, which cause the 8086 to perform each of the
following types of interrupts: Type-0, Type-1, Type-2, Type-3 and Type-4.
[8+8]

7. (a) Draw and discuss the asynchronous mode transmitter and receiver data for-
mats of 8251.
(b) Interface 8251 with 8086 at an address 80H. Initialize it in asynchronous trans-
mit mode with: 7-bits character size, baud factor 16, 1 start bit, 1 stop bit,
even parity enabled. Further transmit a message “HAPPY NEW YEAR” in
ASCII coded form to a MODEM. [8+8]

8. (a) Discuss the following signal descriptions:

1 of 2
Code No: R05311901 Set No. 2
i. (INT0)’ / (INT1)’
ii. TXD
iii. T0 and T1
iv. (RD)’
(b) Draw and discuss the formats of TMOD and PSW registers of 8051 microcon-
troller. [8+8]

⋆⋆⋆⋆⋆

2 of 2
Code No: R05311901 Set No. 3
III B.Tech I Semester Regular Examinations, November 2007
MICROPROCESSORS AND INTERFACING
( Common to Electronics & Computer Engineering and Instrumentation &
Control Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. (a) What are the control flags in 8086? Explain each of the control flags in con-
junction with the instructions being used.
(b) What are the advantages of memory segmentation?
(c) Explain the function of ALE pin in 8086. [6+4+6]

2. (a) How does near RET instruction function ?


(b) Write a near procedure that cubes the contents of the CX register . This
procedure may not affect any register except CX. [8+8]

3. (a) Using Loop instruction write a sequence to add two 16 digits 10’s complement
packed BCD numbers. Repeat for unpacked BCD numbers.
(b) Explain with illustrations conversion of an ASCII- coded decimal number into
its binary equivalent. [8+8]

4. (a) Draw the flowchart showing how synchronous serial data can be sent from a
port line using software routine?
(b) Draw the block diagram of 8237 and explain each block. [8+8]

5. (a) Determine the 7-segment codes you would have to send to the 8279 in SDK-86
to display the letters “HELP”.
(b) Show the sequence of instructions you can send to the 8279 of the SDK-86
board to blank the entire display. [8+8]

6. (a) What are the five types of interrupts supported by 8086?


(b) Write about interrupt vectors. How many bytes of memory does an interrupt
vector requires?
(c) Address 000E0H in the interrupt vector table contains 4132H and address
000E2H contains 0040H. [5+5+6]
i. To what interrupt type do these locations correspond?
ii. What is the starting address for the interrupt service routine?

7. Explain the following signal descriptions:

(a) C / D’
(b) (RXC)’

1 of 2
Code No: R05311901 Set No. 3
(c) (TXC)’
(d) TXEMPTY
(e) SYNDET / BD
(f) TXD
(g) RXD
(h) TXRDY. [2 × 8]

8. Discuss the following signal descriptions:

(a) ALE / PROG


(b) (EA)’ / VP P
(c) (PSEN)’
(d) (INT0)’ / (INT1)’
(e) RXD
(f) TXD
(g) T0 and T1
(h) (RD)’ [8+8]

⋆⋆⋆⋆⋆

2 of 2
Code No: R05311901 Set No. 4
III B.Tech I Semester Regular Examinations, November 2007
MICROPROCESSORS AND INTERFACING
( Common to Electronics & Computer Engineering and Instrumentation &
Control Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. The register contents of 8086 is given below. CS=5000H, DS=8000H, SS=9000H,


ES=7000H, SI=1000H, DI=2000H, BP=0008H, SP=0002H, AX=0000H, BX=5200H,
CX=8000H, DX=2800H Calculate the effective address and physical address of the
following instructions. [16]

(a) MOV AX, [BP+BX-24D]


(b) ADD AX, ES:[SI]
(c) PUSH CX
(d) SUB AX, [DI]
(e) MOVSB
(f) CMP AX, [DI]
(g) ADD DX, [DI+8D]
(h) MUL AX, [SI+2D] .

2. (a) Give the instruction format of IN and OUT instructions and explain?
(b) With examples explain clearly the difference between [8+8]
i. MUL and IMUL
ii. DIV and IDIV instructions of 8086.

3. Write a FAR procedure SER WORD that searches a word array for a given word
and sets the value of a word parameter to the index of the element in the array
if a match is found; otherwise, it puts a -1 in the index word parameter. The
parameters are to be passed to the procedure via a parameter address table. Give
a sequence for calling SER WORD to search ARRAY1 of length LENGTH1 for
variable ID? and put the index in INDEDX 1? [16]

4. (a) What is the advantage of DMA control data transfer over interrupt driven or
program control Data transfer? Why are DMA control data transfers faster?
(b) With a neat flow diagram, explain sequence of operations for DMA data trans-
fer. [6+10]

5. (a) Describe, how a stepper motor is excited with the help of diagrams?
(b) Interface an 8x8 keyboard using two 8255 ports and write a program to read
the code of a pressed key. [8+8]

1 of 2
Code No: R05311901 Set No. 4
6. (a) List out the advantages of using 8259?
(b) Describe the conditions that cause the 8086 to perform each of the following
types of interrupts: Type-0, Type-1, Type-2 and Type-4. [8+8]

7. (a) Draw and explain the null modem interfacing.


(b) What is Memory mapped I/O? Draw the interfacing of 8251 with 8086 in
memory mapped I/O mode. [8+8]

8. (a) Enlist salient features of 8051 family of microcontrollers.


(b) Explain with waveforms, different modes of Counter / Timer in 8051. [8+8]

⋆⋆⋆⋆⋆

2 of 2