Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
541 views
21 pages
MC - BCS402 Lab Manual
labmanual for MICROCONTROLLERS
Uploaded by
Shankar Paikira
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
Download
Save
Save MC - BCS402 Lab Manual For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
541 views
21 pages
MC - BCS402 Lab Manual
labmanual for MICROCONTROLLERS
Uploaded by
Shankar Paikira
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
Carousel Previous
Carousel Next
Download
Save
Save MC - BCS402 Lab Manual For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save MC - BCS402 Lab Manual For Later
You are on page 1
/ 21
Search
Fullscreen
Microcontroller and Embedded Systems Laboratory Manual (18CSL48) Microcontroller and Embedded Systems Laboratory Subject Code: 18CSL48, CIE Marks: 40 Hours/Week : 0:2:2 SEE Marks: 60 Total Hours: 36 Exam Hours: 03, Programs List: PART A Conduct the following Programs by writing program using ARM7TDMI/LPC2148 using an evaluation board/simulator and the required software tool. 1. Write a program to multiply two 16 bit binary numbers 2. Write a program to find factorial of a number. 3. Write a program to find the sum of first 10 integer numbers. 4, Write a program to find the square of a number (1 to 10) using look-up table. 5. Write a program to add an array of 16 bit numbers and store the 32 bit result in internal RAM 6. Write a program to find the largest/smallest number in an array of 32-bit numbers. 7. Write a program to arrange a series of 32 bit numbers in ascending/descending order. 8, Write a program to count the number of ones and zeros in two consecutive memory locations. ‘ARUNA KUMAR B T, Asst. Prof, Dept. of CSE, GMIT, Dvanagere Page 1Microcontroller and Embedded Systems Laboratory Manual (18CSL48) 1. Write a program to multiply two 16 bit binary numbers. /* PROGRAM TO MULTIPLY TWO 16BIT NUMBERS #/ sy VALUEI: — 1900H (6400) (INR y® VALUE2: — 0C80H(3200) (IN R2)*/ y® RESULT: —_ 1388000H(20480000) (IN R3)*/ AREA MULTIPLY , CODE, READONLY START MOV R1,#6400 ; STORE FIRST NUMBER IN RL. MOV R2,#3200 : STORE SECOND NUMBER IN R2 MUL R3,R1,R2 ; MULTIPLICATION STOP B STOP END :Mark end of file R1=6400, R2=3200 OUTPUT: Fle it Ven Projet fish Deg Pepa Teak SIC indore PRA te eR O Hari@e i OF oe Programmer 6400371 20,480,000 © im “ 3 tor ki te 4 wr 1,820 sree si i OCT. 116100000 mare ne gy BN 6001001 1000100 090 000 c000 QW Ms © Bivise - % Bit = a « 7 ec @ tae acs Yo st = re if Sz ‘ARUNA KUMAR B T, Asst Prof, Dept. of CS&E, GMIT, Dvanagere Page 2Microcontroller and Embedded Systems Laboratory Manual (18CSL48) 2. Write a program to find factorial of a number. : PROGRAM TO FIND FACTORIAL OF A GIVEN NUMBER + In this example we have taken n=7 Check the result in R2/R1 register =13B0H (5040) " AREA FACTORIAL , CODE, READONLY START. MOV RO,#7 MOV RIAL LOOP MUL R2,R1,RO MOV RLR2 SUBS RO,RO#I BNE LOOP STOP B STOP END File Gt View Projet Fath Orbug Peripherals Toole SUES Widow Hep Bus) t aBloo! fer eis = wen Bmenase Programmer me ‘c0000000 "AREA FACTORIAL > Tx Bx Six dnt rx t SS 3 ev a, 5,040 5 a vex 80 5 on oan 0c. 5010 an Sano oe siys0,48 ogee = fee BN coo 0011 10110000 mia) santo = ¥ wor Ms } = © Bevse-% BRS cs koma tere ” ote eg >» « Ga a Co) ws a * 8 9 x a ‘ARUNA KUMAR B T, Asst Prof, Dept. of CS&E, GMIT, Dvanagere Page 3Microcontroller and Embedded Systems Laboratory Manual (18CSL48) 3. Write a program to find the sum of first 10 integer numbers. :Program to find sum of first 10 integers AREA SUMIO, CODE,READONLY START. MOV RO.#10 MOV R1,#00 LOOP ADD RL,ti.10 SUBS RO.RO.#I BNE LOOP, STOP B STOP END INPU Tx6xSx4x3x2x1=55 OUTPUT: R1=0x00000037 Bol pelos Fle Edt View Projet Fash Debup Pipers Tools SVCS_ Window Help gue alo In ae ee lw ~ Bael@le ocala #\h0 D600 + Dasa a-/a-o-=-o egies ee ‘sm Catesaor ped Programmer ‘coma 104 96Re TABS EAS R470 I= Soren 55 ‘nome hex a7 Sorome Toe 35 ome oo fe Som BN oorrom foun omen Bo — qwom ows co ee Biwise ~ % Bit Shit ee « * « @ > er Peds + Soore a on 1 . ‘ARUNA KUMAR B T, Asst Prof, Dept. of CS&E, GMIT, Dvanagere Page 4Microcontroller and Embedded Systems Laboratory Manual (18CSL48) 4. Write a program to find the square of a number (1 to 10) using look-up table. y/* Assembly Program to find square of Number" s/* GIVEN NUMBER IS 7 (R1) THEN RESULT IS IN R2=31H(49)*/ AREA SQUARE , CODE, READONLY ENTRY ‘Mark first instruction to execute MOV R2,#00 MOV R1,#7 vad no whose square is to be find LDR RO, =LOOKUP ; Load start address of Lookup table LDRB R2,[RO.RI] : Get square of given no in R2 STOP B STOP :Lookup table contains Squares of nos from 0 to 10 (in hex) LOOKUP, DCB 0,1,4,9,16,25,36,49,64,81,100 END INPUT: 7, OUTPUT: 7X7=49 , R2=0x00000031 Bev " Fe Et iw Moja Fah_Detog Fiterds Tool (eaa|sanlociaeienan 2|80\000v\¢\SRamas-o-2 inde es TE baat ew ao = Same s = Samer = Samer Tae ae eT 3 cama 5 We Be, too Lona a Son fem she = Same ae an corr 1 fugn somos os 0,1,49,10 25.08 fe, a <8 # QW us a 1 etme. % Be | ion tom oS ern « @ ere eee ( 1 =e Frew Sener see 4 1 8 9 % Derojet Seales ww Aw a 4 5 6 = ‘ARUNA KUMAR B T, Asst Prof, Dept. of CS&E, GMIT, Dvanagere Page 5Microcontroller and Embedded Systems Laboratory Manual (18CSL48) 5. Write a program to add an array of 16 bit numbers and store the 32 bit result in internal RAM. AREA ADDITION , CODE, READONLY ENTRY sMark first instruction to execute MOV RO.#0 : INTIALISE SUM TO ZERO LDR R1,=TABLE ; LOADS THE ADDRESS OF FIRST VALUE MOV R246 array of 6 numbers,counter LOOP LDRH R3,[R1,#2 ; Get 16-bit of data to R3 ADD RO,RO,R3 : ADD THE ELEMENTS SUBS R2,R2,#1 ; DECREMENT COUNTER BNE LOOP. ; LOOK BACK TILL ARRAY ENDS. LDR R1,=0x40000080 ; LOADS THE ADDRESS OF RESULT STR ROJRI] : STORES THE RESULT IN memory location given by RI STOP B STOP TABLE DCW 0x1 111,0x2222,0x3333,0x4444,0x5555,0x6666 END + Mark end of file INPUT: (Ox1111,0x2222,0x3333,0x4444,0x5555,0x6666 OUTPUT: Programmer 113142075 aad 585 16665, as ed MO 1685 me size oc 2005 iN cororocnoeno6%1 a ove A Re Bei a | @l ede . 8 ¢ c 7 8 9 x aanwnw cy 2S SSeSiHEHEEEHE A 1S EE rae er eto ea ‘ARUNA KUMAR B T, Asst Prof, Dept. of CS&E, GMIT, Dvanagere Page 6Microcontroller and Embedded Systems Laboratory Manual (18CSL48) 6. Write a program to find the largest/smallest number in an array of 32-bit numbers. ‘a. Largest Number: /* PROGRAM TO FIND LARGEST NUMBER IN AN ARRAY & STORE IN INTERNAL RAM y* ARRAY OF 7 NUMBERS 0X44444444 0X22222222,0X 1111111 1,0X33333333, 0XAAAAAAAA. OXB8888888 ,0X99999999 */ /® RESULT CAN BE VIEWED IN LOCATION 0X40000000 & ALSO IN R2_*/ ¥/* SET A BREAKPOINT AT NOP INSTRUCTION,RUN THE PROGRAM & CHECK THE RESULT */ AREA LARGEST , CODE, READONLY. ENTRY :Mark first instruction to execute START MOV R5,#6 INTIALISE COUNTER TO 6(i.e. N=7) LDR R1,=VALUEI : LOADS THE ADDRESS OF FIRST VALUE LDR R2{R1],#4 ; WORD ALIGN TO ARRAY ELEMENT LOOP LDR R4ARI], #4 : WORD ALIGN TO ARRAY ELEMENT CMP R2,.R4 ; COMPARE NUMBERS BHI LOOP : IF THE FIRST NUMBER IS > THEN GOTO LOOPI MOV R2,R4 ; IF THE FIRST NUMBER IS < THEN MOV CONTENT R4 TO R2 LOOPI SUBS R5,R5,#1 ; DECREMENT COUNTER CMP R5,#0 ; COMPARE COUNTER TO 0 BNE LOOP ; LOOP BACK TILL ARRAY ENDS LDR R4,=RESULT ; LOADS THE ADDRESS OF RESULT STR R2[R4] ; STORES THE RESULT IN R2 STOP B STOP : ARRAY OF 32 BIT NUMBERS(N=7) VALUE ‘ARUNA KUMAR B T, Asst. Prof, Dept. of CSE, GMIT, Dvanagere Page 7Microcontroller and Embedded Systems Laboratory Manual (18CSL48) DCD oxaaaaaaaa 7 DCD _0X22222222 5 Deb Oxi1111IT A DCD 0X33333333 fl DCD OXAAAAAAAA A DCD OX88888888 i DCD 0x99999999 ¢ AREA DATA2,DATA,READWRITE : TO STORE RESULT IN GIVEN ADDRESS RESULT DCD 0x0 END : Mark end of file DCD Ox44444444 DCD 0X22222222 DCD OXI DCD 0X33333333 DCD OXAAAAAAAA. DCD OX88888888 DCD. 0X99999999 OUTPUT: OxAAAAAAAA ‘ARUNA KUMAR B T, Asst Prof, Dept. of CS&E, GMIT, Dvanagere Page 8Microcontroller and Embedded Systems Laboratory Manual (18CSL48) sre noni tn i Rie Hn ne SG FE Sl] Atemewe > Ol Ie Te aoe Ta Ne Sao te ARUNA KUMAR B T, Asst. Prof, Dept. of CS&E, GMIT, Dvanagere Page 9Microcontroller and Embedded Systems Laboratory Manual (18CSL48) b. Smallest Number: y* PROGRAM TO FIND SMALLEST NUMBER IN AN ARRAY & STORE IN INTERNAL RAM y® ARRAY oF 7 NUMBERS 0X44444444 .0X22222222,0X11111111,0X22222222,0XAAAAAAAA 4] ye OX88888888 ,0X99999999 4 /* RESULT CAN BE VIEWED IN LOCATION 0X40000000 & ALSO IN R2 y* SET A BREAKPOINT AT NOP INSTRUCTION,RUN THE PROGRAM & CHECK THE RESULT 4 * PROGRAM WRITTEN BY ALS R&D TEAM BENGALURU DATE:08/08/2011 AREA SMALLEST , CODE, READONLY ENTRY :Mark first instruction to execute START MOV R35,#6 ;INTIALISE COUNTER TO 6(i.e. N=7) LDR R1,=VALUEL ; LOADS THE ADDRESS OF FIRST VALUE LDR R2,{RI],#4 ; WORD ALIGN T0 ARRAY ELEMENT LOOP LDR R4 IRI) 44 ; WORD ALIGN T0 ARRAY ELEMENT CMP R2,R4 ; COMPARE NUMBERS BLS LOOP! : IF THE FIRST NUMBER IS < THEN GOTO LOOP! MOV R2,R4 ; IF THE FIRST NUMBER IS > THEN MOV CONTENT R4 TO R2 LOoPI SUBS R5,R5,#1 ; DECREMENT COUNTER CMP 5,40. ; COMPARE COUNTER TO 0 BNE LOOP ; LOOP BACK TILL ARRAY ENDS LDR R4,=RESULT ; LOADS THE ADDRESS OF RESULT STR R2,[R4] ; STORES THE RESULT IN R1 XSS B XSS : ARRAY OF 32 BIT NUMBERS(N=7) VALUE! DCD 0x44444444 DCD _0X22222222 ‘ARUNA KUMAR B T, Asst. Prof, Dept. of CSE, GMIT, Dvanagere Page 10,Microcontroller and Embedded Systems Laboratory Manual (18CSL48 DCD OXI si DCD 0X22222222 DCD OXAAAAAAAA 7 DCD OX88888888 x DCD 0X99999999 AREA DATA2,DATA,READWRITE : TO STORE RESULT IN GIVEN ADDRESS RESULT DCD 0X0 END Mark end of file INPUT: DCD 0x44444444 DCD 0x22222222 DCD OXIII11I1 DCD 0X33333333 DCD OXAAAAAAAA. DCD. OX88888888 DCD 0x99999999 OUTPUT: OxtITLTIL GB civespanDecert up| sind fi Yen okt fash bg Peds Toh 1S en Agaa|saae Br) RROD U APR ANER nim aac ro) oman aac uae oan ue or 5,46 owt |My ale or) oa arc so ac 1 Wes, oe a ora ous Ba sie 08 90. ww OOF aan) {0 00 op Hn 00 00 0 6 00 co 4000 2 aca {0 a0 40000 00 0 09 00 co wo a9 0.08 {0404000 00 00 0 0c 0060 w0 0 0" 00 8000000 00 0 0 6 60 G04 08 on 00 2 6080000 0 092.908 W000 00 00 moran ARUNA KUMAR B T, Asst. Prof, Dept. of CS&E, GMIT, Dvanagere Page 11Microcontroller and Embedded Systems Laboratory Manual (18CSL48) 7. Write a program to arrange a series of 32 bit numbers in ascending/descending order ‘a. Ascending order: :/* PROGRAM TO sort in ascending order 4 /* ARRAY OF 4 NUMBERS 0X44444444 0X11111111,0X33333333,0X22222222 +/ 3/* SET A BREAKPOINT AT STARTI LABLE & RUN THE PROGRAM +/ /* | CHECK THE UNSORTED NUMBERS AT LOCATION 0X40000000 NEXT ay 3/* SET A BREAKPOINT AT NOP INSTRUCTION,RUN THE PROGRAM & CHECK THE RESULT a s/* RESULT CAN BE VIEWED AT LOCATION 0X40000000 / AREA ASCENDING , CODE, READONLY ENTRY sMark first instruction to execute START MOV R8,#4. ; INTIALISE COUNTER TO 4(i.e. N=4) ; ADDRESS OF CODE REGION ; ADDRESS OF DATA REGION LOOPO LDR R1,[R2],#4_ ; LOADING VALUES FROM CODE REGION STR RL[R3],#4 ; STORING VALUES TO DATA REGION SUBS R8,R8,#1 |; DECREMENT COUNTER CMP R8,#0 ; COMPARE COUNTER TO 0 BNE LOOPO ; LOOP BACK TILL ARRAY ENDS STARTI MOV R5,#3 ; INTIALISE COUNTER TO 3(i.e. N=4) MOV R7.#0, ; FLAG TO DENOTE EXCHANGE HAS OCCURED. ‘ARUNA KUMAR B T, Asst. Prof, Dept. of CSE, GMIT, Dvanagere Page 12Microcontroller and Embedded Systems Laboratory Manual (18CSL48) Loop LDR R2[R1] 44 LDR R3R1] CMP R2,R3 BLT LOOP2 STR R2[R1] 4-4 STR R3,[R1] MOV R7,#1 ADD R1,#4 LOOP2 SUBS RS,R5,#1 CMP R5,#0 BNE LOOP CMP R7,#0 BNE STARTI XSS_BXSS ; LOADS THE ADDRESS OF FIRST VALUE ; WORD ALIGN TO ARRAY ELEMENT. ; LOAD SECOND NUMBER ; COMPARE NUMBERS ; IF THE FIRST NUMBER IS < THEN GOTO LOOP2 ; INTERCHANGE NUMBER R2 & R3 ; INTERCHANGE NUMBER R2? & R3 ; FLAG DENOTING EXCHANGE HAS TAKEN PLACE ; RESTORE THE PTR ; DECREMENT COUNTER ; COMPARE COUNTER TO 0 ; LOOP BACK TILL ARRAY ENDS ; COMPARING FLAG ; IF FLAG IS NOT ZERO THEN GO TO STARTI LOOP ; ARRAY OF 32 BIT NUMBERS(N=4) IN CODE REGION CVALUE DCD 0X44444444 DCD OXI DCD 0X33333333 DCD 0X22222222 AREA DATAI,DATA,READWRITE; ; ARRAY OF 32 BIT NUMBERS IN DATA REGION DVALUE DCD 0X00000000 ‘ARUNA KUMAR B T, Asst. Prof, Dept. of CSE, GMIT, Dvanagere Page 13,Microcontroller and Embedded Systems Laboratory Manual (18CSL48) END ; Mark end of file INPUT: 0x44444444 OXIILIIL 0X33333333 0X22222222 OUTPUT: 0x44444444 i cxsesrvDecoarue stat Fle it in Fit Reh toy peal Tok SCS wba Hb DBR 2O/9o|e>/Pann| #/B0/h00 0|o/Haana-Ba- a aes = Gast a a 2 a Mo 10 BOGRE TD a reg <= sam 2/0 Boa oF 4 moa eH x somm 3 t eam ai “ a som) ) gy 8 samme 6 a sam ? a som : a sam $C asc , ct, mot » tems rere errr nr ry HS teu nr: 1 6 FG 0 68 6b 0a oom a nse: oo 6 060 9006 08 018 20 9 tase mien nib 66 608 Ge FG Fw Go. > fate. enon ns 01 06 FG oO 6 86 0 ob * now ue ana ni 0 9 86 0 6 8 0 2 Sema [ess 2 8 gan onan ARUNA KUMAR B T, Asst. Prof, Dept. of CS&E, GMIT, Dvanagere Page 14Microcontroller and Embedded Systems Laboratory Manual (18CSL48) a. Descending order: ;/* PROGRAM TO sort in Descending order + v* ARRAY OF 4 NUMBERS 0X44444444 ,OX11111111,0X33333333,0X22222222 */ :/* SET A BREAKPOINT AT STARTI LABLE & RUN THE PROGRAM. */ * | CHECK THE UNSORTED NUMBERS AT LOCATION 0X40000000 NEXT / :/* SET A BREAKPOINT AT NOP INSTRUCTION,RUN THE PROGRAM & CHECK THE RESULT. */ :/* RESULT CAN BE VIEWED AT LOCATION 0X40000000 / AREA DESCENDING , CODE, READONLY ENTRY :Mark first instruction to execute START MOV R8.#4 ; INTIALISE COUNTER TO 4(i.e. N=4) LDR R2,=CVALUE ; ADDRESS OF CODE REGION LDR R3,=DVALUE ; ADDRESS OF DATA REGION LOOPO LDR R1[R2].#4 ; LOADING VALUES FROM CODE REGION STR R1,[R3],#4 ; STORING VALUES TO DATA REGION SUBS R8,R8,#1 ; DECREMENT COUNTER CMP R8,#0 ; COMPARE COUNTER TO 0 BNE LOOPO ; LOOP BACK TILL ARRAY ENDS STARTI MOV RS5,#3 ; INTIALISE COUNTER TO 3(i.e. N=4) MOV R7,#0 ; FLAG TO DENOTE EXCHANGE HAS OCCURED LOADS THE ADDRESS OF FIRST ‘ARUNA KUMAR B T, Asst. Prof, Dept. of CSE, GMIT, Dvanagere Page 15Microcontroller and Embedded Systems Laboratory Manual (18CSL48) VALUE LOOP LDR R2,[R1].#4 ; WORD ALIGN TO ARRAY ELEMENT. LDR R3,[R1] ; LOAD SECOND NUMBER CMP R2,R3 ; COMPARE NUMBERS BGT LOOP2 ; IF THE FIRST NUMBER IS > THEN GOTO LOOP2 STR R2[R1],4-4 ; INTERCHANGE NUMBER R2 & R3 STR R3,[R1] ; INTERCHANGE NUMBER R2 & R3 MOV R7.#1 ; FLAG DENOTING EXCHANGE HAS TAKEN PLACE ADD R1,i#4 ; RESTORE THE PTR LOOP2 SUBS RS5,R5,#1 ; DECREMENT COUNTER CMP R5,#0 ; COMPARE COUNTER TO 0 BNE LOOP ; LOOP BACK TILL ARRAY ENDS CMP R7,#0 ; COMPARING FLAG BNE START1 ; IF FLAG IS NOT ZERO THEN GO. TO STARTI LOOP XSS B XSS ; ARRAY OF 32 BIT NUMBERS(N=4) IN CODE REGION CVALUE DCD 0X44444444 : DCD OXI DCD 0X33333333 DCD 0X22222222 AREA DATAL,DATA,READWRITE; ; ARRAY OF 32 BIT NUMBERS IN DATA REGION DVALUE DCD 0X00000000 END ; Mark end of file ‘ARUNA KUMAR B T, Asst. Prof, Dept. of CSE, GMIT, Dvanagere Page 16Microcontroller and Embedded Systems Laboratory Manual (18CSL48) INPUT: 0X44444444 OXI 0X33333333 0X22222222 ourpuT: OxIIIIII11 Bcuseinider epson Ww FL View het Dig peak Te SIC ton Heb aaa] Dao cles/P eager rele Saal iaT ws 4S Par *(Rbenoceas carer nonce man RN Hts Sma tm = sem « msm ms onmm Samm Sam = Sam 2) Samm ao oman jam sam bam 2 Sa mig Sam : 4 Sam Sn nse sum = A ro WHanDDHRBRAUUD sa Mmmm 6080 G60 80 GO a0 GOB OF ooo le owe 00 oo cocoon co ROW GoGo Ovo co Fc 60 G0 GoGo 80,7 BB OP GD G0 OF BD Go + ew 000 G0 eon B40 ooo ooo oo 1» Sera wat . Is ase a ent ARUNA KUMAR B T, Asst. Prof, Dept. of CS&E, GMIT, Dvanagere Page 17Microcontroller and Embedded Systems Laboratory Manual (18CSL48) 8. Write a program to count the number of ones and zeros in two consecutive memory locations. /* PROGRAM TO COUNT THE NUMBER OF ONES & ZEROS IN TWO CONSECUTIVE MEMORY LOCATIONS */ s® WE TOOK TWO NUMBERS ie. OXIII11111,0XAASSAASS (RO) v® CHECK THE RESULT IN R2 FOR ONES & R3 FOR ZEROS y* SET A BREAKPOINT AT NOP INSTRUCTION,RUN THE PROGRAM & CHECK THE RESULT AREA ONEZERO , CODE, READONLY ENTRY :Mark first instruction to execute LDR RO,MEMORY ; Load the address of memory LDR R1,[RO] Load the 32-bit number MOV R4,#32 ; Load rotation count ROTATE RORS RI#1 sRotate right by one bit, update CPSR BCS ONES. xls carry is=1 ADD R3,R3.#1 Increment zero’s counter B NEXT ;Branch to next rotation ONES, ADD R2,R2,#1 ;Increment one’s counter NEXT ADD R4,R4,#-1 ;Decrement the rotation count CMP R4,#0 jIs rotation count is zero BNE ROTATE sIf No, go to rotate ADD RO,RO,#4 Load the address of memory for no. of one’s STRB R2,[RO] :store no. of one’s ADD RO,RO,#1 ; Load the address of memory for no. of zero’s STRB R3,[RO] ; store no. of zero’s STOP B STOP MEMORY DCD 0X40000000 sMemory address END ‘ARUNA KUMAR B T, Asst. Prof, Dept. of CSE, GMIT, Dvanagere Page 18Microcontroller and Embedded Systems Laboratory Manual (18CSL48) INPUT: 1(0001) 2(0010) 3(0011) 4(0100) 5(0101) 6(0110) 7(0111) A(1010) OUTPUT: ARUNA KUMAR B T, Asst. Prof, Dept. of CS&E, GMIT, Dvanagere Page 19rocontroller and Embedded Systems Laboratory Manual (18CSL48) Wserittar\Desttp\ ag uv Mond Flee View Projet Fash Debug Peripherals To SVCS_Wadow Hep Deee|saglycleslPn nner e aia Pari@ecdalajs #/2 0/050 0|+/E@ialaaa-a- ages 8 Basen = ees as 95 Get “Rca m8 (I “A cou Stun eam foam = sous mer sac chrae snsraction to extout ms saan XS mem i] fis Somme | xioooaoe: HSE 94 12 GF 1200 Go 00 @O.be 00 wo 0 00 fun ame 4000008: 0 0 6000 OF 00 0 G0 9000.00 0 Oo 69 a Somm >| fesoosoan: 900 00 O00 OF 0 G0 00 S000 900 9 oo Son Somme fnteooasc: 0 0 co 0 OF 000.00 0 Go co 0 Oo 0009 | aol ee fetso0oes: 9 60 G00 00 000 G0 9 00 G0 0 Oo 09 00 2 fate ie ar rt [Brseoosn: 0 co 0 Go onc Ooo oe 0 Go 00 vo 00 eo io ees {eetoowces: 9 G0 6 00 60 8 00 800 G0 9 00 60 a0 Seer ie a0 ovnoett snieotett Gi c\usertanDestop\lawpr| pind Fe Edt View Project Fash Debug Peipheas Took SVS Wadow Hep Agee oalee|-sleenneec nie Barl@iecoa@ms #/20|0 000) >| aBe B- o-o-e-o-m-|2- if aS — Or ems [we Re crononne m Somat m Sox Sonat m Somat 7 ts Sonn : me Somme : = Sarum 4 aoe suse gstbe in me Some ; - ‘econoeee 6 = LOR 0, mEmoRY eon 2 mnie my Samant | 2 tev acte ma Sonat 3 mie Gomme | ao sorze ons 42 + EFF FP TE 20 0000 00 00 00 00-00 00 0 wD men) Somat eee 00 6009 OY 08,80 0 60 00 80 0969 toro comet iam Som oo 0 60 ao a UT WD 0 wooo 0 &D ‘som Som Be: 090 6009 OY O40 0 OF 0 8D 00 OD tn ee as are 90 00,0180 00 G0 0 B00 OD 0080. ere emexr ap pepe ecto ie aw ss,80 00 909 BD 00 G0 00 G0 00 GD 0D a0 So aCe oc, 89000 09 0 99 60 0 90 0.80 0 6D Seer iso sere ARUNA KUMAR B T, Asst. Prof, Dept. of CS&E, GMIT, Dvanagere Page 20Microcontroller and Embedded Systems Laboratory Manual (18CSL48) ARUNA KUMAR B T, Asst. Prof, Dept. of CS&E, GMIT, Dvanagere Page 21
You might also like
Dbms m5 Module 5 Notes of Dbms Vtu
PDF
No ratings yet
Dbms m5 Module 5 Notes of Dbms Vtu
49 pages
Module 3a
PDF
No ratings yet
Module 3a
36 pages
Module Two The Best Book To Read
PDF
No ratings yet
Module Two The Best Book To Read
65 pages
Subject: Computer Organization Sub Code: 21Cs34 Semester: 3
PDF
No ratings yet
Subject: Computer Organization Sub Code: 21Cs34 Semester: 3
43 pages
BCS302 Previous Year Question Paper With Answer
PDF
0% (1)
BCS302 Previous Year Question Paper With Answer
25 pages
Digital System Design Using Verilog
PDF
0% (1)
Digital System Design Using Verilog
3 pages
ECE (2022) 5th Sem Syllabus
PDF
No ratings yet
ECE (2022) 5th Sem Syllabus
31 pages
BCS402 Module 3 PDF
PDF
No ratings yet
BCS402 Module 3 PDF
18 pages
BCY402 ECS Module-5 Notes - 3973 - BCY402 - 27-03-2025
PDF
No ratings yet
BCY402 ECS Module-5 Notes - 3973 - BCY402 - 27-03-2025
35 pages
MC-module 4 Exception and Interrupt Handling (BCS402)
PDF
No ratings yet
MC-module 4 Exception and Interrupt Handling (BCS402)
15 pages
ADA Lab Manual
PDF
No ratings yet
ADA Lab Manual
67 pages
7th Sem Updated Lab Manual
PDF
No ratings yet
7th Sem Updated Lab Manual
14 pages
Ddco Notes
PDF
No ratings yet
Ddco Notes
40 pages
Web Lab
PDF
No ratings yet
Web Lab
62 pages
bcs402 Microcontrollers Model Question Paper Solutions For 4th Sem Be
PDF
No ratings yet
bcs402 Microcontrollers Model Question Paper Solutions For 4th Sem Be
44 pages
58 Csesch
PDF
No ratings yet
58 Csesch
12 pages
Emebdded Systems Previous Question Papers
PDF
No ratings yet
Emebdded Systems Previous Question Papers
8 pages
Uiux 3 4 5
PDF
No ratings yet
Uiux 3 4 5
11 pages
Web Lab PGM 1 To 3
PDF
No ratings yet
Web Lab PGM 1 To 3
11 pages
BCS402 MC M5 Notes
PDF
No ratings yet
BCS402 MC M5 Notes
13 pages
Toc Mod 5 Notes
PDF
No ratings yet
Toc Mod 5 Notes
41 pages
Vtu DSA Lab Manual Related Can Help You
PDF
No ratings yet
Vtu DSA Lab Manual Related Can Help You
116 pages
ADA Lab Viva Questions
PDF
No ratings yet
ADA Lab Viva Questions
11 pages
DDCO
PDF
No ratings yet
DDCO
34 pages
MC Lab Manual
PDF
No ratings yet
MC Lab Manual
56 pages
DS Lab Manual Updated
PDF
No ratings yet
DS Lab Manual Updated
78 pages
22esc143 Iec Module-1 Notes
PDF
No ratings yet
22esc143 Iec Module-1 Notes
26 pages
Application of 8051 Microcontroller
PDF
100% (1)
Application of 8051 Microcontroller
8 pages
CST294 - Ktu Qbank
PDF
No ratings yet
CST294 - Ktu Qbank
22 pages
Oops
PDF
No ratings yet
Oops
23 pages
ADA Important Questions PDF
PDF
No ratings yet
ADA Important Questions PDF
13 pages
OOP Java - IMP M 1
PDF
No ratings yet
OOP Java - IMP M 1
14 pages
LAB Manual-1
PDF
No ratings yet
LAB Manual-1
47 pages
Module-4 Ddco
PDF
No ratings yet
Module-4 Ddco
32 pages
18CSL48 Microcontroller and Embedded Systems Laboratory
PDF
No ratings yet
18CSL48 Microcontroller and Embedded Systems Laboratory
27 pages
Micro Controller Lab 1
PDF
No ratings yet
Micro Controller Lab 1
73 pages
Module 1 DSA
PDF
No ratings yet
Module 1 DSA
16 pages
@vtucode - in Module 3 2021 Scheme
PDF
No ratings yet
@vtucode - in Module 3 2021 Scheme
80 pages
21CS34 SIMP Questions - 21SCHEME: Module-1 (Study Any 5 Questions)
PDF
No ratings yet
21CS34 SIMP Questions - 21SCHEME: Module-1 (Study Any 5 Questions)
4 pages
VTU Exam Question Paper With Solution of BCS302 Digital Design and Computer Organization April-2024-Dr - Ciyamala Kushbu S
PDF
No ratings yet
VTU Exam Question Paper With Solution of BCS302 Digital Design and Computer Organization April-2024-Dr - Ciyamala Kushbu S
4 pages
ARM Lab Manual
PDF
No ratings yet
ARM Lab Manual
48 pages
Ddco Lab Manual
PDF
No ratings yet
Ddco Lab Manual
35 pages
MESL Manual
PDF
No ratings yet
MESL Manual
44 pages
CGM V Sem Lab Manual
PDF
No ratings yet
CGM V Sem Lab Manual
17 pages
MCES-21CS43 Module-1 Notes
PDF
No ratings yet
MCES-21CS43 Module-1 Notes
14 pages
DIP Lab Manual Final
PDF
No ratings yet
DIP Lab Manual Final
31 pages
ADA Model QP 2023-24
PDF
No ratings yet
ADA Model QP 2023-24
2 pages
KTU S5 Microprocessor and Microcontroller CSE May 2019 Question Paper
PDF
0% (1)
KTU S5 Microprocessor and Microcontroller CSE May 2019 Question Paper
2 pages
San 18cs822 Module Wise Questions
PDF
No ratings yet
San 18cs822 Module Wise Questions
3 pages
NTM Module-2
PDF
No ratings yet
NTM Module-2
26 pages
Universal Human Values - MCQ (1) (3) - 14-26
PDF
No ratings yet
Universal Human Values - MCQ (1) (3) - 14-26
13 pages
Microprocessor and Interfacing
PDF
No ratings yet
Microprocessor and Interfacing
25 pages
MES LABORATORY Manual 2020
PDF
No ratings yet
MES LABORATORY Manual 2020
38 pages
DAA Notes Module 1
PDF
0% (1)
DAA Notes Module 1
28 pages
Dsa - Lab Manual-18csl38
PDF
No ratings yet
Dsa - Lab Manual-18csl38
44 pages
BlockChain Technology
PDF
No ratings yet
BlockChain Technology
3 pages
22POP13
PDF
No ratings yet
22POP13
6 pages
Mces Software Programs
PDF
No ratings yet
Mces Software Programs
4 pages
DBMS Mini Project Report 2-12-2022
PDF
No ratings yet
DBMS Mini Project Report 2-12-2022
6 pages
A Systematic Literature Review On AI-Based Recommendation Systems and Their Ethical Considerations
PDF
No ratings yet
A Systematic Literature Review On AI-Based Recommendation Systems and Their Ethical Considerations
19 pages
Advance Java-BIS402
PDF
No ratings yet
Advance Java-BIS402
2 pages
Design and Analysis of Algorithms Laboratory 10CSL47
PDF
No ratings yet
Design and Analysis of Algorithms Laboratory 10CSL47
28 pages
Practice Assignment 11 Sol 12453
PDF
100% (1)
Practice Assignment 11 Sol 12453
6 pages
Module 3
PDF
No ratings yet
Module 3
37 pages
Programming in C: by Vishal Vanaki
PDF
No ratings yet
Programming in C: by Vishal Vanaki
35 pages
A????????? ???????????? Mod - 1
PDF
No ratings yet
A????????? ???????????? Mod - 1
48 pages
Drug Based Recommendation System Based o
PDF
No ratings yet
Drug Based Recommendation System Based o
9 pages
Vaibhav AICTE
PDF
No ratings yet
Vaibhav AICTE
37 pages
Electronic Reservation Slip (ERS) : 4834327120 22864/Smvb HWH Ac Exp Ac 3 Tier Sleeper (3A)
PDF
No ratings yet
Electronic Reservation Slip (ERS) : 4834327120 22864/Smvb HWH Ac Exp Ac 3 Tier Sleeper (3A)
3 pages
Register Receipt
PDF
No ratings yet
Register Receipt
4 pages
AI Exam Proctoring Synopsis
PDF
No ratings yet
AI Exam Proctoring Synopsis
1 page
Dell Laptop Service ) ) Techberry
PDF
No ratings yet
Dell Laptop Service ) ) Techberry
1 page