0% found this document useful (0 votes)
241 views24 pages

MNM CC

The document describes the 8085 microprocessor, an 8-bit CPU designed by Intel in the late 1970s. It has an 8-bit data bus, 16-bit address bus and can address up to 64 KB of memory. It operates at clock speeds up to 5MHz and has pins for data, addresses, interrupts and control signals.

Uploaded by

ashutosh
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)
241 views24 pages

MNM CC

The document describes the 8085 microprocessor, an 8-bit CPU designed by Intel in the late 1970s. It has an 8-bit data bus, 16-bit address bus and can address up to 64 KB of memory. It operates at clock speeds up to 5MHz and has pins for data, addresses, interrupts and control signals.

Uploaded by

ashutosh
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/ 24

40 Vec

39 HOLD
RESET OUT 3 38 HLDA
sOD CLK(OUT)
SID RESET IN
TRAP READY
RST7.5 7 4 10/M'
RSTB.5 8 S
RST5.5 RD
INTR 10 8085A WR
INTA ALE
ADo 2 So
AD 13 A1s
AD2 14 At4
AD A13
AD4 16 A12
ADs Ast
AD 8 A1o
AD7 9 Ag
Vss 2
8L
Eigk-elgty e Om eagu& -bit
sm cotep uoceMo dipals cd by
8 bit data bu Jnrhg
16 bit addsus bey COm adoln ypteth 64 kb
16 bit Atovck pointe
16 bit Phomamn) c0umtun NUG
Six 8 bit 9ueacstesanowmged Dasy BC DER HL
Rel +5V Supply 7o3operate a t 32 MHz

Pin Decoupton i ?
Higun Oaderb addh pi a Ag tos)Avs
Theaddss bu haj 8i siqnalan neuouich
eea aLie mi eli scectioma.srals
Lowe Od addoe data Ds ADo AD
These ae multi pten ed piny Qndale
de multhplered wwnA ALE pim
The a u bi-dire ctjomal
OT
ptn amd Joves ay
Ao A oud Do - D aut tu
em tume'
Dwungthe enecuion
oinstHuction these
Unes CauLe add sos bit
duming the ea
paut ond dota bit clusty Locte Paut.
CLASSTIAG PAge 1o,
Date
Cont rapiny RD, WR,ALE
RD Ti Mmal indicote ha ulecte4 To or
memo Hy oltule blHand ond puad
a (upt olatu aval lable en ha dota bu
WR- Th Mgnoud mcl coute data om -he
6dota bus ba uittenmks a olched
mem 0y ocotl omn
ALE Pei tHive Je pub,High Ad doos
Low Data

Stat TOM, So,S


To/M wmd to SelckTo 00 memo Py opehatim.
Low- M
High To

So, S wd
1olbnuby he Currn

Qpuatuo
S So Stetu SoS Stotu
Halt Halt
wguut Raad
Paac wu

opLocde tch op code feth

Intesup t pins RST 75, 6S, 55, INTR, TNT


TRAP,

Hand weua intehLpt puw wcd nttate Om


intupt outine Stoued at pu dkined locouties
Sutem mem 0u

Sedal LO Dins sop (Suual Dutput data)| STD (Ceria


np data

Cloce pins X X , CLkfoUT)


gtot Quaillasy Clotk
CloCk tnpu
0Lutpu Spuce,
CLASSTUAE Page No.
Date

Reut out 2euk in t


Reset plm
teeu 8085
Rew w udtoih
gLeet aohun devícen

-the ytem. v alo

pun HOLDL HL BA
DMA ( Diet Memoy_Ace
Osue ued hem data t m s n
The
betwem a n
to be peomed directy
etemal alevice md he meuinalmem o y

the ukem
Mo
MT
Pouven pis -TVce, Ves

gni301
CLASSTIME Page Ho.
Date
AddReui moeltd.
Tmmetlote ddeLtlvy Mode S Owwe
alwuf Cata
MVT B 45 (move the data 5 immediotely to gB)
T H 3050 Loadthe HL palr witn op.305 Himm
HL DA
JMP addves JUmpt op amd addruy immedialela).
Rey.ates data t be 0p uated u
amedt/eet e add. mode the in h e

nd pegestony opmads.
MOV A, B move of B m t
Contendy A)
ADp B add Cortert A adB and ko t
Ceumulato
TNR A nteuy o A b 1 .

3
DisectAdd pesMn mode - Jo Det to be openodld
cwailable wmds a memoy Locatier n

LOcecthe cluntctg pe
On p enad

LDA 2050 o a d h (omtei mem Locatr t s A)


LHLD addoes Loodlorteny e 16 bitim
memo9y Locacfier
HL memo y peu) 3
TN 3 5 " e a d thu psot tis4LBe addra 35

The
h e doute to be opuat
Regiton Intipet add,modt
aw Nevbte mucl a memo Pocctioyamd hat
pey
mem o 9uy lo coehion indrectey pecikied
egoten a i r
Mov AM move-the conteris en-he mem0 ly
Locectio poin ed by he HL paur

he aceumulator

LDAX B more tnt en e BC 9c. to the A)


LXIH 2570
(CLASSTIAE Page No.
Date

mode- The op emamd bb4


Lmplicit addoai
datato be penaked u
aveulale i tnstructi on ik
CMA nd and torethe 11Coupln eit
e Covnbainy I1 b accumulautor Abvi A)
APeugu- by Ona )
RRC Lotoue accunmultvr

SLotate a ceumeeletu A on bit


RLC
borv bb
TNTERUPTS
p pcocr eve O nttupt MMsmel emG1M
stuely
it Mopy3
Pphenak
Cwoout exe c t e n nd Pcapnon contyo
t
CALL
tramyeuad to sb- uettune b gemer at siznal
execeny
u b noutine RET Signal
Cmd ato
agaim9 puogram Comtycol transkenecHo mann
wneces Lt hod keppeddslisus
Duehevm

Had wae olttwce


9ctevesintesiipty 10m ptns e Ad
p inseuted
ho uich Ce
Sotwce tuup g ane

betweem theapLLegram uueh meons the ae

mnem 0ucs u coo peu oceu The aue8oltwa


Rs7 0, 3 2. 7.
m p
ceblhs ahspa
Vectored and Nen Vectoredinteuupt),
Thp wich
Thev havekied Vectoredaddus starting
addhey ubrouutine).
esCatculahedb -the dmulao 8 *TYPEaM
CLASATNEage Ha
ate
Tnteuee Veetw addaeu
TRAP (AST 6)
RST 65 2e
RST 65 8HH
RST 75s

Tntuupt Vecto à ddvey


RST O0H 1
O8 H k
2

20 H
5 28H
6 30 H

Nen- Vecboed tteupts ne tho M


wtlchveefe
xddiw
depinad pu dukined, INTR is the
mom- veekbred tmteupt m 8086 P

Mas kahe omd Alon- Makable Tnt uuuyls


wch Com
COUm be oluable.d or tgno hed by ha e.

thoe tnteuupy ae eithe edge triggend o (ouel tolg3ee


o ty COtn be oliablu.
Non-mcuukable tnt eup OLL ho ieh cannot

b cls abld DY ignored by mico proceiy

TRAP t mankable tnt euupt a


amon-
censisbs beth edge tr'93oulng Omd Jevel
amd tued m Csutt cal
tugsouvy ais con cution).
Powe faliwe
CLASSTNE PaRe No,
Date

TRAP tho Highet


RST 1:5
RST 65
RST 5:5
INTR Low eut

tLapaInttcti ont Iotup


enable Tntetupt EI)he t enupt enias ue
Cme ipteuptae

oN

b s Ns
CLASSTIME Page No.

Date
8085 8086
16 bit up.
8bit data by 16bib dotaby
6 bit acld ey bui 20 bik add uy bu
ctock Specd ,3 MH clock speed 5, 8 2/0 MHL
Tt has5 ftags Tt ha
la 9

deesn mppo t pipelning ppo hy pipeny


deey mot cup povt memb

Sagmetation 0 s e g mentatio
ugate

Acumutatovbafed eneal puapexbad


mo ne honn ema Co be ud.

s adti oval extetrial pio c a w


be enptoyed,

64 KB memoy 1MB memo y Lused.

No minimum maximum Has minimum Omd ma vimum

mo a 1 mode. s

Plagg m 8085 S ACP-


poult - v e Resct Pslt i +ve
S t 0dd mo e 1s.
Set u even mo 1. P t
P
00H otheisue Peset
2 et Yhe uyulAU

sivio
e808
8086 tntenupt
1 Had wuu int tuup t ' I n t u u u p ) lch aue
aued
Coued by Omy puruphoa derice mdmy
t M a Mgnalthmouh speupuspm
Theu QL 2 havdnwan
inteuuply mBo86-
Luugu NMINom- Maealble Intuupt) ua
puo ety
sing pen m0n-maale able hand wcouinteeuupt
whtch commet be dbabled. It u the higtut
Pedo utytnt eupt m B086. Aktu L enecictiom
thu inteupt geneaty TYPE2 intuuet.
INTR Intupt Regut) It paoviolesa ngte -

intuupt ALgu CUnd activared by I/D Po


Thiyo nteupt Con be
Tt u masked0h delayed.
a level tsuehed inteupt.
2. Sekt wuwe Lnteupt Thee w st uuctons
imotecd hout
wtn m the2
Dnosomn to eneate
vwteup Thp 0
256 oltwwu tnteuupt)
8086
The aL2 bute m 0000 t 003FFH
st muci en)ie,
IPu loacled yek OLtHH
the next
lgTypet oUH CS -loaeled-loacled nLuom
addsuy by (type
TrPE 0 Du) +02H.
Co
uuuponcly t divigiom b
1 wwd ka z10
2
Single ep executi on
upewm NMT m dtb usaA
3 powu1 failu
appuyen buak conou'tten) .
poUnt wtw
mtuwy
Ovelo tw inteuupt
Umit-y CLASSTIME Page No
Date
Featuus 805L
KB on chip program memo y (ROM)
28bytes on chip data memo y (RAM)
8bit CPUA MO
6 bir Puesam Counte Omd Data Peinte
86i PSW Ound Stack pointe
8bit uegutem A, B RO, 1 R7
32 input /ouutput posc Cne amged a 8bit ports.
Ful duplexs nial data pecieves amdtronsmittea
Twe 6- bit countey (tmet
Centsuol pcgute
Occilator clock cncuit MO
Exnad 1
TNTI
HKB f28 bytey 7ime 1 Counte
Inteupt
ROM RAM Time nputy

CPU

Seual
Buy
0Sc Po 9uty
Centnol

(Add Dol TXD RXD


47
Block olagrom
CLASSTUME Page Ho.
Date

Merno sty 0ngamzaten


(MO of5 R

The 805 Lue mem py divided into pegra m


memo cata ROM) amd data memoy (RAM)13 dg

The pogram memoy ie ROM eemtains


sto 9ulng the pegrams to be execacted. 1d
data memo sy ee sed ie RAm sed T
T
opu têmpa va lables data tmmediat 9ett

Intema POM RAM Deika memo y


Store temposuaoy olata Cmd ntem-ediate euly
hEAT
Lnteidl RAM
0omiueo w3 Qeas
woKins phege tenM
bit addsuestable
g enena puspee RAM.

TPH

Gemeal
pupoe
30H psgo e
pFH f6 but
add puunabe
20H peguten
IH
Bonk 3
Bomk 2
Bonk 1 Wouelr
Bak O
CLASSTIME Page Ho.
Date

32
32 ayPes om addeus 00H to 1FH wich maky
upt 3 working ustey
04gamised a banks ugas, tu each
each eguten Covn be addruiuob ) mome

0 addhes. PSw
i aPw resrt90Y3/
Bi RSo omdRS w decide uhech bank o pagét
agáter
n we a Omy time.
s Cuvurilly
Bovnk 0 eleced on Reset

Bit addueyable
RAM byt adds
CmaNLOa e 6 by tep OCcupies
owmin a tetal 128 addreajable bit.
20H o 2FH
CLL ued only wthen the pa0grom need) to
These
event egiSuwitch m gh
remembe binaoy
Switch sh igh.
bit may be pecilulby L
Am adduesnable
00H fo7FH d
but add sess e
addess.
Each bit has

iGen eal Puwpoe RAM Vaslable data an


d toe
30H 7F)
tack

U
SpactalPumction Reghte
R 8o51 SFRact a s a Contuoltable hat
memi bor Cmd Contouelthe3DPenoction 8 051.
The ded sues Space em 80H4o FEH o
atocatedto SERS
euf o he 12 mem loc8oH to FF),
enty 2 locoutions a actally amGmao to

SFRs
Each SFR has me
byte addres Omd a umiquA
name wu'ch speaiie pwpta.
Seme thne an bit -adduuuabte (yeuhCom aoay
8 i n d i v id u a l b i b 2eme ae 3 byte addheyAable.

Registe A acurmulato EO H) (3
The metimposutant SER Lmetr ub4 sdnosm9
Hotds thu ueit o met aythmetve amd logical

openatiens, ad
Both bir omdbyte addesable
MSS bb LSB
Diudt add EOH
TEu
Bt add. E E6 Es Es Ez E E
(2
R B (FOH)
To eecute multh pU catien
(MUL) and divicio (Drv).
In 8095, (mul) hp eated adoituey
(div) 2ttt epeated subpactien
MUL DIV aht my puyo rmed
data -fhe
Stored
Bit Omd
m
e4 ARB.
add hcLAable.
MSe
LSB
byu add FoH
bit add
F F66
Fo
CLASSTIME Page No
Date

PSW PuocuorStcetuy twprel)(D OH) into


alve Imp.SFe
Cemut Ha9 bit ohich helps
euulty
checking the
CondUton
Omd alo makes
-tne tetuy o Opbratuoi decision
Retecty -ncutc bei arnijed uct.
beth b i ond byte add uiable 3
MSB
neys LSe
DOH CY ACFoRS RSo OV P
D7 D6 D5 Do

Cy T set data uComing ut ek bit 7 s acc

duung Cmau thme tic ep.eha-tieon


AC Tset data 4 Ceming uutem bit 3 4
wsen oluined
MSB bomk elect bit
RS1
RSD LSe
OV tu aCasouyo bit 6 but met hemm blt 7
pverlel
w dejinable
it u t hea tsodd
m0.
e Ls at

openatien m aCCumulator Pp b-80 85

DPL2 DPH 82H& 83H)


DPTR Data Pointen Regu ter)
tSnich s a emb.
of
46-bt ugi) ter
DPL (Louo) DPH (High) Y two8-bt
J6-bl Lge t
Cam be wd a Single
ogten) but
addrLesbut -S DPL
DPLR
have aphywicad
doesn't
DPTR DPH 83 H
DPLE82Hi
DPH have.
addtesuable.
Only byte
0ubrol
CLASSTIAE Page No.
Date
W29

Stack Painted d81 H)sus iot2 330


Stack
Rep somu a peinten to the $yem
8 bu uagu te r
Dioct addroy 81H nd by addeya
en blye ada
Pein t the next Storad data to be Qcayecl
To Store neo SP must be in e ment4by ene

nol-um exe cute Store Cem m cnd.

Pown Mgmt Regi to PCON) 3 4


Uged ektuet ppwen mgmt 2
Dedi code SFR o Powe mmalo
(Mse) (LSB) 3
87H
SMOD -GFa GFoPDTDL
General Puwrpose
Flag bib

Pow mt

Peun deven

BH7 S MOp
Baud nak u doublud in UART mo de 1,2R3.
HO no
eklect bauud natela1 t t 93
Bit 3 22 GF1 GF01: 90

genbnalPwrpou
Bit 1-PD Power doun)
1 enabu powen douwn rRd
mocle, In thls
osállater clock mode,the
twneol el or beth CPU
puphenab. Hand weue hect Conn
Diu able Pown COwncll t m
douwn mode.
CLASSTIME Page Ho.
Date
Bit D IDL Idu)
Enubl Ld Mode. CPO clod tuned el wheva
the Pupheral's clock
will uwmun active
PRkEo Inteu hand voe Ut Conn Coneal
Dhabu
Diabu IDL mode.

Powen eved im PD mode mo ham m idle mo de.

8051 Addveyuiny MODES


02V 007
Immeoliacte Mov A, 05H .
ponns imm. data
Reg Hen PenmiHed uautey A, Ra-Ro Ex Mov A, Ro
Oinect emly intmal RAM 2 SPR a ddhes 'conn be
weal Ex; Mov A, 30H
4. Re ndivect Ex MoV A Ro. eMign inclicoks that
he holdh the addos.
5. Tndexe4 Thu mod we4 for accueing data pron
Loo kup table, Add. ef the mema indexed ie
added to kom the actual ad dren
memo py. Derinatuon opinamd allway p A.

EX Move A, @4 +DP1R
The C im Movc ukayto to dt byk.
He -the tonten o A Phaaph to Qnes added t DPTR

Omd th eultonmt the add s el mem lo

dota Copied t pead to A.


whene
CLASSTAE Page Ho,
Date

ntehuyp26

2 Exlevmal TNTO INTI


3 nHemal TFO TF1 R TL
No 8/w intuuupty

Senial pont intenupt ( RT|T homdled by SCON


ScON
Timen D Timn TCE
08
TCON, ScON, IP omd 1E cet nols mtuup)

Time 2 Seal tntoup) ane


inhnally puoducedby
heas eYtMnalk tnttnup
etevmal intang device. Con he
Revel
reds.0tuerad
When tn teupt Occmsy e c xeauy he ISR.
. bri nult vetor table-
INTD
0003H
TEO 000 BH
INT 1 00 13 H
TE 1 VoM
DO1B H
RLTI DO 23 H
CLASSTIME Page Mo.
Date
Tntuet Enable B
EA E TEx ETO E
INTO

Futuwy
4L44 te onabl
ciuable the tntupty
E Dhabl all
inteuupb i IE-0

T Tnteuupt Prilo rity Regis te)


wE
chonge
Conn ehone Th
pio u Lvel intvupt by
chomgi the Correp endung bit the Prctesty

PT2Ps PT PK1 PTo PxO

L A 9402

99

MC

9MD
CLASSTAL PAge No,
Date

Iyt uutCttOn Jet

SUBB,I N ,
Arithmeher ADD, ADDeSUB,
1
MUL, DIv

2 Dota Thaml MoV,


RAm t ace
MOVX Mone em ext
RcC mly. lkod
wOk w m
Cocle
wsed to Copy dataem
MOV C
peag ra m mem
PUSH PoP

Loglcal ingtructions
3 AND op Sto) e u l t m da
ANL dle, Sre
ORL
XRLXO T
cleay the accumuloctb
CLR A
CPLA Lemple meny
mibbles witn in A
SWAP A Suap
RL Rotct
RLC wtn Cawy
RR
RRC

buuhiy Centucl Toms k n


BPanchi
JMP
wnc ond JMP
LIMe
sIMP
AJ MP
Cond JMP
JC Jump Cuuy
JN2 ump r ot20D

JE Tump t equal
JNE met
CLASSTIMEPage No.
Date

CALL
(a) OMm m Cemdh aree

e t Rp ACALL Abretuute Calt


LCALL Lova call)
(b) Cond Call
CNZ
czh 88
SCC3
CNE grmip

RET RETUeN
RETT u
em mteupt ub noutime.
CLASSTIAAEPage Ho.

Date

MAX
MIN mede Ato
multiph0 ceo
wnipho cesnor mode
witn 8086 tha com be
DruoCev bze 8087, 8o84

MN M enneched O
tonneckd to
MNMK u H.
Vcc
9ven b 8086 ALE g i n 8298 bay
ALE
Conto llee

The chr ctuu cimplun compuK.


Con b
Con be Muli peno cCi
Mulipow cumt d6
perorimed.
penma4
Penlom ome
Perko om anea
lven b 9228
INTA giuem

Direet imals TolM, RD , Stetu igmals S S. 2


ie b BoB6 gium b individua opea
8
CLASSTIMEPage
Ho,
Date
8O86 addjeviy moely
Lmmeclate add uey mod
Rega ton M

3. Dlreet
Regis hen Incdlveet M

5. Based add seing Yodo the okkut add ay he


of
openond ugivo bthe Mu ok Covtenty of the Bx/BP
egs ley a n d wuth 8/16 bi uplocemmt
MOV DX LBx +04 ADD CL, [ex +08]
A6. Lndexed The opnomdsoteet adduey kound by odeling
SI Or D On 8/16 bit olispta cwm ent.
Mov BX, [SI +I6) B ApD AL, LDT +I6
Based-Index addsucing The oktet aclda cperomd
Cmputed b summin
ming up the b a ua) t
to the Centens of indek wguten,
Om
ADD CX, CAX +S1], MoV AX,[AX+ DI]
Base inlexecd with cplacemeut mo de : The opeOmods t
8
M emputed by addi -the ban wauto (entent.
Am indexe Centevct Onnd 8 or 16 bit
olis pla cem ut.
Mov AX, [Bx+ SI+ 08J ADD CX, [Bx+ DI +16]
LASSTME Page Ho.
Date

Assemblwn Diueckiv)
ae the instructions torthe Onen bla toD
aeembln

vaau C book keeping tak Stoage uon vati ukom


Omd othen Contre funciens.

5421as3
Assem blen Diietve Suppy data tothe pecgram

anmd ceitnil therayewb Dioce. Dsnuh


you t do t u kollowi
Awembleh code Ldout mtb picikue) nctieny
Resewoy oce brim mem o
uy ke Un initiatizedVo
ent al the appemanu e tnng
Inittaue mem 0y
Asemble comdi Hema
blocks3 bon
Delna qlobal Vauabley.
Spee bhasl) Lem ch the ammb u CO
ebtun macmes,A orM
Examine
wbouc cebug 9ina inorm atiom . ba

Tal

You might also like