intel 8085 project - 8085 projects : the compendium – home to 8085 …€¦ ·  ·...

20
INTEL 8085 PROJECT ECE - 316 MAZE RUNNER Submitted By: Mohak Gupta (103/EC/13) Prashant (121/EC/13)

Upload: lyngoc

Post on 01-Apr-2018

384 views

Category:

Documents


31 download

TRANSCRIPT

Page 1: Intel 8085 project - 8085 Projects : The Compendium – Home to 8085 …€¦ ·  · 2016-12-03INTEL 8085 PROJECT ECE - 316 MAZE RUNNER ... 8085 Microprocessor. ... Microsoft Word

INTEL8085PROJECTECE-316

MAZERUNNER

SubmittedBy:

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

Page 2: Intel 8085 project - 8085 Projects : The Compendium – Home to 8085 …€¦ ·  · 2016-12-03INTEL 8085 PROJECT ECE - 316 MAZE RUNNER ... 8085 Microprocessor. ... Microsoft Word

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.

Page 3: Intel 8085 project - 8085 Projects : The Compendium – Home to 8085 …€¦ ·  · 2016-12-03INTEL 8085 PROJECT ECE - 316 MAZE RUNNER ... 8085 Microprocessor. ... Microsoft Word

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

Page 4: Intel 8085 project - 8085 Projects : The Compendium – Home to 8085 …€¦ ·  · 2016-12-03INTEL 8085 PROJECT ECE - 316 MAZE RUNNER ... 8085 Microprocessor. ... Microsoft Word

USERINTERFACE

Page 5: Intel 8085 project - 8085 Projects : The Compendium – Home to 8085 …€¦ ·  · 2016-12-03INTEL 8085 PROJECT ECE - 316 MAZE RUNNER ... 8085 Microprocessor. ... Microsoft Word

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.

Page 6: Intel 8085 project - 8085 Projects : The Compendium – Home to 8085 …€¦ ·  · 2016-12-03INTEL 8085 PROJECT ECE - 316 MAZE RUNNER ... 8085 Microprocessor. ... Microsoft Word

6

BILLOFMATERIALS

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

Omronswitches.resistorsandcapacitorsofdifferentvaluesareused.

Page 7: Intel 8085 project - 8085 Projects : The Compendium – Home to 8085 …€¦ ·  · 2016-12-03INTEL 8085 PROJECT ECE - 316 MAZE RUNNER ... 8085 Microprocessor. ... Microsoft Word

7

SPECIALICSUSEDANDPURPOSE

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

Page 8: Intel 8085 project - 8085 Projects : The Compendium – Home to 8085 …€¦ ·  · 2016-12-03INTEL 8085 PROJECT ECE - 316 MAZE RUNNER ... 8085 Microprocessor. ... Microsoft Word

8

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

Page 9: Intel 8085 project - 8085 Projects : The Compendium – Home to 8085 …€¦ ·  · 2016-12-03INTEL 8085 PROJECT ECE - 316 MAZE RUNNER ... 8085 Microprocessor. ... Microsoft Word

9

USERFLOWCHART

Page 10: Intel 8085 project - 8085 Projects : The Compendium – Home to 8085 …€¦ ·  · 2016-12-03INTEL 8085 PROJECT ECE - 316 MAZE RUNNER ... 8085 Microprocessor. ... Microsoft Word

10

SCHEMATIC

Page 11: Intel 8085 project - 8085 Projects : The Compendium – Home to 8085 …€¦ ·  · 2016-12-03INTEL 8085 PROJECT ECE - 316 MAZE RUNNER ... 8085 Microprocessor. ... Microsoft Word

11

BOARDLAYOUT

Page 12: Intel 8085 project - 8085 Projects : The Compendium – Home to 8085 …€¦ ·  · 2016-12-03INTEL 8085 PROJECT ECE - 316 MAZE RUNNER ... 8085 Microprocessor. ... Microsoft Word

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

Page 13: Intel 8085 project - 8085 Projects : The Compendium – Home to 8085 …€¦ ·  · 2016-12-03INTEL 8085 PROJECT ECE - 316 MAZE RUNNER ... 8085 Microprocessor. ... Microsoft Word

13

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

Page 14: Intel 8085 project - 8085 Projects : The Compendium – Home to 8085 …€¦ ·  · 2016-12-03INTEL 8085 PROJECT ECE - 316 MAZE RUNNER ... 8085 Microprocessor. ... Microsoft Word

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

Page 15: Intel 8085 project - 8085 Projects : The Compendium – Home to 8085 …€¦ ·  · 2016-12-03INTEL 8085 PROJECT ECE - 316 MAZE RUNNER ... 8085 Microprocessor. ... Microsoft Word

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

Page 16: Intel 8085 project - 8085 Projects : The Compendium – Home to 8085 …€¦ ·  · 2016-12-03INTEL 8085 PROJECT ECE - 316 MAZE RUNNER ... 8085 Microprocessor. ... Microsoft Word

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

Page 17: Intel 8085 project - 8085 Projects : The Compendium – Home to 8085 …€¦ ·  · 2016-12-03INTEL 8085 PROJECT ECE - 316 MAZE RUNNER ... 8085 Microprocessor. ... Microsoft Word

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

Page 18: Intel 8085 project - 8085 Projects : The Compendium – Home to 8085 …€¦ ·  · 2016-12-03INTEL 8085 PROJECT ECE - 316 MAZE RUNNER ... 8085 Microprocessor. ... Microsoft Word

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

Page 19: Intel 8085 project - 8085 Projects : The Compendium – Home to 8085 …€¦ ·  · 2016-12-03INTEL 8085 PROJECT ECE - 316 MAZE RUNNER ... 8085 Microprocessor. ... Microsoft Word

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

Page 20: Intel 8085 project - 8085 Projects : The Compendium – Home to 8085 …€¦ ·  · 2016-12-03INTEL 8085 PROJECT ECE - 316 MAZE RUNNER ... 8085 Microprocessor. ... Microsoft Word

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