Microprocessor I
Microprocessor I
Experiment no: 05
Class: M.Sc 4th Semester Group………………………….
Roll no. 91 Sub……………………………..
Shift: Day Set……………………………...
Apparatus Required
Microprocessor Kit/Device (8085)
Theory
It is programmable electronic chip ( Integrated circuit (IC). A single IC has
computing and decision making capabilities similar to central processing unit of
computer.
8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit
microprocessor designed by Intel in 1977 using NMOS technology.
It has the following configuration –
The 8085 microprocessor has 74 basic instructions and 246 total instructions. The
instruction set of 8085 was defined by the manufacturer INTEL CORPORATION.
Each 8085 instruction has a one-byte (8-bit) operation codes or opcode. With 8-bit
binary opcode, a total of 256 different operation codes can be generated, each
representing a certain operation. It is used in washing machines, microwave ovens,
mobile phones, etc.
OBSERVATION OR CALCULATION
Steps 1:
8003 11 START LXI H, 8000 Load HL pair and
8004 00 Point 1st no.
8005 80
Steps 2:
8006 7E MOV A,M Load the accumulator
Steps 3:
8007 23 INX H Advance pointer
To get Result
To run program Next → Reset→ Go → 8003 Starting point of program and →
Execute
To Observe result
Reset →Ex Mem→ Location of data ( 8000 ) → Next for next Data at ( 8001 ) and for
result press next i.e at ( 8002 ) , we get
8000 – 1A
8001 – 18
8002 – 32
Steps 1:
8003 21 LXI H, 8000 Point of IN no.
8004 00
8005 80
8006 7E MOV A,M Load no. in a accumulator
Steps 2:
8007 23 INX H Point to 2nd no.
8008 86 ADD M Add two no.
Steps 3:
8009 27 DAA Convert to decimal
Steps 1:
8006 2A START LHLD 8000 Load HL pair with 1st no.
8007 00
8008 80
Exchange HL and DE
8009 EB
resistor
Steps 2:
Load the HL pair with 2nd
800A 2A LHLD 8002
no.
800B 02
800C 80
Steps 3
800D 19 DAD
Add HL and DE registors
800E 22 SHLD 8004
store result in 8004
800F 04
8010 80
Steps 5:
8011 EF RST 5
Result
Discussion
We can add 8-bit hexadecimal number ( by neglecting carry), two 8-bit decimal
number (<99) and two 16 bit hexadecimal number ( neglecting carry) successfully
with the help of various addition programs of microprocessor (8085). The address,
planning programming and the execution parts are the most important components
which contains the input data, micro-processor or programming parts and the result
parts. The proper Programming of related addition of two number (8-bit hexa –
decimal or 16 bit hexa decimal ) give the required results by 8085 microprocessor)