You are on page 1of 8

Code No: RR310501 Set No.

1
III B.Tech I Semester Supplimentary Examinations, February 2008
INTERFACING THROUGH MICROPROCESSORS
( Common to Computer Science & Engineering, Information Technology
and Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. (a) With a neat block diagram explain the architecture of 8086 processor.
(b) Explain why memory is segmented in 8086 and also explain how memory is
addressed using segmentation. [10+6]

2. (a) Give a neat flow chart and the corresponding 8086 assembly language program
for performing bubble sort on N elements stored in an array A.
(b) Write briefly on
i. PUBLIC directive
ii. EXTRN directive. [10+6]

3. (a) How is the LOCAL directive used within a macro sequence ? Explain with an
example.
(b) Develop a macro called ADD32 that adds the 32-bit contents of DX-CX to
the 32-bit contents of BX-AX. [8+8]

4. (a) Describe the mode 0, mode 1 and mode 2 I/O operations of the 8255 PPI
(b) Frame the control word of 8255 PPI for port A in model, port B in model
O/P port specify the pins of port C. [8+8]

5. (a) What is minimum no. of bus cycles that can occur between the time an
interrupt request is recognized and the first instruction in the interrupt routine
is fetched. Draw the bys cycles.
(b) Write an instruction sequence that will cause the priority of an 8259, whose
even address is
08A0, to be IR4, IR5, IR6, IR7, IR0, IR1, IR2, IR3. Solve this twice, once
assuming that the
highest priority is currently IR0 and once assuming that it is IR3. [6+10]

6. (a) Design a circuit to activate a actuator, based on a bit combination given by


eight switches interfaced to a microprocessor
(b) Design a interface circuit to feed numbers 0-9 through a linearly encoded
switches and to display the number on a seven segment LED through a mi-
croprocessor [8+8]

7. Explain with a block diagram how a stepper motor can be interfaced to a micro-
processor and explain its working. [16]

1 of 2
Code No: RR310501 Set No. 1
8. (a) Describe the functions of the DSR, DTR, RTS, CTS, TXD, and RXD signals
exchanged between a terminal and a modern.
(b) Why is synchronous serial data communication much more efficient than asyn-
chronous communication?
(c) List out various signals in 1 EEE 488 and their purpose and explain.[6+4+6]

⋆⋆⋆⋆⋆

2 of 2
Code No: RR310501 Set No. 2
III B.Tech I Semester Supplimentary Examinations, February 2008
INTERFACING THROUGH MICROPROCESSORS
( Common to Computer Science & Engineering, Information Technology
and Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. (a) With examples describe the various branch (control) instructions in 8086 mi-
croprocessor.
(b) Give the general coding template format for 8086 instructions and describe
each byte in detail. [8+8]

2. (a) Compute the average of N number of bytes in an array in memory. The length
of the string is in first location of the array. The number start from 2nd location
of array.
(b) Explain the following instructions of 8086
i. TEST AL, BH
ii. WAIT
iii. XLATB
iv. LOCK XCHG BL [8+8]

3. (a) Write a procedure which produces a delay of 3.33 ms when run on a 8086 with
a 5-MHz clock.
(b) Write a main program which uses the above delay procedure to output a square
wave on bit D0 of port FFFAH. [8+8]

4. An 8086 system with 8255 interfaced at port A address F0H, as a block of 100
data bytes Stored in it. Another 8086 system with another 8255 interface at port
A address 80H has another block of 100 data bytes stored in it. Interchange this
blocks of data bytes between the two 8086 systems. Draw the necessary hardware
scheme and write the necessary sequence of instructions. Both systems run on the
same clock rate. [16]

5. Explain the following terms in relation 8259

(a) EOI
(b) Cascading
(c) Polling
(d) Buffered mode
(e) Edge and level triggered mode
(f) Automatic rotation
(g) Specific rotation

1 of 2
Code No: RR310501 Set No. 2
(h) Special mast mode [16]

6. (a) Design a circuit to activate a actuator, based on a bit combination given by


eight switches interfaced to a microprocessor
(b) Design a interface circuit to feed numbers 0-9 through a linearly encoded
switches and to display the number on a seven segment LED through a mi-
croprocessor [8+8]

7. Explain with a block diagram how a stepper motor can be interfaced to a micro-
processor and explain its working. [16]

8. Write a program to initialize 8251 in synchronous mode with even parity, single
SYNCH character, 7 bit data character. Then receive FFH bytes of data from a
remote terminal and store it in the memory at address 5000 H: 2000H. [16]

⋆⋆⋆⋆⋆

2 of 2
Code No: RR310501 Set No. 3
III B.Tech I Semester Supplimentary Examinations, February 2008
INTERFACING THROUGH MICROPROCESSORS
( Common to Computer Science & Engineering, Information Technology
and Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. (a) How 8 bit and 16 bit operations can be performed on 8086. Explain this in
architecture point of view and instruction point of view.
(b) What are the registers available in 8086? Explain the special operations if
any, performed by these registers. [8+8]
2. Develop an 8086 assembly language program that reads a key from the keyboard
and converts it to uppercase before displaying it. The program need to terminate,
on typing the control C key. [16]
3. From the following pseudo code draw a detailed flowchart which indicates the ele-
mentary constructs and there by translate it into 8086 program.
CODE← 0
IF A = 0 THEN
IF B = 0 THEN
CODE ← 1
ELSE
CALL DIVIDE to compute X1← -C/B
ENDIF
ELSE
CALL EVAL to compute E ← -B/2A
CALL DISCRIM to compute D← (-B/2A)∧ 2 - C/A
IF D < 0 THEN
CODE ← 2
ELSE IF D = 0 THEN
X1 ← E
CODE ← 3
ELSE
CALL SQROOT to compute F ← sqrt(D)
CALL SUBTRACT to compute X1←E - F
CALL ADDITION to compute X2←E + F
ENDIF
ENDIF. [16]
4. Design a multiplexed display scheme to display seconds, minutes and hours counter
using 8255 ports. Assume that a standard delay of 1 second is available . [16]
5. (a) What is minimum no. of bus cycles that can occur between the time an
interrupt request is recognized and the first instruction in the interrupt routine

1 of 2
Code No: RR310501 Set No. 3
is fetched. Draw the bys cycles.
(b) Write an instruction sequence that will cause the priority of an 8259, whose
even address is
08A0, to be IR4, IR5, IR6, IR7, IR0, IR1, IR2, IR3. Solve this twice, once
assuming that the
highest priority is currently IR0 and once assuming that it is IR3. [6+10]

6. (a) Design a circuit to activate a actuator, based on a bit combination given by


eight switches interfaced to a microprocessor
(b) Design a interface circuit to feed numbers 0-9 through a linearly encoded
switches and to display the number on a seven segment LED through a mi-
croprocessor [8+8]

7. Explain the working principle of a digital-to-analog converter and how it can be


interfaced. Give the hardware and software for it. [16]

8. (a) Explain the Handshaking signal sequence for a system using modem.
(b) Write a short note on synchronous serial data communication. [8+8]

⋆⋆⋆⋆⋆

2 of 2
Code No: RR310501 Set No. 4
III B.Tech I Semester Supplimentary Examinations, February 2008
INTERFACING THROUGH MICROPROCESSORS
( Common to Computer Science & Engineering, Information Technology
and Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. (a) If an absolute address of the type 6A3D9H is given, express it in the form of
CS : IP and explain what are the advantages of the memory segmentation.
Discuss about the various segment registers in 8086.
(b) What are the modes in which the 8086 can be used .How many lines are there
in the multiplexed bus of 8086. Give the pin diagram separately for each mode
of operation. [8+8]

2. Develop an 8086 assembly language program that converts the given hexadecimal
data into ASCII and vice-versa. [16]

3. (a) Write a procedure which produces a delay of 3.33 ms when run on a 8086 with
a 5-MHz clock.
(b) Write a main program which uses the above delay procedure to output a square
wave on bit D0 of port FFFAH. [8+8]

4. (a) Why buffers are needed on the address, data, and control buses in a micro-
computer system ?
(b) Draw the structure of fully buffered 8086 microprocessor with the demulti-
plixed address and data buses. [6+10]

5. (a) What is minimum no. of bus cycles that can occur between the time an
interrupt request is recognized and the first instruction in the interrupt routine
is fetched. Draw the bys cycles.
(b) Write an instruction sequence that will cause the priority of an 8259, whose
even address is
08A0, to be IR4, IR5, IR6, IR7, IR0, IR1, IR2, IR3. Solve this twice, once
assuming that the
highest priority is currently IR0 and once assuming that it is IR3. [6+10]

6. (a) Compare the interfacing of encoded and un encoded switches with micro-
processor.
(b) Design a microprocessor controlled display circuit to count up to 100 and give
a alarm when reaches its count. [4+12]

7. (a) Explain the working of Flask ADC.

1 of 2
Code No: RR310501 Set No. 4
(b) What is the resolution of a 13-bit DAC? If the DAC has a full-scale output
of 10V, what is the size of each step and what is the actual maximum output
voltage? [6+10]

8. (a) Give the mode word format for synchronous communication when using 8251A
USART for BISYNC communication and explain.
(b) Explain the command word format of 8215A for synchronous operation.[10+6]

⋆⋆⋆⋆⋆

2 of 2

You might also like