Code No: RR312001

Set No. 1

III B.Tech I Semester Regular Examinations, November 2007 MICROPROCESSORS AND INTERFACING (Production Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ⋆⋆⋆⋆⋆ 1. (a) Discuss the functions of ALU of 8085. (b) What are the various status flags provided in 8085? Discuss their role. [8+8] 2. (a) Write down the table used to find the Binary Codes for MOD and R/M fields in instruction formats of 8086. (b) Explain the Flag register of 8086. Also show their positions in Flag register. (c) Explain the purpose of Queue in 8086. 3. (a) Explain the following instructions with examples i. ii. iii. iv. XLAT MUL TEST SHL [8+4+4]

(b) Write a program to convert a BCD number to an equivalent Binary number. [8+8] 4. Write a recursive routine to evaluate the following polynomial Y = A0 +A1 X + A2 X2 +A3 X3 +... .......+AN XN The coefficients A0 , A1 , A2 ???..AN are to be successive words in memory and all parameter addresses are to be passed via the stack. [16] 5. (a) What is a recursive procedure? Write a recursive procedure to calculate the factorial of number N, where N is a two-digit Hex number? (b) What are the loop instructions of 8086? Explain the use of DF flag in the execution of string instructions. [8+8] 6. It is necessary to serve 15 interrupt requests using 8259‘s. The address map for the 8259‘s is given from 0100H to 0103H. Show the complete interface with 8086 system bus? These 15 interrupts are to be requested from interrupt type 060H on words, with level trigged mode and auto end of interrupt. Give the initialization sequence for all 8259‘s. [16] 7. (a) Draw the block diagram of 8255 and explain each block? (b) What is BSR mode operation? How it is useful in controlling the interrupt initiated data transfer for mode 1 and 2? [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? 1 of 2

Code No: RR312001

Set No. 1
⋆⋆⋆⋆⋆

(b) Discuss the Command instruction and Status register format of 8251? [8+8]

2 of 2

Code No: RR312001

Set No. 2

III B.Tech I Semester Regular Examinations, November 2007 MICROPROCESSORS AND INTERFACING (Production Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ⋆⋆⋆⋆⋆ 1. (a) Explain various interrupt of 8085 Microprocessor and their priorities. (b) Explain the i. ii. iii. iv. SID SOD S0 , S1 , IN T A pins of 8085 Microprocessor

[8+8]

2. (a) Explain the timing diagram for a write cycle of 8086. (b) Explain the ADDR/STATUS, RD, IN T A, OT /R ,DEN and W R signals shown on 8086 timing diagrams. [8+8] 3. (a) Write notes on the following. i. ii. iii. iv. RCL SHR JAE LOOP

(b) Write a program to find the smallest and biggest numbers in a given array. [8+8] 4. (a) Explain with example the necessity of linker in modular programming? (b) Explain how inter-segment CALL and intra-segment CALL instructions are executed? Clearly mention the changes in stack during the execution of above instructions? (c) Discuss the five types of interrupts and their use? [4+8+4]

5. (a) Write an instruction sequence that will convert the integer in BINARY to four ASCII coded hexadecimal digits and put the result in ASCII STR? (b) With a 5-MHZ clock estimate the time needed to execute the following instruction sequence. [8+8] MOV SI, OFFSET STG 1 MOV DI, OFFSET STG 2 MOV CX, 0010H MOVE:MOV AL, [SI] MOV [DI], AL 1 of 2

Code No: RR312001 INC SI INC DI LOOP MOVE 6. Explain the following terms with reference to 8259? (a) Special mask mode (b) Fully nested mode (c) Read register command (d) Poll command.

Set No. 2

[4+4+4+4]

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 sequence for each mode of operation? [16] 8. (a) Draw the block diagram of 8251 and explain each block? (b) Discuss the serial data transmission standards and their specifications? [8+8] ⋆⋆⋆⋆⋆

2 of 2

Code No: RR312001

Set No. 3

III B.Tech I Semester Regular Examinations, November 2007 MICROPROCESSORS AND INTERFACING (Production Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ⋆⋆⋆⋆⋆ 1. (a) Explain various interrupt of 8085 Microprocessor and their priorities. (b) Explain the i. ii. iii. iv. SID SOD S0 , S1 , IN T A pins of 8085 Microprocessor

[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. ii. iii. iv. MOV POP XCHG SAHF [8+8]

(b) Write a program to convert a Binary Number to a BCD Number.

4. Give a set of macro definitions for performing the logical operations OR, AND and XOR on double words whose locations are indicated by the first two dummy parameters? The result is to be put in the concatenation DX:AX. Give the solution without nesting macro definitions? Provide the solution using definition nesting for the above problem? [16] 5. A logic network is having input variables A,B,C,D. The output variables are given below. W =A.BC + BCD + AD X = BD + AC + AB + AD Y = A.B + A.C + D.B Z = ABC + ACD + A.BC + D.B The array INPUT 1 contains 10 different combinations of input variables. Write an instruction sequence that determine the outputs for each combination of INPUT 1 [16] array and store the output variables in the string OUTPUT 1. 6. (a) What is the minimum no. of bus cycles that can occur between the time an interrupt request is recognized and the first instruction in the interrupt service routine is fetched. Show the interrupt acknowledge cycle with a flow chart? 1 of 2

Code No: RR312001

Set No. 3

(b) Show the complete hardware design to resolve multiple interrupts based on priority using Daisy chain? [8+8] 7. (a) With neat layout, explain how a microprocessor can be used for data acquisition system using A/D converters and D/A converters? (b) Explain the transistor buffer circuit used to drive 7-segment LEDs? 8. (a) Draw the block diagram of 8251 and explain each block? (b) Discuss the serial data transmission standards and their specifications? [8+8] ⋆⋆⋆⋆⋆ [8+8]

2 of 2

Code No: RR312001

Set No. 4

III B.Tech I Semester Regular Examinations, November 2007 MICROPROCESSORS AND INTERFACING (Production 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 priority. (b) What are the various status flags provided in 8085? Discuss their role. [8+8] 2. Develop the machine code for following instructions. (a) MOV AX, 000 (b) MOV CX, [2000] (c) MOV [2000], BX (d) MOV AX, BX (e) ADD AX, BX (f) CMP CX, BX Take 6bit codes for MOV: 100010 ADD: 000000 CMP: 001110 [2+3+3+2+3+3] 3. (a) Write a program to check whether the given string is palindrome or not. (b) Briefly explain about following instructions. i. ii. iii. iv. ADD NEG AAM DIV

[8+8]

4. (a) Write the sequence of statements that declare the word named ‘NWORD ’ and FAR label ‘EXTMOD’ as being external and the variable ‘IWORD’ and the label ‘LOCMOD’ as being local and accessile by other source modules? (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) Explain string instructions supported by 8086 processor? (b) Give the instruction sequence that compares the first 10 bytes beginning at STRG 1 with the first ten bytes beginning at STRG 2 and branches to MATCH if they are equal, otherwise continues in sequence? [8+8] 6. The I/O circuitry in an 8086 based system consists of five I/O devices with one status signal for each device. Design the required hardware providing two address locations to each device, one for status and other for data. In the range 0F00H to 0FOFH. Write an instruction sequence to test the status of each device and store it. [16] 1 of 2

Code No: RR312001

Set No. 4

7. 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 0800H to 0803H. Give the complete hard ware design to interface 8255 to 8086 processor with this address map? Write the instruction sequence for the initialization of 8255 in the above modes? Give the instruction sequence to change the operation modes of port A and Port B to mode 1? [16] 8. (a) Draw the command register and mode register format of 8237 and explain each bit? (b) Show how 8237?s are cascaded to provide more number of DRQ?s and explain the operation? (c) Explain how memory to memory transfer is performed with 8237? ⋆⋆⋆⋆⋆ [6+5+5]

2 of 2