Address
:
[go:
up one dir
,
main page
]
Include Form
Remove Scripts
Session Cookies
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)
534 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
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
534 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
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
ARM System Developer S Guide Designing and Optimizing System Software Chapter 2 ARM Processor Fundamentals PDF
PDF
No ratings yet
ARM System Developer S Guide Designing and Optimizing System Software Chapter 2 ARM Processor Fundamentals PDF
28 pages
Microprocessor PDF
PDF
No ratings yet
Microprocessor PDF
3 pages
Arm MC Lab Manual
PDF
No ratings yet
Arm MC Lab Manual
30 pages
MCES-21CS43 Module-1 Notes
PDF
No ratings yet
MCES-21CS43 Module-1 Notes
14 pages
ADA Lab Manual
PDF
No ratings yet
ADA Lab Manual
67 pages
Sample Eda Lab (Part-A) Manual: Simulation Output
PDF
No ratings yet
Sample Eda Lab (Part-A) Manual: Simulation Output
20 pages
Digital Design and Computer Organization - BCS302 - LAB MANUAL
PDF
No ratings yet
Digital Design and Computer Organization - BCS302 - LAB MANUAL
65 pages
Module 3a
PDF
No ratings yet
Module 3a
36 pages
Instruction Set of 8051
PDF
No ratings yet
Instruction Set of 8051
79 pages
Sandstone Firmware Code Structure
PDF
No ratings yet
Sandstone Firmware Code Structure
5 pages
MicroCont LabManual Updated
PDF
No ratings yet
MicroCont LabManual Updated
53 pages
ARM INstruction Set
PDF
100% (1)
ARM INstruction Set
6 pages
Fundamentals of Microprocessors and Microcontrollers July 2023
PDF
100% (1)
Fundamentals of Microprocessors and Microcontrollers July 2023
4 pages
Ai Mqpa-1
PDF
No ratings yet
Ai Mqpa-1
51 pages
Module Two The Best Book To Read
PDF
No ratings yet
Module Two The Best Book To Read
65 pages
Cse III Computer Organization (15cs34) Question Paper
PDF
No ratings yet
Cse III Computer Organization (15cs34) Question Paper
4 pages
Uiux 3 4 5
PDF
No ratings yet
Uiux 3 4 5
11 pages
Screenshot 2023-12-06 at 8.31.50 PM
PDF
No ratings yet
Screenshot 2023-12-06 at 8.31.50 PM
30 pages
ECE (2022) 5th Sem Syllabus
PDF
No ratings yet
ECE (2022) 5th Sem Syllabus
31 pages
Unit 2 Advsv
PDF
No ratings yet
Unit 2 Advsv
32 pages
Module-4 Ddco
PDF
No ratings yet
Module-4 Ddco
32 pages
Vtu DSA Lab Manual Related Can Help You
PDF
No ratings yet
Vtu DSA Lab Manual Related Can Help You
116 pages
MC 18ec46 Mod1
PDF
No ratings yet
MC 18ec46 Mod1
19 pages
Assembly Directives in 8051 Microcontroller-1
PDF
No ratings yet
Assembly Directives in 8051 Microcontroller-1
9 pages
Microprocessors and Microcontrollers Answer Key
PDF
No ratings yet
Microprocessors and Microcontrollers Answer Key
14 pages
ADA Model QP 2023-24
PDF
No ratings yet
ADA Model QP 2023-24
2 pages
Iot Lab Manual - Vtu (21ec581)
PDF
No ratings yet
Iot Lab Manual - Vtu (21ec581)
296 pages
21EC654 Model Question Papers-1
PDF
100% (1)
21EC654 Model Question Papers-1
3 pages
Vtu 4th Sem Microprocessor and Microcontroller Module - 5
PDF
0% (1)
Vtu 4th Sem Microprocessor and Microcontroller Module - 5
17 pages
Bio-Imaging and AI in Disease Diagnosis
PDF
No ratings yet
Bio-Imaging and AI in Disease Diagnosis
4 pages
@vtucode - in BCS403 Model Paper 2022 Scheme
PDF
No ratings yet
@vtucode - in BCS403 Model Paper 2022 Scheme
5 pages
Python Application Programming - 18CS752 - Syllabus
PDF
No ratings yet
Python Application Programming - 18CS752 - Syllabus
4 pages
Module 2 Exmples
PDF
No ratings yet
Module 2 Exmples
8 pages
MES LABORATORY Manual 2020
PDF
No ratings yet
MES LABORATORY Manual 2020
38 pages
Department of Computer Science and Engineering
PDF
No ratings yet
Department of Computer Science and Engineering
25 pages
VTU Question Paper of 18EVE14 VLSI Testing Dec - 2019
PDF
No ratings yet
VTU Question Paper of 18EVE14 VLSI Testing Dec - 2019
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
PCD Lab Manual Vtu
PDF
No ratings yet
PCD Lab Manual Vtu
92 pages
ELECTRONICS COMMUNICATION SYSTEMS Cie 2 Question Bank
PDF
No ratings yet
ELECTRONICS COMMUNICATION SYSTEMS Cie 2 Question Bank
2 pages
Sample Report 22-23 1
PDF
No ratings yet
Sample Report 22-23 1
30 pages
Computer Organization Module 5
PDF
No ratings yet
Computer Organization Module 5
27 pages
IDT Report Format Template
PDF
No ratings yet
IDT Report Format Template
6 pages
Besck104e-204e
PDF
No ratings yet
Besck104e-204e
3 pages
Module-5 Part-2: Exception and Interrupt Handling
PDF
No ratings yet
Module-5 Part-2: Exception and Interrupt Handling
23 pages
21CS482 Unix Shell Programming
PDF
100% (1)
21CS482 Unix Shell Programming
3 pages
Important Instructions:: Verification Using System Verilog
PDF
No ratings yet
Important Instructions:: Verification Using System Verilog
11 pages
Module 1
PDF
No ratings yet
Module 1
53 pages
DBMS - Experiment 7
PDF
No ratings yet
DBMS - Experiment 7
6 pages
BCS306A OOC Assignement3
PDF
No ratings yet
BCS306A OOC Assignement3
2 pages
Java Module 4
PDF
No ratings yet
Java Module 4
16 pages
IoT Applications - BEC358D - MCQs Module 3,4,5
PDF
No ratings yet
IoT Applications - BEC358D - MCQs Module 3,4,5
8 pages
Emebdded Systems Previous Question Papers
PDF
No ratings yet
Emebdded Systems Previous Question Papers
8 pages
Running Machines: Arm Multiple Choice
PDF
No ratings yet
Running Machines: Arm Multiple Choice
4 pages
DSA Lab Syllabus
PDF
No ratings yet
DSA Lab Syllabus
1 page
Advanced Vlsi Important Question
PDF
No ratings yet
Advanced Vlsi Important Question
2 pages
Unit 2-LPC 2148
PDF
No ratings yet
Unit 2-LPC 2148
91 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
PDF
No ratings yet
MC Lab Manual
56 pages
LAB Manual-1
PDF
No ratings yet
LAB Manual-1
47 pages
AI Exam Proctoring Synopsis
PDF
No ratings yet
AI Exam Proctoring Synopsis
1 page
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
Vaibhav AICTE
PDF
No ratings yet
Vaibhav AICTE
37 pages
Register Receipt
PDF
No ratings yet
Register Receipt
4 pages
Dell Laptop Service ) ) Techberry
PDF
No ratings yet
Dell Laptop Service ) ) Techberry
1 page
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
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
Universal Human Values - MCQ (1) (3) - 14-26
PDF
No ratings yet
Universal Human Values - MCQ (1) (3) - 14-26
13 pages
Drug Based Recommendation System Based o
PDF
No ratings yet
Drug Based Recommendation System Based o
9 pages