27

GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

  • Upload
    lekhanh

  • View
    289

  • Download
    7

Embed Size (px)

Citation preview

Page 1: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit
Page 2: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

GUJARAT TECHNOLOGICAL UNIVERSITY

COMPUTER ENGINEERING

MICROPROCESSOR AND INTERFACING

SUBJECT CODE: 2150707

B.E. 5TH SEMESTER

Type of course: Core course

Prerequisite: Fundamentals of Digital Logic Design and Computer Organization

Rationale: The modern digital systems including computer systems are designed with microprocessor as

central device connected to memory and I/O devices. The subject introduces the students with basics of

microprocessor, microprocessor architecture and programming, interfacing microprocessor with memory

and various I/O (Input/Output) devices and introduction to the advance processors including RISC based

processors.

Teaching and Examination Scheme:

Teaching Scheme Credits Examination Marks Total

Marks L T P C Theory Marks Practical Marks

ESE

(E)

PA (M) ESE (V) PA

(I) PA ALA ESE OEP

4 0 2 6 70 20 10 20 10 20 150

Content:

Sr.

No.

Content Total

HRS

%

Weight

age

1 Introduction to Microprocessor, Components of a Microprocessor:

Registers, ALU and control & timing, System bus (data, address and control

bus), Microprocessor systems with bus organization

4 8%

2 Microprocessor Architecture and Operations, Memory, I/O devices,

Memory and I/O operations

4 7%

3 8085 Microprocessor Architecture, Address, Data And Control Buses, 8085

Pin Functions, Demultiplexing of Buses, Generation Of Control Signals,

Instruction Cycle, Machine Cycles, T-States, Memory Interfacing

6 10%

4 Assembly Language Programming Basics, Classification of Instructions,

Addressing Modes, 8085 Instruction Set, Instruction And Data Formats,

Writing, Assembling & Executing A Program, Debugging The Programs

6 10%

5 Writing 8085 assembly language programs with decision, making and

looping using data transfer, arithmetic, logical and branch instructions

6 10%

6 Stack & Subroutines, Developing Counters and Time Delay Routines, Code

Conversion, BCD Arithmetic and 16-Bit Data operations

6 10%

7 Interfacing Concepts, Ports, Interfacing Of I/O Devices, Interrupts In 8085,

Programmable Interrupt Controller 8259A, Programmable Peripheral

Interface 8255A

8 15%

8 Advanced Microprocessors :

8086 logical block diagram and segments, 80286: Architecture, Registers

8 20%

Page 3: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

(Real/Protected mode), Privilege levels, descriptor cache, Memory access in

GDT and LDT, multitasking, addressing modes, flag register

80386: Architecture, Register organization, Memory access in protected

mode, Paging

80486 : Only the technical features

Pentium : Architecture and its versions

9 SUN SPARC Microprocessor: Architecture, Register file, data types and

instruction format

2 5%

10 ARM Processor: Architecture features, Logical block diagram of ARM7

architecture

2 5%

Suggested Specification table with Marks (Theory):

Distribution of Theory Marks

R Level U Level A Level N Level E Level C Level

12 20 24 6 4 4

Legends: R: Remembrance; U: Understanding; A: Application, N: Analyze and E: Evaluate C:

Create and above Levels (Revised Bloom’s Taxonomy)

Note: This specification table shall be treated as a general guideline for students and teachers. The actual

distribution of marks in the question paper may vary slightly from above table.

Reference Books:

1. Microprocessor Architecture, Programming, and Applications with the 8085, Ramesh S. Gaonkar

Pub: Penram International.

2. Microprocessors and Interfacing, N. Senthil Kumar, M. Saravanan, S. Jeevanathan, S. K. Shah,

Oxford

3. Advanced Microprocessors, Daniel Tabak, McGrawHill

4. Microprocessor & Interfacing - Douglas Hall, TMH

5. 8086 Programming and Advance Processor Architecture, Savaliya M. T., WileyIndia

6. The 8088 and 8086 Microprocessors, Triebel & Singh, Pearson Education

Course Outcome:

After learning the course the students should be able to:

- List and specify the various features of microprocessor, memory and I/O devices including

concepts of system bus.

- Identify the various elements of 8085 microprocessor architecture, its bus organization including

control signals.

- List the pin functions of the 8085 microprocessor.

- Describe the 8085 processor addressing modes, instruction classification and function of each

instruction and write the assembly language programs using 8085 instructions.

- Explain the concepts of memory and I/O interfacing with 8085 processor with Programmable

devices.

- List and describe the features of advance microprocessors.

Page 4: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

List of Experiments:

Practical list should be prepared based on the content of the subject and following guidelines should be

useful.

- 8085 assembly language programmes covering all the instructions.

- Interfacing practicals using I/O instructions

Following list gives some programming examples. Teacher can prepare their own list in same manner

keeping above guidelines and syllabus in mind.

1. Write an 8085 assembly language program for exchanging two 8-bit numbers stored in memory

locations 2050h and 2051h.

2. Write an 8085 assembly language program to add two 8-bit numbers stored in memory locations

2050h and 2051h. Store result in location 2052h.

3. Write an 8085 assembly language program to add two 16-bit numbers stored in memory.

4. Write an 8085 assembly language program to add two decimal numbers using DAA instruction.

5. Write an 8085 assembly language program to find the minimum from two 8-bit numbers.

6. Write an 8085 assembly language program to get the minimum from block of N 8-bit numbers.

7. Write an 8085 assembly language program to add block of 8-bit numbers.

8. Write an 8085 assembly language program to find the number of 1’s binary representation of given

8-bit number.

9. Write an 8085 assembly language program to count the length of string ended with 0dh starting

from location 2050h.

10. Write an 8085 assembly language program to covert given hex digit to its equivalent ASCII

number.

11. Write an 8085 assembly language program to compute even parity and insert it as MSB in 8-bit

number.

12. Write a subroutine to exchange two 8-bit numbers. Use it to reverse an array of 8-bit numbers.

Design based Problems (DP)/Open Ended Problem:

1. Develop an 8085 Assembly language program to implement the Booth’s algorithm to multiply two

8-bit numbers.

2. Develop an 8085 Assembly language program to implement division of two 8-bit numbers.

3. Design a program for Digital Clock with format HH:MM:SS (Address and data field) using inbuild

routines of monitor program of your system.

4. Compare the microprocessor and microcontrollers from hardware and software point of view.

5. Prepare a detail report on evaluating overall performance of a microprocessor chip.

Major Equipment:

- 8085 based microprocessor kit

- Modern desktop PC with open source 8085 Simulator

List of Open Source Software/learning website:

- Open source simulator for 8085 processor

- www.nptel.ac.in

- www.intel.com

- www.cpu-world.com

Page 5: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

ACTIVE LEARNING ASSIGNMENTS: Preparation of power-point slides, which include videos,

animations, pictures, graphics for better understanding theory and practical work – The faculty will allocate

chapters/ parts of chapters to groups of students so that the entire syllabus to be covered. The power-point

slides should be put up on the web-site of the College/ Institute, along with the names of the students of the

group, the name of the faculty, Department and College on the first slide. The best three works should

submit to GTU.

Page 6: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

1/2

Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY BE - SEMESTER–V (NEW) - EXAMINATION – SUMMER 2017

Subject code: 2150707 Date: 01/05/2017

Subject Name: Microprocessor and Interfacing

Time: 02:30 PM to 05:00 PM Total Marks: 70

Instructions: 1. Attempt all questions.

2. Make suitable assumptions wherever necessary.

3. Figures to the right indicate full marks.

Q.1 Answer the following questions:

i. Differentiate between higher level language and assembly level language.

ii. What is the function of ALE pin?

iii. Name different types of machine cycles executed by the 8085 microprocessor?

iv. What will be done if OUT 50h instruction is executed?

v. Write the set of 8085 assembly language instructions to store the contents of B

and C registers on the stack.

vi. Draw the structure of a flag register of the 8085 microprocessor.

vii. How much time the 8085 microprocessor will take to execute the MOV B, A

instruction, if the crystal frequency is 4MHz?

viii. Explain the STA instruction of the 8085 microprocessor with example.

ix. What is the difference between ORA and ORI instructions?

x. Explain the use of 7/BHE S pin of the 8086 microprocessor.

xi. Enlist various segment registers available in the 8086 microprocessor.

xii. Draw the format of a flag register of the 8086 microprocessor.

xiii. State various types of registers available in programmable interrupt controller

(8259).

xiv. What will be the physical address (PA), if CS and IP register contents of the 8086

microprocessor are 2000h and 20h, respectively?

01

01

01

01

01

01

01

01

01

01

01

01

01

01

Q.2 (a) Explain DAA and LDA instructions of the 8085 microprocessor with examples. 03

(b) Draw the timing diagram of MVI A, 32H instruction of an 8085 microprocessor. 04

(c) An array of ten data bytes is stored on memory locations 2100H onwards. Write an

8085 assembly language program to find the largest number and store it on memory

location 2200H.

07

OR

(c) An array of twenty data bytes is stored on memory locations 2000H onwards. Write

an 8085 assembly language program to count the number of zeros, odd numbers and

even numbers and store them on memory locations 3000H, 3001H and 3002H,

respectively.

07

Page 7: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

2/2

Q.3 (a) Draw the interfacing of a 4K EPROM having a starting address 2000HH with 8085

microprocessor. Use demultiplexed address/data lines and 3-to-8 decoder (74LS138).

03

(b) Write a set of 8085 assembly language instructions to generate a 0.5 second delay, if

the crystal frequency is 4 MHz.

04

(c) Write an 8085 assembly language program to count the number of bytes that are

greater than 2010 and lesser than 4010 from an array of ten bytes stored on memory

locations 2000H onwards. Store such numbers on memory locations 3000H onwards.

07

OR

Q.3 (a) Describe various addressing modes of 8085 microprocessor with examples. 03

(b) Show all the necessary connections to interface eight LEDs using an output port with

address 39H with 8085 microprocessor. Assume demultiplexed address/data lines.

04

(c) Write an 8085 assembly language program sort an array of twenty bytes stored on

memory locations 2000H onwards in descending order.

07

Q.4 (a) Enlist the sequence of steps occur when the interrupt request is placed on the INTR

pin of the 8085 microprocessor.

03

(b) Define the concept of subroutine. Explain the CALL and RET instructions of the

8085 microprocessor with example.

04

(c) State the difference between the vectored and non-vectored interrupts. Explain

vectored interrupts of the 8085 microprocessor.

07

OR

Q.4 (a) What is the need of the programmable interrupt controller (8259A)? Draw and

explain the block diagram of 8259A.

03

(b) Explain the SIM and RIM instructions of the 8085 microprocessor. 04

(c) Draw and explain the block diagram of the programmable peripheral interface

(8255A).

07

Q.5 (a) Describe the importance of bus interface unit (BIU) and execution unit (EU) the 8086

microprocessor.

03

(b) Differentiate between the real mode and protected mode of the 80286 microprocessor. 04

(c) Explain, in brief, various addressing modes of the 80286 microprocessor. 07

OR

Q.5 (a) Explain the following pins of the 8086 microprocessor: TEST , LOCK 03

(b) Briefly explain the virtual 8086 mode of the 80386 microprocessor. 04

(c) What is a descriptor table? What is its use? Dedifferentiate between GDT and LDT. 07

*************

Page 8: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

1/2

Seat No.: ________ Enrolment No.______________ GUJARAT TECHNOLOGICAL UNIVERSITY BE - SEMESTER–V(New) • EXAMINATION – WINTER 2016

Subject code: 2150707 Date:19/11/2016 Subject Name: Microprocessor and Interfacing Time: 10:30 AM to 01:00 PM Total Marks: 70 Instructions:

1. Attempt all questions. 2. Make suitable assumptions wherever necessary. 3. Figures to the right indicate full marks.

Q.1 Answer the following questions:

i. Differentiate between assembly level language and machine level language. ii. How many distinct instruction codes can be generated by an 8085 microprocessor?

Why? iii. State the importance of X1 and X2 pins of an 8085 microprocessor. iv. What is an interrupt? Enlist the hardware interrupt sources (pins) available on the

8085 microprocessor chip. v. State the uses of program counter and stack pointer registers of an 8085

microprocessor. vi. How many flags are available in an 8085 microprocessor? State the importance of

an auxiliary carry (AC) flag. vii. How much time an 8085 microprocessor will take to execute the LXI B, 4000H

instruction, if the crystal frequency is 4MHz? viii. Explain the PCHL instruction of an 8085 microprocessor with example. ix. Write a set of 8085 assembly language instructions to unpack the upper nibble of

a BCD number. x. Explain the use of READY pin of an 8085 microprocessor. xi. Enlist various segment registers available in an 8086 microprocessor. xii. Draw the format of a flag register of an 8086 microprocessor. xiii. State various types of registers available in programmable interrupt controller

(8259). xiv. What will be the physical address (PA), if CS and IP register contents of an 8086

microprocessor are 2500h and 0002h, respectively?

01

01

01

01

01

01

01

01 01

01

01

01 01

01

Q.2 (a) Define the terms: T-state, Machine cycle. How many machine cycles and t-states will be required to execute the LHLD instruction?

03

(b) Draw the timing diagram of MOV M, B instruction of an 8085 microprocessor. 04

(c) An array of ten data bytes is stored on memory locations 2100H onwards. Write an 8085 assembly language program to find the bytes having complemented nibbles (e.g. 2DH, 3CH, 78H etc.) and store them on a new array starting from memory locations 2200H onwards.

07

Page 9: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

2/2

OR (c) An array of twenty data bytes is stored on memory locations 4100H onwards. Write an

8085 assembly language program to remove the duplicate entries from the array and store the compressed array on a new array starting from memory locations 4200H onwards.

07

Q.3 (a) Draw the interfacing of a 2K EPROM having an ending address 0FFFH with 8085 microprocessor. Use demultiplexed address/data lines and 3-to-8 decoder (74LS138).

03

(b) Write a set of 8085 assembly language instructions to generate a 1 second delay, if the crystal frequency is 6 MHz.

04

(c) Write an 8085 assembly language program to count the number of bytes that are greater than 2510 and lesser than 6510 from an array of twenty bytes stored on memory locations 2000H onwards. Store such numbers on memory locations 2100H onwards.

07

OR

Q.3 (a) Describe various addressing modes of 8085 microprocessor with examples. 03

(b) Show all the necessary connections to interface eight LEDs using an output port with address 45H with 8085 microprocessor. Use demultiplexed address/data lines and 3-to-8 decoder (74LS138).

04

(c) Write an 8085 assembly language program to count the positive numbers, negative numbers, zeros and to find the maximum number from an array of twenty bytes stored on memory locations 2000H onwards. Store these three counts and the maximum number on memory locations 3001H to 3004H, respectively.

07

Q.4 (a) Differentiate between the hardware and software interrupts. How many such interrupts are available in 8085 microprocessor?

03

(b) Define the concepts of stack and subroutine. Explain the PUSH and POP instructions of an 8085 microprocessor with example.

04

(c) What is the need of the programmable interrupt controller (8259A)? Draw and explain the block diagram of 8259A.

07

OR

Q.4 (a) State the difference between vectored and non-vectored interrupts. Explain vectored interrupts of 8085 microprocessor.

03

(b) Explain the SIM and RIM instructions of an 8085 microprocessor. 04

(c) With necessary diagrams, explain mode 1 of the programmable peripheral interface (8255A) with necessary diagrams.

07

Q.5 (a) Describe the importance of bus interface unit (BIU) and execution unit (EU) an 8086 microprocessor.

03

(b) Differentiate between the real mode and protected mode of an 80286 microprocessor. 04

(c) Explain the paging mechanism in an 80386 microprocessor. 07

OR

Q.5 (a) Explain the following pins of an 8086 microprocessor: BHE , / 0RQ GT 03

(b) Explain, in brief, various addressing modes of an 80286 microprocessor. 04

(c) Explain the major architectural features of a SUN SPARC processor. 07

*************

Page 10: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

1

Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY BE - SEMESTER–V (NEW) - EXAMINATION – SUMMER 2016

Subject Code:2150707 Date:09/05/2016 Subject Name:Microprocessor and Interfacing Time:02:30 PM to 05:00 PM Total Marks: 70 Instructions:

1. Attempt all questions. 2. Make suitable assumptions wherever necessary. 3. Figures to the right indicate full marks.

Q.1 a) Draw the functional block diagram of internal architecture of IC 8085 and

Explain its working. 07

b) Write an 8085 program to copy block of five numbers starting from location

2001h to locations starting from 3001h. 07

Q.2 a) Explain the Architecture of Pentium Processor. 07

b) List and Explain categories of 8085 instructions that deal with data transfer. 07

OR

b) Explain the working of rotate instructions of 8085 with proper example in each

case. 07

Q.3 a) Draw and explain block diagram of 8255A programmable peripheral interface

device. What do you mean by BSR mode? 07

b) How many machine cycles are required to execute MVI A,32H instruction?

Draw compete timing diagram with each machine cycle and find execution time

for instruction with assume clock frequency f=2 MHz

07

OR

Q.3 a) Draw and explain programmable interrupt controller 8259A. 07

b) How many machine cycles are required to execute MOV r,M instruction?

Draw compete timing diagram with each machine cycle and briefly explain it. 07

Q.4 a) Write ALP to calculate the factorial of a number between 0 to 8. 07

b) Explain RIM and SIM instructions with pseudo code example. 07 OR

Q.4 a) Write ALP for displaying binary up counter. Counter should count numbers from

00H to FFH and it should increment after every 0.5 sec. (use 8085 operating

frequency =2MHz)

07

b) Explain subroutine with proper example. 07

Q.5 a) Explain the architecture of the 80386 with a neat block diagram. 07

b) Discuss the features of ARM Processor. 07

OR

Q.5 a) Describe the architecture of the 80286 with a neat block diagram. 07

b) Draw and explain architecture of SUN SPARC. 07

*************

Page 11: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

1

Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY BE – SEMESTER – V (NEW) EXAMINATION – WINTER 2015

Subject Code: 2150707 Date:08/12/ 2015

Subject Name: Microprocessor And Interfacing

Time: 10:30am to 1:00pm Total Marks: 70 Instructions:

1. Attempt all questions.

2. Make suitable assumptions wherever necessary.

3. Figures to the right indicate full marks.

Q:1 (a) Answer the following Questions:

i. How many maximum memory locations and I/O devices can be addressed

by an 8085 microprocessor?

ii. How much time will be required to execute the STAX B instruction if the

clock frequency is 4 MHz?

iii. Explain the CMP instruction with the help of an example.

iv. Explain the use of HOLD and HLDA pins of 8085 microprocessor.

v. State the difference between opcode fetch (OF) and memory read (MR)

cycles.

01

01

02

02

01

(b) Draw the timing diagram of the instruction: LXI B, 2100H. Explain all the

stages of instruction execution.

07

Q.2 (a) Explain following instructions with no. of bytes, machine cycles and T-states

required for execution: 1. LHLD 2. RAR 3. XTHL 4. ADI

07

(b) Write an 8085 assembly language program to separate out the numbers

between 2010 and 4010 from an array of Ten numbers stored on memory

locations 2000H onwards. Store the separated numbers on a new array from

3000H onwards.

07

OR

(b) An array of Ten numbers is stored from memory location 2000H onwards.

Write an 8085 assembly language program to separate out and store the EVEN

and ODD numbers on new arrays from 2100H and 2200H, respectively.

07

Q.3 (a) Design an 8085 microprocessor system such that it should contain 16KByte

of EPROM and 4KByte of RAM with starting addresses 0000H and 4000H

respectively. Use two 8KByte of EPROMs (2764) and two 2KByte of RAMs

(6116) for this system.

07

(b) Write an 8085 assembly language program to generate a decimal counter

(which counts 0 to 9 continuously) with a one second delay in between. Also

write a subroutine DELAY for generating a 1 second delay. Assume a crystal

frequency of 2MHz.

07

OR

Page 12: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

2

Q.3 (a) Draw an interfacing diagram to connect 8 DIP switches through input port

with address 55H and 8 LEDs through output port with address AAH with

8085 microprocessor.

07

(b) What is an ISR? Differentiate between a Subroutine and an ISR. Write an 8085

assembly language program to continuously read an input port with address

50H. Also write an ISR to send the same data to output port with address A0H

when 8085 receives an interrupt request on its RST 5.5 pin.

07

Q.4 (a) Explain the block diagram of 8255- Programmable Peripheral Interface. 07

(b) Write an 8085 assembly language program to convert a two-digit BCD number

into its equivalent hexadecimal number. 07

OR

Q.4 (a) Explain the block diagram of 8259- Programmable Interrupt Controller. 07

(b) Write an 8085 assembly language program to convert an 8-bit hexadecimal

number into its equivalent decimal number. 07

Q.5 (a) List the four major processing units in an 80286 microprocessor and briefly

describe the function of each. 07

(b) Explain the Page Table and Page Directory Entry with example. 07

OR

Q.5 (a) Briefly explain the virtual 8086 mode of 80386 microprocessor. 07

(b) What is a descriptor table? What is its use? Dedifferentiate between GDT and

LDT. 07

*************

Page 13: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

1

Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY BE - SEMESTER–IV (OLD) - EXAMINATION – SUMMER 2017

Subject Code: 140701 Date: 01/06/2017 Subject Name: Microprocessor And Interfacing Time: 10:30 AM to 01:00 PM Total Marks: 70 Instructions:

1. Attempt all questions. 2. Make suitable assumptions wherever necessary. 3. Figures to the right indicate full marks.

Q.1 (a) Draw and Explain Internal Architecture of 8085 Microprocessor. 07

(b) Draw and Explain De-multiplexing of Multiplexed Address/Data bus and

control signal generation in 8085 Microprocessor.

07

Q.2 (a) Explain the interrupt types and priorities in 8085 with necessary diagram. 07

(b) Define Addressing Mode. Explain various addressing modes supported by 8085

with suitable example.

07

OR

(b) What is stack and stack pointer? Explain working of PUSH and POP instruction

with suitable example.

07

Q.3 (a) Briefly explain different parameters used for ADC. Explain interfacing scheme

for 8-bit ADC with 8085 Microprocessor

07

(b) Design an Interfacing circuit to connect 4k×8 EPROM with starting address

from 0000H and 2k×8 RAM starting address 2000H onwards.

07

OR

Q.3 (a) Compare (a). Memory mapped I/O with I/O mapped I/O

(b). Absolute Decoding with Partial Decoding.

07

(b) Write short note on Memory Classification. 07

Q.4 (a) Explain 8255 Programmable Peripheral Interface Chip with Block Diagram. 07

(b) Explain 8254 Programmable Interval Timer Chip with Block Diagram. 07

1

OR

Q.4 (a) Explain 8279 Keyboard and Display Interface Chip with Block Diagram 07

(b) Explain 8237 DMA Controller with Block Diagram. 07

Q.5 (a) Write a program to add any ten byte type hexadecimal numbers. Store the

results LSB (Sum) at 4000H and MSB (Carries) at 4001H.

07

(b) Write an 8085 program to count the number of odd numbers in a block of ten

numbers. Number is odd, if it’s LSB = 1. Store your answer in ACC.

07

OR

Q.5 (a) Write a program for 8085 to generate a square wave with period of 400μs. Use

bit D0 to output the square wave. The system clock period is 325ns

07

(b) Write a program to sort set of marks scored by ten students in a database course

in descending order. (assume data stored at memory location 2050h)

07

***************

Page 14: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

1

Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY BE - SEMESTER–IV(OLD) • EXAMINATION – WINTER 2016

Subject Code:140701 Date:19/11/2016

Subject Name:Microprocessor And Interfacing

Time: 02:30 PM to 05:00 PM Total Marks: 70 Instructions:

1. Attempt all questions.

2. Make suitable assumptions wherever necessary.

3. Figures to the right indicate full marks.

Q.1 (a) Answer the following questions: (3+2+2 Marks) 07

1. Describe the operation of the following instructions of 8085 with example.

(i) DI (ii) LHLD (iii) SPHL

2. Write the addressing mode for the following instructions of 8085.

(i) JMP 2070 (ii) STAX B (iii) LDA 3000 (iv) ADD M

3. Compare assembly level language with high-level language.

(b) Answer the following questions: 07

1. If the memory chip size is 2048 X 4 bits, how many chips are required to

make up 16K bytes of memory?

2. Why are the program counter and the stack pointer 16-bit registers?

3. Draw the format for flag register in 8085 microprocessor.

4. The memory map of memory chip begins at the location C000H and ends at

location FFFFH. How many address lines are necessary for the chip?

5. Specify the crystal frequency required for an 8085 system to operate at

1.1MHz

6. How many times the following loop will be executed.

LXI B,0007H

LOOP: DCX B

JNZ LOOP

7. Write any two 1-byte instructions to load 00H into register A.

Q.2 (a) What is difference between absolute decoding and partial decoding? Design an

interfacing circuit for the memory system to meet the following specifications:

(Use 3-to-8 decoder for interfacing circuit)

07

1. 1K byte R/W memory- address range should begin at 8000 H.

2. 8K byte ROM1- address range should begin at 0000 H.

3. 8K byte ROM2- address range should begin at E000 H.

(b) Explain 8085 bus organization in detail and answer the following questions: 07

1. Why data bus is bidirectional while address bus is unidirectional?

2. Explain with a sketch how demultiplexing of AD7-AD0 bus takes place.

OR

(b) Answer the following questions: 07

1. Distinguish between memory mapped I/O and peripheral mapped I/O.

2. Identify the control signal for the fourth machine cycle of the instruction

STA 8000 and explain fourth machine cycle with neat timing diagram.

Q.3 (a) Draw the circuit for generating Read/Write control signals for memory and I/O.

Also explain the function of the following pins of 8085 microprocessor.

(i) READY (ii) S1 and S0 (iii) HLDA (iv) RESET OUT

07

Page 15: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

2

(b) For instruction IN 05H explain sequence of events taking place in each machine

cycle using timing diagram. For illustration consider instruction is stored in

memory locations 2070H and 2071H.

07

OR

Q.3 (a) Discuss the use of stack for subroutine. Explain stack operations in 8085

microprocessor using PUSH and POP instructions. Compare it with CALL&

RET instructions.

07

(b) What are the vectored interrupts? Distinguish between the hardware & software

interrupts and explain SIM instruction in detail.

07

Q.4 (a) A set of five readings is stored in memory starting at 2070H. Write a program to

sort the readings in ascending order. (Assume suitable data)

07

(b) Answer the following questions: (5+2 Marks) 07

1. A string of six data bytes is stored starting from memory locations 2050H.

The string includes some blanks (bytes with zero value). Write a program to

eliminate the blanks from the string.

2. Specify the contents of flags Z and CY as the following instructions are

executed.

SUB A

DCR A

INR A

SUI 01H

OR

Q.4 (a) A binary number is stored in memory location 2050H. Write a program to

convert the number into BCD, and store each BCD as two unpacked BCD digits

in the output buffer. (Assume suitable data)

07

(b) Answer the following questions: (5+2 Marks) 07

1. Write a program to generate a square wave with period of 400μs. Use bit D7

to output the square wave. (Assume system clock period is 325ns)

2. Specify the contents of accumulator and flag CY when the following

instructions are executed.

MVI A, C5H

ORA A

RAL

RRC

Q.5 (a) Write note on 8279 programmable keyboard/display interface. 07

(b) With the help of simplified block diagram explain the internal architecture of IC

8255A and answer the following questions.

1. Draw the control word for BSR mode.

2. Specify the handshake signals if port A is set up as an output port in mode 1.

07

OR

Q.5 (a) Describe the block diagram of 8259A programmable interrupt controller and

explain 8259A interrupt operation in the simplest format.

07

(b) Answer the following questions: (4+3 Marks) 07

1. Explain any two working modes of IC 8254-Programmable interval timer.

2. Explain importance of DMA.

*************

Page 16: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

1

Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY BE - SEMESTER–IV EXAMINATION – SUMMER 2016

Subject Code:140701 Date:30/05/2016 Subject Name:Microprocessor And Interfacing Time:10:30 AM to 01:00 PM Total Marks: 70 Instructions:

1. Attempt all questions. 2. Make suitable assumptions wherever necessary. 3. Figures to the right indicate full marks.

Q.1 (a) Draw the functional block diagram of 8085 microprocessor & explain in Brief. 07

(b) Discuss various addressing modes with suitable Examples. 07

Q.2 (a) Describe the De-multiplexing of address bus in 8085. 07

(b) Draw the timing diagram for the instruction MVI A, 32H at memory location

2000H and 2001H 07

OR

(b) Explain flag register of 8085 microprocessor. 07

Q.3 (a) Compare memory mapped I/O with peripheral mapped I/O 07

(b) Explain PUSH and POP instructions. 07

OR

Q.3 (a) Listout various arithmetical and logical instruction of 8085 microprocessor.

Explain any two with suitable example. 07

(b) Write an assembly language program to load any no in Register C. Find no of

1’s and 0’s. Store no. of 1’s in reg. D and no of 0’s in register E. 07

Q.4 (a) Draw & explain block diagram of 8259. 07

(b) With the help of block diagram explain the internal architecture of IC 8255

and describe its working in BSR mode. 07

OR

Q.4 (a) Write short notes on 8279 Keyboard / Display interface. 07

(b) Describe various modes of 8253 timer. 07

Q.5 (a) Total 16 data stored at memory location 4050h to 405Fh. Write program to

copy these data into memory location 3000h to 300Fh. 07

(b) Explain successive approximation type ADC. 07

OR

Q.5 (a) What is conditional &unconditional branching? Illustrate the answer with

suitable example. 07

(b) Explain RIM & SIM instructions. 07

*************

Page 17: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

1

Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY BE - SEMESTER–IV EXAMINATION – WINTER 2015

Subject Code: 140701 Date:22/12/2015

Subject Name: Microprocessor and Interfacing

Time: 02:30pm to 05:00pm Total Marks: 70 Instructions:

1. Attempt all questions.

2. Make suitable assumptions wherever necessary.

3. Figures to the right indicate full marks.

Q.1 (a) Answer the following:

(i) Why is data bus bidirectional in 8085?

(ii) Why are Program Counter and Stack Pointer registers 16-bits?

07

(b) Answer the following:

(i) How many address lines are needed on 2K (2048) bytes of memory?

Explain.

(ii) If the memory chip size is 1024x4 bits, how many chips (ICs) are

required to make up 8K (8096) bytes of memory? Explain

07

Q.2 (a) Compare memory mapped I/O and I/O mapped I/O. 07

(b) Explain architecture of 8085 microprocessor with block diagram. 07

OR

(b) Explain addressing modes available in 8085 assembly language with example. 07

Q.3 (a) Explain RIM and SIM instructions. 07

(b) Draw and explain block diagram of 8259A interrupt controller. 07

OR

Q.3 (a) What is interrupt? Explain interrupts available on 8085. 07

(b) Explain conditional and unconditional branching instructions with example. 07

Q.4 (a) Write an Assembly Language Program for delay of 600 millisecond. Make necessary

assumptions and write assumptions clearly.

07

(b) Explain following instructions:

(1) LDAX D (2) DAD B (3) PCHL (4) DAA (5) LDA 2040H (6) XCHG (7) EI

07

OR

Q.4 (a) What is direct memory transfer? Explain 8257 DMA controller with block diagram. 07

(b) Write a program to find negative numbers in given set of data stored from 8000h to

800Fh. Store all negative numbers at memory location starting from A030h.

07

Q.5 (a) Write short note, with block diagram, on Programmable Peripheral Interface. 07

(b) Write a program to generate a rectangular wave with 200 Microseconds ON period

and 400 Microseconds OFF period. Make necessary assumptions and write them

clearly

07

OR

Q.5 (a) Write short note on keyboard/display interface (8279) with block diagram. 07

(b) A set of numbers are stored in memory locations starting from C050H. The end of

the data string is indicated by the data byte 00H. Add the numbers. The answer may

be larger than FFH. Store the result in the locations D070H and D071H.

07

*************

Page 18: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY BE - SEMESTER–IV • EXAMINATION – SUMMER-- 2015

Subject Code:140701 Date: 28/05/2015 Subject Name: Microprocessor and Interfacing Time: 10.30am-01.00pm Total Marks: 70 Instructions:

1. Attempt all questions. 2. Make suitable assumptions wherever necessary. 3. Figures to the right indicate full marks.

Q.1 (a) Draw the internal architectural block diagram of 8085 microprocessor and

explain each block and working of 8085 in detail. 07

(b) State the functions of the following instruction. 1) PUSH PSW 2) XCHG 3) PCHL 4) XTHL

5) SIM 6) DAA 7) LHLD

07

Q.2 (a) Answer following questions. 1) The memory address of the last location of a 1K byte memory chip is

given as FBFFH. Specify the starting address. 2) How many bits are stored by a 256 x 4 memory chip? Can this chip be

specified as 128-byte memory? 3) Why program counter and stack pointer is a 16 bit register? 4) If the memory chip size is 1024 x 4 bits, how many chips are required to

make up 2K bytes of memory? 5) Why the number of output ports in I/O mapped I/O is restricted to 256

ports? In I/O mapped I/O, the input and output ports can have the same 8-bit address than how does the microprocessor differentiate between the input and output ports?

6) What operations can be performed by using the instructions… a) ADD A b) XRA A

7) Explain why a latch is used for output port but a tri state buffer can be used for an input port.

07

(b) Draw the timing diagram for the instruction STA 3050 H and explain in detail. If the processor clock is 3 MHz calculate the time required to execute the instruction.

07

OR (b) Define T-state, machine cycle and instruction cycle. Draw the timing diagram for

the instruction IN AA h. 07

Q.3 (a) A data array of length 16 (Decimal) has been stored in the memory address starting from 3000H. Write an ALP to arrange the data in ascending order as well as in descending order and store the result in the memory location starting from 2000H and 2050H respectively.

07

(b) Write a program for 8085 to generate a square wave with period of 400μs. Use bit D0 to output the square wave. The system clock period is 325ns.

07

OR

1

Page 19: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

Q.3 (a) What is interrupt? What are the interrupts available in 8085 microprocessor? Write interrupt vector table for vectored interrupts. Explain SIM and RIM instructions.

07

(b) Write an ALP to count from 00 to 20H with a delay of 100 ms. between each count. After the count 20H, the counter should reset itself and repeat the sequence. Use register pair DE as a delay register. Draw a flowchart and show your approximate delay calculations for 100ms delay. The clock freq. is 1Mhz. Assume suitable value of T states for the delay calculation.

07

Q.4 (a) Draw the diagram for interfacing 8KB of ROM and 8KB of RAM with microprocessor 8085 and also explain the number of pins used for such interfacing. The starting address for ROM should be 0000H and starting address for RAM should be 8000H.

07

(b) What do you understand by the term Addressing Modes? Explain, giving suitable example, all the addressing modes supported by 8085.

07

OR Q.4 (a) Interface 8K EPROM and 4K RAM with 8085 processor. Write address range

for both the memory chips and also show the address decoding logic 07

(b) Discuss memory mapped I/O and I/O mapped I/O in detail. 07 Q.5 (a) Draw the internal block diagram of IC 8255 and explain function of each block

in detail. 07

(b) Explain with neat diagram the programmable timer/counter IC. 07 OR

Q.5 (a) Write a short note on IC 8251 (USART). 07 (b) Discuss in detail the interrupt controller IC. 07

*************

2

Page 20: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

1

Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY BE - SEMESTER–IV • EXAMINATION – SUMMER • 2014

Subject Code: 140701 Date: 16-06-2014

Subject Name: Microprocessor and Interfacing

Time: 10:30 am - 01:00 pm Total Marks: 70 Instructions:

1. Attempt all questions.

2. Make suitable assumptions wherever necessary.

3. Figures to the right indicate full marks.

Q.1 (a) Answer the following questions

[1] How many address lines are necessary to interface 8 KByte EPROM and

1 KByte RAM with 8085 microprocessor?

[2] What is the function of ALE pin in 8085?

[3] What is an assembler?

[4] Define Bus. List different Bus available in 8085 microprocessor.

[5] What is the purpose of temporary registers W and Z in 8085

microprocessor?

[6] What is the purpose of HOLD and HLDA pin in 8085 microprocessor?

[7] What will be duration of 1 T state if 4 MHz crystal is connected with 8085

microprocessor?

07

(b) Explain how address/data lines AD0-AD7 are de-multiplexed. Draw logic

diagram to generate control signals MEMW, MEMR, IOW and IOR from

IO/M,WR and RD.

07

Q.2 (a) What is interrupt? What are the interrupts available in 8085 microprocessor?

Write interrupt vector table for vectored interrupts. Explain SIM and RIM

instructions.

07

(b) Draw and explain programming model of 8085 microprocessor. Explain

working of 16 bit registers

07

OR

(b) Explain architecture of 8085 microprocessor with help of block diagram.

Explain function of each block

07

Q.3 (a) Explain circuit diagram of interfacing of 8K EPROM and 4K RAM with 8085.

Write address range for both the memory chips showing address decoding logic

07

(b) Write assembly language programs for the following tasks:

(1) Total 16 data stored at memory location 4050h to 405Fh. Write program

to find out maximum data and store it at memory location 4080h.

(2) Write DELAY subroutine to generate 1 second delay. Use this

subroutine in decimal counter program which counts 0 to 9 continuously

at the interval of 1 second. Consider crystal frequency 2 MHz. Display

count value on output device which is having address 08h.

07

OR

Q.3 (a) Explain T-state, Machine cycle and Instruction cycle. Draw timing diagram of

OUT FFh instruction

07

Page 21: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

2

(b) Write assembly language programs for the following tasks:

(1) Write a program to find negative numbers in given set of data stored at

the memory location 4050h to 405Fh. Store all negative numbers at the

memory location starting from 2050h.

(2) Consider that 8 LEDs are connected to port A of 8255 chip. Address of

port A is 80h and control register is 83h. Write program to flash 8 LEDs

at the interval of 1 second. Write DELAY subroutine to generate 1

second delay. Use this subroutine to flash LEDs. Consider crystal

frequency 2 MHz.

07

Q.4 (a) Explain following instructions:

[1] LDAX D [2] DAD B [3] XCHG [4] XRA D [5] EI [6] DAA [7] PCHL 07

(b) Explain process of converting HEX data into BCD. Write a program to convert hexadecimal number into equivalent BCD number. HEX data is available from input device at address FFh. Convert that data into BCD and store BCD digits at location 2100h, 2101h and 2102h. LSD at 2100h and MSD at 2102h.

07

OR

Q.4 (a) What is direct memory access? Explain interfacing of 8237 DMA controller

with 8085 microprocessor. What is importance of DMA?

07

(b) What is stack? Explain stack operations in 8085 microprocessor using PUSH

and POP instructions with neat sketches. When stack operations are needed?

07

Q.5 (a) Draw and explain block diagram of 8259A Programmable Interrupt Controller 07

(b) Explain block diagram of 8251A Programmable Communication Interface. 07

OR

Q.5 (a) Consider that Flash type Analog to digital converter (ADC) is connected with

8085 microprocessor using 8255 chip. Data lines of ADC are connected to port

A. 8 LEDs are connected to port B to display digital data. Anodes of LEDs

are tied together and connected to +5V. Cathodes are connected to port B via

series resistors. Address of port A 80h, port B is 81h, port C is 82h and control

register is 83h. Temperature sensor is connected with ADC input. Draw

circuit/logic diagram of the system. Write Program to read data from

temperature sensor and display it on output device LEDs which are connected to

port B.

07

(b) Draw and explain block diagram of 8254 Programmable Interval Timer. 07

*************

Page 22: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

1

Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY BE - SEMESTER–IV • EXAMINATION – WINTER • 2014

Subject Code: 140701 Date: 22-12-2014

Subject Name: Microprocessor and Interfacing

Time: 02:30 pm - 05:00 pm Total Marks: 70 Instructions:

1. Attempt all questions.

2. Make suitable assumptions wherever necessary.

3. Figures to the right indicate full marks.

Q.1 (a) Interface 8K of EPROM and 4K of RAM with 8085 microprocessor. EPROM

memory address begins at 0000H and RAM address begins at 8000H. Write

memory address ranges used for EPROM and RAM in your design.

10

(b) Draw schematic to generate read/write control signals for memory and

input/output of 8085 microprocessor.

04

Q.2 (a) Assume that ROM location 201AH contains instruction MOV C, A having

opcode 4FH. Draw and explain timing diagram for opcode fetch machine cycle

of this instruction.

07

(b) Write instruction format and explain with the help of appropriate example

showing contents of registers/memory locations before and after execution of

the instruction.

(i) STAX (ii) DAD

07

OR

(b) Write instruction format and explain with the help of appropriate example

showing contents of registers/memory locations before and after execution of

the instruction.

(i) LDAX (ii) DAA

07

Q.3 (a) Two 8-bit numbers are stored in memory locations D000H and D001H. Write

an assembly language program to multiply them and store the result in memory

locations E000H (LSB) onwards.

07

(b) Five data bytes are stored in memory location C001H to C005H. Count number

of ones in each byte and store this count in corresponding memory locations

D001H to D005H.

07

OR

Q.3 (a) An array of data bytes is stored beginning from memory location 2001H. Length

of this array is stored in location 2000H. Find largest number of the array and

store it in memory location 3000H.

07

(b) Ten 8-bit signed numbers are stored in memory locations beginning from 8000H.

Move all negative numbers in memory locations beginning from 9000H.

07

Q.4 (a) Generate a square wave of 5KHz on D0 of output port 80H using appropriate

DELAY subroutine assuming crystal frequency of 4MHz. Show your delay

calculations.

07

(b) Interface 8255 with 8085 microprocessor and connect DIP switches to port A

and LEDs to port B of 8255. Write an assembly language program to read the

DIP switches connected to port A and display its status on corresponding LEDs

connected to Port B of 8255.

07

OR

Q.4 With the help of neat diagram explain data transfer during the execution of

CALL 507BH instruction stored in memory beginning from 40A2H.

14

Q.5 (a) Compare memory mapped and peripheral mapped I/O in detail. 07

Page 23: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

2

(b) Draw and explain block diagram of 8259A programmable interrupt controller. 07

OR

Q.5 (a) Interface 8-bit digital to analog converter with 8085 microprocessor. Write a

program to generate sawtooth wave using DAC.

07

(b) Draw and explain block diagram of 8255A programmable peripheral interface

device. What do you mean by BSR mode?

07

*************

Page 24: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

1

Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY BE - SEMESTER–IV • EXAMINATION – WINTER 2013

Subject Code: 140701 Date: 19-12-2013 Subject Name: Microprocessor and Interfacing Time: 02:30 pm to 05:00 pm Total Marks: 70 Instructions:

1. Attempt all questions. 2. Make suitable assumptions wherever necessary. 3. Figures to the right indicate full marks.

Q.1 (a) Answer the following. (1) What are the advantages of Assembly language in comperision with

High level languages? (2) What are Tri-state devices and why are they essential in a Bus

oriented system?

07

(b) Some of the pins of 8085 are listed below .For each pin show whether it is an input line or an output line and mention its function.

(1) ALE (2) SOD (3) IO/

(4) READY (5) HOLD (6)

07

Q.2 (a) Distinguish between the following pairs of instructions. (Any Two) (1) LXIH 1234H and LHLD 1234H (2) RAL and RLC (3) JMP 1000H and CALL 1000H

07

(b) Make comparision between Memory mapped I/O and I/O Mapped I/O.

07

OR (b) What do you understand by the term Addressing Modes? Explain, giving

suitable , all the addressing modes supported by 8085.

07

Q.3 Write ALP, along with flow chart, for the following.

(a) Two ASCII strings start at memory locations 1042H and 1052H respectively. Memory location 1041H contains the length of the strings. The program sets the memory location 1040H to 00H, if the strings are equal and to FFH if they are not.

(b) A binary number is stored in memory location 3040H convert it to BCD number and store BCD1 (least significant BCD digit) into memory location 3041H and BCD2 and BCD3 in memory locations 3042H and 3043H respectively.

14

OR

14

Page 25: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

2

Q.3 Write ALP, along with flow chart, for the following.

(a) A data array of length 16 (Decimal) has been stored in ascending order starting from memory location 3000H to 300FH. Write an ALP to store the data in decending order from memory location 3000H to 300FH (ie. In the same original space)

(b) Write a ALP to count from 00 to 20H with a delay of 100 ms. between each count. After the count 20H, the counter should reset itself and repeat the sequence. Use register pair DE as a delay register. Draw a flowchart and show your approximate delay calculations for 100ms.delay. The clock freq. is 1Mhz. Assume suitable value of T states for the delay calculation.

Q.4 (a) Explain Linear select decoding. Compare it with Absolute decoding. 07

(b) Explain the block diagram of 8259 Programmable interrupt controller. What are its features? Explain the interrupt operation of 8259 in the simplest format.

07

OR Q.4 (a) STA instruction requires 5 machine cycles and 13T states. Explain using

timing diagram sequence of events taking place in each machine cycle with reference to 3000H ……………STA 4000H instruction.

07

(b) Sketch and explain scheme of interfacing one input and one output device using gates and a 3 to 8 decoder with two and one EN input. Both devices should have the address FAH.

07

Q.5 (a) Explain RIM and SIM instructions. 07

(b) With the help of block diagram explain the internal architecture of IC 8255 and describe its working in BSR mode.

07

OR

Q.5 (a) Draw and explain the block diagram of 8251 USART. 07

(b) Write short note on any one of the following. (1) 8237 DMA controller. (2) 8279 Keyboard / Display interface.

07

*************

Page 26: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit

1

Seat No.: ________ Enrolment No.___________

Draw the internal block diagram of microprocessor 8085 and explain the working of (i) Program Counter register (ii) Flag register with Bit significance.Explain the Functions of the following pins of Microprocessor 8085

(i) ALE (ii) S0,S1(iii) INTR,INTA (IV) SID,SOD

What multiplexing? How it is done in microprocessor 8085 for address and data bus? Explain with neat diagram.What is Stack and Stack pointer register? Explain the working and use of stack in subroutine program.

Explain the different addressing modes available in 8085 assembly language programming with example.

Compare memory mapped I/O with I/O mapped I/ODraw the diagram for interfacing 8KB of ROM and 8KB of RAM with microprocessor 8085 and also explain the number of pins used for such interfacing. The starting address for ROM should be 0000H and starting address for RAM should be 8000H

What are interrupts? List and explain the interrupt available in microprocessor 8085?Explain the execution of STA 3000H instruction using Timing diagram.

Write an Assembly Language Program (ALP) to find the 2’s complement of a number stored in Memory location A000 H store the result in B000H. Write and ALP to add two 16 bit numbers Assume that the answer does not generate carry.

Write and ALP to design a delay of 500 ms. Make necessary assumptions and write the assumptions clearly.Expalin the following instructions of microprocessor 8085

(i) LHLD (ii) DAD (iii) DAA

Draw the internal block diagram of 8255 and explain the functions of each block in details.Discuss the main applications of 8255 and working of 8255 in various modes.

Explain control word format and different modes of 8254.What is USART? Draw the functional block diagram of 8251 and explain function of each block.

GUJARAT TECHNOLOGICAL UNIVERSITYBE - SEMESTER–IV • EXAMINATION – SUMMER 2013

Subject Code: 140701 Date: 07-06-2013 Subject Name: Microprocessor and InterfacingTime: 10:30am – 01:00pm Total Marks: 70Instructions:

1. Attempt all questions. 2. M ake suitable assumptions wherever necessary.3. Figures to the right indicate full marks.

Q.1 (a) 07

(b) 07

Q.2 (a) 07

(b) 07

OR(b) 07

Q.3 (a) 07(b) 07

ORQ.3 (a) 07

(b) 07

Q.4 (a) 07

(b) 07

OR

Q.4 (a) 08

(b) 06

Q.5 (a) 07

(b) 07OR

Q.5 (a) 07(b) 07

*************

Page 27: GUJARAT TECHNOLOGICAL UNIVERSITY - mytoolbag.inmytoolbag.in/media/GTUPAPERS/1/2/COMPUTER/S5/MPI.pdf · De vel op an 8085 Assembly language program to implement division of two 8 -bit