Sei sulla pagina 1di 6

1/16/2015

Programmerfor89C51/52/5589S51/52

EasyDownloader V2.0 for ATMEL


89C51/52/55 89S51/52

WichitSirichote,kswichit@kmitl.ac.th
BuildyourownaprogrammerforwritingintelHEXfiletothe89C51,89C52and89C55,PCBfileincluded,Window
versionUPLOADEREZ3,EZ3.1,
modifiedsourcecodewithsdcc.
updatedfirmwarefor89S51and89S52!

Introduction
Ifyouneedmorecodespaceforyourapplication,particularlyfordeveloping89Cxxprojects
withClanguage,theEasyDownloaderV2.0istheanswer.It'ssuitableandcheapwhichanyone
canbuildeasily.ThisversioniscapableofwritingintelHEXfiletoa89C51(4kB),89C52(8kB)
and89C55(20kB).AftercompilingthesourcefileinAssemblyorCthendownloadthehexfile
tothechipdirectlybyusingA:\>ez2myfirst(.hex),say.
Hardware
Figure1showsthecircuitdiagramofEasyDownloaderV2.0.The89C51withez52.hex
receivesa9600baudserialdatafromPCandgeneratestheappropriatedsignalapplyingtothe
ZIFsocket.P0isforbidirectionaldatatransferring.P1providesA0A7,P2.0P2.6forA8A14.LookatA14,oursoftwareuses
P2.6,whileATMELusesP3.0instead.ProgrammingmodeselectionisdonebyP3.4toP3.7.Seeinez52.cfordetails.The
programmingvoltageshownabitdifferentfromversion1.1,Vpppinneedsonly+5Vand+12VandsimplyactivatedbyP3.3.The
clockinputpinX1oftheZIFsocketisderivedfromX2withoutbuffering.Ihavetested,noproblemsofar.

Figure1:CircuitDiagramofEasyDownloaderV2.0
ConstructingtheBoard
TheprototypeboardmaybebuiltusinguniversalPCBwithpointtopointsoldering.IfyouwanttomakeaPCB,getthe
http://www.kmitl.ac.th/~kswichit/easy2/easy2.htm

1/6

1/16/2015

Programmerfor89C51/52/5589S51/52

ez2.pcb,openwithProtelversion2.73.ThecomponentsplacementisshowninFigure2.
ForthosewhocanmakethePCBwithPDFfile,getthisfileez2pcb.pdf

Figure2:ComponentsPlacementLayout
Software
ez52.hexisthehexfilefirmwareneededfor89C51.UseagivenprogrammeroravailableEasyDownloaderwritethehexfileinto
the89C51.Analternativeistouse89S8252chip,buildasimpleSPIdownloaderthroughLPTport.Thepreprogrammed89S8252
withez52.hexcanbeusedinplaceof89C51.
ez52.cisthesourceprogramwritteninClanguageforfurthermodification.Torecompile,itneedsMicroCfor8051compilerfrom
DunfieldDevelopmentSystem.
ez2.zipisthedosversionprogramthatrunsonPCsendingthehexcodetotheEasyDownloaderboard.
Note:EZ2dosversioncanuseonlywitholdPC,386or486machine.
Exampleofusingez2isshowninFigure3.

Figure3:ExampleofUsingez2,DOSversionUploader

http://www.kmitl.ac.th/~kswichit/easy2/easy2.htm

2/6

1/16/2015

Programmerfor89C51/52/5589S51/52

Figure4:ExampleofUsingEZ3andEZ3.1
DownloadEZUploaderV3.0forWindowAsseenintheEasyDownloaderV1.1,theEZUPLOADERV3.0canalsobeusedwith
EasyV2.0.Nowforthe89C51,89C52and89C55,thereisasignaturebyte,thusnolongerneedtoselectmemorysize.TheEZwill
recognizehowbigthecodememoryis.JustclickSendHexfile,everythingwilldoneautomatically.
DownloadEZUploaderV3.1forWindowThisisbetatestEZ3.1Uploader,withadditionalREADandSAVEASfeatures.TheHEX
coderesidedinthechipscanbereadandsaveasanIntelHEXfile.
EasyIILinks
DownloadNowezdl4!!NewPCsoftwareforEasyDownloaderV1.1andV2.0.Noproblemwithunsortedhexfile.Automatically
detectCOMPortandprogrammerboard.
UsingEasyDownloaderV1.1&V2.0withUnsortedHEXFilesKurniaWijayafromJakartaIndonesiahelpsmewritingthe
programthatsortstheintelhexfilegeneratedbysomecompilers.
EasyPROG:ModifiedversionofEasyDownloadermadebyFranciscoBarbosa
SimpleRS232CLevelConverterusingTransistorsReplaceDS275withthischeapcircuit.

Sourcecodeforsdcc
Downloadthesourcecode,ez52s.c,hexfile,ez52s.hexandthecompiler,SDCC.zip
NewfirmwareisdesignedforusingwithEZDL4.

UpdatedFirmware
Jan7,2004betaversionfirmwareforIntegratedCircuitSolutionIS89C51A,IS89C52Asourcecode,ez52ics.c,hexfile,
ez52ics.hex(notrecommendedfornewdesign)
Nov1,2004betaversionfirmwarefor89S51,89S52newseriesflashMCU.ThenewfirmwareenablesEasydownloader
V2.0toprogramboth89Cxxand89Sxx.Thesignaturecheckingwasremoved,usermustknowthesizeofcodefora
givenchip,e.g.89x51has4096bytesand89x528192bytes!

http://www.kmitl.ac.th/~kswichit/easy2/easy2.htm

3/6

1/16/2015

Programmerfor89C51/52/5589S51/52

SincethenewSseriesneedsmorebitformodesetting.Soyouhavetomovesignalfrompin14topin13asshown
above.
Downloadsourcecodeandintelhexfile:EZ52ss.cez52.hex(bothfileswereupdatedSep13,2004,extendtheerasing
pulselenghtandmayneedpowercyclingifverifyfailed)Pleasereportyourtesting.

ContributiontoEasyDownloaderV2.0

Runner51TheprogrammerboardbasedonEasy2,OrcadV7DSNandPCBfilesmadebyFernandoBallesterosfrom
Argentina.
ISP51InSystemProgrammerforflashmicrocontrollermadebyTaufikIR.
Adapterboardfor89Cxx51andmodifiedfirmwareusingsdccmadebyNguyenHoaiNamfromVietnam.

ConnectingtheEasyDownloaderV2.0toaPCwithUSBport:
NewerPC,orlaptopcomputermaynotprovidestheCOMport,insteadithastheUSBportasastandardserialport.I
foundacheapadapter,theFTDI232USBCOMportconverter.TheadapterusesFT232RLchip.Theadapter
provides6pinsconnector.TointerfaceittotheEasydownloader,weneedsonlythreepins,i.e.TXD,RXD,and
GND.Thechipitselfpoweredby+5VfromUSBport.

http://www.kmitl.ac.th/~kswichit/easy2/easy2.htm

4/6

1/16/2015

Programmerfor89C51/52/5589S51/52

Asshowninabovephoto,weremovetheDS275,RS232transceiver,andprovidethe6pinSIPsockettoconnectthe
FTDI232serialadapter.

Connectingtothemasterchipserialportissimple.TXD
http://www.kmitl.ac.th/~kswichit/easy2/easy2.htm

5/6

1/16/2015

Programmerfor89C51/52/5589S51/52

(pin11ofthe8051)RX(pin5)
RXD(pin10ofthe8051)TX(pin4)
GND(pin20ofthe8051)GND(pin1)
WhenconnectingtheadaptertotheUSBport,theWindowswillfindthedriverautomatically.Wecaninstallthedriver
calledVCP(VirtualCOMport)manually.TheVCPdriverforFTDIchipcangetfromtheFTDIdirectly.ThePCwill
recognizetheconnectedUSBportastheCOMport.
I'mthinkingtoaddtheFTDIchiptotheEasydownloaderfinally.HavealookthenewEasydownloaderwithUSB
interface!

1stPostedNov1,2004
LatestupdatedJan3,2014

http://www.kmitl.ac.th/~kswichit/easy2/easy2.htm

6/6

Potrebbero piacerti anche