gate paper microprocess

Upload: dhruv-chauhan

Post on 08-Mar-2016

278 views

Category:

Documents


1 download

DESCRIPTION

Microprocess

TRANSCRIPT

  • 1/14/2016 GATEPaper.in:PreviousGATEQuestionsonMicroprocessorsandMemoryMappingwithSolutions(19872014)

    http://www.gatepaper.in/2014/11/previousgatequestionson_14.html 1/13

    Home GATE GATE2014Keys YearwiseGATEQuestions TopicwiseGATEQuestions PracticeProblems

    GATEExamNotes

    Saturday,November15,2014

    PreviousGATEQuestionsonMicroprocessorsandMemoryMappingwithSolutions(19872014)

    1991

    1.Theprogramgivenbelowisrunonan8085basedmicrocomputersystem.Determinethecontentsoftheregisters:PC,SP,B,C,H,Lafterahaltinstructionisexecuted.

    1992

    1.Inan8085microprocessorsystemwithmemorymappedI/O,a.I/Odeviceshave16bitaddressesb.I/OdevicesareaccessedusingINandOUTinstructionsc.Therecanbeamaximumof256inputdevicesand256outputdevicesd.ArithmeticandlogicoperationscanbedirectlyperformedwiththeI/Odata.

    2.Thefollowingprogramisrunon8085microprocessor:

    Atthecompletionoftheexecutionoftheprogram,theprogramcounterofthe8085contains_____________andthestackpointercontains_______________.

    3.Figureshowsthememorycircuitof8085microprocessor.

    forFREEDownloadAndroidAPP

    Bethefirstofyourfriendstolikethis

    GATEpaper.in3,338likes

    LikePage Share

    Adsense

    GATE papergoogle.com/+GATEpaperIn

    Solutions to GATE Previous Papers &Conceptual GATE Video Lectures

    262 followers

    Follow

    2015(34)

    2014(143)

    BlogArchive

    DownloadAppforFREE

    5

    forFREEDownloadAndroidAPP

    5 More NextBlog CreateBlog

  • 1/14/2016 GATEPaper.in:PreviousGATEQuestionsonMicroprocessorsandMemoryMappingwithSolutions(19872014)

    http://www.gatepaper.in/2014/11/previousgatequestionson_14.html 2/13

    a.Whatisthetotalsizeofthememoryinthecircuit?b.Whatarethebeginningandendingaddressesofthememoryinchip1?c.Whatarethebeginningandendingaddressesofthememoryinchip2?d.ArethememorychipsinthecircuitROMorRAM?e.HowwillyoureplacethetwoNANDgatesIthecircuitwithone3to8decoderwithoutchangingthememorysizeorthememoryaddresses?AssumethatthedecoderhasoneactivehighenableE1andoneactivelowenableE2.

    Solution:https://www.youtube.com/watch?v=ZhLawfMasrY

    1993

    1.Inamicroprocessor,waitstatesareusedtoa.MaketheprocessorwaitduringaDMAoperationb.Maketheprocessorwaitduringaninterruptprocessingc.Maketheprocessorwaitduringapowershutdownd. slowperipheralstotheprocessor

    2.Amicroprocessorhasfive lines[A4A0]andeightdatalines[D7D0].AninputdeviceA,anoutputdeviceB,aROMandaRAMarememorymappedtothemicroprocessorattheaddressesasshowninfigure.DevicesAandBhavefouraddressableregisterseach/RAMhas8bytesandROMhas16bytes.

    a.Indicatethe linestobeconnectedtoeachdeviceandmemory.b.Obtaintheminimumsumofproductexpressionforthechipselect(CS)functionofeachdevice/memory.

    Solution:https://www.youtube.com/watch?v=WfheT4XoTI

    1995

    1.WhenaCPUisinterrupted,ita.Stopsexecutingofinstructionsb.Acknowledgesinterruptandbranchesofsubroutinec.Acknowledgesinterruptandcontinuesd.Acknowledgesinterruptandwaitsforthenextinstructionfromtheinterruptdevice

    Interface

    address

    address

    December(14)

    November(12)GATEAnalogCircuitsFiveMarkQuestionswith

    Solu...

    PreviousGATEQuestionsonAnalogtoDigital&Dig...

    PreviousGATEQuestionsonMicroprocessorsandMem...

    GATEPreviousQuestionsonMemories(ROM,PLAandP...

    GATEPreviousQuestionsonAsynchronous&Synchron...

    GATEPreviousQuestionsonLatches&FlipFlops...

    PreviousGATEQuestionsonICLogicFamilieswith...

    PreviousGATEQuestionsonMultiplexers(MUX)with...

    PreviousGATEQuestionsonCombinationalCircuits...

    PreviousGATEQuestionsonKMap,SOPandPOSexpr...

    PreviousGATEQuestionsonLogicGates(1987toTi...

    PreviousGATEQuestionsonNumberSystems&Subtra...

    October(20)

    September(7)

    August(8)

    July(5)

    June(6)

    May(20)

    April(27)

    March(24)

  • 1/14/2016 GATEPaper.in:PreviousGATEQuestionsonMicroprocessorsandMemoryMappingwithSolutions(19872014)

    http://www.gatepaper.in/2014/11/previousgatequestionson_14.html 3/13

    2.ADMAtransferimpliesa.Directtransferofdatabetweenmemoryandaccumulatorb.DirecttransferofdatabetweenmemoryandI/OdeviceswithoutuseofPc.TransferofdataexclusivelywithinPregistersd.AfasttransferofdatabetweenPandI/Odevices

    3.AnAssemblerofamicroprocessorisusedfora.Assemblyofprocessorsinaproductionlineb.Creationofnewprogramsusingdifferentmodulesc.Translationofaprogramformassemblylanguagetomachinelanguaged.TranslationofahigherlevellanguageintoEnglishtext

    4.AhypotheticalCPUhasaparalleladdressbus,aparalleldatabus,aRDandWRactiveLOWsignals.TwoROMsofsize4KwordseachandtwoRAMsofsizes16Kand8Kwords,respectively,aretobeconnectedtotheCPU.ThememoriesaretobesoconnectedthattheyfilltheaddressspaceoftheCUasperthememorymapshowninthefigure.AssumingtatchipselectsignalsareactiveLOW.

    a.WhatisthenumberoflinesintheaddressbusoftheCPU?b.DeterminethevaluesofaddressX,Y,ZandWasdecimalnumbers.c.Usinga2to4decoderandsomeadditionalgates,drawacircuitforthedecodinglogic.

    Solution:https://www.youtube.com/watch?v=7xJmGpkvMAo

    1996

    1.Thetotalnumberofmemoryaccessesinvolved(inclusiveoftheopcodefetch),whenan8085processorexecutestheinstructionLDA2003isa.1b.2c.3d.4

    Solution:

    2.Thefollowingsequenceofinstructionsareexecutedbyan8085microprocessor:1000LXISP,27FFH1003CALL10061006POPHThecontentsofthestackpointer(SP)andtheHLregisterpaironcompletionofexecutionoftheseinstructionsarea.SP=27FF,HL=1003b.SP=27FD,HL=1003c.SP=27FF,HL=1006d.SP=27FD,HL=1006

    Solution:

    1997

    1.In8085Psystem,theRSTinstructionwillcauseaninterrupta.Onlyifaninterruptserviceroutineisnotbeingexecutedb.Onlyifabitintheinterruptmaskismade0c.OnlyifinterruptshavebeenenabledbyanEIinstructiond.Noneoftheabove

    Solution:

  • 1/14/2016 GATEPaper.in:PreviousGATEQuestionsonMicroprocessorsandMemoryMappingwithSolutions(19872014)

    http://www.gatepaper.in/2014/11/previousgatequestionson_14.html 4/13

    2.Thedecodingcircuitisshowninfigure,hasbeenusedtogeneratedtheactivelowchipselectsignalforamicroprocessorperipheral(TheaddresslinesaredesignatedasA0toA7forI/Oaddresses).

    a.60H63Hb.A4A7Hc.3033Hd.7073H

    Solution:https://www.youtube.com/watch?v=lMANeBdPfyg

    3.Thefollowinginstructionshavebeenexecutedbyan8085PForwhichaddresswillthenextinstructionbefetched?

    a.6019b.6379c.6979d.Noneoftheabove

    Solution:

    4.Asignedintegerhasbeenstoredinabyteusingthe2scomplementformat.Wewishtostorethesameintegerina16bitword.Weshould

    Solution:https://www.youtube.com/watch?v=KPDGRwll9LE

    5.Matchthefollowing,whilemovingdatabetweenregistersofthe8085andthestack

    Solution:

    6.An8085Pusesa2MHzcrystal.Findthetimetakenbyittoexecutethefollowingdelaysubroutine,inclusiveofthecallinstructioninthecallingprogram.

  • 1/14/2016 GATEPaper.in:PreviousGATEQuestionsonMicroprocessorsandMemoryMappingwithSolutions(19872014)

    http://www.gatepaper.in/2014/11/previousgatequestionson_14.html 5/13

    YouaregiventhataCALLinstructiontakes18cyclesofthesystemclock,PUSHrequires12cyclesandconditionaljumptakes10cyclesifthejumpistakenand7cyclesifitisnot.Allotherinstructionsusedabovetake(3n+1)clockcycles,wherenisthenumberofaccessestothememory,inclusiveoftheopcodefetch.

    Solution:

    1998

    1.AnI/Oprocessorcontroltheflowofinformationbetweena.CachememoryandI/Odevicesb.MainmemoryandI/Odevicesc.TwoI/Odevicesd.Cacheandmainmemory

    Solution:https://www.youtube.com/watch?v=8SBet_bHUDA

    2.Aninstructionusedtosetthecarryflaginacomputercanbeclassifiedasa.Datatransferb.Arithmeticc.Logicald.Programcontrol

    Solution:https://www.youtube.com/watch?v=TP3A9M09aho

    3.Writeashortassemblylanguageprogram,withoutusinganyarithmeticinstruction,tostorehexadecimal5Dintheflagregisterof8085microprocessor.Datainotherregistersoftheprocessormustnotalteruponexecutingthisprogram.

    Solution:

    1999

    1.IfCS=A15A14A13isusedasthechipselectlogicofa4KRAMinan8085system,thenitsmemoryrangewillbea.30003FFFFHb.70007FFFHc.50005FFFHand60006FFFHd.60006FFFHand70007FFFH

    Solution:https://www.youtube.com/watch?v=5ZPEZCOhvd8

    2.An8085assemblylanguageprogramisgivenbelow.

  • 1/14/2016 GATEPaper.in:PreviousGATEQuestionsonMicroprocessorsandMemoryMappingwithSolutions(19872014)

    http://www.gatepaper.in/2014/11/previousgatequestionson_14.html 6/13

    Solution:

    2000

    1.Inthe8085microprocessor,theRST6instructiontransferstheprogramexecutiontothefollowinglocationa.30Hb.24Hc.48Hd.60HSolution:https://www.youtube.com/watch?v=48roVRL_x1o

    2.Thenumberofhardwareinterrupts(whichrequireanexternalsignaltointerrupt)presentinan8085microprocessorarea.1b.4c.5d.13

    Solution:https://www.youtube.com/watch?v=Wt1abwe4das

    3.Thecontentsofregister(B)andAccumulator(A)of8085microprocessorare49Hand3AHrespectively.ThecontentsofAandthestatusofcarryflag(CY)andsignflag(S)afterexecutingSUBBinstructionarea.A=F1,CY=1,S=1b.A=0F,CY=1,S=1c.A=F0,CY=0,S=0d.A=1F,CY=1,S=1

    Solution:https://www.youtube.com/watch?v=G08SPzuh2Lk

    4.Theprogramandmachinecodeforan8085microprocessoraregivenbyThestartingaddressoftheaboveprogramis7FFFH.Whatwouldhappenifitisexecutedfrom8000H?

    Solution:

    2001

    1.An8085microprocessorbasedsystemusesa4Kx8bitRAMwhosestartingaddressisAA00H.TheaddressofthelastbyteinthisRAMisa.0FFFHb.1000Hc.B9FFHd.BA00H

  • 1/14/2016 GATEPaper.in:PreviousGATEQuestionsonMicroprocessorsandMemoryMappingwithSolutions(19872014)

    http://www.gatepaper.in/2014/11/previousgatequestionson_14.html 7/13

    Solution:https://www.youtube.com/watch?v=psL4GimAjV8

    2.Considerthefollowingsequenceofinstructionsforan8085microprocessorbasedsystem.

    a.IftheprogramexecutionbeginsatthelocationFF00H,writedownthesequenceofinstructionswhichareactuallyexecutedtillaHLTinstruction.AssumeallFlagsareinitiallyRESET.b.Whichofthethreeports(PORT1,PORT2andPORT3)willbeloadedwithdata,andwhatisthebitpatternofthedata?

    Solution:

    2002

    1.Considerthefollowingassemblylanguageprogram.MVIB,87HMOVA,BSTART:JMPNEXTMVIB,00HXRABOUTPORT1HLTNEXT:XRABJPSTARTOUTPORT2HLTTheexecutionoftheaboveprograminan8085microprocessorwillresultina.Anoutputof87HatPORT1b.Anoutputof87HatPORT2c.Infiniteloopingoftheprogramexecutionwithaccumulatordataremainingat00Hd.Infiniteloopingoftheprogramexecutionwithaccumulatordataalternatingbetween00Hand87H

    Solution:https://www.youtube.com/watch?v=3Z_LU8RWke0

    2.An8085microprocessoroperatingat5MHzclockfrequencyexecutesthefollowingroutine.START:MOVA,BOUT55HDCRBSTAFFF8HJNPSTARTa.DeterminethetotalnumberofmachinecyclesrequiredtoexecutetheroutinetilltheJMPinstructionisexecutedforthefirsttime.b.Determinethetimeintervalbetweentwoconsecutive(MEMW)signals.c.IftheexternallogiccontrolstheREADSYlinesothatthreeWAITstatesareintroducedintheI/OWRITEmachinecycle,determinethetimeintervalbetweentwoconsecutive(MEMW)signals.

    Solution:

    2003

    1.Inan8085microprocessor,theinstructionCMPBhasbeenexecutedwhilethe

  • 1/14/2016 GATEPaper.in:PreviousGATEQuestionsonMicroprocessorsandMemoryMappingwithSolutions(19872014)

    http://www.gatepaper.in/2014/11/previousgatequestionson_14.html 8/13

    contentoftheaccumulatorislessthanthatofregisterB.Asaresult,a.CarryflagwillbesetbutZeroflagwillberesetb.CarryflagwillberesetbutZeroflagwillbesetc.BothCarryflagandZeroflagwillberesetd.BothCarryflagandZeroflagwillbeset

    Solution:https://www.youtube.com/watch?v=kKwtMh2kzbc

    2004

    1.The8255programmableperipheral isusedasdescribedbelow.(i)AnA/Dconverterisinterfacedtoamicroprocessorthroughan8255.Theconversionisinitiatedbyasignalfromthe8255onportC.AsignalonportC.AsignalonportCcausesdatatobestrobedintoportA.(ii)Twocomputersexchangedatausingapairof8255s.PortAworksasabidirectionaldataportsupportedbyappropriatehandshakingsignals.Theappropriatemodesofoperationofthe8255for(i)and(ii)wouldbea.Mode0for(i)andMode1for(ii)b.Mode1for(i)andMode0for(ii)c.Mode2for(i)andMode0for(ii)d.Mode2for(i)andMode1for(ii)

    Solution:

    2.Thenumberofmemorycyclesrequiredtoexecutethefollowing8085instructions(i)LDA3000H(ii)LXID,F0F1HWouldbea.2for(i)and2for(ii)b.4for(i)and3for(ii)c.3for(i)and3for(ii)d.3for(i)and4for(ii)

    Solution:

    3.Considerthesequenceof8085instructionsgivenbelow.LXIH,9258HMOVA,MCMAMOVM,AWhichoneofthefollowingisperformedbythissequenceofinstructions?a.Contentsoflocation9258aremovedtotheaccumulatorb.Contentsoflocation9258arecomparedwiththecontentsoftheaccumulatorc.Contentsoflocation9258arecomplementedandstoredinlocation9258d.Contentsoflocation5892arecomplementedandstoredinlocation5892.

    Solution:https://www.youtube.com/watch?v=UsRGGYexA8

    4.Itisdesiredtomultiplythenumbers0AHby0BHandstoretheresultintheaccumulator.ThenumbersareavailableinregistersBandCrespectively.Apartofthe8085programforthispurposeisgivenbelow:MVIA,00HLOOP:..........................................HLTENDThesequenceofinstructionstocompletetheprogramwouldbea.JNZLOOP,ADDB,DCRCb.ADDB,JNZLOOP,DCRCc.DCRC,JNZLOOP,ADDBd.ADDB,DCRC,JNZLOOP

    Solution:https://www.youtube.com/watch?v=gdjv_EzqPB0

    2005

    StatementforlinkedAnswerQuestions1&2:Consideran8085microprocessorsystem.1.Thefollowingprogramstartsatlocation0100H.LXISP,00FFLXIH,0701MVIA,20HSUBMTHEContentsofaccumulatorwhentheprogramcounterreaches0109His

    interface

  • 1/14/2016 GATEPaper.in:PreviousGATEQuestionsonMicroprocessorsandMemoryMappingwithSolutions(19872014)

    http://www.gatepaper.in/2014/11/previousgatequestionson_14.html 9/13

    a.20Hb.02Hc.00Hd.FFH

    2.Ifinaddition,followingcodeexistsfrom0109Honwards.ORI40HADDMWhatwillbetheresultintheaccumulatorafterexecutingthelastinstruction?a.40Hb.20Hc.60Hd.42H

    Solution(1&2):

    2006

    1.AnI/Operipheraldeviceshownnfigure(b)belowistobeinterfacedtoan8085microprocessor.ToselecttheI/OdeviceintheaddressrangeD4HD7H,itschipselect(CS)shouldbeconnectedtotheoutputofthedecodershowninthefigure(a)below:

    a.Output7b.Output5c.Output2d.Output0

    Solution:https://www.youtube.com/watch?v=pCzrjQ2zx44

    2.Followingisthesegmentofa8085assemblylanguageprogramLXISP,EFFFHCALL3000H::3000H:LXIH,3CF4HPUSHPSWSPHLPOPPSWRETOnthecompletionofRETinstruction,thecontentsofSPisa.3CF0Hb.3CF8Hc.EFFDHd.EFFFH

    Solution:

    2007

    1.An8255chipisinterfacedtoan8085microprocessorsystemasanI/OmappedI/Oasshowninthefigure.TheaddresslinesA0andA1ofthe8085areusedbythe8255chiptodecodeinternallyitsthreeportsandthecontrolregister.TheaddresslinesA0toA7aswellastheIO/Msignalareusedforaddressdecoding.Therangeofaddresseesforwhichthe8255chipwouldgetselectedis

  • 1/14/2016 GATEPaper.in:PreviousGATEQuestionsonMicroprocessorsandMemoryMappingwithSolutions(19872014)

    http://www.gatepaper.in/2014/11/previousgatequestionson_14.html 10/13

    a.F8HFBHb.F8HFCHc.F8HFFHd.F0HF7HSolution:https://www.youtube.com/watch?v=tWFKm8GgbEw

    Statementforthelinkedanswerquestions2&3:An8085assemblylanguageprogramisgivenbelow.Line1MVIA,B5H2MVIB,0EH3XRI69H4ADDB5ANI9BH6CPI9FH7STA3010H8HLT

    2.ThecontentsoftheaccumulatorjustafterexecutionoftheADDinstructioninline4willbea.C3Hb.EAHc.DCHd.69H

    3.Afterexecutionofline7oftheprogram,thestatusoftheCYandZflagswillbe..respectively.a.0,0b.0,1c.1,0d.1,1

    Solution(2&3):https://www.youtube.com/watch?v=ptzzYWh5DPw

    2008

    1.An8085executesthefollowinginstructions

    2710LXIH,30A0H2713DADH2714PCHL

    AlladdressesandconstantsareinHexadecimal.LetPCbethecontentsoftheprogramcounterandHLbethecontentsofHLregisterpairjustafterexecutingPCHL.Whichofthefollowingstatementsiscorrect?

    a.PC=2715HandHL=30A0Hb.PC=30A0HandHL=2715Hc.PC=6140HandHL=6140Hd.PC=6140HandHL=2715H

    Solution:https://www.youtube.com/watch?v=YS9fVY4bdn4

    2009

    1.Inamicroprocessor,theserviceroutineforacertaininterruptstartsfromafixedlocationofmemorywhichcannotbeexternallyset,buttheinterruptcanbedelayedorrejected.Suchaninterruptisa.nonmaskableandnonvectoredb.maskableandnonvectoredc.nonmaskableandvectoredd.maskableandvectored

    Solution:https://www.youtube.com/watch?v=pJ6A_o5LU

  • 1/14/2016 GATEPaper.in:PreviousGATEQuestionsonMicroprocessorsandMemoryMappingwithSolutions(19872014)

    http://www.gatepaper.in/2014/11/previousgatequestionson_14.html 11/13

    2010

    1.Forthe8085assemblylanguageprogramgivenbelow,thecontentoftheaccumulatoraftertheexecutionoftheprogramis

    3000MVIA,45H3002MOVB,A3003STC3004CMC3005RAR3006XRAB

    a.00Hb.45Hc.67Hd.E7H

    Solution:https://www.youtube.com/watch?v=NSdbNs_Oiwk

    2011

    1.An8085assemblylanguageprogramisgivenbelow.Assumethatthecarryflagisinitiallyunset.Thecontentsoftheaccumulatoraftertheexecutionoftheprogramis

    MVIA,07HRLCMOVB,ARLCRLCADDBRRC

    a.8CHb.64Hc.23Hd.15H

    Solution:https://www.youtube.com/watch?v=GlPuCxCnvws

    2013

    1.For8085microprocessor,thefollowingprogramisexecuted.MVIA,05HMVIB,05HPTR:ADDBDCRBJNZPTRADI03HHLTAttheendoftheprogram,accumulatorcontainsa.17Hb.20Hc.23Hd.05H

    Solution:https://www.youtube.com/watch?v=9YjXsP1whY

    2014

    1.Forthe8085microprocessor,theinterfacingcircuittoinput8bitdigitaldata(DI0DI7)fromanexternaldeviceisshowninfigure.Theinstructionforcorrectdatatransferis

  • 1/14/2016 GATEPaper.in:PreviousGATEQuestionsonMicroprocessorsandMemoryMappingwithSolutions(19872014)

    http://www.gatepaper.in/2014/11/previousgatequestionson_14.html 12/13

    PostedbyGATEpaperat13:23

    Labels:GATEQuestions,Microprocessors

    a.MVIA,F8Hb.INF8Hc.OUTF8Hd.LDAF8F8H

    Solution:https://www.youtube.com/watch?v=IH6ybT3DsAs

    2.An8085microprocessorexecutesSTA1234Hwithstartingaddresslocation1FFEH(STAcopiesthecontentsoftheaccumulatortothe16bitaddresslocation).Whiletheinstructionisfetchedandexecuted,thesequenceofvalueswrittenattheaddresspinsA15A8is

    Solution:https://www.youtube.com/watch?v=RrlGPv7adtU

    +5 Recommend this on Google

  • 1/14/2016 GATEPaper.in:PreviousGATEQuestionsonMicroprocessorsandMemoryMappingwithSolutions(19872014)

    http://www.gatepaper.in/2014/11/previousgatequestionson_14.html 13/13

    NewerPost OlderPost

    3 comments

    Top comments

    Raj Sekhar 9 months ago - Shared publiclysir y u r not uploading other subjects

    1 Reply

    arun singh mehra 2 weeks ago - Shared publiclythanks sir this is helpful for a better approach towards the problems in gate sir please could you upload some videos of problems on microprocessor fromelectrical branc

    1 Reply

    Supreet Singh 9 months ago - Shared publiclySome links are not there for the solutions...

    +1 2

    1 Reply

    Add a comment as Dhruv Chauhan

    Home

    Subscribeto:PostComments(Atom)

    Simpletemplate.PoweredbyBlogger.