Intel 8085 project - 8085 Projects : The Compendium – Home to 8085 …€¦ ·  ·...

Post on 01-Apr-2018

356 views 31 download

Transcript of Intel 8085 project - 8085 Projects : The Compendium – Home to 8085 …€¦ ·  ·...

INTEL8085PROJECTECE-316

MAZERUNNER

SubmittedBy:

MohakGupta(103/EC/13)Prashant(121/EC/13)

ACKNOWLEDGEMENTSThe whole project took a lot of planning and conceptapplication. We managed everything from software tohardwareandtimeplanningbyourselves.However,itwouldnothavebeenpossiblewithoutthekindsupportandhelpofmany individuals. We would like to extend our sincerethankstoallofthem.

WearehighlyindebtedtoProf.DhananjayV.Gadreforhisguidanceandconstantsupervisionaswellasforprovidingnecessaryinformationregardingtheprojectandalsoforhissupportincompletingtheproject.Our thanks and appreciations also go to our colleagues indevelopingtheprojectandpeoplewhohavewillinglyhelpedusoutwiththeirabilities.SpeciallyGauravTyagiandPrinceyYadavwhoguidedusontherightpathmanytimes.

Project OverviewToimplementauserfriendlygame(MazeRunner)usingthe8085Microprocessor.

DESCRIPTION

Theprojectcontains64Bi-ColorLEDMatrixarrangedinan8x8array.Theuserhasaccessto

5buttons-4tonavigateacrossthemazeand1toresetthe game. The Bi-Color LED can be in one of the threepossiblestatesi.e

1.Redindicatinganobstacle.

2.Greenindicatingthepresentlocationoftheplayer

3.Offindicatingfreepassagetogothrough.

The 7-Segment displays the number ofmazes passed tillnow.Afterexitingthemazethedisplaymazeturnallgreentosymbolizeawinsituationandthenextmazeappearsonlywhentheuserpressesanybutto

USERINTERFACE

5

ISSUESFACEDPROPOSEDTIMELINE

DEVIATIONS

Wewereon trackwith thegantt chartproposedtasks but the PCBs delivery got delayed by PCBpowerandasaresultthesolderinggotdelayedbutwemanagedthatprettywellbydoingcodingsidebyside.Butwhilerunningthedesignedcodeswegotseveralproblemsandwehadtogothroughawholelotoftestingbywritingdifferentcodesforour project. And overall project which wassupposedtogetcompleteby30thapril2016wassuccessfully completed a month later. Projectsubmission took place on 3rd june 2016 andreportisuploadedon8thjune2016.

6

BILLOFMATERIALS

Part device/description8085 MICROPROCESSOR8255 PERIPHERALICNE555 555TIMER74HCT573N ADDRESSLATCH58C256P EEPROMULN2803A DRIVERARRAY7404N NOTGATEHC49US CRYSTALLED3MM LEDBC327 PNPTRANSISTORSR-EU_0207/7 RESISTORS62256P RAM

Omronswitches.resistorsandcapacitorsofdifferentvaluesareused.

7

SPECIALICSUSEDANDPURPOSE

8255:TheprojectincludedalotofI/Operipheraldevicesso2-8255'swereusedtocreate5I/Oports.BothICsareI/Omappedandusedtocontrol:1.The8x8dualcolorLEDmatrix2.Theinputmovementswitches3.The7-SegmentdisplayICsareenabledusingthecontrolsignalsfromthe3x8decoderwhichgives4controlsignalsdependingonI/Oandmemoryoperations.ULN2803:Theprojecthasa8x8dualcolorLEDmatrixwhichrequires3mAcurrent/LED.Soatatime64LEDcandrawupto250mAofcurrent.

8

But8255isincapableofprovidingsuchhugeamountsofcurrents.SoULN2803wasusedalongwith1Kresistorstomakeacurrentdriver.Alsopnptransistorswereusedalongwithittosinkthecurrent.*ItwastakencareofthatusinganIClikeULN2803changestheI/Ologicastheinputgoestothenpntransistorbaseterminal.555Timer:Asthematrixhasonly32pinstooperatethematrixweneedtomultiplextheoutputsothatmatrixisrefreshedveryfast.Nowmultiplexingcreateshugeproblemswhilewritingasequentialcodeforthedevice.Using555Timertogenerateregularinterruptstomanagethemultiplexingreducesthedifficultyofwritingcode.Sowea555timerwasusedtogenerateinterruptsafterevery400microsecondsasthetimerequiredtorefreshthematrixwas312microseconds.

9

USERFLOWCHART

10

SCHEMATIC

11

BOARDLAYOUT

12

CODE(Version4).ORG0000HMAIN: MVIA,80H OUT03H MVIA,90H OUT83H MVIB,0FH LXIH,0F00H LXID,EF00HTRAN:MOVA,M STAXD INXH INXD DCRB JNZTRAN JMPSTARTSTART:CALLREST IN80H

13

MVIC,0FH CMPC JNCSTART CALLDELAY CALLDELAY CALLDELAY IN80H MVIC,0FH CMPC JNCSTART CPI0EH JZUP CPI0DH JZLEFT CPI0BH JZDOWN CPI07H JZRIGHTUP:MVIA,0FEH OUT81H

14

LXIH,0EF00H INXH MOVA,M RLC MOVM,A JMPCHECKWIN LEFT:MVIA,0FEH OUT81H LXIH,0EF00H MOVA,M RLC MOVM,A MVIA,0FFH OUT02H MVIA,0FFH OUT00H CALLDELAY JMPSTART

15

DOWN:MVIA,0FCH OUT81H LXIH,0EF00H INXH MOVA,M RRC MOVM,A JMPSTART RIGHT:MVIA,0BEH OUT81H LXIH,0EF00H MOVA,M RRC MOVM,A MVIA,0FFH OUT02H MVIA,0FFH OUT00H CALLDELAY JMPSTART

16

REST:LXIH,0EF00H MOVA,M OUT00H INXH MOVA,M OUT02H CALLDELAY MVIB,80HRST1:INXH MOVA,M OUT01H MOVA,B OUT00H RRC MOVB,A CPI80H RZ CALLDELAY JMPRST1

17

DELAY:LXID,000FFHLOOP1:DCXD MOVA,D ORAE JNZLOOP1 RETCHECKWIN: LXIH,0EF00H MOVA,M CPI10H JNZSTART INXH MOVA,M CPI7FH JNZSTART JMPWINWIN:MVIA,0FFH OUT81H MVIA,0FFH OUT01H

18

MVIA,0FFH OUT00H CALLDELAYWIN1:MVIA,00H OUT02H MVIA,0FFH OUT00H CALLDELAY IN80H MVIC,0FH CMPC JNCWIN CALLDELAY CALLDELAY CALLDELAY IN80H MVIC,0FH CMPC JNCWIN1 JMPMAIN

19

.ORG0F00H.db 010H.db 0FEH.db 000H.db 000H.db 000H.db 0E7H.db 024H.db 024H.db 03CH.db 000H.db 000H.db 000H .END

20

BIBILOGRAPHY

•GAONKAR,R.S.,&GAONKAR,R.S.(1996).Microprocessorarchitecture,programming,andapplicationswiththe8085.EnglewoodCliffs,N.J.,PrenticeHall.ISBN-13978-81-87972-88-4DATASHEETS:•http://www.ti.com/lit/ds/symlink/lm555.pdf•http://elearning.tukenya.ac.ke/pluginfile.php/14944/mod_resource/content/2/intel-8085_datasheet.pdf