Sie sind auf Seite 1von 8

Code No: RR312001 Set No.

1
III B.Tech I Semester Supplementary Examinations, February 2007
MICROPROCESSORS AND INTERFACING
(Production Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. (a) Explain the difference between Machine Language, Assembly Language and
High Level language.
(b) Explain the requirement of a program counter, stack pointer and status flags
in the architecture of Intel 8085 Micro process. [8+8]

2. (a) Explain register to register and register to / from memory with displacement
instruction formats with the help of examples.
(b) Explain the different type of addressing modes used in 8086. [8+8]

3. (a) Write a program to check whether the given string is palindrome or not.
(b) Briefly explain about following instructions.
i. ADD
ii. NEG
iii. AAM
iv. DIV [8+8]

4. (a) Define a macro for moving an arbitrary character string that ends with an
EOT character from one string of bytes in memory to another?
(b) Discuss the difference in the debug applications of the interrupts caused by
the INT, INT Type, and single-step trap? In particular, which one of these
interrupts is preferred than the remaining two? [8+8]

5. (a) Write an instruction sequence that converts 8-digit packed BCD number to
its equivalent ASCII coded hex number.
(b) Write a program segment that will copy all ASCII characters in string STG
that are enclosed by single quotes to the string MESG and store the number
of characters moved in COUNT? [8+8]

6. Explain the following terms with reference to 8259.

(a) END of interrupt


(b) Automatic rotation
(c) Poll command
(d) Read resister command. [4+4+4+4]

1 of 2
Code No: RR312001 Set No. 1
7. What is the difference between simple I/O, strobbed I/O and bi-directional I/O
with reference to 8255? Discuss the required control signals and their timing se-
quence for each mode of operation? [16]

8. (a) Draw the command register and mode register format of 8237 and explain
each bit?
(b) Show how 8237s are cascaded to provide more number of DRQs and explain
the operation?
(c) Explain how memory to memory transfer is performed with 8237? [6+5+5]

⋆⋆⋆⋆⋆

2 of 2
Code No: RR312001 Set No. 2
III B.Tech I Semester Supplementary Examinations, February 2007
MICROPROCESSORS AND INTERFACING
(Production Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. (a) Explain the difference between Machine Language, Assembly Language and
High Level language.
(b) Explain the requirement of a program counter, stack pointer and status flags
in the architecture of Intel 8085 Micro process. [8+8]

2. (a) Draw and explain the pin out diagram of 8086.


(b) Explain the various operations performed by Bus Interfacing unit in 8086.
[10+6]

3. (a) Briefly explain about the following instructions


i. ADC
ii. INC
iii. DEC
iv. MUL
v. DIV
(b) Write a program to solve the following expression. A2 + 2AB + B 2 [10+6]

4. (a) Write the sequence of statements that declare the word named NWORD and
the FAR label EXTMOD as being external and the variable LWORD and the
label LOCMOD as being local and accessible by other source modules?
(b) Give the definition of a macro RESTORE that will pop the register contents
that have been pushed in the order AX, BX, CX, DX, SI and DI? [8+8]

5. (a) Write an instruction sequence that converts 8-digit packed BCD number to
its equivalent ASCII coded hex number.
(b) Write a program segment that will copy all ASCII characters in string STG
that are enclosed by single quotes to the string MESG and store the number
of characters moved in COUNT? [8+8]

6. (a) Compare interrupted I/O and DMA data transfer schemes. [8]
(b) Give the machine language code for each of the following instructions?
i. IN AL, 52H
ii. OUT 0CH, AL
iii. OUT DX, AX
iv. IN AX, DX. [2+2+2+2]

1 of 2
Code No: RR312001 Set No. 2
7. Interface an 8-bit DAC to 8255 with an address map of 0100H to 0103H. The DAC
provides output in the range of +5V to -5V. Write the instruction sequence for the
following?

(a) For generating a square wave with a peak to peak voltage of 2V and the
frequency will be selected from memory location ‘FREQ’.
(b) For generating a triangular wave with a maximum voltage of +4V and a
minimum of -2V. [8+8]

8. (a) A terminal is transmitting asynchronous serial data at 1200 bd. What is the
bit time? Assuming 8 data bits, a parity bit and 1 stop bit how long does it
take to transmit one character?
(b) Draw necessary circuit to interface 8251 to an 8086 based system with an
address 0C0H. Write the sequence of instructions to initialize 8251 for syn-
chronous transmission? (Assume the necessary data) [8+8]

⋆⋆⋆⋆⋆

2 of 2
Code No: RR312001 Set No. 3
III B.Tech I Semester Supplementary Examinations, February 2007
MICROPROCESSORS AND INTERFACING
(Production Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. (a) Explain in detail the various addressing modes used in 8085 Microprocessor
with examples.
(b) Explain the following pins of 8085 Microprocessor.
i. ADO-AD 7
ii. IO/M
iii. SO , S1
iv. INTR [8+8]

2. (a) Draw and explain the pin out diagram of 8086.


(b) Explain the various operations performed by Bus Interfacing unit in 8086.
[10+6]

3. (a) Explain the following Instructions.


i. PUSH
ii. XLAT
iii. LEA
iv. LAHF
(b) Write a program to sort a given array in Ascending order. [8+8]

4. (a) Discuss the difference between intra segment and inter segment procedures?
Explain the return procedure in the above cases? Give the sequence of state-
ments for defining the above procedures and return methods?
(b) Give the necessary statements to permit the byte variables NUM1, NUM2,
NUM3 and NUM4 which are defined in source module 2 to be accessed in
source module 1 as if they are defined in source module 1? [8+8]

5. (a) Write an assembly language program that will examine an ASCII string of 100
characters and replace each decimal digit by a %. The character string starts
at STRG.
(b) Explain the prefix instruction format of 8086 processor? Discuss how these
instructions are useful in string manipulation? [8+8]

6. Explain the following terms with reference to 8259.

(a) END of interrupt


(b) Automatic rotation

1 of 2
Code No: RR312001 Set No. 3
(c) Poll command
(d) Read resister command. [4+4+4+4]

7. Explain BSR mode of operation in 8255. It is necessary to initialize interrupt for


mode 2 operation of port-A and mode 1 operation of port-B with the 8255 address
map of 0200H to 0203H. Write the instruction sequence for the initialization of
8255 in the above modes? Show the hardware design to interface 8255 in the above
address map? [16]

8. (a) Why are the two ground pins on an RS 232C connector not just tied together?
(b) Explain the RS-232C to TTL interfacing?
(c) Write a sequence of instructions to communicate to a modem using 8251 at
address 080H. [4+6+6]

⋆⋆⋆⋆⋆

2 of 2
Code No: RR312001 Set No. 4
III B.Tech I Semester Supplementary Examinations, February 2007
MICROPROCESSORS AND INTERFACING
(Production Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. (a) What are the arithmetic and logical operations performed in 8085 Microproces-
sor?
(b) What are the different registers in 8085 Microprocessor? Discuss their func-
tions. [8+8]
2. (a) If a physical branch address is 5A230 when CS = 5200, what will it be if the
CS are changed to 7800?
(b) Given that BX = 637D, SI = 2A9B, Displacement 237. Determine the effective
resulting from these registers and the addressing made.
i. Immediate
ii. Direct
iii. Register Indirect using BX
iv. Relative Base Indexed
v. Base Indexed
vi. Register Relative using BX. [4+6+6]
3. (a) Write a program to find the Parity of 32 bit Number.
(b) Explain the following instructions.
i. DAA
ii. SUB
iii. CMP
iv. AAD [8+8]
4. (a) Discuss the difference between intra segment and inter segment procedures?
Explain the return procedure in the above cases? Give the sequence of state-
ments for defining the above procedures and return methods?
(b) Give the sequence of instructions that pushes the offsets of word variables X,
Y and Z in data segment onto stack? [8+8]
5. (a) Write an instruction sequence that converts unpacked BCD digits to seven-
segment code using a conversion table. Assume the necessary data.
(b) Write an instruction sequence that converts 4-digit ASCII coded decimal num-
ber into ASCII coded hex equivalent number. [8+8]
6. (a) Write an instruction sequence that when executed will toggle the state of the
read resister bit in OCW3. Assume that the 8259 is located at memory address
00A0H.

1 of 2
Code No: RR312001 Set No. 4
(b) How do you set or clear the interrupt flag IF? What is its importance in the
interrupt structure of 8086?
(c) How 8259 can be programmed for rotating interrupt request priorities. Ex-
plain? [5+6+5]

7. (a) What is BSR mode operation? How it is useful in controlling the interrupt
initiated data transfer for mode 1 and 2?
(b) Explain the transistor buffer circuit used to drive 7-segment LEDs? [8+8]

8. (a) What are the MODEM control lines? Explain the function of each line?
Discuss how MODEM is controlled using these lines with necessary sequence
of instructions?
(b) Discuss the Command instruction and Status register format of 8251? [8+8]

⋆⋆⋆⋆⋆

2 of 2

Das könnte Ihnen auch gefallen