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)
378 views
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 now
Download
Save MC - BCS402 Lab Manual For Later
Download
Save
Save MC - BCS402 Lab Manual For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
378 views
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 now
Download
Save MC - BCS402 Lab Manual For Later
Carousel Previous
Carousel Next
Save
Save MC - BCS402 Lab Manual For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
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
Module 3
PDF
No ratings yet
Module 3
37 pages
Coarm Lab Manual Vtu 5th Sem 21 Scheme
PDF
No ratings yet
Coarm Lab Manual Vtu 5th Sem 21 Scheme
20 pages
Arm MC Lab Manual
PDF
No ratings yet
Arm MC Lab Manual
30 pages
Besck104c 204c Iec Module4 Notes
PDF
No ratings yet
Besck104c 204c Iec Module4 Notes
12 pages
Vtu DSA Lab Manual Related Can Help You
PDF
No ratings yet
Vtu DSA Lab Manual Related Can Help You
116 pages
BAD402 Module 1 AI&ML 2022 Scheme
PDF
No ratings yet
BAD402 Module 1 AI&ML 2022 Scheme
16 pages
@vtucode - in BAD402 Module 2 AI&ML 2022 Scheme
PDF
No ratings yet
@vtucode - in BAD402 Module 2 AI&ML 2022 Scheme
15 pages
Oops
PDF
No ratings yet
Oops
23 pages
@vtucode - in BCS402 Syllabus 2022 Scheme
PDF
100% (2)
@vtucode - in BCS402 Syllabus 2022 Scheme
3 pages
System Software and Operating System Lab Manual
PDF
No ratings yet
System Software and Operating System Lab Manual
36 pages
Bcs401 Module 4 Ada Notes
PDF
No ratings yet
Bcs401 Module 4 Ada Notes
41 pages
DSP Mod1@AzDOCUMENTS - in
PDF
No ratings yet
DSP Mod1@AzDOCUMENTS - in
60 pages
20mcal16 DS Lab Manual Isem
PDF
100% (1)
20mcal16 DS Lab Manual Isem
41 pages
Practice Assignment 11 Sol 12453
PDF
100% (1)
Practice Assignment 11 Sol 12453
6 pages
Digital Design and Computer Organization - BCS302 - LAB MANUAL
PDF
No ratings yet
Digital Design and Computer Organization - BCS302 - LAB MANUAL
65 pages
Ddco Lab Manual
PDF
No ratings yet
Ddco Lab Manual
35 pages
Sample Eda Lab (Part-A) Manual: Simulation Output
PDF
No ratings yet
Sample Eda Lab (Part-A) Manual: Simulation Output
20 pages
Module 1: Basic Structure of Computers 1.1 Basic Operational Concepts
PDF
No ratings yet
Module 1: Basic Structure of Computers 1.1 Basic Operational Concepts
34 pages
Cat2adding Two Polynomials Using Linked List
PDF
No ratings yet
Cat2adding Two Polynomials Using Linked List
6 pages
Question Bank Module-2
PDF
100% (1)
Question Bank Module-2
2 pages
DDCO
PDF
No ratings yet
DDCO
34 pages
Dsa - Lab Manual-18csl38
PDF
No ratings yet
Dsa - Lab Manual-18csl38
44 pages
MCES-21CS43 Module-1 Notes
PDF
No ratings yet
MCES-21CS43 Module-1 Notes
14 pages
Chapter 6: Multiway Trees: Not Restricted To 2 Binary Search Trees
PDF
100% (1)
Chapter 6: Multiway Trees: Not Restricted To 2 Binary Search Trees
32 pages
GE8261-EPL Lab Manual 2018-19 Final
PDF
100% (1)
GE8261-EPL Lab Manual 2018-19 Final
97 pages
DDCO NOTES (1)
PDF
No ratings yet
DDCO NOTES (1)
40 pages
@vtucode - in BCS402 Module 4 PDF 2022 Scheme
PDF
No ratings yet
@vtucode - in BCS402 Module 4 PDF 2022 Scheme
14 pages
Module-5 Part-2: Exception and Interrupt Handling
PDF
No ratings yet
Module-5 Part-2: Exception and Interrupt Handling
23 pages
BCS405A Module 4
PDF
No ratings yet
BCS405A Module 4
53 pages
DIP Lab Manual Final
PDF
No ratings yet
DIP Lab Manual Final
31 pages
EC6601 VLSI Lesson Plan
PDF
No ratings yet
EC6601 VLSI Lesson Plan
7 pages
Model Question Paper II - 21cs642 - 6 Sem (2021 Scheme)
PDF
No ratings yet
Model Question Paper II - 21cs642 - 6 Sem (2021 Scheme)
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
21CS43 Module 5 Microcontroller and Embedded Systems Prof VANARASAN
PDF
No ratings yet
21CS43 Module 5 Microcontroller and Embedded Systems Prof VANARASAN
41 pages
BCS402 MC M5 Notes
PDF
No ratings yet
BCS402 MC M5 Notes
13 pages
Module-2 Ice Besck204a
PDF
No ratings yet
Module-2 Ice Besck204a
16 pages
DDCO III Sem Mod 1 - 4 @vtunetwork
PDF
No ratings yet
DDCO III Sem Mod 1 - 4 @vtunetwork
87 pages
@vtucode - in BIS402 Module 2 PDF 2022 Scheme
PDF
No ratings yet
@vtucode - in BIS402 Module 2 PDF 2022 Scheme
47 pages
Ece IV Microcontrollers 10es42 Question Paper
PDF
No ratings yet
Ece IV Microcontrollers 10es42 Question Paper
3 pages
DSA Lab Syllabus
PDF
No ratings yet
DSA Lab Syllabus
1 page
@vtucode - in Module 3 2021 Scheme
PDF
No ratings yet
@vtucode - in Module 3 2021 Scheme
80 pages
r23-Cp Lab Manual
PDF
No ratings yet
r23-Cp Lab Manual
154 pages
VTU Exam Question Paper With Solution of 18CS35 Software Engineering May-2021-Dr. Savitha Hiremath
PDF
No ratings yet
VTU Exam Question Paper With Solution of 18CS35 Software Engineering May-2021-Dr. Savitha Hiremath
26 pages
BCS306A OOC Assignement3
PDF
No ratings yet
BCS306A OOC Assignement3
2 pages
Module 3 AI BAD402
PDF
100% (1)
Module 3 AI BAD402
15 pages
Bpops103 Assignment2
PDF
No ratings yet
Bpops103 Assignment2
1 page
Unit - 2 ARM Instruction Set-Notes
PDF
No ratings yet
Unit - 2 ARM Instruction Set-Notes
18 pages
Design and Analysis of Algorithms Laboratory 10CSL47
PDF
No ratings yet
Design and Analysis of Algorithms Laboratory 10CSL47
28 pages
CD Assignment
PDF
No ratings yet
CD Assignment
8 pages
BAI602-ML-I
PDF
No ratings yet
BAI602-ML-I
4 pages
Cse III Computer Organization (15cs34) Question Paper
PDF
No ratings yet
Cse III Computer Organization (15cs34) Question Paper
4 pages
Rabin-Karp Algorithm For Pattern Searching: Examples
PDF
No ratings yet
Rabin-Karp Algorithm For Pattern Searching: Examples
5 pages
Assignment 3
PDF
No ratings yet
Assignment 3
2 pages
18CS55 ADP Question Bank Module 3, 4 and 5
PDF
No ratings yet
18CS55 ADP Question Bank Module 3, 4 and 5
5 pages
RNSIT BCSL404 - ADA Lab Manual
PDF
0% (1)
RNSIT BCSL404 - ADA Lab Manual
32 pages
BCS358D Data Visualization With Python Syallabus
PDF
No ratings yet
BCS358D Data Visualization With Python Syallabus
4 pages
Fundamentals of Microprocessors and Microcontrollers July 2023
PDF
100% (1)
Fundamentals of Microprocessors and Microcontrollers July 2023
4 pages
Dspa 17ec751 M5
PDF
No ratings yet
Dspa 17ec751 M5
34 pages
ARM Lab Manual
PDF
No ratings yet
ARM Lab Manual
48 pages
MESL Manual
PDF
No ratings yet
MESL Manual
44 pages
MC LAB MANUAL (3)
PDF
No ratings yet
MC LAB MANUAL (3)
56 pages
4834327120
PDF
No ratings yet
4834327120
3 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
Register Receipt
PDF
No ratings yet
Register Receipt
4 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
Vaibhav AICTE
PDF
No ratings yet
Vaibhav AICTE
37 pages
BlockChain Technology
PDF
No ratings yet
BlockChain Technology
3 pages
NTM Module-2
PDF
No ratings yet
NTM Module-2
26 pages
A????????? ???????????? Mod - 1
PDF
No ratings yet
A????????? ???????????? Mod - 1
48 pages
Universal Human Values - MCQ (1) (3) - 14-26
PDF
No ratings yet
Universal Human Values - MCQ (1) (3) - 14-26
13 pages