Microprocessor Note
Microprocessor Note
The pin condiaunection 0} 8085 4p is shecun tn given belocss
’
2
3
yo
SD —\s tr eset IN
irRap —¢ 45|— REnpy
RST4H5— 4% 0 ayl— t0/%
pere.s—t ¢ es
peTs-5—| 5 ale
ml, 8 aN ie
Tava — at
yo, je 5h
wr— A
AD. —"" 15
2nL— A
APgam oh 4 at— Ars
Ady Ie E fv
ADs—ti Rivet
Aoe—s P wS}— Ac
Ae |e 2at-— Aa
on —+26 ae a,
The 8085 Mp is & 8-bik genoval poy © Up The meman
dize = 9-04 kb. The dovie® has 40 hit “the procecsen opaxcde
cath dhnee MHz signal phase
“The pine ane also eal afessiited into six cataganies
one os sollocus—
(i) Address bus.
(fi) Addnese (data bus.
Git) Control signal and stedus Sigal
| (1) Pooser cupply ond Jequene
External pate ai onl oelinoaaledgemend signal
(1) Goria Input wee
“They ane given beloos —_.
U1) Address Buss g995 2p has 8th
unidiveetional used as high eek fae and.
(#) Abldsess (lode. Bus (mult el): “The Lines ADzrlo ADe
ane gi es po used ae fos ander vaclares
Deming the 05 the ¢ akin used
"i Bs bie 4 bus. d J(wi) Corda! signal anol aus signal Th Lp group signal oe
‘naluding hso condool signal aead [site and dhoee sledus
signod TO/M, S118 do Fderdify dhe nedur® od the operotion
and one special signal 6 initiode the opiveing of the
operation
t Rei }e
OY ARB \Adelaose Ledeh Enable); rs. y . postive going pule
gennaafen every times tho go¢sp bet hoging the operation.
YH indtaotes “that -the hiks on Ay do ADs ane adebocs hit;
“These signal fo used fe ladeh the low onder cobbwse from
the rnbiplored bus and genarade & separate sed of Paddese
line.
b) WR! hose shal io octive of los.“Those. sional relate
Hak Ale dele one dla. but. ard be cater $e he we
Thema on ip [sty Loe. aniten Into dhe cleated
©) RD; These signal is catie ot Jocs. Tese signal indicate
that the seleated input/oudped on meme deywo fete be aead
See ea! ae ret ee om
4) z0/M: “his ts sdofus signal eshich indicate the i/o operation
ond memary operodbin - hher Doe Ladhan tf indicates the i/o
operediion. “plhen =10/44-0 Ahan + tndlicedfas memary ze loked operation
$045): ase axe the as i. - “Thess one given belo. -
a) veo + - 4
——+ TH meons +5V pocuer supply
) GND: TH meons ground TEIMNance,
Oi orl X03 Crystal is comected at ctv pine inthe
Hp. ~The Snequency is inal devieled by deo stheredane
it oponale.s ot 9 MHy . “Ihe Coyle sould have CMiy
Soequarey-
d) CLK owl: 1, ; sh 5
iS Clock outpud « “hts signal canbe used
as system clock din edher devias. q
™ Exdernal initiate Signed! ara! aclenoosledyererd signal:
$026 Hp has 5 trHlerupded signal that can be used do
intloupted and an se ee
OUNTR [=Intlerupded Request) +
IINTR (Inblerpled Requct) “These 40 used as the
el punpese tntterupted,
b ;
lel
+ When aequest ic i an dhe tpt
ncloeslegeinend is active. i re
¢) Trap: ct ts hi paienthy tntleruph «Ht ie non —
maskable intlerpt can he classified jrds uo catlagenies
@ Masleoble + ee lhe), !
ee The request Fanone Aho procower.
“ by cle pro
becouse Hf power the erection +
eels of fie gual can accep “hit neque
® Non-rmackable: ~Ife request is immediabl acceptey
by ae precester, “the D Mehls aon be desided ines tuo
. |
OTUCS __
As Veatan -intowpa: No pxdernal hondtuane fh
ded in his trtlerypd= :B)Non-veedon Hewpl ? “Face jthouped extemal
hordeuane fo needed.
4) OTS C5 e55% “They ane nectank jntterupt. The a2® vectey
interurt - “These inter one cranefen Peper do the specisied.
“Jpose—atlenspst
camemony Jocation.
€) Hou (Hold Requect): “These signal indtcedfo that a
peniphares such o& DMA (Nineet Memeny fecess)
controller is aequesting the use oS the oddrese bus
amd — the ded hus.
8) HLDA (Hold Ackmoculeclge) + .
he hall Spal 2: “his signal cekrocaledye
d) READY? ~The sional used do delay the Mp do ead on
cane Cyne uyttll Yo low ; ae ponding poripharels
Is a Y to sed ax accept the dota.
1) Resekin : “This ts active at Joc .“Tie pe sof zor.
i) Reced Out: ~ This stanal thelieafs thd the begin
aero . This si te he used to the all closes
( Genis Lapa [Oubpect part? 2095 Up has dew sional do implement
the serio dhansmission. “These ane cenit! Input dod (80) ond
Gerioh output dato (00).
2 bite the procedoe Sin (clemutptexing the bus Adoto Ais)
=yhlhen Le signad ts high (4)-than dts netipler anlbese data
iste ele a “le Signod 19 loos (0) dhon His
“The guen Siqure shotus thak the Jedoh ome! Yo ciseel
3m. ok lexing “the pus. The ALE Signal is commented 2 the
erable pin oS the lodch ond oulpul idtnal Signed is spewed.Ines onalex
“address hus
> doce hire
cuhen the ALE ts high dhe lateh is dransseromt ive the oufput
changes ceeccadn a Dt 7 when the ALE eee
dado is ILE and chi
toteh vera dhe loos ee eee as ak citer
dhe leddhing opoattion.
10+ nite: dean cthe difference bedaseon memory mapped
rfp and “ilo mapped “a. ih
= ah m ed T]/0 the input foalpudt J eennerel
| serra Mure addnese. tl Sofesare tndenn one sock Incbuation cxhere
| dhe one one fe I cheese (nee Meee
— aoutine Hertel (ISR). “hoy one similar do call insu
| nonalle, th hood inkorn 3
be Nae ae sat 0. feet H eupks ore
Hod intoo hy sical Soom
external dev eh pad ames Yn. a Neo
genvice ya tion oS
Or | 1On oD ISR edurmn Pregramn
doom cahere ae “Vinanehes mn bei pened ah
| intoonpHardeare indeviupt are dasler shar
1 Whal is meaned Sino es Hock By 9
= isa on cae inderon capt input is echive "7 8 ealle
- masking irc tips « at many oteations the progiams 0
do prevank J ahs aceunance “of a peor oS several irc
Oe Up is f Aariming ¢ in dash. “The unosorted indooupt
co a masked e using the SIM ingbauction » ASTH5, 0616.54 |
BT 55 ane che mat indeoruphe
4. bp tthe concept of an intewupt and ks veer
=> fn frderoupt is cm tmput dodhe epu (cither ceetosane on harabaare)
cabith causes the CPU to suspand Hs norma! sequence of operodion ~
and ang wikis do ump do a Jocoction catied as a veodn Jocation and
execu the (sien a bantodd dhom she address . Atten dhe eveuttion
od dhe program cpu control is usally drancdened beck do the
cuhene if cuac suspanded and the narmal sequence of
exention ig Resumed » osheh on inderoupt geeuns the CPL control
is dodronslen dhe oecdion cshere dhe inlerupk service nowhine
ig ene» Sothad 1 cuilk be executed. Tiedeoount service ackiness
is abfadned by CPO chim indeoupd veelerlable (IVT) eahich is
sine in the’ 4of 4kB 08 memory location :
19. Pry mn EL and pe nce oF 2085+ Hoos those dhe
alin one geronaly wwe
7. The 8085 up he Ee inskruction thak ean enable on cksahle
ol the inden
TRAP.
=i ET ctonds a enable infoorypd. “This bs be
rdomupl fale is Ue is erable on cxcerta te
is set and of! the Fnechruckion an
ae (ena enter Jag eordain content,
PL? pz eC a disable age “his
Inghuadisn, [hen - ig executed , if mud Te 8 Sale a4 ie
d rdeouph- exeent TRAP ane *5 ks na ome al
Te
does nokThe prognormmen useatully ineluds EI tnedruetion in the
Service anes ae follocs ——
Sub routine ;
EL
RET
comm Uses PT inechwection fh tn dhe matin poognom
is on bat snes oxefions pant of main opam to be feskeate
ese indempion « fre can weed Baad intdruction ofthe
ninth ment Jo be prodected [Link] tick
leet ‘er he kan gus lexneyt
20+ Explain Set cndernupt Mack ([Link])»
=> ~The Su chom oF SIM inadruetion te set indewiypet mack,
Tis an 4 byte tnehruetion.
aa “The execution 03 STM inetetion uses the condent-
e oe oshish must he previourly Joaded 4p
pedo th — Loring Stnesion, iS d
Oy De Ds Du Os On Da __ De
2 6 [5 ee Seah ©
Sob SDE | X 5 | MSE |MF5/M 6.5 [M55
vy, z
i aa? case ae normask
SRSTC5 Jae mask |
ROT 5:5
eer set Enable
inden
S Serial i cok enable i
GW) sot mask don RSTH.5- RET 0.5, RSTS.5 nde
‘ncbuckanree eads the content oJ Ace. and Bicrinn, - I
the indewupt ceeding fo the content of Acc,
PH Da is aonttrel bik and showld | Son bit Der Dy on
Da quill enable the comesponding intemupds and dhe Jogie..4
eit disables dhe 1(ii) the second Sunchion ts Jo RST 7.5, hiL Dy tg addition cond |
Son BT AS+
(iii) the dhind Stetion is do implement the serial /0,hikDz and
De of dhe fec are used Haserial Alo ond do nat eek the
eee el Be=4 than enable the sentoU 7/0 ond Oz i
24. ae QIM (Read cndernupd Mask) :
=> the Sw dorm oS RIM fs read trterupt mask: eshen one
infer ache is being served , odhen oe aeequest ma
oan a \euin parsing “The 8085 has an additional instruc
“ is one byte tnchuelion that can be used San the
Solieaing Sunetion.
Da__Oc = ct res Do On De
a a
eee bers Mos|Msis |
STD
aa
De 5 ROT 2S
yo SRST 65
5 RST 55
Tderupt enable dag = =m
ee mask gtakas fin dhe RST 2.5, RST C5 ReTSs
Gi) Curment infor Me flag wtedus accept tmmediates
Salling dhe am 4 bs ay ¢
(iii) Hondesore indeoupt pani ing on the RST 75) RST CS, RT 5.5 Lines.
() Serial “Taped Dede
2 Give ining diagram dan mernony 260d machine qele?
The wdedes of a machine cyele axe clerofed by 7h,
8 (also he hb ape dedeh’) - An external momen
“a “to Zaces the miano- = poracessen Jo dd
tion ee can cadeh ip. 18 mastly
neny eviews on Such occasions , atascents « ‘Not ready’ Jill the dime oshen cecually dhe
cvailohte. When ‘hs happens » 285 Up insols amit H ring Sede,
“Ter in beteueen “To ond “Ta - :
Memory Rice 2
Signed Deseniption
Ag- Ais — Ascerded ot che beginning 03 Ts and held emeharged
4ill end 03 73.
Ade #07 — frdldnese Ao-Az asserted ot tthe beginning 05 Ty ore
hold unchanged il end eS Ty,
Doda pus ‘read? heteveen oS Th ctill middle oS Ta.
ALB — HT don dink half 05% and LO ole chore
o/M — LO thooeglfout
ww — lo dom beginnirg ody dill end of Ta»
Wee HE thoouah
93, Ciive cHming_diogem oS momany aiite mechine
=) “The timing bodes ofa machine cyele ane dencded
ts Se eds (also Ty in ease od ds eres 5 Be
j. memany cloviees’ on “Ifo periphanal Soaces sthe miro -pracessenia foy HS operation hedae the dovmen can cageh mien |
His mostly used by hed mina accents ot Mot |
1 Jeviees . On such ceeations, the slow memany acsors a
‘Not 2 dill the dime cahen ockaally dhe dada is Yovailoble
et happens $025 Up theo “uni toning stakes Tes tn
Te ond Ts,
befaeer
Decnipstion
— Ascorted at ch ir d
ape cee
anlage ed oy PS
Stee _ beginning eS and hold i
HN atin and Lo also eshere.24 Give Timing dingo oS210/¥ aead machine cyte?
| ia The timing odes oS a machine cyale ane dlenated by
| STigiteP anid 5 Sle hin cam th open datch). An Ci
) mamenry deviaets on 2/0 periphanale dorces the tp Jo alalar
H's opsradion hedne she Ps fen con cath may i ig nak
ticed “by ‘slocs' memany deviens. On stich ocoasions, the soos
ei asses co ' Net xieody’ ill the dime cuhen actually
dhe deka ts cyailabte . When this happens 209s Mp tneents
a Pers » 808s Mp ince
tit ming Mode, Tes in hedeveen “Ty and Ia,
L/o Reo |
Signal mal Desenipstion
Ag-Ais — Assented ot the bogiming oS h and held
unchanged AU end &S-t fis Ap excrchl
Some ‘ng Aq~ Ao d
Ado — ADa — Aya asserted ak the beginning 05%,
Re ed hal acho ah ou ot ok a
Dolla bus ‘nead' hekeueen middle oS Ail midlle
od Ta.
ALE =—— Hr Son dost hal 6% ond £0 eles ashore
| TOA — pr dhoouphouk
| RB to dom beginning 05 Te AU end of Ts,
i Wit = —— UT hrouphouk:
| 1/0 nea
Th
I Th 7
t CLK a
| a ix Higher_|onclen oakbresc| bus
ee
2/M
sie O[M=a IS = 4, Se20 |
we 4
oh pf25. Give dining _ iy nam oS I/0 onite machine cyale s
—L
= —the diming sdates of a moebine
“To (ls0 7% ir cause ed opeodle deteh), An exdennol mera 4
ox fo perp! cals dasces dhe Up Jo defoy iks operation 0
dhe siamen con cadeh up- =H te moctly used by ' slo! meme, 4
axcoorts & ' Nest ae AW dhe dime “ais, ockbly athe: dd d,
evailohle When thi Teppens j 2825 ip inserts cueit timing shes,
“Te in badeween “5 and Te.
0 hhike :
Sere! Desorption
Age Ais — Assented oc the ae od T4 and held
weloage Jill end ST Pa exactly som®
Me-#Dz — Addnecg Ao—Aa asserted at the beginning oS Ty and
held unchanged Sill end oS»
Nader "ear ot beginning 03 Te ond held Ail
fs
end od
ALE —— HI don Sinst hold 05h ond lo else cuhere
Dijin — Hy Horoughouk
RH —— HT Ahnoughouk
WR 1 Soom beginning 05 stl end oS Ta.
[Slocmile (9t-state) |
sh ele TS
A eg a ee /—
As —1X Higher | oruler address | bus
AbI—t
s0e—| Nadie bur] X__ Baka
gt
ne LOX o/itat 5 20
eo —+—, |}
Toa| 26." Miaxo - pararesso is a cpu” Explodn ik?
| ; ;
ht => the ry eee is inant componeart oS & Compute
|| “The compeder is aepneserted in RloSle didancum is ‘ghooun
given sigue _ €
Meu
Mics - |
frocessan —
ea
| Menary |
a Digilad computer ob Micxo-poocescon
ets fips shows hod the computer has Sun ’
ey 8 ae a inpud » output ond cpu «The ¢Pu consist
CPL contains various aepicter ochre
data.“The ALU pescbom’s the frithmoctio Jogi ee
ead an eaten, bom the memont Mod toh iene
spesivied- “There device ane communicated dhoough bus system
as well oe Miexo -paocescan bus sysdern.
23. White do aiSSerence beds exal purpose xegisk
pay eg een quale
=) The dikfenrenee is given helocs
wo iden oe used to ohne the operant
AML ectlih: anny de occis tke
jewlon operection. “fe contonks oS these. negiscter one various
-dypes: Bub ahe spesied puapose 2 isto one used damning the speci:
operation cahieh is perormed/ by ied eee Special
nee ee che effective ess, hang Pema
(ii) “The eromple. al enero) puopose aepiclers OE ~ Bes D,E, Ht
on lhe ober hard «the example oS specie! purpose
eget 76 ~ tack pstler- Ergnain coud nde crepe.“0. hile die che, disor fechicen abrlute clecoding ~ |
Bere
= "he diSerenee is given beloos —
zi
Ui) ab absolede ety al dhe addness Linas are clecoded so
one unique “ofp pulse “The device all be selected
ty ath the cies od the part number.
‘at pa Tn _pontiol ceca gome a} che address Lines one
"buds ctn potiod decoding no extra handvane i¢ needed
once:tonto Rus
=A dosica) mi sat ie fig ;
g Mian ~pROceSoON 16 ~ 2685) usoe " Busco” 4
ates operations,
i A'bus’ is a collection aS aines dhoaugh cuhich on setod
similon and selated stanals i chongmitted "hom one pa
oda compete do anothel “The number od caines the canstelules
a bus 19 ‘called the ‘esidth’ oS she |
“The cdhnee sepoacele Jypes od busog that ane ceanan
| ant mieno —procecran'ane
peda
bus «
B®» What is Bue 9 Nedine Addoce Bus, Dota Bus ond the
|
. TThe ochhess hue (ii \~he duta bus GH) The contro! bus.
| q guess Bs oe ac heel she ae
| 09 & meme S amber «Th i
1 address hee detomines Hae att “Telinel es
| con be comeeted de cfhe mien - procecan. J
|, fan example , iS dhe addiess bus te 10 hits aides o
crninimum pS" 9! an 05.580 CCK) dhsstineF memeny celle ean be.
Cormected J she mnieno- preceeson.
“The ~~ aaldnece bus ts ‘uni clincetional- tndnmadion
Mowe cut of dhe mierd-procesean and inte -the memarrs 072
phono}.
Catal tad naties tds chi Ee
micro paocecser de a menany ear. Pripharal forte the
mieno~ processor. the asidth “oS cthe lala "hus determines haes
| rere “bite? con simaltaniouely be xeod /ecitfen Th moot
mien? pawcessane + 0 — ell ic bolt (9. ids) «lb moo}
| eases the data bus oui od She. br byte),
| ah (3 byte) 20 (4 byte) ete
“The, dala bus i¢ ~therelone necessarily “bidineetional
indrmation Blois hedh ovayss beeen the mitre poecesten
and memeny.
Git) Condrod Bus: Lp Hseld scent 4 dala Anonefon
openrction. —Thene #8 usually one om Sain dperetions,
iy <4 iy Memeny asile 11) 2t/0 neal
Bic ty) 1/0 one, ei
iSwhich device corel the memory gods Jo lero
euhich - od e ration id Sig t¢
SA Bodin 18 a group od inedruction emitlen separafly
at mair gripes to peda oo durction dh hes” oceuns ©
Ah
oa a th dheY mair fae 0M » fo exo lo da ime leah
‘sequin hebsoen dined See ssive everts 3 dealy can be’
eoiffeh in che mein program do ovoid aepetation of Hh came
— wnebuction the subroutine techniques used.
“The 2035 Up has dose inchuction to implement sub ~
coufin ! CALL (coll a subnoutine) amdRET (xefuzn to main
paogp chrom o cubnoutine).
_OpCODE Operant furetion
CALL 10 bit memory location Call subroutine unconditional y
wy We is yeas pe ‘eogn
eee te a adn
oddness.
{i Soveccthe content oF, progem
co
ones stoelk,
ii) pins Sep eS sole
(i) Zh dag vel ly fo the
e ceed By tnorfint
tine number and thind b
apestiee A page number.
“thi Sink i fed
¥ yaa a oeki Thebucin
RET x aglian dhom amen ord tion
" s a 4 byte [Link] ¢
wi Inserts the hae Showtesl ih inte
ie Ee “pois mae ay aie
Git) Uneonditony. seehare jane subvaine
wdah Explain diSSerend phasas 05 data tronsSer cltmin
—exeubion om call tnchuasi
Oe ee aa
ee
cnehuction
1% os
a CALL “0020
40
2 20
2049, [Nea Tnchuchi
~The arcs of events ‘n. the oxenuclionile the call inchusi
by the 08 wen beloca
1S My opcode: dedeh :— soi a machine cyale the conttert
© program odirden 2040 ORE
Jaced on the address > and dhe! instruction code cD is
hed uci wh ied eh doda bus. Ad the same dime «The
courden up the nek por ocledness “soa a. bke
* fhe. a is clecoded and excutsh! the stacle pantry
ie dennemerted one fo 3PFH.
it) Ma @.Mo~ Memany Read }— trace oe aa mernan sead
» machine eshiehthe
re-bik addnece (2070H) od the CALL Tn ae is etched»
“The Joca onder arden gee Jetehed ord
eced jn the eo ne! high a address
i = ve Sedehed me elched snake. “soir Waa Ms
ot courder upgracled to o643H poirrting othe next
Mee a q
li ii) Ma Ms = Memos ag et Pe f ate Ahahe
F eM eh eration lacein
| be ep toy oe doer busy spt
snedead the: conkent ta} 03 dhe es aegisten OSFEH op
y dhe addres bus. ies High coder, byle od-the pe (en 2 ie
dota bus and*ene inthe het locertion 28 Fy
et ne the Ta paren neqelen is dememeiana tH
ashe rmechin€ cyple | Ms che pon oS'the ele |
FH aed eed On the lot
i od the pat Pers ey) is paced on the ie ae, |
ot ‘te athe stacle Jocabion “93 FFH.|Moehine [toc TAddness Baye - Courden | idler nol
es eon |B Bus 0% rf (Pe) eae ‘Bus Ss ate ,
obedbe aoFF 9040 | op
rc: | is
weno {23FF loons | 90 fa O
wimg }23FR 1904 |o6 4a 10- 4
memes [SRE FOsee lino ya |
Sag ears
ee 25FE
Wa next 9070
W tl ctl i the 2. Pitan oy the
eqsraIm execution sequence.4 cdronsse
do the. catt Jocedtion mae peers 4 the contents oS Wl and Z
de (oor H) on the Fidel M4 oS the nex! tngtruction
the progam counkr upapaded to Joa1 4.
a A in liSSerent phases 05 dexter cremnslen cluniing the eveubin
RET indruction . ‘
> a. ea oS the subzoudine chen dhe ingtauetin RET is
m execution quence is chansior fo the
eee jean 904SH “The addness 9043 cune sored Aop
cation oF the etacle OFF H € OSEEH luring She cau
maleate Figure—4 shows dhe sequence oF everts dhat
oeews as th vresbaxation RET 38 exocufed.
My is a normal opcode sedeh ©. Hocsorer de
Mo dhe iene od the whtk pointer ee ane ad
She addgece bus aathen than Those 03 Whe Pe the daa hy
‘se oie chop oe stack ig eas 4 ae
on ke pot ee 1S upenorde: © 107
ao nore Pn 4 went hy 90H oe diom
a nn lo, stack en
is a aid othe. 2, a ee ae
“ee sequence 4.5 ahansden 40 dhe dacation
2045 fy ig fhe coyetends 5 the Wiz regielen on
"oy le nh Mee beginning She hex! incbulin eykine | Sac Se Arieces [gain t |
poimen =
| W3FEH)| Bus
om Counter [Deter |
pet) (Pe) | Bu
29FE | 201F | 99
OsFF ogre
2400 | “ogre
="
20 uy | 90 43
33. DiSference Nace tht okt cee ee
=> ty hihen eat ts executed the Mp aufpmacioo
I x dhe. [@-hik adeness oS the fer nowt ize CALL
othe stack.
» - CALL ee the stock potrler aegisten is
3. “he inehuetion ret dransn the cordaint of dhe Pas
op : location od the stack to-the Pe,
vi wal the inchuetin RET is exceuded the sp i inenemente!
- Tn Sh. tnhe unconditional CALt and RET induction
thee one conditional CALL and RET ingtruction.
| 3h the address bus is untdincetly ~ JusttSy your statement
1% “The addnees hus 18 unidineet ional heeause addrece
b
a Sloca in one — ee miero poset
do the iphorol iCOS. 88 given by go¢5do
elect ot mmemeny "on an inptd loulpak at 41) ay mimo ppocesson man® |) p, , 70 aonitralen Soxs
pent we handling oe hea poodles hee mare
imgbucion. hit handling ingdruction ond
cso it ig aledina os o die
het ineludes Lp > mem
inpuf LE output signal Lind on
a single chip:
"30. hat db you mean by sub-soutine ? What ane the othardoge
oS using _subz0 ine9
> A subnoudine is 0 ae tee
eS * fa te tf, E You might also like