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)
288 views
102 pages
FMA (Decode) #MB
Fma decode
Uploaded by
wagritesh4
AI-enhanced title
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 FMA { Decode } #MB (2) For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
288 views
102 pages
FMA (Decode) #MB
Fma decode
Uploaded by
wagritesh4
AI-enhanced title
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 FMA { Decode } #MB (2) For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 102
Search
Fullscreen
Corey FUNDAMENTAL OF MICROCONTROLLER ‘AND APPLICATIONS ‘Atul odes MS. Stare Sene flan) OE inet men coeaeme nana egy re Ox Deepali A. Godse ME. PND. Kamer gp) to et cman Teds Ort, hero topa Caege of sen fr Woe, roe BEATORES © yo tno ono ell Nan co tts ns Grn an oe to rr tae cen ed Pe 88 sors neon pr tc or 301 Ps o-oo rei abTON PAPERS) (sat 017- +e. -2017 =ay-2018 = Dee,-2088 (ING l2019 See 2019 “une-20z2 “Dee. 2002ewer FUNDAMENTAL OF MICROCONTROLLER AND APPLICATIONS 5 (eer Enns) Ser iy ssh pron ‘ot dy, SN 191A Gln ie Ne iB Thegrete rans Stour I SYLLABUS Fundamental of Microcontroller and Applications - 203149 oe ee 0° ee art Sea oat aha vate: Tetebe wo eanep of miccanliy, nel 8051 Panton ck igre, stone of pits of RSI, Maroy algae of SSI, POW sd Pag Bs Sek and Such pointe, Ovewiew of spect acion reise, Dotan inurctons nd rope in asenby ngage, Cher ‘ihn mle! nimatons an pogransn sanly Lapa. Boolean sd "opam Brnching intucions ‘aed rogun in sce langage ‘beeing aces O51 (Cape) ie: 8151 Progamming nC, Daa ypes fe C. fons of 8051, ty Use, end ‘rows (Be Levels Bes), Tne dy prog irs an ees 031, Time modes 0 and He pean oC nd cone pogrmming (Chie) eet sre of 8051 and SER sociated with intergt Progamming oF Ester trdare ners inci oF ADC OB me BT Unieos Seal por, Stein 051. Programming of Seal por for asin and ‘eetvg din nde Inrodaton o GSM mn, AT emma, Popamaing send td ea SMS @ Mstement of eleciel paneer: sich a8 voltae, sareet Teste! Teme) Inert of Sepe motor wit 808) an is progam nC ering ane ogrmmeg of ry Key LED, and Rey wit S51 in Cher) @TABLE OF CONTENTS ae Tatreduction to BOBT Architects G1) to a= 16) ‘Chapter 441 Introduction 1 Concept of Merocontae,Comarikon of "Microprocessor and Mlerocontoler and Comparison ofa 8 Merocontrolis, aa 412 Intel 8051 Function! Block Bagram aa 1.3 Overview of Special Function Registers ae 1.4 Functions of in of 8053, o 1-8 1.5 Memory Organitavon of 853, os pear 1.6 interfacing of 6051 wth External Memo. ane 117 Stack and Stack Pointer a6 Uni Chapier-2 ~Aadvessing Modes, Instruction Set and ALP of 8051 @-1)t0 2-37) 2. Adaresting Maes of 803, ae 22 Instruction Set of 4051 os 2-5 2.3 Assombly Language Programming of 8051, 2-30 wo (course 203] ‘Time #244 sours) [Maximum Marks : 70 QA a) Write «short note on C dats types for 8051 mcracontae, Refer 0.2 of Chapter 2}, a 1) “White program in C to configure port 1 as input port and port pie P20 as inp pi, cy ‘ne: st porte = 20, veld mat (ot) ‘ D1 = OX: + contguie port Baw an input poet") arti = 1:/* eanigure por pin 20 mean gat */ } 9 Draw the TCON and TOD register ond explain use of fnivtual Bito of TMOD reiterate [Refer 0.2 and Qi of Chapter 4) i 2a) Expin the fnctn of hit TED tn TCON reicter program On Clongusge to start tne ot write @ eter 0.2 and Q.4 of Chapter Cy BY Wiite a program in C language to copy the eontonts of Port 2 40 Port 1 Weer similar Q1 of Chapter 31 I 1) Write program in C laguage to generate a square ‘waceform on pi 5 of port 1. The frequency af the wovecorm ie 123 Fe Use timer 1 made 1. Assume cal equency = 1.0692 Mie [Refer similar Q.12 of Chapter 4) & 3 a) White « program in C language to enable harareinterrgte INT and INT, tnchade
SSadameni of Simcoe Apewions 5-17 _ Soe Unersy Queen Papers ‘oid main (8) ) 1) White down the steps to program ADC 0209 Refer Q.19 of Chapter 5) 8 ‘OW a short note on intr structure of 8051 toler 03 of Chapter 3) m 42) Drew the LE register ad explain the functions of bits EA, ETO ‘ond EXO. Refer Q.5 of Chapter 51 ‘81 1). White doom the stp in executing om am interrupt [Refer Q4 of Chapter 3} s ‘9 Draw and explain interfacing diagram of ADC with 805 [Refer Q17, Q.18 and Q.19 of Chapter 51 Q5 a) Write down the steps 1 be followed to recive a deta serially sing 6051 microcontroller. [Refer Q.12 of Chapter 6 8 1) Wiite down «shor note om interfacing af « GSM module with 4051 misoeotalor Refer Q25 of Chapter 6) I ‘Witte a progam to trans a character “P™ sry at bud rate of 9600, Use ral port in Made. Cryst fequoney 1.0502 Mabe. (Refer Q.8 of Chapter 6) fo) 0.6 «)- Draw the SCON reiter and expla use of incdual bits of ‘he regiter deta. [Refer Q'3 of Chapter 6) 8) 'b) Write down the stps tobe followed to transfer @ data serially sing $051 microcontraler. [Refer Q.6 of Chapter 6] cl (rogram the S051 in C10 revive byte of data serially and put them in PL. Se the baud rate ot 4800, St dates I stp Be [Refer 0.13 of Chapter 61 w 7 8) Wilk» nent block diagram explain AC voltage measurement tsi 8051 microcontroller. TRefer Q.t of Chapter 7 a ‘b) Dra an interfacing diagram of stepper mtr wit 8051 Assuming the otor i contalled through: mast signieent 4 dite of fort 1 Write 'n program in Clanguage to run the stepper motor nnsoualy venice ection. Atuone stable sep soquene [Refer Q4 and Q5 of Chapter 71 ‘nor = “Tato npg Sudo aman of Sheecnte ind Arpleaiont $218 oR 0.8 =) Explain the funtion of am eletromschanical relay and dase an Imerfacng diagram of rey sath micocotrller 8061 wth state “ive cet, (Refer QA7 of Chapter 7 1 By Draw. and explain interfacing of LED in common anode and ‘omman cathode configurations. Write « program in C language for linking displ of LED comnecied fo port pin PLO, Use a stale ay, 100) ‘Ana: le common anode, all anoder of LEDs are connected together as shown in Fig. 10) and in common cathode, all cathodes sre connected together, ax shown in ig. 10) ¥VVyy Sed Une Qesion Pes ig, + ttaral agra of T-eegmont LED inctade
oid mela (old) ‘rte (2) { pombit 1; /*Tum ON PLO*/ Delay (600); /* Wal for sometime */ orbit 0; /*Tum off PL0*/ Delay (600); Wal for sometime “7 > , ‘oid Delay (unsigned int count) { ungmed iti): for = 071 © coun 144 fer = 0; < 1200 count; 4-4) cg Tato Enering eo[DECEMBER 2022 voan-ase ] Soled Paper | Tine 2 tr (Mima Mars: 79 1 2) Draw and describe TMOD register, [Weer Q.1 of Chapter 4] a 1) Wiite short not om data types in C. IReter Q2 of Chapter 3] 12 Wrie a program to generate square wave of 50 He frequenay swith 50 9 duly cele om pin 23. Assume XTAL ~ 110592 ME and se ter On mode 1. (Refer Q.10 of Chapter 4] @ Q.2 a) Dever te timer modes in 8051 microcontriles eter Q3 of Chapter 41 @ 1) Draw and exlain TCON register ‘Refer Q2 of Chapter 4) 12) Write C program to toggle bit PIS of ort PI, 5000 times, Utefer similar Q.18 of Chapter 3} oy 3-9) Explain interpt structure of 8051 micacontrolor wth nent ingen (Refer Q3 of Chapter} ‘a b) With the help of dlagram explain stocing of ADC 0809 ‘with 8091 microcontrollers. [Refer Q.47 and Q.8 of Chaptzr 3) 16}, ©) Explain interrupt priority register of 6051 micrcontroi. Refer Q4 of Chapter » or QA) Write shor? not om interrupt enable rier, Meter Q5 of Chapter $1 B) Write « progr to tun of LED comcted to Port 2.0 when nterpt 0 ocurs tnd turn ion wh inter eer @ Ann ‘oR coo, LIMP MADN Avoid uring memery space ier nd Apnns Seve Unter Queon Papers SETAPIO. ; ‘umowtmD Ren -Retam to male program (ORG co20H ; Sta main program afer MAIN: MOV IF, #20000101B; Raable xtomalfteripe 0 and 1 ERE : Si? HERE ©) Explain the SOC, EOC and OE pin of ADC 0803, eter Q.17 of Chapter 5} 8 QS. a) White stort note on SCON register. eter Q3 of Chapter 6] 1 ‘) spl stops lo tant deta serily SY meron Uester O06 of Chapter 61 to 12) Write program lo tesa ltr Terelly 20 tines at bad ‘rate of 4800. Use srl port mode 1. XTAL = 32 Mile IRefer 0.9 of Chapter 61 a 26) Write shot note AT commande repel for GSM. eter 26 of Chapter 61 ta by. Explain steps to recive data sevly 8051 micrcontratr (eter Q.12 of Chapter 61 a ©) Explain serial port structure of 8051 microcontrole, 16} ‘The secal post of $051 is ull duplex, means it can trata recive. simultaneously. It uses regiewr SBUP to. hld dat, Register SCONcontols data" communication, register PCON controls data rates and pin RxD (P30) and TaD (P31) do the dats ‘raster. SS “Tf Engageanda of ‘irc ond Apenions _$-21___ Sahel Usher Quin oper ‘SSBUF is an S-bit register dedicated for serial communication in 8051, Ite addres s OPFL Ie can be eddtesed like any ther ‘ester in 8051, Writing to SBUF loads data to be tranetted and ‘wading SAUF gccesses Yecelved data There are two separate and stint registers the tansmit wrteonly register and fh receive od-only segiter. This is Mluseaed in Fig: ‘The way in hich SBUF is used for the transmission and feccpton of the data xing soil commutation Te explained Sow ‘+ Teansdason : When.» byte of data isto be transmitted ‘athe TaD pin, the SBUF is loaded sith thls data byte [As soun a a da byte i wten ino SBUF, its aed ‘vith the art and top bis and teamed seal ED pn + Reception « When S051 cesiven data serially via RAD pin of 1 the 8051 deramen The star and atop Bits {ie Separated ‘out rom a byte of data. This bit Io Pheedin S8UP regstee a 7) Eeplain LED intrcing with 8081 merocotat, UMefer Q.18 of Chapter 71 ts DY With the help of Hock degra expla hey ineing wing 051. {Refer Qa1 of Chapter 71 ‘a ©) With the hep of ack diagram explain power metsrement sing 051 Refer Qt and Q2 of Chapter 7 o ae “te fr ging Sas Pandan of ‘Mirco nd Aptenone 5-22 oR QS 2) With the help of Bock diagram explain voltage and current ‘mensuroment using SOSL (Refer QL of Chapter 71 @ b) Draw intefucing diagram of & slapper motor with 8051 and terite program to rotate sleper motor 360 degree in enticockwise ection ith step ange of 18 degree. Refer Q.6 of Chapter 7] 6) 2 Explin relay interfacing with 8051 microcontroller. eter 0.17 of Chapter 71 8 Sse Utenty Qnnon apr, END..2 “fr Eanlau( Pag ne SavrTRisa Pues PUNE UNIVERSITY - 2019 SyLianus | SE (Gretna) Seer FUNDAMENTAL OF MICROCONTROLLER, AND APPLICATIONS AMulP Gods MS. Slivore Sytem (TS Flos) - Seal acon De Doepali A. Godse PhO. Computer Enos! lenses colony Sepa Bho Vipnete Coluge ——ia 2 Wen Red a tT ea eee 1 corte eae hme For tn net aon cannes Cason be ot xe 2017 soe ot Grr ey P2019 Pea — i ina) — ie 017FUNDAMENTAL OF MICROCONTROLLER AND APPLICATIONS SE (Bc Ent) Sar 2 Copy th chi! Pons ‘aig ra dod aback ern) mane bil Per. ‘enero nto aed fom acon cot Pe SeeTedmal Risso Re ane PM esc. Pine EP LEITyR ne it cA hed a Ne i! iy SYLLABUS Fundamental of Microcontroller and Applications - 203149 wet Oa Intdacica wo cone of microsite! SOS Fanon! Neck dagamy nuns of pins of S51, Meter) ofanaation of 8051, FSW and Fag Bi Shek aed Suck poster Otewiew of ea ftnn regia, Da eat inseuston an program inate.) ‘adeesang odes of S81 (Caper) ‘nits SSL Propamming nC, Dua gpes fC. Pens of $051, thir we, and Fowmmegine (bye Leva nd Boi, Tine tray properins a soumierprogrnming, (Chapters -3.4) = Inept uct of $051 and SFR anocied wi nema Proganmicg of Esse ava inenup iC ern of ADC ON nh 80 Dsiros Stal er rue S81. Poponing of Sl po fo ease an Iota 9 GSM mode, AT cements, Programing to se and ead SMS. (Cheer) aie Sonn vt mach st cum Inertia yer mre 805 di prog iC ring a opamtngofagl ey LED, nd Reay win OET Wena reason = @TABLE OF CONTENTS 1-1) t0a-16) 2. Introduction to Concept of Mierocontroler, Comparison of Microprocessor and Merocontollr anid Comparison ofa bit IMierozantrolars an 1.2 Into 8051 Functional Bock Diseram 13 413 Overview of Special Function Register 1-8 1.4 Functions of ins of 8051, aa AS Memory Organization 0 8082 a 1.6 Interfacing of 8051 with External Memory. ant 17 Stack and Stack Pointer a6 ipter- 2 Adiiressing Modes, lastruction Sat and ALP of 8051 @. 1) 2-3 Ghapier=3 FORT rogram So TT 32 ones NBO En aa 2.3 Ports of 884 and The Use. Bs 34 ors oerammiginc se 342 ahleei/Omopanmig an 243. Aceag SR Adresses nee 38 Vang tO ye for Beene RAM 3-14 aaa Tirso Conner SORT now (4-1) to (4-24) 4.1 Terese sn 4.2 Ter Modes and ogammig os 4.3 Programming Timer in 8051 2 Adéresing Modes of 808th ae Unit 04 22 Instruction Set of 8052, 2-5 3 EY Thapter Tatewupt Smuctare 23 Assembly Language Programming of 8051, 2-20 cae fand Interfacing ADC (5-1) to (5-15) 5:2 SFR Associated with Interrupts oom 3:5 w o5.2 Programming of External Hardware Interupte In Reser and s7 5.4 Interfacing of ADC 0809 with 2051, sea cr ‘Gispler- 6 GOT Serial Communication (6-1) to 6-33) 6.1 Serial Por Structure n 8081 and Prosramming 61 6.2 Serial Pvt Programming in. 6-9 6.4 AT Commands - en 55 List of At commands, 6-3 652 Testing : 6-23 652. caliconta o-a 653. Detacerdcontra 5-24 554 Phone Conta m 6-35 655 Cémputer Osta interface 6-26 556 Service 6-26 65.7 Network Communication Parameter 6-27 658 Miscellaneous — se 8-27 659 sMSTex Mod vs loans 6°27 65.10 SMSPOU Mode acm 6-28 6. Programming to Send and Read SMS. 6-28 5.6.1 Prosrammingto Send SMS, 6-28 6.6.2 Programming to Read SMS. oem —— ™ ‘Ghapter-7 S051 interfacing Ti te7 35) 74 Measurement of lates Parameters sch as Voltage, Curent, Power Fact and Frequency. pea 7.2 Interfacing of Stepper Motor with 8052 and ts Programmingin rs 73 Interfacing and Programming of Single Key and Matix Keyboard rea 7.4 Interfacing Us, 7as 7.5 interacing lay with 8051 inc sane 7-39 175 interfacing 0¢ Motor pea ‘Tolved Model Question Papers” Cw SiH ‘Solved SPPU Question Papers Sjeem 7(ana 9] Fundamental of is secs dines fr ulin WO devies ee more memory and 10 devices Introduction to 8051 Architecture rar; a ~~ [1], b= 14: Introduction to Concept of Microcontroller, Comparison of Microprocessor and Microcontroller and Comparison of all §-bit Microcontrollers 01 we ‘mean by mlcrocontrller? ‘Ane: A device which contains the microprocessor with integrated Peripherals lke memory, serial ports, parallel ports, dmerfeceniey Interrupt controller, data acquiation interfaces lke ADC: Dac called mierocontrolier 2 Gre the compariton between _mictoprocetsor and saturn ha Ans: The Table Q21 shows the comparison between lcroprocessor and mierocontroler No.| Microprocessor Mieroco ster purpove regi sack | ccsing of misono end Pole, program counter lock | in addition has Goats RON ing cra and nape | KANE UO dow hee oo er stew counters move data beneren memery | ewe dun ernear eae acre, auc. 1s has many Bi aang rely | Microprocessor based system is | Les exible in design point of | more fs in degen of | None * [haere sr = | aaand eae er rehfinonet | Menem: pow a Tobie 24 123 Menton any two applications of 8051 micocontoller ‘Ans. : Microcontrollers are prefered in embedded products. Some spplications of microcontroller are ‘+ Home appliances Washing machine, * Calculators, keyboands, printers, modems, mobile phones et. ‘Industial controllers date sequisltion systems. comm systems et. * Automobile engines, Aight control systems, trafic ght conteot + Mintary applications, (24 Lint the eallentfentres of £051 microcontoller ‘Ans. 1+ The features of the S051 family aze as follows 1, 4056 bytes on - chip program memory 2, 128 bytes on - chip data memory 3. 6t Kilobytes eich program and external RAM addressby, 4 One microsecond instruction cycle with 12 Mie eyeFantamentof Sitiaanntek ant Applications 1-3 Introduction a 851 Archtecire 5. 32 bidirectional YO lnee organized ae four bit ports (16 lines on 8031), 6. Maltiple mode, high-speed programmable serial por. 7. Two multiple mode, 16itemersfcounter 4 Tworevel priontized interrupt stractare 5 Give the comparonOetees 051 feral mlcoconter. Ant: The Toble Q51 gives the comparison of MCS-St family ‘microcontrollers ‘Se No] Feature | soon | vost | sosz | srs 5 [Progam ‘None |4 K ROM|@ x ROM|«K EPROM emery Ge Bye | Daa meno | HS RAaT [as RAM |e RAM 128 RAN Gaye I 3 Rimes 7 z 7 z ess | W6 pie = >= |= |= ‘Seria Port 7 7 7 7 © | teterupt s | s | 6 5 ‘Soares Reset ote L “Tetie 51 Comparison of MCS-51 family mlcrocontllrs 1.2 Intel YOSi Functional Block Diagram 8 Drow the whet of 05H miso (OR With the help of mest diagram explain the intemal block Aiagram of 8081. =a “Koni fr peg Soa Padus of Micmac endAppintons 1-4 _Inbrodction wo 51 Arhitecre ‘Ans :+ Fig. Q6a shows the intemal block diagram of 8051. Te consists of a CPU, two kinds of memory sections (data memory = RAM and progeam memory ~ ROM), inputfowtput ports and ‘gontol logic needed for a umer/counter, serial port and inecrupt functions, Thee elements communicate through an elght bit dara ‘bus which rans throughout the chip refered as intemal data bus, ‘This bus is ulfered to tho outside world tough an UO port when memory or HO expansion ie desired enn ET Lane Fig, 8:1 Block dlogram oF 8064 mlcrocontlr + Centr Processor Unit (CPU) : It monitors and controls all ‘operations that are performed by microcontroller. The CPU of S051 consists ofeight-bitaulthmetic and logic unit with associated registers lke A, B, PSW, SP, the shteen bit program counter and "Data pointer” (DPTR) registers. Along with these registers it has 4 et of special function repstrs and contol unit + ROM : A code of 4K memory is incorporated as on-chip ROM in S051. The 8051 ROM is a non-volatile memory meaning that ie contents cannot be altered. ‘RAM : The 6051 microcontroller is composed of 128 bytes of, lntetnal RAM. This ts 9 volatile memory ance it contents wil be —=—=— Oe eee = ai or Eng osantamentatof Mivocintior end Applications 1-5 HO Potts The $051 microcontroller has four Sit inputioutpat Ports PO, Pr, P2 and F3 all Fors can wed as ener someon Ports. tn the presence of external memory, Port & haces muhipleved address and data bus and Port 2 fone aS Higher order byte address bus. All port pins of rot 3" nce ‘ulsfunctonal. Therefore each pin of pont 3 ean be proce snt ‘0 use as HO eras ane ofthe altemate resoe “Interrupt Control : It supports ath at internal (eitwane) and Serta hardwate) interrupts In O81, 5 sources of intone sro provided, * Timers: BIS1 supports two mule mode, 16.bit smersleounters kn timer mode, they can be ised to generate w delay pore snd in counter mode they can be used fo count enteral oon “Seviat Font : Provides a method of esublichily “sera SRmmuniction by transmitting and receiving dats big’ hee, ‘TNO and RD pins fo transmit and recive bn sepia * Oscillator: Its used for providing the clock to 6051 and. decide ‘baud rate for serlal communication 7 Draw the regieter orpentetion of 8051, APS Gg FE. Q7.1 shows the repstor organization of 8051. fk shows TLLGTU, Regier along with the registers wed. for wre inerupis and serial communication (ee Fig Q71 on nest pane 8 Explain the functlon of relates A of 8051, Ans 1 Iie an Obit register called accumulator It holds 4 source (Dean and twctvee the result of the arthnetie eon (2deiton, subtraction, mstipication and iviaieny ar Fadamenta of Miorocntlrand Applistions 1-6 troduction 81 Achieve ‘+ Several functions apply exclusively to the accumulator + Rotate, Pasty computation, testing for 20. and 20 on 2.9 Explain the function of restr B of 8051 yidWvide operation, ‘Ans. : Tes used for the hardware mip 10 What te DPTH ? State It fnetion Ans. © The data pointer (DPTR) consists of a high byte (OPH) and low byte (DPI, Its function isto hold 16-ft adress. Te may be Panpulicd oo » 26tit dats er or as two independent it registers Ie serves asa base register in inven jumps, lon tie Instructions and external data transfer 12.11 Explain the foncton of program counter ts weed to hold ‘Ans. 6 The 6051 has « 16-bit program counter the address of memory location from which the next instruction ie to be fetched 0.42 Draw PSW and explain vari fa Se fra Me 7 Ms OR Draw the program status word of 805% > TSP ees, p36, Mas 3) ‘Ans. 6° The Fig. Q121 shows the bit patiem of Programm Stas ‘Word (PSW} of 8081. PSW is alsa known as flag register, = Wit for Egesing SwPandamentatoy Miroir and Aplications 1-7 Introduction to 605 Arcee nivodactiont 601 Arcee By Be Bs, BBB 4.3 : Overview of Special Function Registers & [acy ro [ar [eo lov - Te 14 Witte « note on epecial function registers of 8051 Fig ana ‘Ans.:4 The group of registers, implemented to, perform special + C¥-Cany Flag : This flag is set if there is an overflow out of bit7, The cary flag alo serves as a horton flag for subtraction In both the examples shown below, the carry fag ist. + AC-Auuillary Cany Flag : This Hag is ct if there is an overflow tout of bit 3 Le, camry fromm lower nibble to higher ible (Dy Bit to, bin 1+ FO - Available for user for general purpose + RSL ~ RSO (Register Banke Select) register bank ae follows Thy select the working RSI | R50 | Bank Selection 1 | oo Bank 2 + OV-Over Flow Flag : This flag it act whenever the sesult of 3 Signed umber operstion is too lage, causing the high-order Mt fe overflow into the eign Bi. + PeParity Flag : Parity is defined by the number of ones present In smumber of ones are odd 0.13 Show how to sel A bank 2 with a single instruction ater cE farros ps ae ‘Ans. : Instruction to select Bank 2 fs MOV PSW, # 10, Ton or Taping as ‘ncions and are located immediately sbove the 125 bytes of RAM tre called special function reser All acess (0 the four UO the "CPU ogists inert contol repites, the Tnevkounter, UART and power control are performed tvough ‘egos betveun 908 and FFF {Spoval Function Registre (SER) ote a srt of used for running Shi monteing the operation of the mcoconoller, Each of {ee ropes ao well ag each bit Dy include, aw Hs name, itluvear inthe scope of RAM and precy defined purpose stich Stine contol inerupt contol. seat sommunicaon contol 1 Examples of special function register are FO, PI, P2P3, PSW, A, IP, TE SCON, PCON, TCON, TMOD ete 1d; Functions of Pins of 8051 48 Drow the pin-dingam of 8051 and explain the function of sch pins (OR Explain the faction of pine PSEN, ER and ALE. a am scr, tats 6 Expl hc once of toi pine of 283 oes" Pa wor Soma mate se ig 0181 sho he pn nga of oie 8 ho 32 TO pe congue a for ight pale Poy 00 Pu Pz and 75) a oe prts doa
: Move S-iv6bit bytes: 18 Cydonia Dessipton Sayan aed yw ced ‘Gopy the canient of vgn Ra of pase regiter tank to 8 MOV A. RO: This itrcton cope the Ee of the epiterRO oan ite MOV A Ra ample Copy the contents of address specie’ wk MOV A, 08: Thi intact copte he tn who ne MOV A, aRt: This instruction copies the ‘Specie in bin roger RI ro ces gute ban Regine of the nated separ ten ‘MOV Br, ee sd dat piven inthe intron to sar Fn of elected repens Eihe reer Rio ahead eo Sak Fiample apy the contents A othe alist SSUES ul nthe ence a=” MOY 30, na Ti asin spl she {the instruction Ga). ‘within twizucion tothe adress spaced MOV 208 4H Tis ncn opi he “Gao mre Sanedamnit of Adaresing ot Ineracion Micon end Applications _ 2-7 ‘tend atop Suntanentaof Alresing Modes. atraction Miron end Appestions 2-8 ‘itend ALP st MOY diet oR sample Barman Sear eee, pe {Eto the memory location whose alress is Example + MOV 30H, 22H The inaracon expe ‘ita given wit intron (20 sto he memory leation whose are 07 MOV ai A Gy oger of sleced pier Ban MOV 1, A This ctracton copies the (ants of accurate foe eng Ibtwean whose sddeesn giver by rebste [of rected vogater bane MOV oft alee ample ay of ado spi win paca dae tate! Seas setae Wow ana sath te pl Seinen Saran Sry ne ea ee Errata eee ae Example: Ui add peti by veer Bi of slssed spe bok MOY a2 308 This inaction onde 3H {io the snemory loson whos ares it ‘ages By tote Ro hed ee MOV DFTR, as The data poner b jonded withthe 3c | “entailed Te cee byte (DPE the horde Bye whe te turd Spee moe: | BRENT ES MOLE Ret eee et wild 124 and BP wil hd Sa = "Aa or Engng de 5 Explain 8051 tntrctions to accees extemal data memory. (OR Explain the inaction MOUK A @ DPTR Ter + beset, ns 33 (OF Explain the instruction MOV A @ Ri "ee (omy map, ms 2) ans. MOVXA.@R! | Copy tie cnt ofthe tera aaron in Re Trample ea [MOVX A, © RD: This istracton copies data from the Stadt in RO to A MOVE ACSDPTR [This etude om Toe MOV @RLA | Copy data from A tot eral eves Rr ample: MOVX amt, & This sracton copie data fom A to he abt addon in MOV @DFIRA | "This insracion copes data from A oe Ii aan n BPR ‘Table O54 28 Explain 051 tnetractions to. accete extemal ROM/Propram Ana MOVE A,@A + DETR | Copy te content of the exenal ROM Sedres formed by ning and oe Derk to A MOVE A.A +6 | Copy the aman afte enermal ROM ae omad by adding Nd the PC ‘Tenia a4 “QL Eeplain purh and pop intructone mipporied by 8051, (OR niet stack ielated tnatuctons, SPR bet, mute 3) = = “rE StsEendametaot Miracola Applications 2-9 arr Send At fast OR Explain push instruction (070 Mat, te 2) PUSH direct Push onto stack Byles: 2 Cycles 2 Ramet stanton 2-10 a XGA, eR an Sn tsetse wih th cones a ‘change dete bye between A and addr in tion: |The Stack Poser is ncremaited by one Tred Decip yy tens ofthe indcaad erable then cried ino {he internal RAM lenin addested Wy tae eae Pointer Otherwise no Mages fete, PUSH B Tis iraraction increments the sts | einer by oo nd starr the clans of epaner B { the incoal RAM Tocton stn yf ek pole, POP direct : Pop from stack Bytes: 2 Cycles 2 eveription : | The contents ofthe internal RAM locaton adarowed ] by the Stack Pine ead andthe Sack Pete decremented by one. ‘The vatee ted thee traafered to the decal sdened yee aed, No lags are alec, {Seen of reser Ra of slot epee ba AED Want 3CHD mong ae owt moe RAM loan inal ndrened bythe sected Faster The Ngan ruben (its 7.) of ch sre Tole the va 8 (0110700) non KARE Ueton 28 hae he value 7381 (OT1TOIOTD) "he Instruction, XCHD A, eft wa leave RAM losin 2D lg oe von 41142008) sd Std {Govo110y the Accumste Table Gas 2. Explain byte level logical Instructions supported by 8051 0 Een he ee! acne prt 851 mone frame: | Ror aCe" etn cp he aaa ounces! “on Seite ites gr ee 9 ST met SenT e es mney a Expl die eachnge scons peed as AN cyte Lapa AND for bye vedas | ann Wye 129 Gyles: 1 XCH Attn | Exchange dita bytes between opuier Rv and A | “Descrtption 2 Pegs ng AND operon ome ©] XC Ra i nao cng ro Sonik ca ag a XGH A, dict | Bashange date tye bosveen aldo cay ANLAR® [AND pits Bret | Oyte ssamie © | Set a mets cng te same: | Aa agate | SESW Rane are ora al a “Gl Eng ens
: Inrement Bytes: 12 Cycles v2 whose adders 30H by ‘Destin: [IC mene nhac vaio pa DECOR | Devenmt indies Rae] Bye | Gyan Seal ate wate aS, Of: Dewemens be Bagewe atc Rennes | Bc gd mene ian INGA [ince Assay [Bet ee ieee eno NCR | temas gir TP Sar Brample:) | INCna: tremens counts [| OM (Q.11 Explain vasious addition Instructions supported by 8051 fey ase Tne dee Bez] Gari ADD A arte sald ye 12 Gye Soop: cn | Alls et vase led wt Aso oie evi the re se aereaioe w cay and Sea a es cont Bytet | CydeT ‘When adding signed intagers, jentes a ees | Con ewe ene Se a elo 8 pho any boar postive per pone sn bom oe cae goa et Seat ee St ADD A, Ra ‘Ada register to Accumulator Byte 1 | Cycte Never | invenent Da Pomeriyif Be1 | Geet Bramley | ADD Ata: Ade cmt of DEC dye: Decrmen nil eee our ak | Becton | aim en RRS rset | ADD A dina | Add det tye w Acamuner | BEE | eT ‘ sagt edited decremented by 1 An ‘Beample : ADD A, 20H ; Adds contents of sient ae act vt saat a I ain hea EA8S are atlecid. on 4s 20H and store result in A. a "ADD AR | Aline RAM Bei [ow Dec rn | Decrement regan Pye | Caer ee Bonney | ote beeen menves | soos geese RB by 1 ‘whose address is given by registe Fang sees rel in A IT 7 Bagong Sane‘ames oy Miresing Mode ntracion Misecontaly and applications 217 ‘tend Ath of st Esato of Addveaving Mode bration ee = ai ercmntolerand Applications 2-18 and ALP of 081 ADD immediate data to joa | Cycle et] tei pe an ee ee ee ce ere ere ee coca [eescnse | id with Canry_ Bytes 12 Gyles ‘Decipton: | ADOC amulanesaiy mid he Ba varale {nated the cy fg snd he Aon ADDC A, earcbyte> ADDC A, Add register to Accumulate Bytei | Cycle 2 eee | Bovis, | Some cet sats ‘ADDCA,— |Add dirt bye 19 A with Dyed | ‘Cyee Temples | ADDO nade te cere | | goneiacnas WOCA | aaiinama annonces | wT | Set sek | aes Tetris” | Arter ser ane re ae mnie Tremte: | ADDO ra: adie ne oem SO and res emt A ‘SUBB A, erebyte> : Subtract with Borrow Bytes: 12 Cyeles:1 Prenton» | Ifthe tat of the cary snot brown before staring @ ingle or maple prodelon subtacon i shou Be ‘ely cared by @ CUR C inatocon SUBB A, Ra | Subcact regtr Rom A with | Byte? | Crd ample: | SUB A, 15 + Subtacts contents | S83. coger eo 8 ‘um Subaract der tye from A with | Bye] Cycle? faint — | bomen SUB A, 20H = Siac the ‘Bample: | Contents of memory location ore rein SUBD AAT | Subtract nies RAM Eom A | Bye] Gok rrample; | SUBB.A, aR2:; Subwacs the onan of memory fest ‘ube Subtract immediste da rom A | Brie2 | Cyc? Addin | with bonow sample; | Sum A, 20H :Subtacs 208 fo 5 “for nog Sas <= “Toner geen ensf Adireing soa, lattion ‘tend Alt att recone ant appiations 2-38 on mal 0 ond at 6, HAM melccaton and vison instruction supported by Adin ote, ntntion Mert aa ayphenions 2-20 Seton AEP fo 0.16 Explain DA A instruction of 8051. (SPU: beets Ws 2) Ane: Byles: 1 Cycles: 4 Desciption ; | MUL AB mulipis te unsigned dl imgcs {he Accumtlaer and rte 8 The weston ofthe sistent produ inet the heres Bilt Ngiorder byte Bi the pron fer {Ban 285 GFE the onetow fags eo oes esod. The cary fag alway dee Buample [Origa the Assunta hase vase 0 OTT Regier B hoi th vie 160 oat aes Seas MOL Aa i ee aon COE, 0B changed Sr (Lao he Accumulitor dere The sretow fog ay DA A: Decimal-adjust Accumulator for addition Bytes 1 Cycles: 1 Deseption: | Ashuss th eight value the Accumetor + rsa tom the eater addon of to watabes {euch pacied:BCD format to Frode packed BCD eral "We lower nile ofthe accumu is erester than @ oe AF i it i corcet the rn By adding 6 in thes tomer nibble If the upper nite ofthe acumen fe rete than 9 or CF i ti core thereat by ng 06 inthe upper nie isieme, DIV AB : Divide Bytes 1 Cycles: Descipton: | DIV A divides aa Saheb oper in he ‘Accumtatn by the ‘phe ineger eae, ree eee SS ———— ample: | A=S5H. 8 «ett wna CP sequenae ADOC A, Ra will es porform a stared inary edition, seating {the value EH (0111130) n the Accumulator. Toe caery and away cry fags wil be Senne Since lower nile» 8, Lower aie = EE + 6H = tt eth AFSL Soe upper aubble > 9 Upper ne = BA + ert TAR) «2H with CP ot ‘Ths he fares = 124 which val BCD si.Eindamental of ‘Miocene a Appations 2-22 eee Seiad AED gat 15 Explain bit level Intractions supported by S051. "Er Tr Det, ats 6) Frmdanota of Mroconert ant Aptis 2-22 Ae ENE ‘ANL G,
i lee thn the unigned Integer value of cro oerwise, Se ary eat, Nether operands fete DINZ
You might also like
JNTUA Introduction To Internet of Things Notes - R20
PDF
No ratings yet
JNTUA Introduction To Internet of Things Notes - R20
96 pages
@vtucode - in 21AI63 Module 1 AI&ML 2021 Scheme
PDF
No ratings yet
@vtucode - in 21AI63 Module 1 AI&ML 2021 Scheme
38 pages
CS8087 - Software Defined Networks (Ripped From Amazon Kindle Ebooks by Sai Seena)
PDF
No ratings yet
CS8087 - Software Defined Networks (Ripped From Amazon Kindle Ebooks by Sai Seena)
68 pages
CD Decode
PDF
100% (1)
CD Decode
169 pages
Unit - 5 22EC602-Embedded Systems & IOT Design
PDF
No ratings yet
Unit - 5 22EC602-Embedded Systems & IOT Design
69 pages
Cns Decode
PDF
No ratings yet
Cns Decode
142 pages
IP Module 1 To 3
PDF
No ratings yet
IP Module 1 To 3
74 pages
Cs8082 Machine Learning Techniques Ripped From Amazon Kindle e Books by Sai Seena
PDF
No ratings yet
Cs8082 Machine Learning Techniques Ripped From Amazon Kindle e Books by Sai Seena
148 pages
Smart Interviews Notes
PDF
No ratings yet
Smart Interviews Notes
75 pages
Artificial Intelligence Aakash
PDF
No ratings yet
Artificial Intelligence Aakash
129 pages
COA Unit 1 Notes
PDF
No ratings yet
COA Unit 1 Notes
86 pages
Iiot Question Bank Main
PDF
No ratings yet
Iiot Question Bank Main
3 pages
ML LAB Mannual-1
PDF
No ratings yet
ML LAB Mannual-1
79 pages
Unit Ii - Embedded C Programming
PDF
No ratings yet
Unit Ii - Embedded C Programming
36 pages
22EC901-IOT-UNIT 1 Digital Notes-NEW
PDF
No ratings yet
22EC901-IOT-UNIT 1 Digital Notes-NEW
75 pages
Introduction To Datascience (R20DS501)
PDF
No ratings yet
Introduction To Datascience (R20DS501)
162 pages
Lecture 1
PDF
No ratings yet
Lecture 1
43 pages
Lab Manual With Procedure For Xilinx and Microwind
PDF
No ratings yet
Lab Manual With Procedure For Xilinx and Microwind
102 pages
15CS31T
PDF
No ratings yet
15CS31T
114 pages
Unit-6 8051 Timer Counter and Programming Technical
PDF
No ratings yet
Unit-6 8051 Timer Counter and Programming Technical
38 pages
Computer Organization Architecture by Subarna Shakya Researchgate
PDF
No ratings yet
Computer Organization Architecture by Subarna Shakya Researchgate
58 pages
7th Sem Cse 2010 Scheme - Question Paper
PDF
67% (3)
7th Sem Cse 2010 Scheme - Question Paper
8 pages
LDCO
PDF
No ratings yet
LDCO
364 pages
Data Science ML Full Stack Roadmap
PDF
No ratings yet
Data Science ML Full Stack Roadmap
35 pages
New Advances in Machine Learning: ISBN 978-953-307-034-6
PDF
No ratings yet
New Advances in Machine Learning: ISBN 978-953-307-034-6
378 pages
ML Unit 1
PDF
No ratings yet
ML Unit 1
25 pages
DSA Python 3.0
PDF
No ratings yet
DSA Python 3.0
12 pages
Android Application Development
PDF
No ratings yet
Android Application Development
156 pages
Eiot Notes
PDF
No ratings yet
Eiot Notes
129 pages
Bee Decode 3 4 5 6
PDF
No ratings yet
Bee Decode 3 4 5 6
92 pages
II Sem - Mid Questions
PDF
No ratings yet
II Sem - Mid Questions
2 pages
ML Decode TE IT
PDF
No ratings yet
ML Decode TE IT
71 pages
Chapter 1 PDF
PDF
No ratings yet
Chapter 1 PDF
127 pages
CD Unit - 1
PDF
No ratings yet
CD Unit - 1
38 pages
Robotics and Machine Vision Internal 3 Important Questions
PDF
No ratings yet
Robotics and Machine Vision Internal 3 Important Questions
1 page
Basic Embedded C Programs Lab Manual
PDF
No ratings yet
Basic Embedded C Programs Lab Manual
16 pages
CS3353 - C Programming and Data Structures Syllabus
PDF
No ratings yet
CS3353 - C Programming and Data Structures Syllabus
2 pages
Unit 2a
PDF
No ratings yet
Unit 2a
31 pages
Esiot Lab
PDF
No ratings yet
Esiot Lab
29 pages
(1to3) Linux Manual Ans (Code-312001)
PDF
No ratings yet
(1to3) Linux Manual Ans (Code-312001)
13 pages
Ecs Cse 7thsem Unit 1 For VTU, Belgaum
PDF
No ratings yet
Ecs Cse 7thsem Unit 1 For VTU, Belgaum
81 pages
Dicd Notes 1
PDF
No ratings yet
Dicd Notes 1
33 pages
MC Paper
PDF
No ratings yet
MC Paper
4 pages
2.1.3 Digital Logic 0 Computer Organization
PDF
No ratings yet
2.1.3 Digital Logic 0 Computer Organization
2 pages
Breadth First Search and Iterative Depth First Search: Practical 1
PDF
No ratings yet
Breadth First Search and Iterative Depth First Search: Practical 1
21 pages
Fundamentals of AI and ML - Syllabus
PDF
No ratings yet
Fundamentals of AI and ML - Syllabus
2 pages
19cs413 Artificial Intelligence
PDF
No ratings yet
19cs413 Artificial Intelligence
3 pages
3 Software-Concepts-CS101
PDF
No ratings yet
3 Software-Concepts-CS101
25 pages
Screenshot 2024-01-18 at 7.28.06 PM
PDF
No ratings yet
Screenshot 2024-01-18 at 7.28.06 PM
19 pages
Awp Unit 5
PDF
No ratings yet
Awp Unit 5
36 pages
GXESL208 IT Workshop Worksheet 250305 085447
PDF
No ratings yet
GXESL208 IT Workshop Worksheet 250305 085447
50 pages
WSN Unit 1 Jntuh
PDF
No ratings yet
WSN Unit 1 Jntuh
7 pages
CSE 1203 Seq Design Example
PDF
No ratings yet
CSE 1203 Seq Design Example
39 pages
Ece443 - Wireless Sensor Networks Course Information Sheet: Electronics and Communication Engineering Department
PDF
No ratings yet
Ece443 - Wireless Sensor Networks Course Information Sheet: Electronics and Communication Engineering Department
10 pages
Question Bank AML
PDF
No ratings yet
Question Bank AML
4 pages
March 2024 DSA InSem Solution
PDF
No ratings yet
March 2024 DSA InSem Solution
26 pages
CCS369
PDF
No ratings yet
CCS369
2 pages
B.Tech 6th Sem G Scheme
PDF
No ratings yet
B.Tech 6th Sem G Scheme
3 pages
It2402 Mobile Communication
PDF
No ratings yet
It2402 Mobile Communication
1 page
Nov Dec 2024
PDF
No ratings yet
Nov Dec 2024
2 pages