7 .. 8.'2 ~-a! ~m--mrifU'- .~ [I,. [II. Ii II. [II. [I,. 'II. II !'I II [I. II. II. II .. II [I. 'II. II •• II. II [I. [II. "!'I. 'II ... [I,. II !'I II !'I .. ~ 1 ~,31
[l4.:!:i1 M1J!~'~IlCilfJ.cril laJild DM'sion .. II • [I • 'I' • II !I .. [I • 'I' •• ' !II .. !II .. 'I' • II II II 'I !II 'II !'II .. 'I' !II .. !II P. [I !"! 'il !II P. !i' P. Ii' i li' ~ 'i. !'l P. 8 - 42:
1[t'171~1 N~d. [rmfll.t1rU-.tSi !II I'! II'. P.!II P. II P. II P. [I" ' •• 'I'!"! II !II II !II .. 'I!"! I'!'II II II P. II .. 'II !II .. 'I !II II !II • [I. II !II P. [I. 'II !II • [I ~ ,.: [I 1:'1 ~,e.1
1:2~,5..2 f10r 110. ~e . ,II" Ii .... [I,. I," II .. I," II .. Ii II .. ,I," ,I," II .. Ii [I" I," Ii ,I" ,I," !' [I. II .. Ii [I Ii [I,. II ... [I. [I, .11:1". II. ~2 Ir..e..
-ld'l.)t\.d!I;J ~Ifll ~I:!IIU 1111IL~lill~I' .. [I •• III. II ... III. III. III. II •• II •• II .... II. II ... II ... II .... II •• !III • ,II" II .. II .. llili'~· :il!
_~';~~ _'~,~~.~Ii;Ii'~ ~ .1101 1011." ,II. II .. IIII .111. II. ,II. 1111 .. III. 1111. [I. 1111. II ~. IIII r. II. 1111. II ~ I'lll' ~ II'. 'i' ~1t,;Aoii~,
. if "~I.u ~I,! ~~~11.I::111i;I! !L.rU1i11l!LII • ,.... .. hI ... ~ .. 01 • II, • ,II • ,II ... 01 • III •• 01 • Oil ...... III •• III • ,II •• III •••• III • III • ,,-
\,!!I~ . .-rI.~!i:il! I!!llll! III ~ II _. !!'IIi''-'! W!II ~.,!:I!I!.;_lJIjr 'i.il111~'i.niI~~ ~I ~~_I'~~~ III.I.l ~~Ii!'~l~11Ii' ~~~_~ ~'I-QII!II~-~III. [I I II II r. r. r. • ¥Y-
[Lab· &. - ·eri~~~ ,S:7- : l~lfJ~'~ 2~dl·~ ii' BC-D ll1lUrtnbGli5lJ II II I. II [II [II .11 II II. II. II. II. II II I: •••••• [I [I [II II 'II II II P. P. P. P. P. !"! [~I .. 52
'I'hls 'millptm~ the first of: tihis 'text;. ]:9, w,ritteo primarily' m inlrod)u.~ m 'the' Bmd.ei1l,t, ~be ~sor: based sy.stem, and 'the, role 0'1 mi~pwcesso.r :in- iit:., If ,ailso explains va_~ oo.mpmten.ts ])equiredJ, 'to, bui1\cl a, mi.cr:op~ocessar system. and the 'W1o-t:idng of g~falll-ed :~5W W1!i,t"
A"" a :part of :itltrodUdtkm, 'to 'the' mlo:oprIOO!SSOl" ~iUed sy,stemJ I 'w'Qu!.d ]~ to ~lw,e plMllosophy ~ ,~ ~. ~, sys~" 'let 1lIS ,ronsid.er a ,!l!mill.[ orgam mtiion. l~ ,e:onsists of '~: bod,y~ :~ end his ;su'bordlmilite5!, jn,cfi'iI!iin,g '!.mit,
;slzc',~ 'rom:p~rod, 'to h ()rgani~bon wUh,~ bUUilan, heimg'. The p:roc'~r :is u inrn,gr,aited, ~t· m a ''!tp,t''ll!' sma.l!l fii1..:z2 and 'L.~~ mOf£ i!!i'W!Irapr1lab! nrune ~0'Jt' it was S'liI!D'~ted 1m ill
OO'WlL'ti'er is dri(VgD, 'by '!'lite clod, signaJ, and the 'O!LI!tpul' of rounier 119 gi,VeR to dle decGder A.
1.1.1..2 'Decoder A
]~: :Is, a '4~]!6 ~dc:r.. Th~ f~ hit ~I)ltptl~: Gt counter lis used, as an inpu!t :f-ar the decocte-t A. It aocti,vates, ills Oll.l'~1i.d d\ep€ndmg on 'the ~'tarms Qr mput5. 'Ihe oUJij)ut of d\e de(;od~r ,A, ~ used Io ~tect ~ oj' 'the' ~tefS 'W~~ ~, ~!~t~ 3lray"
11.,1.1.3 Rtg'ilter May
Re,gistef' a.tt-ay oo.DSi iii ts, of ~lE~ .3 'hilt r:egiSite;t,S .. E.ach tegUter C~ ,;s,tOl'f.li 8[ ilfut 'WM,d. Ere,
It :i,s, ~d! W :sl{Jr~ d~ta ttt;m, the iOOID_t.H~ ibus.
1i.1.;t,6i Decodef :B
:0' t& ii, 3~ d~'- The: d~ta £[-oOim the :~~' I is ~sed as ,an, ~t: fur: the decOO~. If' ;swikh, is m po,siion, '9,1' this; data, is d~ded aad ~, t~ se'l.cd ,appwpriaf@ ~trol cirmrll' nom, me oooJtro:l, tmiJt' as, shown m Tjlblie 1...1.
II ~ D'1 Do
-
[ [0 ;0 O[
[
I ill (Ii 1
I ~.
10 ~ o[
10 ~' 1
II 11 ill iO
11 [I) 1:
1 ~ Ii)
'1 11 11 I MCi'V' A; C i
F======~=If-;===~~~~~ -=~-~~4- 1
'=,
:sua
I
{ 1.1..'t7' Collb'<Jl Init:
n ~t5 ot eight oontrQi] circW!ts:. MOV A. c, MOrV' 'B,~, C1, ADU~ SUB~ ,AND~, OR,. lOAD ,A. Dd, WAD B,. '~ ,~tilr(d -d~ts a~ 'U;.i].eil ~O< ,~te s~ls whlkh, se'led' ~ 'Qpera,fion, Qf ,ALU and ,adiva!oo' mp1l1'~ ~b~, signa] ,OJ! r~lstnr A ,<md ,rogis;tcr B .. .A:~ 11, ~ '~tpgJt: ~m. [@:niy o:ne ootttrol clt~i,t.:i!!f ~Cf~iy,a.ted, as ~'~ by Un: d~' QU~t
~d. B :~,~~i'S., iB'1;j,t :i.n, ~ Of LOAD A ~ LOAP ~ g~~ d~j~ ~, ~m:m.(J~ ~,~, iis ~y loaded :m.m th.e A and '8 l\~~r :re$pe(Il,veiy'. Fol' tills 'opeF,alloo :S,;,viJtcll mwa' be, m,
Sf~ ;~ Load. 1st ilIr-wnoo in .A Load ~_d number :in B AUf) mo ]iliilmDers
P,ilrst, step is ·~o [ioad, 'the :n~'ber iin lPegist'er: ,A, Tb, do -thist U is, ~~ to mve opeede 0:1: LOAD Ii operation, in the register '~l ~ ,Mtd ,~ rtumbar in, 'tim ,~t- ro, ,Ut))" SiDlihlarly 1m tie 5eiDJ.Dd, ,6~ it: is, ~~ m hB,¥e' 'IJ,pcOOe of Load B operatimit m. :register
I\i, 1; ~ [1Ji
R11 t 0 [0
~ 11 ~ 11 ,I
Rrl [
.... .1 [I) '~ [I) I
:
R o '1 [I) I
-A,
I
~ I
~ I
,
[Fig., il.S 4:116; OeDl:li1e~ ,(A)[
:STEP'm = Counter 'otttiPiiJ)t ({)ij(~ml
Inj:Ita]lyt 'Iilm iC'Otmltm' Is m. ,~, reset (loodi;no:n 00 Gaunter' output is zero (0000)\. n_e, d.ecOOer A vriI sE!~ed' 'me l[egism [0 {:Ro) .. ~ 'the :~,p~!t: fur ~d!m:" is. zero.
'!he ,AL'U"'s smgre 'OU'Iipll.d ,is ~ m the ,intern!!!'!, data bus, U allows to send the' output of A'LU ,over 'the' ~U!I, to any d!ev,~, m~. 'W h '&u.s. In most; of the, ~ :r~ A giVte;si da,ta, ,(m' 'Ihe ALU and der perlo:rming tile, opera!non.. 'l1le! resuiLa.g d~b. word is, ,sent to 'the~ 'reg1e,te;r ,A ,E!;M 51ored. theiie. 1'his spec]al f.Iet~, 'W~ 1!l!m, ,~ililJt :~ ac~n~;wa!ted is ~oniY' blown as a<lnunwamr~,
~ Ze~I:; the,~ bit:is ~t wherm, the ,cmdients ,of :regisler; ,aH,~ "ft:el1' ~Y' ~,a1li.'oa, ]']:is hIp.pens not Qrdy 'wbm you d~,m:t the epler, but also 'When any rlirid~tic ot 10Sica1 opemtion. mu:ses'the. oontel1l!ts, of :register.' 00 ~e ~"
8J N'~~l1rye ar :!!liJ,gn ~ 'ron, :2ts Olrnplement I;1ri~ the ,most: si\g:nificmt hlil"~ ,211 ~,
~lt. If'~, ~U~ 'is [o,g1~ 11 '~:number- :i,s, negatIllVl!' n~be'fl' ,~~,~ a :po:si'tiiv'C' nrllUriber. The' me,gative 'bit, or si,gn ~~t is, ,set' when any m:iJnmeli'C or iogi,cal op~ra)tio:n :giy.es r!I, :~l!' ~t,.
4) Au;:d~b!ry Cil'~ ; !he a~li!M'Y ca~' 'b:iJt~ of s;~lu.~ :~;t-e£ :i.:sl ~ w'lWn, ,~, ,~d!wb, in,
~ ~~~t,~:'o4: ,~i~Cs, :~~~,~ ~ :~~:~~ '~f,j'~~t:'~ 18 often :refen,ed as ha]( '~ny 1m'
pO"1mrer ,alw.ays points '~.e Jast'dalm pEaoed em the' ;stack and wheJ1l you try to, remove (pop} data :yo.u. 8[W8,YS ~ the last: dalm placed on th~ slae'k, This, 1cind of stack operation :15 [called, 'UFO (ti:5t, 'Wit fifiSt' agO optDti.e.rI.
:mahi!l!y 'Ili.ese are. 'Used to 5-toR mtentLedila,te' 1'~Wts 0'1 'the o,per-aUQo. Gettm,g the o,per;arui ,from 'the ,ge,netal :pur.pose' re,pters is mo~, ,fa_Ste:f t~, fro;m, ~m.emozy 50, it is better to l~",e ,suffici'.ent: :nmnbu of ilMftnral 'p~'I~SC ':~o1,q;ror in :thi!!! 'mi~r", Tm!: :m~~'
~:@l'IS:, U !lOOb, aher the :m1<;roprocesso:r POWer,..'Uip seq~.el:li.(ie" u: also, p-fQ(i~, m~-pb" An jn~pt 15 li~ i. Rq~e5t m dle: g~,I?~r ,bQlJ;!, other ,e.x~, d.e:v,~, s~ '. ·the memory and 1/,0. ''I!llc, mrlem1lf't asks the mi.a.op~r ,to. e';I!)eruie a :speci.a[ :pr.og:t.am,
'The: mbi:ii:iI:.a] d'aJ~ 'bits, ,~, d\ie d:i~Jt :p~U'ts of m~"~~·~ 'together' ,md! ,H eJ:lables the oommtmi"~Jtlon. ~, '~ pw. 'The' Mtl, ~' ftlroQP 'this ,m~ dlalta bus 1\6, oon~d, 'by ~~llogk"
Mi"~li~5 :il1Ii!!erna't dam bus ~suraUy ;c~d. to, g ,ex~ dialta" bm:" [)ue to '!lids miaop~ ~ ool!nmJ~:ca!b!: with, e:x~, ~or.y or I/O' d)~" U51!U1lli1y '!hE :inrem&I, dallSJ h1I1S is, ,~~ ,to. the @x~ d1aila, bus roy logj.c callEd a b~.on.al 'bus
~t:ra:rJsrej),V"Er)"
1.2 MiCIfOCOI1i1[pUr'ter Sys:fems
In the last: 6eclion 'we 'llaVl!' ~ s;i)rnple: model of :ml'coo,P:~~'- ~I in pradi«- .. 'tnc'
than ~ o,~- Normally;. mi~rl~t' is ,~ted, as 'pGI' h ,mq.mort 'Oil ,~, a:ppliica'!i~ To b,~ a ~ :p~ we' eaa ci~' go fur ~perior mi~or 'dor ''We can, 'use' more than, 'one' 'nrtO,p~ m, the same system, :mid, e,~ec'i.~e 'the ms'ilc fn parallel. Attazidling' 'to, siuperiodty and 'number' of mi£tOP.~ used.\< m1~~or sy~~,'iS ~ dlassffl,edJ ~ rol:l~·w~ :
Copy rig hted m ateri al
.. ~putm. • ~pUi:a:r.s,
.. Ma.l:ni&,armCl· ·Olm.pU~nn;,
:MJcrooOnl!Pl~ttrs = As tl1:e na~' 1!mpli~ :m~mpu!ttm:, 3J!e .:!ImaJ!ler ,mmIu.iretj5. They ,~onb'in. only one 'Cen:tril~ f.'i~in,g Unit. lOne di.sti,ngtWNIl.S :~tu_1:'e of a" miaoc"'Omp1!l'mr is
U;L\III;i,"-il~_e ~,r,-II.!' IS ~J_ ,y iii, !Sliog:~: lnp;;,sr',~!&I!.I!' CI~I"C\l!_,~, ca~_ ~~ __ c: _! ~p ,~< _- .' ,.
, :Microco.IDiplll'rer is dle m,te,gmtion oJ m:i(j!;OPI~950t ,a.!ffLd S1JPportiAg' ~h~,als, (memiD<ryr and 1/0 devilices'l" The word, ltmgtil depeod!s M 'tJrie mi~ ~ .. and is,
,~~ It has on, Milip ,dd ,generator", 'lhis ,m~, cl~ ~ator :req,uir,a ~, ci!rorlit ~ LC~j':a.c or ~" The. :mtem:a], doCk generator diivfudles GSci1IDator Hlequency'ib.r
aJ ~-axm (~gun~' (PC) b) :~k p~~ 're:[-fc) 1[ .. O._,,*I[ Pli.lliiPo~ Regi$ters ::
B/ 0('1 'O~ ~ H:I, ud L !!lI',~ 6-biit: i~QI~ p~ ~l.e:rs ean tOO"~ as a ,~aroo' 8-bit: ~~ ,~, as 'l6-bit: Je,ghiter: p~ OCI' D~ !U'd, Hl, 'When 'used in, :~,gis~' pak :~,. 'I:ibe' hi,gh order 'byte ,r,esi.des, in the ant ~rer (ide" :in '8 'WheI1l 'Be :is 'used, u ,Bl 'r:egismr '~) ,aJiId the, l'Ow ,m,der byte in 'the ~ (Le" ;i~, C when, DC is ,used ,ail, a, tegJ5ter "ait],
,ad\dl8 the ~ of' :~ter A ,and re,~~' 'B ~ :sto~ :~rul' in, ~te:r: ,A, 'lhe :adWthm 'qperalWm ]B, perl~, hy ,ALU", The A'LU' tl'lms, mpurts ,from. ~~ A l..d, ~~' data n!gi~ter. ''OLe, ,~ontents of :regist:er '8 are tir~ tOI 'rem~' dara, ~te:r .mt, ,a;p;pl,ying ~ :mp:ut tQ' ftc' ,AtU,
I)} 'W' ,Dd, Z te,si5teD :: W ,Emil ,z;. ;re,gister.i, are tempontry ~ter.;. These reglsUmi, ,He' ~, ro' hold 8-b~lt dalta, dl~' ~Jj!.'m. of $01:n__e~ :ID&kudi~ '~ ~1:er,S !lim net B,vailable fur p:rog;m~1' she 8085 uses !them, .m~y.,
Us. _':W land Z ["'BI~ :;
'Ihe CALL, 'eti1.Ktion i9, 'used 'm' ttamf,e;r.' :pmgmm (ionfm!l to III, s1libpI'OW'&m, Qr :submub.e\ 'l':bis :lns'tnldtian, ~, th.e ~t PC oon.tents, all-to the "mdc:, and loacb '.
Copy rig hted m ateri al
3. $pec'iaI IPlgi'f)0881 mg;isters :
II:~ R.e,~ .A. ~1Jll~t@r)' =; It ~ a trt,-stl~ [~~t: '~~t ,~tcJ" ,n: :is 'GXtGnsiy.tiI:y used in, aritJmlem:'~, ~ load, ,md slOlre '~I~ as well, as ,~ inpult/ou:tp1.~;t (1'1'0) operatic,ns. Mo,,_;:;t of 'llie 'times, the ~esuilt, or arUhm9t:' rand, i~CiIl ~)tio:f:'Is [s s~ in, Ole :reg1slE'l" ,1\;, H'~ it: 'is ,a;'16u identified 4J.~ ~U!law,
'b), Flag :n!lisler :: U :iB, ,an, &-bit :re,eiiSter .. 'm 'w:hi.cll, :Il,ve o:f tile' ~~Is ca.ny ,!aigmfirant infurmati.~ :iJn ~ funn Q:f,' lags, ~ S {9Ji~, :H~fJ~, Z (~ iag' .. ,AC (A:uxD.i.a1:y '~r.ry' Dar,gt) ... P (p,llIity ,flag:> .. ,!1nd CY ~cM':r.f ,Ra,g)\!: as :!5hoWllt in, :fl,g. 1.~10
[bly' [~, Os 04, ~ C'2 0,[ ;I!]o
" ~1 ...
[I S' z, -~ x ~' ,~, x, II 'F I x _I 'C,Y' Fig:. 2.3 filII, IieIiII'stelr'
:P~',lri.' :BCi.8 :; :PanJty iff ddined by' 'the' :m.mtber of ,~, :p~t, in ~ acomtwawr:.
After 81\ m.~' or :Iogical ,~raltio:r:Ii iiI' h res--m't bas an ,even R'umiiber of ~,,., i .. e" ~Yl!lI'Ii, pmity~ the fI.a,g is set. If:' '!:he, parity' :is odd!, hg' :is reset.
a:..cany' fliI,g :: 'This :fla,g t9 set if there: :is ,aD overlew out of b&t, Z, 'De: cany flag a&o ~M' ,u, ,!!Ii, borrow' n~_g fbi' sUbtradkm. m both the eQmp.~ shown 'l:~lQ'w~ 'the' [~ lag' :b_
mslnK'ti.om .it :~melll;ts p:ro,gr;arm, oo,un~' by two and, ,fur' ~, ~'yte: im:tm.dii:o:n, ~t ~15 :piiogram, (;ounter by Utroo sum. that :progr'i1:m. 't"OillIrter always, points w I1e ~ of. the next insmu.dfo.l:'t
~elds 'F~m counter' ~.Y three so flmt :it :poi!n15 dle H\stn:uii~, followed by oondltl.Qi'ilal ,JlTh;[P or CALL msb1l;l.dfiQn; ,o'Ch~ :p~r fetChes n.e :oext :in6~~ mom ,~, ,MW ad\~~, ~~f.led by' ,}lJMP or C'A'![.'l :i::nsn,ctim'fl"
'b)[ StiI,tk po:i:1iVte:r (SF) ;~ il1i.c, atade. is a ~:cd ~,Qf 'the' mtmlory m h :RAM: ~ '~ry' mfurmati~ ~y be, ~WIed. ,A, 1,6..blit stad;;; f<rli1tet.' ,fs '~. to :h.td\dl, the ,a!~dreN, ?l
:mU!ltipl~ ad~lda.tl. bus ~r ~t.am oonditioIitS, sueh as ~ese,t". ho:l~ ha]t· a.lld. when. 'H!Le 'bus :is not m. use,
The ,a;dd~~ and data bu1fets a.l'e I!lSed to' drive' cxlmnHll address and da.m buses n1'!.pet:lli.v@y. :DIm 'to ~, buliff:rs ·the· .a;cl;dfoo5s ,and ,djaii;a, 'ibu5e!5 l@D. be ·lrt-stated w~ fh~ are not :in use.
'nM,s 'l6-bit re,pte:' 1:9, used to iiiIILtternent: ((If &!~: the co-ntmll.fs, cd p!r'ogram OO'Ii.tl1!ter.' ...... !;f'L.;.'!' iIiW!Iill1o ........ ,"!;(!,~, ctl!~..i ,....~ ;i!i'io',._~,u'Cin. ~,. :iM~ctimns mlared to, 'Ih.e.m.
:In .1i~1lio:m :likejl' da~. ~~.on ovgr long distii:fiOe ,Imd Ol'~u::r.ramrl.caiiOn. with ·~tte' tapes .or a CRT terminal,. il::is ~~r:r ·to· b'~t· data 'bit: 'by bi.t· 'to' ~UQ! the oost~ ~ ,eab1ir~g;. In serial mmm~&p, ane bilt :is h'~ at a Itiime ovet'. a :smgle' :Ime·, The &185·';'5 serial UO ocmtirol proyl~ two U!rn~J' 000 ,~, 'SID .fur serial ~~tH;m. The .smal ou,tpu~ dam ·(SOD)1me is ·used "lo' ~ dab! ~y and. ,s.erlaJ. :~i ,&ita (SlEI'
1\1') elK our ~ l'his, :si~ i5 ~ !liS a .5:fS'Dt d.ock .f~t otllet' dm.ces. Its ,~ is, :ha1f Ute ~JlI_"ihlr :~1!len(~y..
2.4.2 IData Blils and Addrna Bus,
,Aj A'Do m ,ADI" ~; The :8 bU da'ta bu (Do ~ n,~l Us; mUl_lexed 'wi,~, h :lowcr hMf' tAo, = ,A:11 ,of 'the '16 bit ,ijd.ckess bus. During' fUst :part !C]f 'the :~ cycle cri~·l\c:Hlver' 8,b-i1S O'f' ~'O'Qf addtiess Cf' 1/0 add~ rIi,ppea.t [OR Ole ·bus. Durin,S; f:eGiiDng :pm of' the
ltC 'tuned ciJra:lll'" 1"he, OU!tput ,~ ,~t iUs ,circWt is, ,also not eX.ii'ddy' stable. But this I~t' 'has, ~ ,eiid,vm~ge' that U~ c;omponent' 'cost b, less."
:Hud,w,I:1'e' :' So.mB pins on, 'Ilhc :8085 dow 'pcripuraJ deviee '1.0 inttm'U!Pt' '!he mmm :pro,gtam, fw; ]/0 ope;tatiDill5. Wh.ell, ail, :in~p1; ~" tie 8n85, mm,p'1etes 'the' ms~.dton H is ~ly ~~' and, '~fu:rs ~ program ,~~!O!l ~'O ,~ ~ro~dn.e ~t ,~ ~ :periphe.ra], d~. UpOFi. 'oomp,letion ,of 'the' ser.v,ire :wutine" h MPU rehm:1.s 'to the main p~ These 'types oj :WtemJpl:si wrutte' ,M:N)' pH are 'used, to :rE:a!Il"e :in~ert.upt' :~j ,ME' caJ1___,ed 'hud,w.ue~ inte:tnl;p"
Solitw,uc:' ~ In 5iIlfiw'Mie :~trumpts, line' eanse of ftl.e :~renu,pt, is an ~tim1L 'c-i '1lIe ~1ini:dion. 'IheBe, are ,Hpecial iiumxctlDm s~,pnn:ed by the mj.Ct:Op'~. After' ~~ of' ~, ins:b:'u~ mria~or' oomple~ '~' ex"eCUtiOlm! of' h hiIs~oo U: iJ ~t1y' I~b.g: and, ~~ ,~, 'p~,~ OJJ1if!rIOil 'i{ll h :submu'Wte program, Upon oom,p'1'eti.OllIJ .of' 'the' execWi.on of the S1ID:mutine p:rogr~ :pmgrum oontm:l. ~ 00 'the' mam, p,rn,pot.
,,As m:mlttial\ed ,earlier ... ma-s'k;a'ble ,mte:n'upts ,iim!i' enabled, and dlB.a:bled 'Under rmgr.am, ,COJ1Ifb:rit In this ~, we' will[ see :h.ow' interruptB, can be ,maslOO or ~ 'wln8' :~~ oontrot 1'het,e He' three :in:3tritcll.CIm, 'eed ,fur'~ I ~ of :inteii'Uipis :;
The, ~adJ m~,pt: ~sk4 ~ '~~ti$!} i5 'u5ed to ha1l!dle :~ing '~~Hl,:p~. It loads 'the, ~mtu.s of the interrupt mask, 'the :pmnding inl0m1pb and 'the i~m'lent.s of h ~
serviGe '00 ldines;, ht 'When, 'the, in~,t req~esl5 are of :tawer :prinliiyi' 8OB5 stores, the infQ:t'maJti~n ~t 'I!hese :~tenu,pt: '~t6,' ~ in~j u.pts an' ca~led, pmdmg ,ilmte:n:U!pts, ~ siahJ.s oJ'~: in~pb c. ~e :ll'lQl!'dtQn~d. ~~ RD4 insbudicn.
2.i 11,0:" Memory ,and ,S".ternl Buses
We ~ thBtl' 'the Ollmtlrail, ~s.mg 'Unil~r memory' ~t and :VO 'uM't are Ole hell\dwat:e oom~15/modules ,00J'the: ml'fip.1.1Irer. They wotJ\;;, t~ with ~Wtg' ,ead!, othet ~ mVle :paths f~' ~' the :mmules 'l-o,gethEt'. Th,e ,coll.ecl:i,QD, of' paths ,~I:b:.'1 the v81iOlllS mod., is ,called '~ :i!mr~~n, :i!!l~', "fh@ dCiSlgn Qf '~ 1.rttm~lion, ::dr.uCitme 'will depend ,on, the ~clumges tlitat: :mmd~ be ,made '00twmn, :mod~, ,A, group of ~., cde-Ci, bus, :is WlEd. ro provide :~ s:i,gruO fOr oo-ifiiI'Ill:triC'aD~ '~, modules. A bus '~lt ~, ma~Of; oo.m.puter: oomponeIil.ib;lmOO,t'~ (CPU~, '!Iljl,eau:u:YI I/O) is Wled, a 51,Hem 'buj" 'The s~tem bus is ,~ ~l' of mndudGm lull' oo,~ 'the' CPU", ~ry and, I/O m.odules. Usu~il[y~; 'the 6!yslmi, 'bus is sepa.I'-a}~ 'into 'three ~ groups, :
'.' 'Data 'Bus,
,I, ,Add~ 'Bus, '.' C~tr-oi 'Bus,
_ "'ne, ~l :InkroP~r.' provides .AFJ;m ' ,ADj5 Wles as an, addftss/d:a_la ~ and 101M,. :m ,MiLd 'WI. lii1Les, ~ OOittm], lines" We have m mke, 5i:i.ppmt: of ex,tefhiil ,~kJ5
~ 'o:t ','c .rol_-."-'O'" 01'- "" ...... ~·I _mg'_ [111["'" '~·I "'___'-r !II! .Ii ~ U ~l r.n.· III :. - . kU!'l!lUiU ... _ Ia .... 1IIiJI~. ' ~,'
2',,8..3 BU$ D,nve.
~y~, the: 8085 ~, can, ;~, ,400'~, and, 9ink 2, mA ~ ~ 1£, 'it 'Cim, d,n\ve' mlly' 'ODe TI"L load. ~~ it :[;5 DemSfMU,' 'to ~R dlnving ,ca_padly ~ ~' H85 buseI. Bus, ,dri~, ~, ,lire used 'tQ, :~ die dlriving' ,capmty' of' 'the buses.
IUnldl!:'KHoilllll Bidfera :
A$ 'we :bow~ 'the ~_dress '[ru 18, ~ ,~hlt, ~ '~~ .. 741SX4l: U' used tt'i .buffet' higrer ~~ '!mI, 'The: Pig, 1:1'7 shows die ~ ,diagram of '74ts244., :n ~ ~ eight :non.oin(\l'~'~ with m.-Jlate' ourtpu_, hdt one an S:Ink 24 :mA. and ~ '15 mA, ,of ~, ~, ~ He dMdedJ, inW two ~, 'lihe eniibUng and,
diMblil\g' of dtese ~ He «m_1W by re' amd 2(;' 1mes. ~ ~
Copy rig hted m ateri al
8015 'MICfOnmc.uso:r
..... ~ ... ['-.'~ . rl " .. _" ~.~
'_,: 1~~~ ~_
[
iII;:~' --
..
To lnerease 'the dnvm,g ,cu,pad,ty' of d\aifa, bus .. bi,-d~tiowd ~r' ,Es: ~. Fig'" ,2.18 mow,s, 'h I~c ~gmm. of fie 'bi~tioo.iiil butlIer 74lI.S2l5:., aIM ,c;aUed an odaJ, bus
data ,Hows frQ:m file' ,A ~ '00 ~. '8 ib,~~ -whmt :U is, ~_GW,!' dau ,Rows from B to .A~ 'ne ,a-d:ive 'tow enable sJgmd and. 'the D:I!R, 5igrrnd ~ ANDed! 'to' ,adlva.ile h 16to lines" :~, 1b6t 'm dds, ~ ~ !Jink; :24 m.A and :~ l5 mA m cummt
rum bligh, ~o prevent: 1he' :m:iao,p~ from ente:rmg' 'the 'W:ait :B~te~ ,ALB ;si___g:M!1, is ,~ected 00 itibe dock; ;inpU!t of 'the' lar~ tOI latch b :tow o:~ .ad~ ;i.n 11 of dle
Ideally" the, dDcl:;: i9ipa~ ,Sbnl!lld. 'be :~ wa,ve wI.th 7aG rise 'lime' and, fall ti.m.e'I' as sl1Lown in b llgute~ But in, p;ra~ 'Wle dDiit ,get zero rise, tilme and, Jan time. 'IIler:efore 'the d1Xl
G'ro~' of' si,~ :is • caned a bus t]',.g. addlmss bus and dli.'IJta bus, To 8,vGid o::u:n,!pij~~ in, the limin_g diia,gTlun,~' ,sigIWs ,j}'!,@' grouped ,and ~'h~,!in 'tlM:,~, of bloc'le as ~ in Fig'. L24.
,~, :I.owm" ~ of ,add~ is av,~i.la'b:lc Q:n, ~: mrull:i,I?~' ad.~ldata bmI, (AD .... -=,,~'~~') di'iI'TI'U:r TI sterle' oJ each :madrlne ,....,....,,".,"le; exceP"t 'bus idle mtli.di.me' ~,,7:~""" - as
dmo!'e ,After i5e'~ dlev,ke; 'wUl. ~~ the dJ~, ~m ~~~ :l.Q.elitiml on, 'the dab ibWi. Dds adioo. needs h.i~ ~. Th:is ~ :i.s ~fun,~ '~ as ~KCeD ,tim.el . ·m case ,of. "Wiite~ ~ Igtp, :ia ,1I,V{i,j'I!lble ~ h :~t~ $Jet of b :~ ~ it, can put· ht daia ;aft tIi1e' data bus with. ,HllQ ~ 'time'.
5te;p 2, ~ (Slate· T zl' In T~ 80&5 p:1a~ dab. on 'I!im da!taJ bus and. ~1ibi' WR :sign.al low .f~r wriJ""II"Q' ,il""""" .i;~~. ;add"T"~~.lI m ~. --:::-p l-'TJ~ ~,~
~ :VO .r!ea.d H.d lin 'wrl~· :madUm:: eyd~ am s1mllu '!:o 'the' :m.em.ory read and. ttLmIiLOry write ~ cy;clml.~. :res.P~llvru:YI ~~t: thai!:' the :~OlM: sign ail. :is .high. fu.t liD ~ .~ .~lO ~'~: ~e qcles!. :m,gh .. toIM si:gnru. m.di(,il~' 'that, H is, an 110 ,opft.i!tiDR. Pig'. ;2,35 and. Fig, 2A6 show '!lb.e 'ti!ming diagrams .rm' I/O :read. ,and I/O ·wicite· ~, IHe.spa.-iively,;.
i:! ~I'-te I 'I ;I;~(kn........:i~ r.u_"I· . v'; II. I'IliIP ~., ~_I .. ~ .. ; """~ IW' iI
-
In respo:nse -to INm. i~ 8a85 ex:ecute5 interwpt· amw.wl!edg~ :~, Cf,:cl€' to :read.
m ~diDn ;~, the ,e:denlLijd -device, '~,~Y~ the eoc~. dMri~· ,.~. :place' ~y ~-"~-I .... n .1011:--, ,dab !t,\·i·~· lin .~.. '.,- 'ro, ~A How,gv.gr. ,om.[y' RST and 'CA.LT. ~.ve·the
15
ill,
,j i I
II
~, =: j:'
,I: ,
II ,~,
[ iIQ' .s'
'iI'J -'Ii I: [
~ ill!. of airl, 'i: 'j:
[e .t' ~
[~ ,
~I .5 'l_I
I • i
I i ..
I! I, i
I , i
~ '~ ~
I , ,
,,!II !
'il ~I II
,
;ii, a
~'.-; '" .II:
I: .a [
1~ [WI
> i
'~I
'I ,'[ '.'
g'
J:- 'j nI
_' " N
"'I
~, il il I[ 'il .i[ III [il Iii [II [II [i[ [i [i ~I
(M:l and Ms ,m F:tgf :2.38). 'The madline' qde& '~ aRCi, :M~ are memory write cycles ,dull'; ~tmJe the ~ten~ 'of U~ :p~ ~ oa '~ sta~;. and '1lLen a :ne:w :ins~ cycle
~, ..
Copy rig hted m ateri al
I"' I"'.' " .' . . . .. ,ril. 1Liii "'_II_ ,'Q~
• ,i I JI.,.~II' '!III !IIIIRiti~!UII'UUll!II' g;" .......... J.,.
,I " " " ~
801SMI~r
~~ ~
I,
~. , Iii ,I,~~ -+----~-~----t- I-~-~~~ =t===1
.... Ii
..... '
.....,
,I
'"I,. Ih. kill. Cyel .•
'lttere, He ,few- situlf.ti~ ~here~ the :m.admu: 'cp:le!j, are neither' 'Read 'not Write. 1'hese ,M~~~'~:
I. FOr ex:aution, of 'DAD ,instruction tthls :mstn.elfun adds 'fue' oontulits of a ,rpedfi.ed ~ p.' w, ~ amifents of H1L :~tet ~)I ~ T :Mate& ~ ~. 11MB, ~, that
the, ,ms~lion. AB ~t :is MIJ ,immedliilll~ irulr.u~ ~,pe:rand, i.e" 'immedJial@ ~6-bie data ii, given 'wlJthin, the J_ost:tuction., 'DO ,furtiher nta~, cycle! lS :required.,
Wdt: ~~bii5 !Q~ue' to be ~ iI5, long as 'OA'DiY lis i1atw. A:He:r '!he 'Wa.tt: &tak-~ 8085, ,oon_ues, with, '!i'~ of the, mEhin:e cycle. 'Dning ,21 wait smte Ole contents, of 'tlie :ad.d~ bus,. the~ d.iil!ta bwj ,and t.e ~~rol ~u.s are ,a:ll held OOfi5tmJL
The wait slab! tiba, _;""es, am ~ mP!mJlry or ItO port: g ~tra dod;: ~ ~ 'ro output: 'vdd dam 'on the' da1la '~" 'l"hU b~ ,~ 'to' WIe cheaper ~' ,or 110 ,d.evta:s 'hit :b,ve looger aeeess times",
oan~nm 'W _ ,regIl!!~Jr m. ,n, ""'IW-o!o"".,.,,._.;,;,
:~Q:r 'fu.m.pw : M\m: n,~ 021,[ Th.e OPCOOe~ :mr 'this hitsnetion :18 06H and, is ,always .f,ol]o-wi~;l by ,~ ~,~ data, ~02H in thiis ('a~) .. 'TIU5 :i~:5w'CtiOfi!; is, a, 'tw·o ~ - h'ns~tI)on, whidt ,oo:pj~ ~~::!!m data into B
~~',
F'·-· --, 'I::'-j~'--- .c.i[ ... e n..m ,~'YVlolt1. "l"i..., ""-n~ ,Ii:'~i." 'ilbH.s or ,~_:jIjmp~ ",I"~jU, 1!JI.bV!.'J,~,; ,!,~~ ""'lr"- ~ ,~_, ML --
irlstmdion. is [C3H. and Is iilhY'irYS ,fdllCtwUi by '] ~[ ~!i;"-fld'!i' ~ -: --, t'.::!200H·.·· in "fL.~"', ,mse~'" ThiI:s ,,'1;1 !l'U, ailOl! .~-ess ,,~-. = ~ ~ ~~ - - - -f ~ __