You are on page 1of 6
a ~ Dewsrvem OF Eaecrerche Buea 3 eeny “Turin Insemte oF aometi Screwce ab “Temosoor REPORT - Microprocessors Laboratory: - : P . a EBB). Nace Mg, Be - Lrvolls eae Cass 6% Sonester Feb Expt no: 4° ~ ch ss Tle Study on Vedor ou - Objective: % become aa with Ha vectored inlerrupes in 8095 MicraprnceeocTy . su et Hand f | x ie [ Moe cat aoe Serial ap Bon tcore [Reet pans Maske Mach [Maoh | Mask ” Mosh RaT fenable . «| "40 vsent fe a ee a oulpat '“to enadle F She ‘O'= Unmask couth “toe Mash. fi . ya RIM Read Tidemupd al 7 | 165 46.5 | es = | [ 6.5 f {Set if’ [bet if [Set Hf [Set 7 PET 6.9 | ROT5.5.0 | imlerrupt |.RoT 7.5. . prea fe f.. . Pending pending | enable fh 16 mashed | is ae is rmshed. 15 Degen gov te Werle Wife a program Yo make The microprocestor run as a BCD cou ard disphy the count tn data field «Om inferuption ,BerVicg routine (in hecation _ C060) no called which stops the — and provides, a dp of. Fr. A some delay th is saplay is Is withdrawn and the normal county ord dopey aye rouned.. ROTTS inkl co used, ' — Address | pce | Mrenonics Comment. : neem £000 a4 WT 5P,13004) nitalizing Stach: Points bo 1004 00 ; © fo02 |° 43 7" ae ~ 4So03 FB £2... |, Enablirg Intemypl, eS too, | BE [aya dey | Mo OGH to Arcumulador 1005 08 rhe : 7 ‘ 4006 BO | 52M Set Titerupt Mash. A i: ei 4007 SE |MVTA, OOH | Move OoW to Accwmuletoy 4008 00 F5 Stow PEW in Stack foon_| Co Call Display fundion, fooB 6E fooc . 03 00D 44 4x1 0, FETH | nitializn DE with FATEH. OR : cD Nddres | Opcodo Myemonice I : Cornmertt Pop “pow ——<+ DAA | mne 40094 is a es, CALL OBF4H | Call delay furetion. | Decimal Adjust Accumulator, Increment by 4. —<- ; T TT RA A [70k A with content of A 4+ 2 63 _ | IMP 4009H eee of. | nas 1 ia 10. . ce ees oes Tv y ui) iL ee FS ‘PUSH POW Store Psw ‘in. stack. 36 | MT A,FFH Move Ft# to Aecumulator 2000 fF sa ep | GALL O36E Call DisPlay fundion 6E ae. 03 3 thet 44. | xt © ,SFEFH | Initializing D wrth FFEEH cD CALL , O5FA Call Delay function. ————+ Fa PoP pSw Toad P5w from stack. | FB EL_| Enable Trlerupl 0q Ret all Retum to main program ‘| Repor mat te _ Whit modficadion in te ubove _progrom Yon to be R5T6.5 instead ‘of RoHS 2 - = We have to york all indentupts excep) 876.5 goss ; Whe So unb bine | ‘5m -» 0D . ir che pro program i ayn ~ UXT 5p, 43004 ae ee ges fePusH PW MVTA , OH MVTA,FRH SIM ~ Gren) | CALL osg5y MVTA 00H ; pe oe brea i Ain bot: PUSH Pow Fowim | cau oped . CALL O865H ; PoP PSw UXT. D, FREY wt | opp 1 tas SS CAL SOBRT > ops sir RORET gan PoP sw _ tare. ING 4009) BA Lay Be XRA A : 7 ae IMP 400 e a4 vo ne ‘ eae ere fe , my ede Ye ‘4 t <*> Waite @ program to geverate a square wave using SOD. bat sr, 1800 + Inithalize Such pointer bXT B, PF 40H 3 Initialize counter with Joouo oP: MV A. COH > load A wrth con, SIM 2 Sel Interrupt Mash: 0D pin high can DELAY 3 Wait for 0.05 msec. NVT A, 2OH 5 load A with HoH. s™ 2 Set Tnterrupl Mash ; 80D pin low CAit DELAY + Wait por 0.05msec mR B + Decrement counter by 4, NOV A/C + Moye comers of ¢ to accormblor 0” B + Qeck of counter is xer0 . INI LooP F not xero then otart, again. Her Delay Lie reali Deay: x7 0, Court, 5 bead DE with the timer coun! MatTs OCK D 5 Decrement DE by f Mov A ,E 5 Move comer of F to A ORA 0 2 Check if oat couler is zero NZ WATT. 5 Repeat bf not xero core + Retum to ynain funtion.

You might also like