0% found this document useful (0 votes)
100 views

Mpi Pyqs

microprocessor and interfacing gtu pyqs

Uploaded by

Dhruval
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
100 views

Mpi Pyqs

microprocessor and interfacing gtu pyqs

Uploaded by

Dhruval
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Seat No.: ________ Enrolment No.

___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER–IV(NEW) EXAMINATION – WINTER 2022
Subject Code:3141710 Date:17-12-2022
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.
4. Simple and non-programmable scientific calculators are allowed.
MARKS

Q.1 (a) Briefly explain bus structure of 8085 processor. 03


(b) What is the addressing modes ? Enlist addressing modes supported by 04
8085 processor.
(c) Explain the programming model of 8085 microprocessor and flag 07
register.
Q.2 (a) Define T state, Machine cycle and Instruction cycle. 03
(b) What is the difference between absolute and partical decoding. 04
(c) Draw and explain pin diagram of 8085 processor. 07
OR
(c) Explain the interfacing circuit of 4K ROM memory with 8085 processor 07
with neat diagram and address range.
Q.3 (a) Write a program to read data from input port 00h and write data into 03
outpout port 01h.
(b) Explain PUSH and POP instruction of 8085 processor. 04
(c) Write a program to load FFh data into 10 consecutive memory location 07
starting from xx30h.
OR
Q.3 (a) What is an interrupt? Explain various interrupts of the 8085 03
microprocessor.
(b) Explain RAL and LDA instruction with suitable examples. 04
(c) Write a program to read an 8-bit number is stored in memory location 07
C000H and count number of ones (i.e. 1) in this byte and store this count
in memory location C001H.
Q.4 (a) Explain CALL instruction of 8085 processor. 03
(b) Explain RIM and SIM instruction of 8085 processor. 04
(c) Design a delay loop to generate 100 ms delay. Assume clock frequency 07
of 8085 processor is 1 MHz.
OR
Q.4 (a) How much time is required to execute LDA 3000h instruction if 2 Mhz 03
crystal is connected with 8085 processor.
(b) Explain any two arithmetical instructions of 8085 processor with suitable 04
examples.
(c) List out conditional Jump instructions and explain any two with suitable 07
example.
Q.5 (a) Compare machine language with assembly language. 03
(b) List out the features of 8253 timer chip. 04
(c) List out the features of 8255 processors and also explain the functional 07
block of 8255 PPI with diagram.
OR
Q.5 (a) Draw the diagram to interface 4 x 4 matrix keyboard with 8255 PPI. 03

1
(b) Explain working of seven segment LED display with its types. 04
(c) What is Analog to Digital converter ? Explain working of any A to D 07
converter with its block diagram.
*******************
.

2
Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER–IV (NEW) EXAMINATION – SUMMER 2021
Subject Code:3141710 Date:08/09/2021
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.
4. Simple and non-programmable scientific calculators are allowed.

Marks
Q.1 (a) Define: Microprocessor, Assembly language & Compiler. 03
(b) Describe 8085 Flag register. 04
(c) Draw the functional block diagram of 8085 microprocessor and explain 07
power supply & clock frequency signals.

Q.2 (a) Briefly explain different Buses available in 8085 microprocessor. 03


(b) Discuss various addressing modes with instruction examples. 04
(c) Explain instruction cycle, machine cycle and T-state. Draw & explain 07
timing diagram of MOV B, E (43h) instruction.
OR
(c) With neat timing diagram illustrate steps and execution of MVI D, 88h 07
instruction stored at memory location 2500h.
Q.3 (a) Draw programming model of 8085 microprocessor. 03
(b) Draw interfacing diagram of 4K EPROM with 8085. Decode its memory 04
address range.
(c) A set of 8 readings is stored in memory starting from XX70h. With flow 07
chart, write ALP to find the highest reading in the set and display the
reading at output port1.
OR
Q.3 (a) Draw schematic of demultiplexing low-order address bus in 8085 03
microprocessor.
(b) Compare Memory mapped I/O with Peripheral I/O. 04
(c) Sixteen bytes of data are stored in memory locations at XX20h to XX2Fh. 07
With flow chart, write ALP to transfer the entire block to new location
starting at XX50h.
Q.4 (a) What is Stack? Describe PUSH and POP instructions. 03
(b) Describe the interfacing of 8-bit D to A converter with 8085 04
microprocessor.
(c) Write assembly program on hexadecimal counter to count from 00 to FFh 07
continuously with a delay of 2 msec. Clock frequency is 1 MHz. Show
delay calculation.
OR
Q.4 (a) Explain various conditional CALL instructions. 03
(b) Describe successive approximation A to D converter with block diagram. 04
(c) Write assembly program on binary to unpacked BCD conversion. Store 07
each BCD digit separately.
Q.5 (a) Explain following instructions: 03
[1] LDA 1500h [2] SUB C [3] CMA
(b) Describe various 8085 interrupts with its vector locations. 04

1
(c) With neat block diagram explain 8253 Programmable Interval Timer 07
peripheral chip.
OR
Q.5 (a) Explain following instructions: 03
[1] STA 2050h [2] ANA B [3] RRC
(b) Describe interpretation of each bits in RIM (Read Interrupt Mask) 04
instruction.
(c) Draw the internal block diagram of 8255 Programmable Peripheral 07
Interface and explain in brief.

*****

2
Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER– IV EXAMINATION – SUMMER 2020
Subject Code: 3141710 Date:02/11/2020
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.

Marks
Q.1 (a) Explain the difference between machine language and assembly 03
language with example.

(b) Draw the programming model for 8085 Microprocessor and 04


explain them in brief.

(c) If 8bytes of data are stored at the memory location starting from 07
C050H; write an ALP to arrange them in ascending order.

Q.2 (a) Specify the contents of accumulator and flag when the following 03
instructions are executed.
MVI A, C5H
ORA A
RAL
RRC
(c) Draw the timing diagram of MOV C, A having an opcode 4FH. 07
Also find the total time to execute this instruction by MPU.
OR
(c) Draw the data flow for MOV C,A instruction execution by MPU 07
and describe the steps of execution in brief.
Q.3 (a) Draw the schematic for latching low order address bus of 8085 03
microprocessor.
(b) 1) Register B contains 32H.Copy the contents of B to memory 04
location 8000H using indirect addressing.
2) The accumulator has FAH. Copy the content of accumulator
into memory location 8050H using direct addressing.
(c) Draw the interfacing scheme for connecting 8155 memory RAM 07
of 256 bytes size with 8085. Show the decoding logic using 3 to
8 decoder and also mention the memory map of it.
OR
Q.3 (a) Explain how the foldback memory space is generated while using 03
partial decoding scheme while interfacing memory or I/O with
8085.
(b) Draw the block diagram of 8254 programmable timer/counter and 04
write the steps needed to program to initialize the counter.
(c) Draw the interfacing scheme for connecting 2732 EPROM of 07
4096 bytes size with 8085. Show the absolute decoding logic
using 3 to 8 decoder and also mention the memory map of it.
Q.4 (a) Explain the concept of Nesting and Multiple Ending subroutines 03
using Call instruction.

1
(b) Write three different instructions to transfer the data from 04
memory to microprocessor 8085 with graphical representation
showing register contents and flow of data from memory to MPU.
(c) Write the necessary steps for interfacing I/O device with 8085 and 07
draw the block diagram of I/O interface requirements.
OR
Q.4 (a) Specify the output at PORT 1 after execution of following 03
program.

MVI B,82H
MOV A,B
MOV C,A
MVI D,37H
OUT PORT1
HLT

(b) Explain the following instruction with effect on flags in different 04


condition of comparison.
CMP M
CPI 8bit
(c) Show the complete drawing to interface common anode seven 07
segment LED with 8085. Write the program to display digit 7 at
the output of it.
Q.5 (a) List the various interrupts of 8085 MP with its vector locations. 03
(b) Draw the flow chart for key check subroutine, if keyboard 04
connected with 8085 is pressed.
(c) Write an ALP program to 07
1) transfer the byte to accumulator
2) separate the two nibbles of accumulator content
3) Call the subroutine to convert each nibble into ASCII Hex
code.
4) Store the ASCII code in memory locations 2000H and 2001H.
OR
Q.5 (a) Explain the SIM instruction. 03
(b) Show the hardware way for key debouncing technique. 04
(c) Write a program for hexadecimal counter. 07

2
Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE- SEMESTER–IV (NEW) EXAMINATION – WINTER 2020
Subject Code:3141710 Date:19/02/2021
Subject Name:Microprocessor and Interfacing
Time:02:30 PM TO 04:30 PM Total Marks:56
Instructions:
1. Attempt any FOUR questions out of EIGHT questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.

MARKS

Q.1 (a) Distinguish between assembly language and high level languages 03
(b) Explain functioning of following pins of 8085. 04
(i) HOLD (ii) INTR (iii) READY (iv) ALE
(c) What do we mean by Addressing Modes? Explain, giving suitable example, all 07
the addressing modes supported by 8085.

Q.2 (a) Draw circuit diagram to generate memory and I/O read write control signal by 03
8085.
(b) Explain the operation of 8085 pin signals: AD0-AD7, HOLD and S0 & S1 04
(c) Draw and Explain the functional block diagram of internal architecture of 8085 07
and explain its working.

Q.3 (a) Explain following instructions of 8085. 03


(i) LDA (ii) RAL (iii) DAA
(b) What is stack and stack pointer? Explain working of PUSH and POP 04
instructions with suitable example
(c) Draw and explain timing diagram of instruction MOV C,A stored in location 07
2005H,and its opcode is 4F H.

Q.4 (a) Compare absolute decoding v/s partial decoding. 03


(b) Data block of ten data bytes is stored in memory starting from locations 04
2000H.Write a program to count even numbers in this data block. Store the
result in memory location 3000H.
(c) Design an Interfacing circuit to connect 4k×8 EPROM with starting address 07
from 0000H and 2k×8 RAM starting address 2000H onwards. Write address
range for both the memory chips showing address decoding logic.

Q.5 (a) Define vector interrupt. List of total vector interrupts of 8085. 03
(b) Write the steps of responding to interrupt by 8085 microprocessor in detail. 04
(c) Explain the function of RIM and SIM instructions in 8085 with description of 07
each bit.

Q.6 (a) Write the differences between software interrupts and hardware interrupts. 03
(b) What is key bouncing? How can we remove key bouncing problem using 04
hardware method?
(c) Draw the diagram to interface 4X4 matrix keyboard with 8085 using 8255A 07
and write an assembly language program to find out which key is pressed.

Q.7 (a) Write an Assembly Language Program to generate square wave using 8255. 03
(b) Write an assembly language program to convert BCD number into its 04
equivalent hexadecimal number and store it at memory location 3000H.
1
(c) Draw and explain he functional block of IC 8255A and also discuss the 07
operating modes and control word format of 8255A.

Q.8 (a) Define Interrupt Service Routine, also mention vector addresses of TRAP, 03
RST7.5, RST6.5, RST5.5 interrupts
(b) Assume that a seven segment display is connected to 8085 through port A of 04
8255A, write an assembly language program to display numbers from 1 to 9 on
seven segment display at some particular delay.
(c) Explain with block diagram the 8253 timer chip and its operation 07

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

2
Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER–IV (NEW) EXAMINATION – WINTER 2021
Subject Code:3141710 Date:04/01/2022
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.
4. Simple and non-programmable scientific calculators are allowed.

Marks
Q.1 (a) Define Microprocessor. Draw block diagram of traditional computer. 03

(b) Discuss various addressing modes with suitable examples. 04


(c) Draw functional block diagram of 8085 microprocessor. Explain control 07
& status signals.

Q.2 (a) Distinguish between machine level and higher level language. 03

(b) With neat diagram discuss bus structure of 8085 microprocessor. 04

(c) Illustrate the steps and execution of MVI A, 34H instruction stored at 07
memory location 2200H with timing diagram.

OR
(c) Define instruction cycle, machine cycle and T-state. Explain execution 07
of MOV C, A instruction using timing diagram.

Q.3 (a) Describe 8085 Flag register. 03


(b) Compare Memory mapped I/O with Peripheral I/O. 04
(c) A set of 16 data is stored at memory location starting from 2500H to 07
250FH. Write a program to transfer entire block to memory location
starting from 3500H to 350FH.
OR
Q.3 (a) Compare CALL/RET versus PUSH/POP. 03
(b) Draw interfacing diagram of 4K EPROM with 8085. Decode its memory 04
address range.
(c) A set of 10 data is stored in memory starting from 4100H. Write a 07
program to sort the data in Ascending order.
Q.4 (a) Define subroutine. Describe CALL and RET instructions. 03
(b) Describe successive approximation A/D converter with block diagram. 04

(c) Write a program to count from 00 to FFH continuously with a delay of 1 07


msec and display number at output Port1. Clock frequency is 2 MHz.
Show delay calculation.
OR
Q.4 (a) Write a program to convert any binary digit between 0 and F to ASCII 03
hex code.

(b) Write a program to find 2’s complement of number stored in 3100H. 04

1
Store the result in memory 4100H.
(c) Describe basic concepts of Digital to Analog converter. Interface 8-bit 07
DAC with 8085 microprocessor.
Q.5 (a) Explain conditional jump instructions briefly. 03
(b) Describe interpretation of each bits in SIM (Set Interrupt Mask) 04
instruction.
(c) Discuss interfacing chip 8255A Programmable Peripheral Interface with 07
neat block diagram.
OR
Q.5 (a) Explain following instructions: 03
[1] LDAX B [2] RLC [3] DAA
(b) Describe 8085 interrupts with their vector locations. 04
(c) Draw and explain block diagram of 8253 Programmable Interval Timer. 07

*****

2
Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER–IV (NEW) EXAMINATION – SUMMER 2022
Subject Code:3141710 Date:04-07-2022
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.
4. Simple and non-programmable scientific calculators are allowed.

MARKS

Q.1 (a) Explain 8085 Programming Model and Flag Register. 03


(b) Specify the four control signals used by 8085 MP.Also draw the 04
schematic for control signals generation.
(c) Draw the of MP 8085 bus structure. And describe the importance 07
of each bus in detail.

Q.2 (a) What will be the value in accumulator, for the given 8085 program 03
below?
MVI C,7FH
MVI B, AAH
MOV A, B
RLC
RLC
ANI 7FH
HLT
(b) Interface 6116 Memory chip of size 2048*8 . Write the memory 04
map also.(Note:Use 3 to 8 decoder for address decoding.)
(c) Draw the timing diagram for following instruction. The 07
instruction is stored at memory location started at 20FF .
Memory location Mnemonics opcode
20FF MVI B,48H 06
OR
(c) Design an interfacing diagram to interface seven segment LED 07
with MP to display digit ‘7’ on it. Use address F5H as output port
address. Note: use 74LS138 3 to 8 decoder, 74LS20 4 input
NAND gate,74LS02 NOR gate, and common cathode seven
segment LED.

Q.3 (a) What will be the value in accumulator, for the given 8085 03
program below?
MVI A, 07H
RLC
MOV B,A
RLC
RLC
RLC
ORA B
HLT

1
(b) Explain following instructions with example: 04
[1] LDAX [2] RLC [3] INX [4] MOV R,M
(c) An array of twenty data bytes is stored on memory locations 07
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.
OR
Q.3 (a) What is the output at PORT1 when the following instructions are 03
executed?
MVI A, 8FH
ADI 72H
JC DISPLAY
OUT PORT1
HLT
DISPLAY: XRA A
OUT PORT1
HLT
(b) Define subroutine. Describe conditional and non conditional 04
CALL and RET instructions with example.
(c) Write an 8085 assembly language program to arrange the 07
following numbers in ascending order: 10H, 27H, 16H, 23H,
57H.

Q.4 (a) Describe in brief two types of ADC with their atleast three 03
features.
(b) Explain the key interfacing and key bouncing problem. Draw the 04
physical hardware circuit for key debouncing.
(c) Write and assembly program to find out square of five given data. 07
These data and result should be stored in memory. Result should
be stored from 0005H
Memory location data
0000H 01H
0001H 02H
0002H 03H
0003H 04H
0004H 05H

OR
Q.4 (a) Calculate total time delay of given program. Assume frequency 03
2MHz.
LXI
B,2384H
LOOP: DCX B
MOV A,C
ORA B
JNZ LOOP
HLT
(b) Draw the flowchart for key check subroutine when matrix 04
keyboard is interfaced with MP.
(c) An array of ten data bytes is stored on memory locations 2500H 07
onwards. Write an 8085 assembly language program to count the
number of zeros, positive numbers and negative numbers and
store them on memory locations 4000H, 4001H and 4002H
respectively.
2
Q.5 (a) What is interrupt? List hardware interrupts of 8085. 03
(b) 04

Fig 5.b
For interfacing of 8255 with MP,given in the above Figure, Find
the control word to set and reset bit PC7.

(c) Draw the interfacing circuit of ADC with MP. Write the program 07
to read the content of converted data to MP.

OR
Q.5 (a) In the given figure 03

Fig 5.a
1) Identify the Port addresses.
2) Find out Control Word in Mode 0 to configure Port A and Port
CU as output port and Port B and Port CL as input port.

(b) Write a program for the above diagram of Fig 5. to read DIP 04
switches and display the data read to LED connected to Port A.
(c) Draw the basic block diagram for 8253 programmable 07
Timer/Counter . Define the various mode of operations based on
status of various Control Word Register of 8253 Timer/Counter.

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

You might also like