You are on page 1of 22

2005 B.E.

ELECTRICAL AND ELECTRONICS ENGINEERING

EI 331 - MICROPROCESSORS AND MICROCONTROLLERS


FIFTH SEMESTER
Time: 3 Hours Max. Marks: 100 Answer All Questions

PART A (10 x 2 = 20 marks)


1. Specify the single instruction, which clears the most significant bit of B register (of 8051), without affecting the remaining bits. 2. Give the alternate functions for the port pins: P 3.3 and P 3.6 3. What is the purpose for which the signal ALE is available in 8085 and 8086? 4. What is the purpose for which the signal Ready is available in 8085 and 8086? 5. What happens in 8086 processor, when i) overflow of sum occurs during addition of signed numbers. ii) overflow of quotient occurs during division operation. 6. What is the operation performed by the instruction CBW (of 8086). Give an example for its use. 7. Formulate the control word for setting bit Pc4 of 8255 high using BSR modes. 8. What is the purpose for which the auxiliary carry flag is available in Intel processors? 9. What is the necessity for providing 4 banks of general purpose registers R0 to R7 in 8051? How can you switch over to bank1 from bank0? 10. Name the following interfacing ICs: 8253, 8237, 8259 and 8279. PART B (5 x 16 = 80 Marks) 11. With a neat sketch, discuss the architecture of Intel 8085, bringing out its salient features. 12.a) Discuss the operation performed by the following 8085 instructions. Specify the addressing modes used by these instructions. Discuss how these instructions affect/are affected by the various flags. Also state the machine cycles and no. of T-states taken by these instructions: ADC B, CMP M, DAA and LDA 1234H OR

12.b) Discuss the operation performed by the following 8086 instructions. Also formulate the binary codes (OPCODE) for these instructions, using the templates given below: i) ADD BX, 59H [DI] ii) XCHG CH, ES: [BX] Templates: ADD reg/mem to reg: (if any)

Segment over ride prefix:

13.a) With a help of a functional block diagram, explain the features available in the micro controller Intel 8051. What are the extra features available in Intel 8052? OR 13.b) Draw the timing diagram explaining the execution of the 8085 instruction: SHLD 1234H. The opcode for SHLD instruction is 22H. 14.a) Write assembly language programs, in 8085 and 8086, for adding consecutive bytes available form location INPUTNO onwards. The 16-bit result must be stored at location RESULT. OR 14.b)i) 8086 employs a pipe lined architecture Elaborate. ii) Discuss the segment memory concept used in 8086. 15.a) The figure shows interfacing a Thumb-Wheel Switch and two numbers of seven-segment LEDs to 8085 through a 8255-PPI:

Identify the address (es) for the control register and ports. Frame the control word required. Write a program which displays the square of the number input from Thumb-wheel Switch (TWS) at the two 7-segment displays after a time delay of one minute. Also discuss how would you implement this application on 8051. OR 15.b) Discuss the features available in 8251 USART, along with a functional block diagram, mode/control word format and an example application.

--------------------------------------------------------------------------------------------------------------------

www.collegebudies.blogspot.com

www.collegebudies.blogspot.com

www.collegebudies.blogspot.com

www.collegebudies.blogspot.com

B.E/B.Tech. DEGREE EXAMINATION, APRIL/MAY 2011 FIFTH SEMESTER Department of ELECTRONICS AND COMMUNICATION ENGINEERING EC2304- MICROPROCESSOR AND MICRO CONTROLLERS (Regulation 2008)

PART-A

1. When the 8086 processor is in minimum mode and maximum mode? 2. Define Segment Override Prefix. 3. What are the 8086 instructions used for BCD arithmetic? 4. List any four program control instructions available in 8086? 5. What do you mean by sample and hold circuit? 6. List the major functions performed by CRT interface? 7. What happens in power down mode of 8051 microcontroller? 8. What are the different ways of operand addressing in 8051? 9. Why are relays that use coils called electromagnetic relays? 10. What is PWM?

PART-B

11.(a) (i) Explain the internal hardware architecture of 8086 microprocessor with neat diagram. [Marks 12] (ii) Write briefly about the Direct Memory Access. [[Marks 4] (or) (b) (i) Explain the external memory addressing in 8086 [Marks 8] (ii) Discuss the interrupts types of 8086 microprocessor. [Marks 8] 12.(a) (i) Explain the assembler directives ASSUME,EQU,DW,and EVEN with suitable examples. [Marks 8] (ii) Write an 8086 ALP to sort the array of elements in ascending order. [Marks 8] (or) (b) (i) Write an 8086 ALP to find the largest element in an array elements. [Marks 6] (ii) Explain the data transfer group and logical group of 8086 instructions. [Marks 10] 13.(a) With neat block diagram explain the 8255 Programmable Peripheral Interface and its operating modes. [Marks 16] (or) (b) Draw and explain the block diagram of 8254 Programmable Interval Timer. Also explain the various modes of operation. [Marks 16] 14.(a) (i) Explain the architecture of 8051 microcontroller with neat diagram. [Marks 12] (ii) Write briefly about the operating modes for serial port of 8051 microcontroller. [Marks 4] (or)

(b) (i) Write an 8051 ALP to create a square wave of 66% duty cycle on bit 3 of port 1. [Marks 6] (ii) Describe the different modes of operation of timers/counters in 8051 with its associated register. [Marks 10] 15.(a) (i) Draw and explain the block diagram of traffic light control system. [Marks 10] (ii) Briefly discuss the features of RTC device. [Marks 6] (or) (b) Draw the diagram to interface a stepper motor with 8051 microcontroller and explain. Also write an 8051 ALP to run the stepper motor in both forward and reverse direction with delay. [Marks 16]

REG . NO :

QUESTION PAPPER CODE: 11334

B.E./B.TECH. DEGREE EXAMINATION, NOV / DEC 2012 FIFTH SEMESTER ELECTRONICS AND COMMUNICATION ENGINEERING EC 2304 / EC 54 MICROPROCESSOR AND MICROCONTROLLERS (REGULATION 2008) (COMMON TO PTEC 2304 MICROPROCESSOR AND MICROCOTROLLERS FOR B.E. (PART-TIME) FIFTH SEMESTER ELECTRONICS AND COMMUNICATION ENGINEERING REGULATION 2009) TIME: THREE HOURS MARKS ANSWER ALL THE QUESTIONS PART A (10 X 2 = 20 MARKS) 1. HOW CLOCK SIGNAL IS GENERATED IN 8086 MICROPROCESSOR? 2. STATE THE FUNCTION OF QUEUE STATUS LINES QS 0 AND QS 1 IN 8086 MICROPROCESSOR? 3. HOW WILL CARRY AND ZERO FLAGS REFLECT THE RESULT OF THE INSTRUCTION CMP BX, CX? 4.GIVE ANY FOUR MISCELLANEOUS INSTRUCTIONS IN 16 BIT MICROPROCESSOR. 5. LIST THE FOUR DISPLAY MODES OF 8279 KEYBOAD / DISPLAY CONTROLLER. 6. WHAT ARE THE ENHANCED FEATURES OF 8254 PROGRAMMABLE TIMER COMPARED TO 8253? 7. SPECIFY THE SIZE OF MEMORY SYSTEMS USED IN 8051 MICROCONTROLLER. MAX: 100

8. MENTION THE DIFFERENT OPERAND TYPES USED IN 8051 MICROCONTROLLER. 9. STATE THE USES OF I2C BUS STANDARD. 10. WHAT ARE THE USE OF PWM IN MOTOR CONTROL USING MICROCONTROLLER.

PART B (5 X 16 = 80 MARKS) 11. (a) (i) EXPLAIN THE ARCHITECTURE OF 8086 MICOPROCESSOR. (8) (ii) DISCUSS ABOUT THE DIFFERENT DATA TRANSFER SCHEMES WITH EXAMPLES. (8) [OR] (b) DESCRIBE THE MAXIMUM MODE SIGNALS , BUS CYCLES AND MAXIMUM MODE SYSTEM CONFIGURATION OF 8086 MICROPROCESSOR IN DETAIL. (16) 12. (a) (i) DISCUSS ABOUT THE 8086 INSTRUCTION USED FOR TRANSFERRING DATA BETWEEN REGISTERS , MEMORY , STACKS , AND I/O DEVICES . (8) (ii) WRITE A PROGRAM BASED ON 8086 INSTRUCTION SET TO MULTIPLY A CONSTANT VALUE TO A SEQUENCE OF DATA FROM 1 TO n STORED IN MEMORY. (8) [OR] (b) (i) WRITE A PROGRAM BASED ON 8086 INSTRUCTION SET TO COMPUTE THE AVERAGE OF n NUMBER OF BYTES STORED IN THE MEMORY. (8) (ii) DISCUSS ABOUT THE VARIOUS ASSEMBLER DIRECTIVE IN 8086 MICROPROCESSOR PROGRAMMING. (8)

13. (a) EXPLAIN THE PROGRAMMING AND OPERATING MODES OF 8255 PPI IN DETAIL. (16) [OR] (b) (i) WITH DIAGRAM, EXPLAIN THE OPERATION OR R-2R METHOD OF D/A CONVERTER. (8) (ii) EXPLAIN THE FUNCTION OF CRT TERMINAL INTERFACE. (8) 14. (a) (i) EXPLAIN THE PARALLEL PORT ARCHITECTURE OF 8 051 MICROCONTROLLER. (8) (ii) EXPLAIN THE OPERATION OF SERIAL PORT WITH ASSOCIATED REGISTER. (8) [OR] (b) (i) WITH EXAMPLE, EXPLAIN THE ARITHMETIC AND BRANCHING INSTRUCTION OF 8051 MICROCONTROLLER. (8) (ii) WRITE A PROGRAM BASED ON 8051 INSTRUCTION SET TO PACK ARRAY OF UNPACKED BCD DIGITS (8) 15. (a) WITH NEAT SKETCH, EXPLAIN THE MICROPROCESSOR BASED TRAFFIC LIGHT CONTROL SYSTEM. (16) [OR] (b) DESCRIBE IN DETAIL THE MICROCONTROLLER BASED SYSTEM DESIGN WITH AN EXAMPLE. (16)

You might also like