The document provides details about the 8085 microprocessor including its architecture, pin diagram, addressing modes, instruction set, timing diagram, applications, programming examples, advantages and disadvantages. It discusses the different units of the 8085 microprocessor such as the register unit, timing and control unit, arithmetic logic unit, and interrupt unit. Examples are provided to illustrate various instructions and addressing modes of the 8085 microprocessor.
Heart Disease Prediction using machine learning.pptx
Â
8085 Microprocessor Project
1. 8085 MICROPROCESSOR
GROUP NUMBER :- 9
Group Members University Roll Numbers
Arkajit Biswas 12000317113
Arnab Bhattacharya 12000317112
Ardhendu Panja 12000317115
Amar Biswas 12000317130
Amit Kumar Nandi 12000317128
1
3. Introduction to Microprocessor
âĸ Microprocessor is a electronic chip, that functions as the central
processing unit of a real time system and a computer.
âĸ For example: Washing machines, microwave ovens, mobile phones
etc.
âĸ Its advance applications are: Radar, Satellites, flights.
3
4. Introduction to Microprocessor
(cond.)
âĸ All microprocessors are use the basic concept of stored program execution.
Program or instructions are stored sequentially in the memory. In this way
microprocessors are used in embedded systems. Every microprocessor has
its own associated set of instructions. Instruction set of microprocessor is in
two forms one in mnemonic, which is comparatively easy to understand and
the other is binary machine code.
4
5. Introduction to âIntel 8085â
Microprocessor (cond.)
âĸ The Intel 8085 is an 8-bit microprocessor introduced by Intel in
1977.
âĸ The 8085 is based on von Neumann design. It is designed by using
NMOS technology. The â5â in the model number came from the fact
that the 8085 requires only a +5 V power supply, rather than
requiring the +5 V, -5 V and +12 V supplies the 8080 needed. It has 8
bit data bus and 16 bit address bus. It has 8 bit data bus and 16 bit
address bus. It can work up to 5 MHz frequency. It has 40 pins in its
chip. Lower order address bus is multiplexed with data bus to
minimize the chip size.
5
6. Introduction to âIntel 8085â
Microprocessor (cond.)
âĸ The 8085 has extensions to support new interrupts, with three
maskable interrupts, with three maskable interrupts (RST 7.5, RST
6.5 and RST 5.5), one non-maskable interrupt (TRAP), and one
externally serviced interrupt (INTR). These 5 interrupts refer to
actual pins on the processor, a feature which permitted simple
systems to avoid the cost of a separate interrupt controller.
6
8. Different units of 8085
Microprocessor
īRegister Unit
īTiming and Control Unit
īArithmetic and Logical Unit
īInterrupt Unit
īSerial IO Unit
8
9. 1. Register Unit:
a) General Purpose Register
b) Special Purpose Register
The register unit consists of six general purpose data
registers and these are B, C, D, E, H and L two internal
registers W and Z.
o Program Counter
o Stack Pointer
o Increment or decrement counter
o Address buffer or data buffer
9
10. 2. Timing and Control Unit :
ī This unit synchronizes all the microprocessor operation with
the clock and generate the control signals necessary for
communication between microprocessor and peripherals.
īThe timing and control units are used to control the internal as
well as external circuits. These are classified into four types
namely control units like đ đˇ, đđ , ALE, READY, status units like
S0, S1, and IO/đ, DM like HLDA, and HOLD unit, RESET units
like RST-IN and RST-OUT.
10
11. 3. Arithmetic and Logical Unit:
īThe arithmetic and logic unit performs the computing
functions. It includes the accumulator, the temporary
register, the arithmetic and logic circuits and five flags.
īThe temporary registers are used to hold data during an
arithmetic/ logic operation. And the result is stored in the
accumulator and the flags (flip-flop) are set or reset
according to the result of the operation.
īThere are five flags in 8085 microprocessor. Sign Flag, Zero
Flag, Auxiliary Flag, Parity Flag and Carry Flag.
The bit positions reserved for these flags in the flag register are:
11
12. Arithmetic and Logical Unit (cond.) :
īSign Flag : After the execution of an arithmetic or logic
operation, if the D7 bit of the result is 1 , then Sign Flag is set.
Otherwise it is reset.
īZero Flag : The Zero Flag is set if the ALU operation results in 0,
and the flag is set if result is not 0.
īAuxiliary Carry : In arithmetic operation, when a carry is
generated by digit D3 and passed on to digit D4 then Auxiliary
Carry flag is set, otherwise it is reset.
īParity Flag : After arithmetic or logical operation, if the result
has an even number of 1 then Parity Flag is set. If the result has
an odd number of 1 then it is reset.
īCarry Flag : If an arithmetic operation results in a carry, then
the carry flag is set, otherwise it is reset. 12
13. 4. Interrupt Unit :
Hardware Interrupt :
ī What is Interrupt ?
âĸ Interrupt is a signal to the processor, generated by
hardware or software indicating an immediate
attention needed by an event.
Software Interrupt :
13
14. 5. Serial IO Unit :
īThe 8085 Microprocessor has two signals to
implement serial data transmission, Serial
Input Data (SID) AND Serial Output Data
(SOD).
īIn serial transmission data bits are sent over
a single line, one bit at a time, such as the
transmission over telephone line.
14
16. AddressingModes
The manner in which operands/data is given in a instruction is called addressing
mode. 8085 instructions can be classified in following addressing modes:--
īą Register Addressing mode
ī Data is provided through the registers .e.g. MOV, ADD, SUB, ANA, ORA, XRA
etc.
For Ex. MOV B, C move the content of register C to register B.
īą Immediate Addressing mode
ī Data is present in the instruction. Load the immediate data to the destination
provided. e.g. MVI, LXI,ADI, SUI, ANI, ORI etc.
For Ex. MVI A, 05H move the 05H in register A.
16
17. Addressing Modes (cond.)
īą Direct Addressing mode
ī Instructions have their operands in memory and the 16-bit memory
address is specified in the instruction
īThe address of the operand is given in the instruction. e.g. LDA, STA,
LHLD, SHLD etc.
For Ex. STA 7500H store the content of accumulator in the memory
location 7500 H.
īą Indirect Addressing mode
īIn this address of the operand is specified by the register pair. The
address stored in the register pair points to memory location e.g.
LDAX, STAX etc.
For Ex. LDAX B;A in this case A get the value of address store in
register pair BC.
17
18. Addressing Modes (cond.)
īąImplicit or Implied Addressing mode
īThe operand is not specified in the instruction, specified within the opcode
itself.
īOperand is supposed to be present in accumulator. e.g. CMA, CMC, STC etc.
For Ex: STC By using we can see carry flag.
18
19. Instruction Set
īSince the 8085 is an 8-bit device it can have up to 28 (256) instructions.
īHowever, the 8085 only uses 246 combinations that represent a
total of 74 instructions.
īMost of the instructions have more than one format.
īąThese instructions can be grouped into five different groups:
īļData Transfer Operations
īļ Arithmetic Operations
īļLogic Operations
īļBranch Operations
īļMachine Control Operations
19
20. Instruction Set (cond.)
īļData Transfer operation
īą These operations simply COPY the data from the source to the
destination.
īąThey transfer:
ī Data between registers.[A,B,C,D,E,H,L]. For Ex: MOV B,C
ī Data Byte to a register or memory location. For Ex: MVI B,25H
ī Data between a memory location and a register. For Ex: LXI B,2000H
ī Data between an I/O Device and the accumulator. For Ex:
LDAX,B[Accumulator get the value at address which store in BC register
pair]
īą The data in the source is not changed.
īą Data transfer instructions never affect the flag bits.
e.g. LDA, STA, MOV, LDAX, STAX, MVI, LXI etc.
20
21. Instruction Set (cond.)
īļArithmetic Operation
īą These instruction perform addition, subtraction and compare
operations.
īąThese operations are always performed with accumulator as one of the
operands.
īą The status of the result can be verified by the contents of the flag
register.
īAddition: Any 8-bit number, or the contents of a register or the
contents of a memory location can be added to the contents of the
accumulator and the sum is stored in the accumulator. The instruction
DAD is an exception; it adds 16-bit data directly in register pairs.
Instruction Example- ADD, ADI. For Ex: ADD B[Value at register B added
with value at accumulator]
21
22. Instruction Set (cond.)
īSubtraction - Any 8-bit number, or the contents of a register, or the
contents of a memory location can be subtracted from the contents
of the accumulator and the results stored in the accumulator.
Subtraction is done by 2âs compliment method and set carry flag to
indicate borrow.
Instruction example-SUB,SUI.
īIncrement/Decrement - The 8-bit contents of a register or a
memory location can be incremented or decrement by 1. Similarly,
the 16-bit contents of a register pair (such as BC) can be
incremented or decrement by 1. EX.INR,DCR 22
23. Instruction Set (cond.)
īļLogical Operation
īPerform 8-bit basic logical operations with the content of the
accumulator
īLogical instructions also modify the flag bits.
īOp-codes for logical instructions include ANA, ANI, ORA, ORI, XRA,XRI, CMA,
CMC, RAL, RLC, RAR, RRC, CMP, CPI etc.
īąAND, OR Exclusive-OR - Any 8-bit number, or the contents of a register, or of
a memory location can be logically AND, Or, or Exclusive-OR with the
contents of the accumulator. The results are stored in the accumulator. For
Ex âANA,ANI,ORA,ORI,XRA,XRI.
īąCompare- Any 8-bit number, or the contents of a register, or a memory
location can be compared for equality, greater than, or less than, with the
contents of the accumulator.
īąComplement - The contents of the accumulator can be complemented. 23
24. Instruction Set (cond.)
īļLogical Operation
īąRotate- Each bit in the accumulator can be shifted either left or right to the next
position. There are four type of rotate :-
ī Rotate Left With Carry(RLC)
ī Rotate Right With Carry(RRC)
ī Rotate Arithmetic Left(RAL)
ī Rotate Arithmetic Right(RAR) 1. RLC
3.RAL
2. RRC
4. RAR
24
25. Instruction Set (cond.)
īļBranch Operation
These instructions are used to transfer the program control:
ī To jump from one memory location to any other memory location
within a program
ī From one program to another program called as a subroutine.
ī Alters the sequence of program execution either conditionally or
unconditionally
Unconditional branch instructions- Transfer the program to the specified
label or address JMP unconditionally i.e. without satisfying any condition.
Conditional branch instructions -Transfer the program to the specified label
or
address when certain condition is satisfied.
JNC, JC, JNZ, JZ, JP, JM, JPE, JPO
25
26. Instruction Set (cond.)
īļ Machine Control Operation
These instructions include special instructions such as I/O data
transfer, perform machine related operation
ī HLT â To halt the CPU
ī NOP â To perform no operation
ī SIM â To set the masking of hardware interrupts and serial output data
ī RIM â To read the status of interrupt mask and serial input data
īEI â Enable Interrupt
īDI â Disable Interrupt
26
27. Timing diagram of 8085
microprocessor
To know the working of 8085 microprocessor, we should the timing
diagram of 8085 microprocessor. With help of timing diagram we
can easily calculate the execution time of instruction as well as
program. Before go to timing diagram of 8085 microprocessor we
should know some basic parameters to draw timing diagram of 8085
microprocessor. Those parameters are â
ī§ Instruction Cycle
ī§ Machine Cycle
ī§ T-state
27
28. Timing diagram of 8085
microprocessor
âĸ Instruction Cycle: Instruction cycle is the total time taken for
completing one execution
âĸ Machine Cycle: Machine Cycle is the time required to complete one
operation such as accessing either the memory or an I/O device.
âĸ T-state: T-state is the time corresponding to one clock period. It is a
basic unit used to calculate the time taken for execution of
instructions and programs in a processor.
28
29. Control Signals
âĸ IO/M : IO/M signal indicate whether I/O or memory operation is
being carried out.
âĸ S0 and S1 : S0 and S1 indicate the type of machine cycle in progress.
âĸ ALE : ALE is indicates the availability of a valid address on the
multiplexed address / data lines. When it is high act as a address bus
and low act as data bus.
âĸ RD^ : Read is an active low signal that indicates that data is to be
read from the selected memory or I/O device through data bus.
âĸ WR^ : Write is an active low signal that indicates that data on the
data bus is to be write from the selected memory or I/O device.
29
31. Applications of
Microprocessors
âĸ Instrumentation: It has very wide applications in the field of
instrumentation in systems like in control panel of press printing
machine, digital kiosks, credit card processing, security systems etc.
It is also used in medical instruments like ECG (electronic
cardiogram) etc making the device smart.
âĸ Entertainment: Microprocessors are also used in various gaming
consoles, DVD player, etc.
31
32. Applications of
Microprocessors (cond.)
âĸ Communication: Microprocessors are being used in a wide range of
communication equipments like: in digital telephone sets, telephone
exchanges, in television, satellite communication, etc.
âĸ Embedded Systems at Home: A number of modern device un the
home are microprocessor based i.e. camera; washing machines;
calculators; hi-fi systems; telephones; microwave ovens; burglar
alarms etc. The input are usually simple numeric keyboards, sensors,
buttons or while the output include lights, simple LCD screens
displays, motors and relays, LEDâs, buzzers etc.
32
36. 3.Writeaprogramtoperforminvertedblocktransferof10bytesfrom
locations 2000H to 3000H.
Programme:
LXI B, 2000H
LXI D, 3009H
MVI L, 0AH
Back: LDAX B
STAX D
INX B
DCX D
DCR L
JNZ Back
HLT
2000 50
2001 51
2002 52
2003 53
2004 54
2005 55
2006 56
2007 57
2008 58
2009 59
3000 59
3001 58
3002 57
3003 56
3004 55
3005 54
3006 53
3007 52
3008 51
3009 50
37. ADVANTAGES
1. The 8085 microprocessor can quickly move data between
the various memory locations.
2. This processor can be programmed to execute a number of
tasks.
3. Another advantage of this processor is its speed, which is
measured in hertz. For instance, a microprocessor with 3
GHz is capable of performing 3 billion tasks per second.
37
38. DISADVANTAGES
1. The 8085 microprocessor might get overheated.
2. This microprocessor does not have any internal peripheral like
ROM, RAM and other I/O devices.
3. In this processor, due to limited 8 bit size of all the registers,
we can store limited data bytes in the microprocessor
memory.
4. Flag register has limited flags.
38
39. Conclusion
âĸ The 8085 processor was used in a few early personal computers,
produced from 1977 to mid 1980âs.
âĸ But the size (memory) of the microprocessor is not sufficient. Also it
has low speed. And to solve this problems better quality
microprocessors have been developed with time with greater bit
processing capability (32 and 64 bit) along with huge number of
modifications.
âĸ Now a days, in many engineering institutes the 8085 processor is
used in introductory microprocessor courses.
39