0% found this document useful (0 votes)
47 views22 pages

Electronic Assignment 1and2

BSC bachelor computer science electronic pratical

Uploaded by

omshinde16102004
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
47 views22 pages

Electronic Assignment 1and2

BSC bachelor computer science electronic pratical

Uploaded by

omshinde16102004
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 22
Assignmen4 — 9:1.) Astempt air $))) How much ie the capacity _ oF xderna) Rom of Det 4k byes ton chip Ram Name jhe _istermp} which has highest pacity {fin 8951 micracom4101e7 7 {Sth i phe gest mienccoma-ree? 1 the ioreraupt | with tne highes} protity iS We Ine BM oss Age ze. cand a nia 0c. ie Aor sail i i Step size =ivnef | = 2:01 S on Step. Size. fen 8 bid AD LDH tccemines _dixéiives oRG -anci_o8 ©f Be a Seah. Stond | con 7 eR iicag 3) ac: 0G idinective isuiuse 4o__ —_—_}._ indicate the _heggineing_of the _addaess. Tipe phe pa directive isthe mast _smdety used Pt dois dinecsive 3m the assembler. 14 1S —used_da __||_ dering tne _g- bia _doxa __ Significance of Gose-_bit in. ~redstey in os 1. — Gerth i= Gating cantare! when Se 4. _rimea coal is enahied sv aniy when __ the IAT x _pin_is hig! the st Rx contre pin is _—_se+.—_hen- Sleoral i the timer _s___enabied —whenes-© comire) bit _ss_ set -_ a Feiiewing, Ihe _cpengtion (ef fouling insiqugics —N2_ mui ag, iti) CtR 2 iv). mov Pre, REA E 1010 operates Simpy Immedi aie elie —Retate instoucien —instauctiea is. _4 yc Bata the accumulatoy —Jorp. | i | bol raw aad explain. —Simphied _biock p—SE__0$1 - micaacantasuen 2 —_____—— {Figs Chow bhi to bnocK.. fii, Ory HOF dyin) Nerecanirelle <1 is the on chip computer — 1b -centain ai block —=Suith— Sd Ram), Rem, ae | pocraire: Jo pov} and__sevial To parts or Q__singi€ chip dag, |) piong: th this 14 alse. | other registers 40 _penfear bya oni coprocessor | catient — peotunes | of —gos1 —cicaacandasiiess= micaccontraner design _usi Aly. Sof Fooduaes _suppand - jp 1S On —S- —kbit ni- mas» technology ~— la. 9 bia dosobus $3 __1¢__bi4 _|3. 4k byses =) on - chi Rom hoe 1K bad on-chip RAM 5. 320 general _purpase — >r09,ste7 ach. 6. operating __ frequency, _ 2 MHZ are putes. || 7 enuttiph} aod _ divide instauction available — & ry Tle poms. C@sbiad, \eé-bn 2 timer potas _\mienupt —sumces — Serta _—_ Th ocdivess_bus of bit. 94e])parine_stee. a ES angie. — Tacos a sedation | pumbex of _st+eps__per— Stoppes—machcn angie oF — the 10) sun js__desined. with _o _singlé +29. revciuHss @-3_| naswes the ©) write a Ses) ¢ _parcgvam te —_geme Pas _USing Ake Square wave form _en_pext pin. timex 4 . meade 4¢ Assume _>TAL fF = akH2 = Jsco Ho ——poat_= Pa-s-_ XTAL = 12-2 the __cayStor Fotquency 12 MHZ for trimer + ———_In__mede_4_, _4he machine Cycle frequency. >See _mequency = ot x eay stat Exeg? > ——— + edece Ereq0 =. APIH2 is Sw a ca il ans: FE a , 4 IWeH2 —~ +S : : iquare WAVE toggie bekween high and low jy Suerg3_halt_periad the timoq needs 4 - x a re Over low eveny _o-¢ms e-5ms = SeOUSi= $00 clack pases L 1 Walw@ Jo she ionded ic Umer register C iz 2X 0060 46 © XPPPR CG 35) Cound up 46 Boge $< tnition wae 65936 - Sec E5086 y= EEOC ig be CFE) Geet FL a Coty st imcude < -regs1-h > Shia square-wave = P2955. Maid tine t-752 void) inior wp? Square. wove = square-wave s THs oxFE yy Thy Fi. OXeC5 5 addzessing medes aad DB) explain any —_© Register addressing mode += FP veeal) ta tenes 7 nee | inv 2 register Hamed Freq, PT kg be 27. Instruction using-—aegiste —add€Ssing jp —_} me _exitaded “using dhe _+hace 190) Ficans opcade to acy o || bus of 4+he _insdauctisa. | xegistew within this —tagiicat || Exampie |, mov Ai Ro - oe be! pb ___||_1eod the comrents of Reg isiey 'N}6 ACCU maton | __1@ bixect _addaessing made '= _ +} In ean access any on chia ov hardnar© registe | ___I! depending! on the’ higher avdea bi} oF the dined ——_—__addnesa | one of 4wo on-chip memory is selected. iS mast eften used 3 access RAM Jorated 36 He7EHie ‘ou ; i acess. I us Moy Re ISH L ———,leod pam tecotiom 15H) do Re . = +@_todisect addressing mede EE Se, 4 yt —8as1___assembty, —longuog? Indirect addaessing — 4S_1@psesented as a @ '_ Paecending Re om & -in_+he__Indiaect —addaassing rmode Only geqister Roand Ri 1 sedi fer _ intesnay RAM Inidin@ca data _sacing fer: A Old = tad! she\ Content | ee Pf of Ram tecatien Re te OC Cumuador. a ———,9_ammedinse _rddaecsing mader- ———}-this addressing med@_is mesented ithe: Be ., —— Signs" with the | —canstont address. when ———}0_sance operand = +— ee neaconsuAgpe. Ae” Zmmediqu das Prog ae name Mev Ay tk92.) ing YO Jead = ga ie) a $ G) Relative addressing mod BESTE SOAALESSIng | med use nig init 3h Sj Sire taistauiction. the aonge af zenpis 4 Be ame eicive. instante —= eesGel 00 the. value 06.) Lhe pangeeman _cnuniet aa Exacnp.e Sympthere Answer the fertowing ‘ Drow bit feamet of Te aegster ond uate - Signiforce + of each’ bid Z = eww wAt- — aes oe By Fa TE 7! pisanes oi iniersupis: if Fees ne ta Wd a J inierwP+ is _acKknowedged. t + i Ip FA=2 . Coch Intersupt Sourcé is indi= ef | viduaty enanied. ox disabied _by setting or Cleoxing. 4S _enahie _ Pin- = jt = TEE! tot tempternentedl. reserved for Fudure JET2 |TES| Enabies ov dicahie timer 2 overtow oy | coptyre ) N4e77U Pb =e les |TE-4 bes or disane: he _sevia\ pot iniemy ETS |TE3 | Enobie o* disables timex 4 _overFlo Ex3}t able ar disables esdernal_ioiemuph jleze | aii imevupt _genewates a _megrom cas __+0 f-———} Spprcpmiote + timer subveutine in memory. eT celeste Intemupt CEs) ‘= -— daio—_byie ic yereived . an in +erTupt —-deta byte is) tnanomidiad then T= te Esai wl p———-inrea pt —is_generated - bt sonal interaupt_¢ Exe and £ x4) fs aa INTE ave fan eg tee ond ATES in ton pat neces: pe Bo en don = maskabie Bl pine ring Of DAc nora = Wovererm. Pag ry Et 16 a impterqups Fow timer 2 hich is icabie incase of gos? oniy- —_||rimer fag intewnps CETe, ET)! I + Rd 36 ses 4a 4d i ccont 96G4S32- When | pastor these hits ono not cleared when “Sed hy external —Inpuis on these pins__set }ne _nte = _ eqisier j icoliaanetieJ Ho the WHente in Leaeh Inte UP} Drow on ee oF : © onc b+! ino =t1! in acoso , :HAMATGHGN Unpituinne 2p, ad —convebrted to inten a2 on ea Ay—cennecting 9 resister te__ © Tous cin, 4h resi i$ conversed +e _Nolteg¢—§ the —+otat cunreny povided by ghe Sewt pun functien of the bineay number at MRD A Inge. of .packos ond cument Crus) AS Feiliows TT Touts Tree {21 _+Dei 4 Ds ! aia 4 Ce Lae she__ackevence and is +04 409 42 40) 4m i Figs B08) coppersiar OAégce | | fig Shows 4he generation of Current rere 4——Lcseiting Tree =2m0) by Using the standrd A ore high, the marx o_O re fy || Fon converting Tow te verieqe ic # Lous pin a ax@S Sci Nescope- se |< pregram te geneasde — Saudocth | Gectude Shit _P2= P2Ne} veid delays 3 Void main 2 a Unsigned che A b + whine ©) ft } Pea 2 deiayco 5 atts —,-derey 05 k + 4 void deiaya 5 pee! Vi. 5 Unsigned ina Rei Ri 3 Fey CRe = For Ca, +e Es = f—this 4nstructien —j-—Contems tg —H@ may Bp mee cB Ain cies Vnciuction ie waged “ben code fememeny cod ony data. 1x PB crvnseat ‘= This __instauction 4 | enemas —_|_movx 9, @opre S_used Ae acess ened move _exdene) _ Ram to A ©! poraniel pant —=t}. parole) port. iota sinultoneous daonsfex of ———}}-muniipie bits of dato. in gos) Pow po, Pi. Pa jane 11 8=tsit. poronel ports used fox pu j | outpur operations O__peret =~ Poc Pins 2-39.) * AC S06- a duai purpose pert: fer dota) ond tj face i ah ap codes e @ pact P+ (pims_t-8) nedicated Pex generar '/o operation. @ por pa. Cping 21-28) | atpniioe to pave pas ia can_he used a$ Tle pi @_post pac pias te =17)s LO ey iethrreneus — communication: a malin this. type. of idota-” Jaonfew stant $ stop bit ane nod -hronsmitted but the data i Sete tise Jota __is__dransmitted mu uernsd plese an th— Syochannaniae i _sy.nchaci iS__begnning of —-th@ mudi —_6e 3 ot ihe eo ——_—_—— Stew enous method 420n ae ata time | oe dasa D) tmen_aegister = con . 1 Teorlg To T “Teor The [rE =u, BE. CE ae: [TR | e notre) —____Fig._ rimer T so entlow_F -—__cont7/TF4| timey-d ov S| pitrerence _ —between _ ic Pe nnicrn panes is ih —~e —PALCTOKaMF0)1e4 —PM.OASam-ro)\er icamapnocessox is_used in| @ PaGacen roller —CEPAPUFET _ systeny in Ersbeded Systér the hear} of COMPuUr er. e OS} of ry: Hi%C system |@ De 1S_used die ic Cot oF entire 8 ;—IS' tess + Dire pane, ysten Con sur phi Assigamen+ no -2 ot Ans wey Me Foleuing > O21 what is 4 © f Aa: and 4 ~ bus __o¢ ges) : dota 16= bid adda Define os © step_ongie is Aerined a in Sf retod mith o ngi@_step Number _ of Spex utidn hich __specia\ Function aegis —, keep Awack of pierity of interaupis ale Hh@l-sperien cuntsion resister used ‘to Keep | —_1_ ——jidnock of prey of interrupt is \ndacscup parent yd cre. register —i___d) |) which pin_of \ep i used For contrailing ee el Hatt comcn 2 4 o Ld feet: Pith Pine 69 OF el COn. Vo (VEE). 6 iced a _contacliing 4s contrast —S— —————— iQ fb 2) tiee any te _assembie7 dixecives: of it cre controiier. bt Onacdeting bytes) in ane DB__dineaives. is the pene enly_dinective _thai_can_be used +o dorine __ 4 —____-Pscat__Stving tanger than _4wo characters ul of} 1@. ORG -Corigind i= a L : —______|| the ORG divecive is used +o Indicating the beginning of _addvess- _ cul ene. cli jm tm « | stare the acie _ of sail tiene _ca_ Counter _S@1@ 46d __cleaned. : IL |_operotiea ¢ inpud _Faem internal _syst-err ) be Fox_coumi.er _operotion ie t 9.2! angwexy — jhe Foliewing He 4 initia A> ieeginel kb Ol Expisia: Whe function oF Fotleuing: pins & iE H caicrnennedraiier 7 — = ae } 4taddness toith mabe is an output is i+ 1s active highs) when gasi is connect ft exernar memory a i) psa jh tei pthis 1S ar coutayd “pins which stands For ‘prsq 4}Steae fhoble Ir Cas. of off-chip Rom +} f——Pin—is connect 40 jhe oF pin oF pom to 4 ieee ——-19_865) i+ comes with on. chip Rom. 40 E ap Pasgaoms: aa larcess on-chip rem, ZR is connected do vee —_lliv) Rese +- | a s Pin_g_is the RESET pin. 14 active high ++ lo put pin - upon Opplying —p S de this pin, - the microcontaqer wii) A850) ind teyminne ou) p———_|_cucti vities.. p— tt) expe: . i esis ug S| an Pipe 1S peat Alpert 4 have. Rersine ttt Rx pin. _ lh oa | Eypiain addressing - medes of (205) micrcconias ner =~ 11 © Regisser Address . Lin _s0sts there mene . register Sh Rote! Ry. instruction using regis ——}-s1e- encoded using the _4hnee_ teas significand 4 — bis. OF the jnsinucton “Gprode 40 _speciry 4 =g\S+e% within this _\egi \dness space moN fis Ro = lea +he content of Ro +e" ¢ |. @ vivect Addnes a \m__con__access chig ox hardware 2693 | 4e9- depending on the higher __ande bit _of the || dinect addresses leq. moy RerisWit loads PAM. Incatien 1s H te Re @ tndixee 2 Addressing _mede | s (n__g0S1 _assembiy Nanguage —_Indixec} ada: | precending Re \s_repmesented as a in he. Indinect addressing Made _oniy sage || po wand ps 07e used Fo. imieanai Aer indir _|| data _ ‘tronseer 12. e-qumoy @1@RPe t= inad the content _ot RAM fo accunnulader. L. ~ location Re © aromediaie __Addaessing made '- jf aig se ddaessing madé vis presented by [eign {gt colts csie — constant _addaess-— 2 | ei ene. vrei ee aah oe . Pies Oot ira, Ree é 93.) ensues ane Following. if {|__| tombe gos) ¢- program _4e—_generaie _ 4k f fi Woven. port pin Pir-2 using Himer ¢ e@lond mode 7 [ ASsume xcTAL = 1214129 4k ——C-lock _Prequenty sb x Cry stay Brrequerey ps =e % 14 10°H2 a ze b——_|— cock mre = smH2 —pevied = asoue | ies Wig) us eae fom, _ ihe. fey. waite FO 125 as —Hocuderegeh > ——Shit_wave = Si.) a al main Cvoid ) a “U0. ve THe = 0.x833 io a S Pee + ETo L5 7 cA 43 sebile (2) imero-Tse (void) iMienuet 4 aye = wave } £__Faliewing —_instquctoa +E xprains the _funcsion—e LD may €,@Ro @ jt > cot tt a i) djoi2 2, next s _jLtvo ee Pp vy) supa B18 3) moy Ai @Ro _) Sf ve — the content of __ Ret to the accumulates 1 - Je _onemery loco ten. A is 2-4 14_becomes 4 _\p__the hit: 4 is8 1 Ro , next. Sad > jump iF 5 i necrement 169i S+e™_ 5 a - f—_| zerve. this is jump —Instaucticn ot iyo Re AS - P i Rotates jhe _bi3S im _4h@ —_accumator | one _pesiticn to th right . withcut 7 + Retot@ accumulates Right Wien ~r Bo fe Substaact _the _canten} of egisier pang =———-the _caary_FAog__fonm he oictumuintcr p ——— with__bevrew:" subtract registex 8 B | tet —benveud ——9%4 | Answer she Foliewing. 00! prow block dingzom_ef&§ te Iniertae npc $251 __micrecomacer write ot ¢ On Paegaam 46 __generare . O88 wish = gfanguor—Loaverow F —t PLE nog Teg oa Stneratinn ef curaend veRorence ~ et by, Sdandhad cv Upaly and E \ BS reales: 3, wee nue later cel hich averse ny. Fuca Letdiae Lory. — SSAsidded. wih the pows UppIY ! Valde ye. new a QSSuM), tel Ieee 52 MA Vif ou ay servup} L ; eee thRe PAG Lore high uthe maximum clus -& 4 Suaaent 151129901 on a te smwerting. — Tret ous + #2 valdng® in 9ac308, connec Tous pinto ag Det otto. i on he Sci Nes cape ~ — DI worse AO — Cin REN bres 66. Sach micanartwnlee © 2 bit doter bus 1é-bi+ address bus +——_I!@_4k bytes on-chip Rom. 1@129 by +65 or Se by Rta Bee a , b » cperating Frequency 12 mH2 3 Bee TF © owitipty anda ide _ins4ruction available ie cena rps, FEGISHOT | Cath of 8-bid, t@i4@ | Shoat note on ihe ccolng Steppes motor F,. gtenpeniliill a) 7 ee a — moter 16 widely-used 4c} “Onslag, t : ec sical _ pulses —indo— 2a Movemen + py aa isk _daives Zz | cotian ef Steppes motor oi ee fs a 3s aw Wincise printers, rebotics —ond—pos ee al fas. 4 stator windings ‘ r s ~tapped commen. 203c+ . Ha with a cenzer- tap, a Ft shana in Rigure. the center tap. fF ——4 change te. conen yg. dinecHon. tn a é rh bo}, Register hanks \n__gasi imicracont1oller z=: ff ——=4} she 120 byes om chip” MEMOWY location z a fore. divided into diferent sectionS, aut of _-= jmbich_cous 4o 38M je) Aided inte Poir 4 ga 1 register bankeoi 4. 2d = TT eet 3 i is | }Bse Rei | Registers bank |. pddabes — i Oe chi, © Sch 07H | Betis lio ! 4 ogM=ory ef 2 ete 2s Bates. Yl pata — 4ypes ued for Sos) €= Magra Ll @ sbi+ =—spetial bit —addrescabie dia Wype Ror p——} anessing individual bias of : —|! RAM _iccation oe . —1@ unsigned char [signed char. bi+ unsigned |. — +-Sign@A integers , usel For ePpbion2ed _memer Lutili2adien when sma) _ Wwolu8s axe needed. —_ SER cx bit - addressable — ee @ _ 2Rt fp, #dato a \a_perfeams _4.e _bidwis eo ferutec 2H. Exclusive op _Immediat dato accumulator ©) Teor -resisier rll ons aeons Torts rosy yoann Hee a eon 7 | Es vette Hag 15. fet cher - | a] Timer | countes CverFlows, Iren-¢lres | timex + un comtyar pit. Tton-S| Te | timer o averFlow fleg is s@+ : Bd when Timer] counter oe _overPloss. pel ipconng| TRe | qimer a rus cndve| bid goat [Teon-3] TE tmeruer 3 a | [Freon] Bee sevrupt ¢ Jilrcont-e] to | timex Inter p a = i Pr a5 3 ao 5 $44)! to Genero} e_Tangujar —_wovef L =e Hincude ¢regsis h > be a Saree oss ae age unsigned int 33 ——_- pa_=oxoo 5 ae while C1) —— ds >. ee — Fox (izes j¢s2sg pitt) - La

You might also like