Professional Documents
Culture Documents
Branch : I.T.
19U03057
Microprocessor and Microcontroller
LAB 1
1. Title – Study of various parts of 8085 Microprocessor
9. Observations –
10.Calculations – No such calculations needed.
14.Sample Questions –
1. Why do we say that 8085 is an 8 bit microprocessor?
Ans: We say 8085 is an 8 bit processor because its data
bus size is of 8 bits.
2. What do you mean by little endian format of data
exchange?
Ans:-When least significant bytes are stored before most
significant bytes.
---------------------------------------------------------------------------
---------------------------------------------------------------------------
Name:Divya Prakash
Branch:I.T.
19U03057
Microprocessor and Microcontroller
LAB 2
1. Title – Study of conditional and unconditional jump and call instructions
in 8085 Microprocessor
7. Precautions – The reset has five options choose wisely the one which is
required. It may delete even those data which are useful to you. The
gnusim8085 don’t work properly with interrupts so you can use Junín’s
simulator.
9. Observations –
10.Calculations –No such Calculations required.
14.Sample Questions –
1. How do you implement loop in 8085 ALP?
Ans:-Using JMP(jump) command,we can jump to
particular instruction any number of time.
2. How do you implement if-else statement in 8085 ALP?
– explain with an example and code.
Ans:-If Else can be implemented in 8085 microprocessor
using conditional jump statements, conditional call
statements and conditional return statements.
Example- JC that jumps on carry, JNC Jumps on no carry,
etc.
Code-
MVI A,05H
MVI B,08H
SUB B
CZ Yes
CNZ No
HLT
LAB 3
1. Title – Study of interrupts in 8085 Microprocessor
For example, let us consider RST 4 is functionally equivalent to CALL 4*8, i.e.
CALL 32 = CALL 0020H.
This causes a branch to subroutine starting from 0020H to 0027H. So at the
most only 8 locations are available for the subroutine, which is too small to
keep subroutine bodies. So in the program I overcome this by branching to a
subroutine at other memory location, like 6000H. I achieved it by using the
combination of RST 4 and JMP 6000H instruction at the 0020H memory
location.
6. Precautions – The reset has five options choose wisely the one which is
required. It may delete even those data which are useful to you. The
gnusim8085 don’t work properly with interrupts so you can use Jubin’s
simulator.
7. Procedure / Instructions –Write the code in the editor and using the
execute option inside the assembler you can run your code all at once. You
can even use step in option inside debug to run your code line by line for
better understanding.
8. Observations –
9. Calculations – N/A
10.Results – N/A
4. Sample Questions –
1. What do you do when interrupt service routine is more
than 8 byte ? Is it a problem in first place in 8085?
Ans:- Each interrupt routine is placed at a memory location 8
bytes after the previous interrupt routine. Therefore, if service
routine exceeds 8 bytes then it might interfere with other
interrupt service routine. We use the JMP command to move
to some other memory location to prevent this issue.
a) There are 5 bytes of data stored in B,C,D,E & H registers. Add all these
and store the result in acc.
b) 5 byte data is stored in ext memory. WAP to add those 5 bytes and store
the result in ext memory.
c) Calculate and compare the total time above two programs will take to be
fully executed. Justify the reason for this time difference.
d) WAP in 8085 AL to store the following series in ext. memory -
2,3,5,9...by using RAL/RAC/RRC/RLC
8. Procedure / Instructions –
A. Simply move data to five given register and all those one by one
using loop.
B. Simply load data from external memory and keep them in different
specified register and then add all of them one by one and store in external
memory.
See the memory and different resister and note the result or observations.
9. Observations –
A)
B)
C)
D)
10.Conclusions – We can follow the above procedure to calculate the T-states
of every instructions thus calculating time taken for complete execution of the
program.
11.Sample Questions –
1. What do you mean by vectored interrupts? How are
they implemented in JUBIN’s Simulator
Ans:-Ans – Vectored interrupts are those interrupts which
also carry the address of the sub-routine, and the program
goes to this address on execution of the interrupt instruction.
In JUBIN’S Simulator, we define the instructions to be
executed at certain memory address with # ORG addr, and
when we call any instruction with RST the instruction at the
address of subroutine gets executed.
2. Why some instructions can take variable T-states?
Ans:-Some instructions like jump statements are performed
depending upon a condition so they result into variable T-
states, depending on whether condition is true or false.