St.MARTIN S ENGINEERING COLLEGE Dhulapally, Secunderabad

Similar documents
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC Microprocessor & Microcontroller Year/Sem : II/IV

PART B QUESTIONS AND ANSWERS UNIT I

8051 MICROCONTROLLER COURSE

8051 hardware summary

MICROPROCESSOR AND MICROCOMPUTER BASICS

Flash Microcontroller. Memory Organization. Memory Organization

Faculty of Engineering Student Number:

MICROPROCESSOR BCA IV Sem MULTIPLE CHOICE QUESTIONS

Microprocessor & Assembly Language

Interfacing Analog to Digital Data Converters

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

Flash Microcontroller. Architectural Overview. Features. Block Diagram. Figure 1. Block Diagram of the AT89C core

Serial Communications

Z80 Instruction Set. Z80 Assembly Language

MACHINE ARCHITECTURE & LANGUAGE

8051 Serial Port. Crystal TXD. I/O Device RXD. Embedded Systems Peripherals

8085 INSTRUCTION SET

8086 Microprocessor (cont..)

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

ASSEMBLY PROGRAMMING ON A VIRTUAL COMPUTER

CoE3DJ4 Digital Systems Design. Chapter 4: Timer operation

Microcontroller Basics A microcontroller is a small, low-cost computer-on-a-chip which usually includes:

Data Cables. Schmitt TTL LABORATORY ELECTRONICS II

8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA

4 Character 5x7 LED Matrix Display

Objectives. Basics of Serial Communication. Simplex vs Duplex. CMPE328 Microprocessors (Spring ) Serial Interfacing. By Dr.

BCD (ASCII) Arithmetic. Where and Why is BCD used? Packed BCD, ASCII, Unpacked BCD. BCD Adjustment Instructions AAA. Example

Advanced Computer Architecture-CS501. Computer Systems Design and Architecture 2.1, 2.2, 3.2

AN108 IMPLEMENTING A REALTIME CLOCK. Relevant Devices. Introduction. Key Points. Overview

Chapter 13. PIC Family Microcontroller

Complete 8086 instruction set

Microcomputer Components SAB 80515/SAB 80C515 8-Bit Single-Chip Microcontroller Family

Keil C51 Cross Compiler

8741A UNIVERSAL PERIPHERAL INTERFACE 8-BIT MICROCOMPUTER

Unpacked BCD Arithmetic. BCD (ASCII) Arithmetic. Where and Why is BCD used? From the SQL Server Manual. Packed BCD, ASCII, Unpacked BCD

Hardware and Software Requirements

RS-485 Protocol Manual

DAC Digital To Analog Converter

8085 MICROPROCESSOR PROGRAMS

Microtronics technologies Mobile:

The x86 PC: Assembly Language, Design, and Interfacing 5 th Edition

Introduction to Microcontrollers

2 ASCII TABLE (DOS) 3 ASCII TABLE (Window)

CHAPTER 7: The CPU and Memory

CHAPTER 4 MARIE: An Introduction to a Simple Computer

RS - SPM. Serial parallel translator module

Instruction Set Architecture

Appendix C: Keyboard Scan Codes

Z80 Microprocessors Z80 CPU. User Manual UM Copyright 2014 Zilog, Inc. All rights reserved.

STEPPER MOTOR SPEED AND POSITION CONTROL

Interrupts. 1.Maskable interrupt request can be ignored or delayed by the microprocessor and used in telephone

Counters and Decoders

1 Classical Universal Computer 3

Embedded. Engineer s. Development. Tool (EEDT 5.0)

Timer A (0 and 1) and PWM EE3376

Atmel Norway XMEGA Introduction

C Programming. for Embedded Microcontrollers. Warwick A. Smith. Postbus 11. Elektor International Media BV. 6114ZG Susteren The Netherlands

AT89C Bit Microcontroller with 1 Kbyte Flash. Features. Description. Pin Configuration

(Refer Slide Time: 00:01:16 min)

PACKAGE OUTLINE DALLAS DS2434 DS2434 GND. PR 35 PACKAGE See Mech. Drawings Section

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

The 80x86 Instruction Set

ARM Thumb Microcontrollers. Application Note. Software ISO 7816 I/O Line Implementation. Features. Introduction

How It All Works. Other M68000 Updates. Basic Control Signals. Basic Control Signals

TIMING DIAGRAM O 8085

LABORATORY MANUAL EE0310 MICROPROCESSOR & MICROCONTROLLER LAB

ETEC Digital Controls PIC Lab 10 Pulse Width Modulation

Chapter 5, The Instruction Set Architecture Level

CENTRONICS interface and Parallel Printer Port LPT

Software Manual RS232 Laser Merge Module. Document # SU Rev A

M6800. Assembly Language Programming

Exceptions in MIPS. know the exception mechanism in MIPS be able to write a simple exception handler for a MIPS machine

Serial Communications

Programmable Logic Controller PLC

M25P05-A. 512-Kbit, serial flash memory, 50 MHz SPI bus interface. Features

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

EMBEDDED SYSTEM BASICS AND APPLICATION

Small Hardware Development and Prototyping Board for the SX28

Application Note 83 Fundamentals of RS 232 Serial Communications

Microcontrollers A Brief History of Microprocessors

Freescale Semiconductor, I

COMPUTER HARDWARE. Input- Output and Communication Memory Systems

2011, The McGraw-Hill Companies, Inc. Chapter 3

Microcontrollers Figure 26-1 Objectives Key Words and Terms 26.1 OVERVIEW OF THE MICROCONTROLLER microcontroller

8031AH 8051AH 8032AH 8052AH NMOS SINGLE-CHIP 8-BIT MICROCONTROLLERS

UMBC. ISA is the oldest of all these and today s computers still have a ISA bus interface. in form of an ISA slot (connection) on the main board.

EXERCISE 3: String Variables and ASCII Code

8254 PROGRAMMABLE INTERVAL TIMER

ASCII and BCD Arithmetic. Chapter 11 S. Dandamudi

Construction and Application of a Computer Based Interface Card

Embedded Systems on ARM Cortex-M3 (4weeks/45hrs)

İSTANBUL AYDIN UNIVERSITY

HD44780U (LCD-II) (Dot Matrix Liquid Crystal Display Controller/Driver)

2.0 Command and Data Handling Subsystem

Lecture N -1- PHYS Microcontrollers

Computer Organization and Architecture

Microcontrollers in Practice

8. MACROS, Modules, and Mouse

Transcription:

St.MARTIN S ENGINEERING COLLEGE Dhulapally, Secunderabad-500 014 Subject: MICROPROCESSORS AND MICROCONTROLLERS Class : ECE III Group - A QUESTION BANK (Short Answer Questions) UNIT - I Define Microprocessor and give the power supply & 1 clock frequency of 8085. 2 List out few applications of microprocessor-based system. 3 State the difference between 8085 & 8086 microprocessor.

4 Discuss about pipelining. 5 List out the allowed register pairs of 8085. 6 List out the interrupts of 8085. 7 List out features of 8086 microprocessor. 8 Name the functional units of 8086 microprocessor 9 Explain the functions of an accumulator. 10 Explain why 8086 internal architecture is divided into BIU & 11 Discuss the functions of BIU. 12 Discuss the functions of EU. 13 Name the registers of 8086. 14 Describe the flag register of 8086. 15 Discuss how physical address is generated in 8086. 16 List out advantages of memory segmentation. 17 Evaluate the physical address, if base address is 5200H & offset address is 4510H. 18 Explain the physical memory organization of 8086. 19 List the operating modes of 8086. 20 List the minimum mode signals. 21 List the maximum mode signals. 22 Explain ALE,BHE/S7, DEN, DT/R. 23 Explain READY, MN/ HOLD, and HOLDA. 24 Indicate the interrupts of 8086. 25 Write about the sources of interrupts. 26 Explain hardware interrupts. UNIT - II 1 Define addressing mode. Write the names of 8086 addressing 2 Discuss about the immediate addressing mode of 8086 with examples 3 Define & explain the use of relative plus addressing mode. 4 Explain the instructions formats in 8086. 5 Define an instruction, opcode & operands.

6 Discuss the following instructions of 8086. a) ADC b) AAS c) IMUL d) CBW 7 Explain the meaning of following instructions. a) MOV BX,[1234H] b) ADC AX,BX 8 Discuss the instructions which will not affect flag registers. 9 Explain ESC, NOP & LOCK instructions of 8086. 10 Explain PUSH & POP instructions. 11 Explain XLAT instructions. 12 Describe the 16- bit registers are present in 8086. 13 Distinguish the TEST & logical AND instructions. 14 Explain stack pointer & instruction pointer. 15 Distinguish the ADD & INC instructions. 16 Explain IN & OUT instructions. 17 Write any two address transfer instructions. 18 Give two conditional jump instructions with an example. 19 Explain NEG, COMP instructions. 20 Define assembler directive. Give any two examples. 21 Explain DAA, AAA instructions. 22 Explain MUL, DIV instructions. 23 Explain rotate instructions. 24 Explain Shift instructions. 25 Define Macro with an example. 26 Define Procedure with an example. 27 Analyze the storage allocation directives. 28 Discuss about the alignment directives. UNIT III Explain why I/O interface required for 8086. 1 2 List out the features of the 8255(PPI). 3 Write how many port lines are present in 8255. 4 Discuss in how many modes 8255 can be operated. 5 Explain BSR mode of operation. 6 Write how many I/O modes of operations present in 8255. 7 Write the applications of stepper motor. 8 Discuss the need for ADC. 9 Write the applications of DAC 10 List out the methods available for ADC.

11 Explain key bouncing. 12 Describe how to eliminate key bouncing. 13 Write the control word format for BSR mode. 14 Write the control word format for I/O mode. 15 Write in which mode of I/O operation Bi-directional 16 Calculate the control port address of 8255 if the base address 17 Explain the function of handshaking signals. 18 Distinguish b e t w e e n s t a t i c a n d d yn a m i c R A M w i t h examples. 19 Explain the purpose of B H E a n d A 0 p i n s o n t h e 8 0 8 6 microprocessor. 20 Define Memory mapped I/O. 21 Define I/O mapped I/O. 22 Explain the purpose of CE or CS pin on a memory chip. 23 Write the input for chip select. 24 Explain, why the interrupt and trap flags cleared as part of the interrupt response. 25 Explain the interrupt response. 26 Define interrupt vector table. 27 Define interrupt service routine. 28 Distinguish t h e d i f f e r e n c e b e t w e e n M a s k a b l e a n d Non- Maskable interrupts. 29 List out the interrupts of 8086. 30 Write the priorities of 8086 interrupts. 31 Write how many interrupts can be handled by PIC. 32 List out the uses of int-03 interrupt. 33 Explain with an example how overflow flag set. 34 Explain what happens when trap flag is set. 35 Explain why serial data transfer is preferred over parallel data transfer. 36 Define synchronous data transfer. 37 Describe the communication. 38 Define modem. 39 Define communication links. 40 Define USART. 41 Write the use of 8251 chip. 42 List out the features of 8251(USART). 43 List out the serial communication standards available. 44 Write the most commonly used signals in RS232. 45 Describe and sketch the frame format of mode word of 8251

46 Distinguish between synchronous and asynchronous serial data transmissiontechniques. 47 Define Baud rate. 48 Write the methods available for error correction during serial data transmission. 49 Write the specifications ofrs232c. Explain framing error and over run error in 50 8251. Describe the status register of 51 8251. 52 Write the use of modem control unit in 8251. UNIT IV Write the differences between microprocessor a n d 1 microcontroller. 2 Discuss which ports of 8051 are bit addressable. 3 Explain why Port 0 needs pull-up resistors. 4 Write out of 128 bytes of RAM in the 8051, how many bytes are bit addressable? List them. 5 Explain how to save the status of P2.7 in RAM location 31. 6 List out the types of addressing modes in microcontroller. 7 Discus about I/O port expansion. 8 Explan how external interrupts are serviced in 8051 Microcontroller. 9 Discuss the flag pattern available in 8051. 10 Write the value of register A after each of the following instructions. MOV A,#26H RR A RR A RR A 11 List o u t the o n -chip r e s o u r c e s a v a i l a b l e i n the 8051 microcontroller. 12 Write the number of register banks in 8051 and say how the CPU knows which bank is currently in use. 13 Explan the controls signals to be used, if8051 microcontroller demands interfacing of external memory. 14 Write the function of the bits PSW.3 & PSW.4. 15 Distinguish polling and interrupt mechanism. Find the value of the PSW register after the execution of the 16 Explain the use of SFR in 8051. List all the SFRs involved in 17 8051. 18 Write the addressing modes supported by 8051. 19 Write one instruction each using the following 20 List out the instructions sets available in 8051.

21 Explain the following instructions in 8051 micro controller. a. SETB 86H b. CLR 87H c. SETB 92H 22 Explain h o w 8051 differentiates internal and external memory. 23 Differentiate t h e given 8051 instructions: MOVC and MOVX. 24 Explain the instructions LJMP and SJMP in 8051. 25 Write the addressing mode used in t h e f o l l o w i n g instructions: MOV R1, #02H and MOV R1, 20H 26 Write the result of the following code & where it is stored. MOV R4, #25H MOV 27 Write the content of register A after the execution of the following code. CLR A ORA A, #99H CPL 28 Write the contents of AC, CY flags if we add 25H and 70H. UNIT V 1 Explain the format of TMOD & TCON. 2 Describe the Timer counter logic diagram. 3 Define serial communication in 8051. 4 List out the advantages of serial data transfer. 5 List the SFRs needed for serial communication in 8051. 6 Explain the use of PCON register. 7 Describe how serial port is used for data transfer. 8 List out functions of SCON register of 8051. 9 Write the different serial data transmission modes in 8051. 10 List the interrupts of 8051. 11 Explain what should be loaded in TCON register to start Timer0 & Timer1. 12 Explain how many interrupts are there in 8051. And name them. 13 Write the highest priority interrupt of 8051. 14 Explain which port in 8051 microcontroller is bit ad dr e ss abl e. 15 Describe the SCON register in 8051. 16 Write the format of IE register in 8051. 17 Explain under what conditions are the TI and RI bits raised. 18 Calculate baud rate in mode-1 operation.

Group - II (Long Answer Questions) UNIT 1 1 Explain the architecture of 8086 with neat diagram. 2 Compare 8085 & 8086 microprocessors. 3 Write the size of 8086 instruction queue and explain how does queue speed up the processing. 4 Explain general purpose & special purpose registers of 8086. 5 Explain the flag register of 8086. 6 Discuss memory segmentation & mention its advantages. 7 Describe the 8086 microprocessor pin-diagram. 8 Discuss about the functions of the following pins. a)test b) RQ/GT0 & RQ/GT1 c) QS0 & QS1 d) S0,S1,S2 9 Explain minimum m od e c o n f i gu r a t i o n o f 8 0 8 6 microprocessor. 10 Explain minimum mode control signals of 8086. 11 Explain maximum mode configuration of 8086 microprocessor. 12 Explain maximum mode control signals of 8086. 13 Explain the read & write timing diagrams for maximum 14 Explain the read & write timing diagrams for minimum mode configuration. 15 Describe the function of the following signals. a) NMI b) c) d) RESET 16 Describe the interrupts of 8086. UNIT II 1 Discuss the instructions formats of 8086.

2 Explain t he vari ous addressing m odes of 8086 wit h examples. 3 Explain Arithmetic instruction set of 8086 examples. 4 Explain data transfer instructions of 8086 with examples. Distinguish macros & procedures. 5 Write short notes on JUMP instructions with examples. 6 Explain the following instructions: i. WAIT ii. HLT iii. ESC iv. NOP 7 Write the uses of Shift & rotate instructions. 8 Differentiate jump & loop instructions. 9 Write short notes on string instructions. 10 Discuss the instructions formats of 8086. 11 Write the logical instructions available in 8086. UNIT III2 1 Describe the architecture of 8255 & explain. 2 Explain the I/O modes of operation. 3 Explain the interfacing diagram of 8255 with 8086. 4 Explain BSR mode of applications. 5 Write BSR control word of 8255 to set pc2 & pc7 & reset them after a time delay. Base address of 8255 is F800H. 6 Explain pin diagram of 8255 PPI. 7 Write an ALP to interface stepper motor with 8086. 8 Explain the control word format of 8255 in I/O & BSR mode. 9 Write a program for 8-bit ADC to sample analog input & store the digital value in memory. 10 Write an ALP to generate square wave. 11 Describe the block diagram of successive approximation method and explain. 12 Explain the interfacing diagram of ADC with 8255. 13 Explain how a stepper motor is interfaced to 8086. 14 Explain how a display device interfaced with 8086. 15 Discuss how a 4 4 key board matrix is connected to 16 Explain how the physical memory of 8086 is organized 17 Explain the interrupt vector table. 18 Write short notes on interrupt service routine. 19 Construct an Interface of two 4k 8 EPROMS & and two 20 Explain about the programmed I/O & interrupt driven I/O. 21 Explain the interrupt sequence in 8086 system.

22 Write short notes on 5 types of interrupts supported by 8086. 23 Describe the 8251 with neat block diagram. 24 Discuss how 8251 is used for serial communication of data. 25 Explain the advantages of using the USART chips in microprocessor based systems. 26 Discuss the types of serial communication. 27 Explain the interfacing of 8251 with 8086 with necessary circuit diagram 28 Discuss the data transmission standards and their specifications 29 Write t h e M O D E M c o n t r o l lines and e xplain the functioning of each line. 30 Explain the pin structure of RS232C & also discuss about voltage & current specifications of RS 232C. 31 Describe the logic diagram to convert TTL to RS232C conversion and RS232C to TTL conversion. UNIT IV 1 Discuss the register set of 8051 and also discuss how memory and I/O addressing is done in 8051. 2 Discuss internal architecture of 8051 microcontroller in detail. 3 Describe the five addressing modes of 8051 microcontroller with example. 4 Sketch and illustrate how to access external memory devices in an 8051 based system. 5 Discuss the internal memory organization of the 8051 microcontroller. 6 Design an 8051 based system with 16 K bytes of program ROM and 16 K bytes of data ROM. 7 Discuss a b o u t the memory organization and special function registers in 8051 microcontroller. 9 Describe the operation of I/O ports in 8051 with neat sketch. 10 Demonstrate the functioning of A & B registers of 8051. 11 List the format of PSW register of 8051 and explain each bit. UNIT V 1 Discuss in detail the various modes of operation of timers in 8051. 2 Express about external hardware interrupt in 8051. 3 Discuss about serial communication in 8051 microcontroller.

4 Label the format of IE & IP formats & explain. 5 Explain the function and operating modes with the associatedregistersoftimer/counterin8051 microcontroller. 6 Write the sequence of events that takes place when the interrupt occurs in 8051. 7 Examine the various SFRs you need while handling the timers/counters. Give the register formats. 8 Explain the various modes of serial port in 8051. 9 Discuss the format & bit definitions of SCON register. 10 Describe the TCON and TMOD registers of 8051.

Group - III (Problem solving &Analytical Questions): UNIT I 1 Calculate the effective address & physical address of the following instructions. (a) IMUL AX, [BP + BX 8D] (b) SBB AL, ES:[ SI + 5D] (c) PUSH AX (d) AND AH, [SI + 42D] (e) CMPSB (f) CMPB DX, [SI] Assume CS = 5000H, DS = 8000H, SS = A000H, ES = B000H, SI = 2000H, DI = 6000H, BP = 1002H, SP = 0002H, AX = 0000H, BX = 5200H, CX = 2000H. 2 Calculate the physical address is represented by i) 4370:561EH ii) 7A32:0028H 3 Evaluate the physical address of the top of the stack? If the stack segment register contains 3000h and the stack pointer register contains 8434H. 4 Identify the memory address of the next instruction executed by the microprocessor, when operated in the real mode, for the following CS:IP combinations: a) CS = 1000H and IP = 2000H b) CS= 2000h and IP=10000h UNIT II 1 Write a program to read ASCII code after a strobe signal is sent from a Keyboard. 2 Develop a program to add a profit factor to each element in a cost array and puts the result in a prices array. 3 Write an ALP for add a 5-byte number in one array to a 5 byte in another array. Put the sum in another array. Put the state of the carry flag in byte 6 of the array that contains the sum. The first value in each array is the least significant byte of that number. 4 Write a delay loop which produces a delay of 500µsec on an 8086 with 5-MHz clock. 5 Write an assembly language program to find factorial of a given number. 6 Write an assembly language program to find sum of squares.

7 Write an assembly language program to find number of positive & negative numbers from a given array. 8 Write an assembly language program to convert ASCII to BCD. 9 Write an ALP to find cube of an 8-bit hexadecimal number. 10 Write an ALP to display IARE MPMC LAB on the screen. 11 Write an ALP to convert a given sixteen bit binary number to its gray equivalent. UNIT III 1 Model a Control Words When the Port Of Intel 8255A defined as follows: Port A as an O/P port, mode of the port a is mode-0, port B as an O/P port, mode of the Port B is mode-0. 2 Construct an Interfacing DAC AD7523 with an 8086 CPU running at 8MHZ and write an assembly language program to generate a sawtooth waveform of period 1ms with Vmax 5V. 3 Write an ALP for stepper motor interfacing by using loop instructions. 4 Construct an interface two chips of 32k 8 PROM & four chips of 32k 8 RAM with 8086, according to the Following map. ROM 1 & 2 F0000H-FFFFFH, RAM 1 & 2 D0000H- DFFFFH RAM 3 & 4 E0000H-EFFFFH. Show t h e implementation of this memory system. 5 Illustrate the status register of 8251 for the given statement. Read status register and wait for DSR and TxRDY to become active. One active, get character from PC keyboard using INT B8H (keyboard routine). 6 Write an ALP for to transfer the data serially. 7 Identify the errors in receiving the data from asynchronous mode of operation using 8251. 8 Write the sequence of instructions required to initialize 8251 at address A0H and A1H for the configuration

UNIT IV 1 Write 8051 program to convert packed BCD number available in accumulator, into two ASCII numbers and save t hem in internal RAM locations 48H and 49H. 2 Develop 8051 program to move a block of data from external program memory to external data memory. 3 Use PUSH instruction to put the number 82H in RAM locations 34H to 37H. also write same program without PUSH instruction. 4 Generate a program in 8051 to count number of zero bits available in a byte available in external RAM at 1000h. Store zero bit count in internal RAM location 60H. 5 Write 8051 program to OR the contents of port 1 and port 2, put the result in external RAM location 0102h. UNIT V 1 Indicate when the TF0 flag is raised for the following program. MOV TMOD, #01H MOV TL0, #12H MOV 2 Examine the TH1, TL1 value to generate a time delay of 5ms. Timer 1 is programmable in mode 1. Assume that XTAL = 16MHz 3 Write a Program for Timer 1 to generate a square wave of 1 khz. Assume that XTAL = 11.0592MHz.