0% found this document useful (0 votes)
3 views11 pages

Module 4 Notes

Microcontrollers notes 4

Uploaded by

vileshkiran20
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)
3 views11 pages

Module 4 Notes

Microcontrollers notes 4

Uploaded by

vileshkiran20
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
modub-4y _ S Unterruph Perpreeconing In the Rokerragh method, shenewer Ong clewice creed © PB Hemi ye device nok pes The mCvororstroller bY — dtnding PE a0 Frterspt [igre 9 epee vreulving an Sntev-pt Elqnal, the mlceotn holley Stop doing Pree And shy, the devia. Fo THE Progrein, associated wth +he fh iy Cette] me Frrterrept Scurice route (se) @D frtesup} harder. SS creps to executing an Fatevrupt one Tre | achyation OF An Inteduph the me Goes —ypevegh ne Foltowofing Steph. O st Hoteher Ie RD Fd ereating aed caves the address oF Ine net inst (PO % shoe Shack pont CSP). ® ap abso Saves tye Cent Alatus of alte eGfIers. Ou Jumps to tne Fixed) locetlay alaned FOL ne Godeuph celled Patel vertes table + halcs tre addres op TSR. , @® me WHCOCOH DR Get Hye acklrer, b. Federsip) Vertes able % spasds een oe Unfill HF Puaches Last Ins pe i ae frcterept). Bao Hon Gye eneecting LETT IAD ante rVCOnhod so “ne” PACE UOhere FH cons gutcna pe © ML Jets ne pc Ocklres fom Steck potrder the, et Aha bx cecth tne mah : su ENP Fobrh, ° Peyem — Tnterupls fo ost colcrecombole ® ove aby ctx Poteteuph Fo The 80ST mc when reset plo 1& aetlvated 8057 jumps O Rept ' (0000) 4+ acllrey 0000. ThiS 15 the addres power-up fused ® Tei and To. Tee oft fates off (0018) (C00B> 100 Ent ermple cas Bet 48. ANY O COC! Tiepexs}. external hardvoasy trbexys ol) , Two Pnteanepy are get teh hasduour Exteened hlvo Irberply , @® into & INT |. 00) (0013) ancl FL) '- Receive PrtcarepH and! Transmltt @( ea a (ep) “faye bes & Blo scicd Corommuns cection Anke ph hed belongs to boty wsecene § art enlt. +s Takethapt Veto talble fe} 8057 i eeaeeets aan Ply checker | 0000 3 Cuando * | Raa) Qute © extesoal hie tnt © (twr0)} 000. 000B eet | | @ extercol blo fatr CENT} 0913 3.3019) Cueto @ Then © tnt (TRO) { | Otis Pat (1H) | 0018 _ auto @ Sates crres” et oa i (cba el . “rey Inlonupt Peable Register. @ SS —— ca Aiea EA - trdouel Enable ac erodledge. mp7 0 — No fat Coisable” au drderrupt) cat] — each Fntewuph PS nde d LU enablec) €D) disable. “4 ET, — vped Only 4h OSA me. ces — Erade @ livable Plead 0 © tne sextad part Pht (RISTA) 4 eT, — Erable © Arable Henerl Overploco Prt(T) wl — Erable @ disable extend fata CONT!) ero — exebk ® cUkable Tne, 0 OVEytoo mea, eo - Emable @ clisable tle Exterrcy tat 0(TrT0) wy Zim eieity Ree Da Do | Te era | PS | PT ex) |Pr| Peo oo a Reseed 6 en only to SUS Sepal porr Ent Proriry bie (es 915) ps — pr. sie} Fok PldPy bh (TD = px) — Exrernal it 1 Prlosty br (Dwr) Pro - ‘Tieneo bab Priovty phe. (TF) plo - Exernal tnt 0 Prieitly bM. (Tito) * => Interrupr Paty fy aes S051 Ml ceocertraler => gst Fite? priory wr0n Reset - wighest to Lowes prickly. O extrea| Tnterupho — INT @ The Potmupr 0 —~ Te © Edterral Tnterseps | — TNT) © Tow fnteps 1 — FFI © Setal Communi@ten — (RITE) (Lowest Prioitty ) SF pacqrercentony Tieoer Trbeawel @ > es Ws +wo ibs irre “TO 27, Lathefog counieyp. yr) qusther divided Fro S bid OF wepSesd Tio & Te § Hy -TLI. ap (bb) Ti (AG bw a4 yy ty THo Th OSH TH TU oy 4 (soy ee oe ae Coke 5% (lots to tre COUCH Y Byven by Paternal CLocs cy gost me ThD Te wid be Heme, 4 Hp Choos ye gyen by waterral HO Gy Te AT) Ahenie wot) — Cournirta.- > awa % to b Conpigquaad bY Trhod WERster of OST. count fo TP OT; pare TEO ® Th bit count 8 to © bedi Mt Sunnps +o sR ? woerecht eve wor dane, toad ask oddly > TSR dletvess for There, o % 000BH J Thresy Cope H. carcole © © usd a progsarey ard cbisplays q value OF y’ od Port 0 and Wl at POstQ %& also Ynrrate a dapase coave OF LOFH) WH “Weng o ty make a Ot POt. PIN AQ XxTHL 2H S19 ecot Lamp PtH > ypars fnteough Vectsi. table, ¢ eRe 000BH 5 rime, ofr vest acdiers De gerecection Cen 5 Rekwan {oor Preberrrpr + decottlon Yer He Srtesups edt) cmode & (auto welad) ORG 0030H copint Prey TPOD Bon 5 TIELO tow TH 0, AEOBGH NEVE coun) value fo THO MOVTE , ARRQH 5 enable trbepr Heres 0 SETH “TRO Gest — thes 0 Beck, hey po, Y's display yak gett Po. roy PAL WS diabhay Kat par Q sop 8H Exo: @ corse a — PHCYFAM +o generat roo Spee woes oe of SEH, feucpe ny ao pls g acct = ftequenty ASK, oF ld ASamne YTAL= Do, BT 93| > =| or, ool ORG cocolt Lamp TOBIN - ORE, COCR, +, Theres, © gutesuph Veerss cddrey Wr oO 5 be cee PL 2 Set gue RETI oecet . e, ore vor» TH! cheap Vert ocdresy ao. “4 Cel Pa-> aay Rent ecto. | [ORG ©030H aH Tl &To both Ca HoLLed fod a. mov TE SH, erable Tl To Cnbernners reov THe, AEOURH 5 Court Voli 8} SEH Song wor eno THI, A CBGH 5 coum) volur &Q 25th seTe TRo | gost Heres © aah geT® «TRA SHOT ines, | Br cK, TTP BAH) waltirg FRX the wo OF OR both Aare END: Rad Programming te Sestad cower nication inteph ® — Pram SR Prog 12% Te Pn ‘ ‘ | = Sur " WOR antes ‘ Ka P31) oe Trt e mov (eee . CRIT Pil os , _ (3-0) a SBE I FEO pln a 0S | Mi rveohnllel © mop en | _» 3sR Py we Can) Le eer Trtevdiel ; ein) — tov 6 ,SBUF 1 oR PI END cteph He _fovdved fn proprarom! Cele commen teata Soke TL —-y- 00s H eT A Grate % At bert THaRT Ok Seiad Come ,51 bag shoo Py THD (P31) Soh cestal tenon -& RD (930) fof Sextesd eco hia B soe (Evi) VHAA coll give Gnd tate data Sasebiy fof Seed CoD SM TRO X xD, ® In UY Comp AT MH WI Serd) xcene SB sR Y at lage HM wlll Sere | -scedve tosh. © ore, & vit @ 4 bye rawten'Miay i Completed , +r interrug) tells proeydh 8 bets Heanhmlast am 15 Completed ® oota, \ vyte RecoPtion 16 — Completed , RT Intoupt ACUA PErcbs}? = Be bIt— BLCAPHON — Lompleter/ @ ao Coy Salat Ur? | ead TO COmbigux CCOM — WEASNCS. im Gos co RRAPLES to generate square wave of 1 kHz on port P1.0 pin using timer @ interrupt. for timer delay; tmod.3 must be @ and clock freq for timer 1 is = oscialltor freq/12 ie. period of square wave T=1/1k= Insec. on time= S@@usec; off time= S@dusec timer register count for Seausec delay is 12/12 = INHz means 1 usec. (6556-500) ORG e@oeH AQMP MAIN oRG 9938h clr TRO cL P1.0 Nov THe, #OFEH NOV TLo, #o@CH (65036)decimal feoch / jstart address of program. sskip ISR vector table. 5ISR for timer @. jstop timer @ if already running. jcompliment the port 1.@ bit. sload higher byte of count. jload lower byte of count. RETI sreturn from ISR. ORG 030 MAIN: Mov TMoD, #90000018 —; initialize timer @ in mode 1. Nov THe, #OfEH MoV TLe, #0ecH CLR TF Mov TE, #82H SETB TRO WAIT: SaMP WAIT SIMP main END jload higher byte of count. sload lower byte of count. jclear timer @ overflow flag. jenable timer @ interrupt. jstart timer @. swait until timer @ overflows. scontinue execution. send address of the program.

You might also like