You are on page 1of 23
a kt Registers af @n6) micencootraller © Ss oe a aa Et oa | th is never used tn hold the address of ———__| : = eee C Sata _pojipkx) = tt jc 16-bit pecial funchion reqister s ~ “Gepkat avidity a Niz: Deu fg DPL fk = Each ‘regi can be used to held & bit data = Bach 2=hi ‘ ean be used as an &=bit result. sae gaccnn a A atte | +f as the sesend input operand _and—to_webirn | | This_used jn raultiply Sd vide \eteaachione ne otitis algo_tsed a8 “genera|_—pur pase ————-—__ = Many —_insbauchion: coffeck eae il- inh ill Nags wolich +o ei foorn — ae ss om a ree | : v ss shen the ae = a" is_ysed_in_omithmetic, legal, | ea | Sein ee i Tn —beolean_opcratien =0S acum atu ea Ae Reig — Cia sta ' [iorerehar sth Is. f - ea eT bots oe in Ben eptbihe axithmebic © Perctions : = Tt will be cet vohen thers is camry from Dy bit! En Cuses flag 0) = tt is usec defined £ = (eg) Ai _OVer flow Flag = Tt js used in Signed. priineesticialy: —___| |—Onritlmetic operations —_ aa th is used to debeck overflow 10 ame = irae 3 unoulator i Lis set: xis odd the » = This flag ts veseb for even numbee of tts =k_| Memory vqjanizabior 2 - at has 29. eo Hinks pete ee Arma Lk oe ee into_3. mojor_areas wr ee Ls D_Biesk B2 bytes from. Paci Oey ee ian as four banks of _¢ zegislens. each: 7 m_Four. register banks are oem ce banko, Sankt, Bank2. g Gank3 a ——— ee each ister ina specified BSR Wasa 1 addressed ROE or_by iis Ram address ——__ = Bit RSo g. RS! in’ Psi determine which — o_ bank of | re gisher_curceatly in_use aia Moores |e Pe ee ee ee ae eae addresses oo-7FH- We Zann and a iyi fom aastses 28 a2 hy 3) s ‘address 30 te_TEH used for read | 8 eorike ctesagigy —— Storage — é ; — £05) Pea Special Fundhion_amgisters (SER) — ae | be addressed like internal RAM using from _ 20H - FF = —__| "some _see's_are_bit old essa bles This feahire allows the proyrammer to ekang— ohange cing bik _ oe 7s All the addresses 20u- EFy are wot ____— vAlerwactne! ; [Merete —o ¥ lerdal Porkdate luff ybewr WA Pl. 10 Port latch Bit ee Se A is RS Clo Spe=tabeh To apa i err —TDiemaipt Priovity — Sty — own i tno le en Cea | Tnterna) Roms. — aa ~ x05\ he has web of inkernal dm at addreset———— LiL from coco, -OFFFy. is a is_Used to held _pregram code a bye = SS because pacogracn can Oot block. the volbage, 20. I veseh pig. =ak isa simple RC differen tabec_circs sie | At time +=to pales ee ort. S| gefane , Rc nk akc D act bea ay angele is passed Hs laa a a = fer a short durabon. ke = Hence we get Noliage doe AcyD3s5 je. a spike After Abts, the sollage Yee is constant dl 4 = The Capacitor blocks de, hence the voltag a Qrmss Ris 0 Initia N Ne i Oxo R oe fell valtage i. : ia NR See Bhat capac A wlll start charging] rs. NR eas tp oy after some time =7 Laceated as leu level_g ik should ne oy ty bo = Reset time Ty pit Y Pica clue spe Qd__by ena quittachiney is R= 8-2ra. 2 C= Ine lid focation sect Dede i alae = The Styving of 9g ' cpy es tadhe = And wee the — af stack back ta, See wee eee Pus £ PoP jostructyons vo PoP & i) POP eiaok lnin Re PORES. Jpop c 5 ion: : AFber pops After Pops After Popa O8 By o8 = one OA OF oA On 04 76 OFn* 716 ot 46 os Og 6c og (aus B41 Read Andeard Fig, 206) Ports abruchive of P1 And its the shruchire | = Fig, _ehows © pa Me = Now the queshioa isin reading tbe_port, Or _iwe reading the status of +he input pir ——}Srare we reading -the status _of the latch 2- =—That is extremely important questien J — ibs_ansuser depends n_tohich lnshauchon_we—— Ane using een mencling Beepends there | i 5 | ) reading the input pin ax ——______+ ae | ee 2) reading the latch and = The ab clish. - . . i Ane S061 Park. = g an = To make any bit of any part of £051 cup input pork oe cous firsk sorike a 4 _ from fig. below we see that if we write a Ol tow) +o pork bits then @=0 ¢ Gal CEs i : ts Naat = rf my i. ont Mt pra vides the path: do egarelless ct th = This Can glo damage the Pas | explained Nest = Look al the sequence of ockions taking wie 6 d ~B2_and brings Hae data {nen the @ Label _ tee er js ANded wilh the @ntents of A eg tex u * Sag Me avian ech Read FE Re | [teed [ou D 3 reo Pax Pin [Write to a fate “4 184 Ro, Cott) Fig. the ———/ | Read WG By Vee L doer oe Cy 7 Ve |cpusus | as! 7 age mp e ; c, ck @ Fi = i} Vadeb +. | ahs | iad ee al : ———4-s Avoid dacagiag the part aa ; ———_ a swikch tn an ‘input pork of the Posh 3 | = This is due 45 the fack thal the morons kind of conpection can damaxe the. Pert _____ is‘ caniheced alinectly cto the pin the my, _saaosistox is ant" 4b “enill sink airrent from both internal load bi & exteroal Re —————=<— | =there are _several_inays to avoid this — —— __ aie, usay 2 tp hove —a 2. on the vce “pata 4tn_imik current flour Hozaugh| Aine, svansistay shawn —in—sfig.belowo ———— peal u - vad) SS] mt Fig. Trtut sulltch with No vee. @ cm Fa ——__| Porto Struchire » ———_|_ = atte That Po has no internal soul) up Bic cota Scie Pea. ey = Read. Pin Fran. Po shruchure Cnotice open drain) o - No itn wal ; istnr ie toge! ty couse iat Moat. That isthe reaton iohy phen Pais iced for Ca) | read td } Tha Sy i Exrernat - Pl gioternet I> Oke Pull up Bus Yess e es Pak Po.x byl Peta Fane _|lwrite bo Fy E Y = Ladeb, L S TBL 4 e Read pie i. ©

You might also like