You are on page 1of 10

8085 Microprocessor

8085Microprocessor

8BitCPU
36Mhz
Simplerdesign:SingleCycleCPU
p
g
g y
ISA=Prex86design(SemiCISC)
40 Pin Dual line Package
40PinDuallinePackage
16bitaddress
6registers:B,C,D,E,H,L
Accumulator8bit

8085MicroprocessorArchitecture
ReSeT6.5
INTR INTA RST5.5 RST7.5 TRAP

SID

InterruptControl

SOD

SerialI/OControl

Bus8Bit
ACC

MUX

tmp R

IR
Flag

ALU

TimingandControl

IIDecode
Decode
&
M/C
Encodin
g

L
SP
PC

Inc/Dec.ter
/
Addlatch

AddBuff

Data/AddBuff

The8085BusStructure
A15

AddressBus(16bit)

A0

Memory

I/P

8085
MPU

D7
D0

O/P

DataBus(8bit)
ControlBus(8bit)

8085BusStructure
AddressBus:
Address Bus : Consistsof16addresslines:A
Consists of 16 address lines: A0 A15
Addresslocations:0000(hex) FFFF(hex)
Canaccess64K(=2
( 16 ))bytesofmemory,
y
y, eachbytehas8bits
y

Canaccess64K 8bitsofmemory
UsememorytomapI/O, Sameinstructionstousefor
accessingI/Odevicesandmemory
/

DataBus:Consistsof8datalines:D0 D7
Operatesinbidirectionalmode
O
t i bidi ti
l
d
ThedatabitsaresentfromtheMPUtoI/O&viceversa
Datarange:00(hex)
Data range: 00 (hex) FF(hex)
FF (hex)

ControlBus:
Consists
Consistsofvariouslinescarryingthecontrol
of various lines carrying the control
signalssuchasread/writeenable,flagbits

8085Registers
Registers:
Sixgeneralpurpose8bitregisters:B,C,D,E,H,L
Combinedasregisterpairstoperform16bit
operations:BC,DE,HL
Registersareprogrammable(load,move,etc.)

StackPointer(SP)
( )
Accumulator&FlagRegister
(Zero,Sign,Carry,Parity,AuxCarry)
(Zero Sign Carry Parity AuxCarry)

L
SP
PC

ProgramCounter(PC)
Containsthememoryaddress(16bits)ofthe
C
i h
dd
(16 bi ) f h
instructionthatwillbeexecutedinthenextstep.

How instruction executed


Howinstructionexecuted
Allinstructions(ofaprogram)arestoredin
memory.
memory
Torunaprogram,theindividualinstructions
must be read from the memory in sequence
mustbereadfromthememoryinsequence,
andexecuted.
Program
Programcounterputsthe16
counter puts the 16bit
bitmemoryaddressofthe
memory address of the
instructionontheaddressbus
ControlunitsendstheMemoryReadEnablesignaltoaccess
the memory
thememory
The8bitinstructionstoredinmemoryisplacedonthedata
busandtransferredtotheinstructiondecoder
Instructionisdecodedandexecuted

Instruction Set of 8085


InstructionSetof8085
ArithmeticOperations
add,sub,inr/dcr

Logicaloperation
and,or,xor,rotate,compare,complement

Branchoperation
ranch operation
Jump,call,return

Datatransfer/Copy/Memoryoperation/IO
Data transfer/Copy/Memory operation/IO
MOV,MVI,LD,ST,OUT

Other Operations
OtherOperations
Logicoperations

ANARANI8bitANAM
ANA
R
ANI 8bit ANA M
ORA,ORI,XRA,XRI
CMPR//comparewithRwithACC
//
p
CPI8bit//compare8bitwithACC

Branchoperations
JMP16bit,CALL16bit
JZ16bit,JNZ16bit,JC16bit,JNC16bit
RET

MachineControloperations
HLT,NOP,POP,PUSH
HLT NOP POP PUSH

Assumption
RAM
RAMMemoryisinterfaced
Memory is interfaced
Instructionsarestoredinmemory
OneI/Odisplayportisinterfacedtodisplay
O
/O di l
i i
f d di l
dataofACC

Simple Assembly Program


SimpleAssemblyProgram
MVIA,24H//loadReg ACCwith24H
MVIB,56H//loadReg Bwith56H
ADDB//ACC=ACC+B
OUT01H//DisplayACCcontentsonport01H
HALT//Endtheprogram
//
p g

Result:7A(AllareinHex)
DAA operation for Decimal Adjust A+6=10H
DAAoperationforDecimalAdjustA+6=10H

You might also like