您的当前位置:首页正文

PIC K150烧写器使用手册

2020-04-27 来源:星星旅游
readme_ep.txt11/09/2007

DIYPACK25aExpansionPack,COPYRIGHT2006-2007DIYELECTRONICSandJimRobertson.

WEB:http://www.kitsrus.comDearCustomer,

ThankyouforpurchasingaDIYProgrammer.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%IMPORTANTCOPYRIGHTNOTICE!

ThisreadmeisbroughttoyoubyJimRobertsonofNEWFOUNDELECTRONICSonbehalfofDIYELECTRONICS(HK)Ltd.

Thislatest(andlast)updateismostlytheworkofJimRobertsonwithsomeassistancefrombetatestersontheDIYforumboard.

Thistextiscopyright2006-2007JimRobertson.MICROPRO,MICROBRN,ALLTHEDIYPROGRAMMERFIRMWAREARTWORKANDDOCUMENTATIONARECOPYRIGHT2007TODIYELECTRONICS(HK)Ltd.Additionally,somepartsofthenewfirmwareanddocumentationareCopyright2007toJimRobertson.

UseofanyandallDIYELECTRONICScopyrightmaterialandcopyright

materialbelongingtoJIMROBERTSONislimitedtoPICPROGRAMMERSPRODUCEDBYDIYELECTRONICSONLY.LicenseisgrantedonlyfortheintendeduseofDIYPRODUCEDprogrammersknownasK128,K149(A...F),K150andK182.TheintendeduseoftheseprogrammersisfortheREADING,WRITING,VERIFYING,ERASINGandBLANKCHECKINGOFPICMicrosongenuineDIYproducedprogrammersonly.

USEOFANYDIYELECTRONICSand/orJIMROBERTSONSOFTWARE,FIRMWARE,ARTWORKandDOCUMENTATIONONPROGRAMMERSNOTPRODUCEDORSOLDBYDIYELECTRONICSISSTRICTLYFORBIDDEN.

Thisreadmefilemustbedistributed'asis'withanydistributionofanyfirmwarethatcontainscopyrightintellectualpropertyofJimRobertson.YOUMAYNOTALTER(OR'REBADGE'ASYOUROWN)THISTEXTWITHOUTPERMISSION.NormayanyoneusethelatestfirmwareorchipdatafilewithanyprogrammerotherthanagenuineDIYprogrammer.UsersmaynotreverseengineertheP18Afirmwarebyanymeans.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%LIMITATIONSOFUSE,PLEASENOTE:

TheDIYprogrammersarehobbylevelprogrammersandnotdesignedfor

professionalleveluse.DIYcannotwarranttheprogrammerstobecompletelyfreeoferrors.TherearemanynewPICsaddedtothe'chipdata.cid'filesothatitispossiblefortheretobesomeerrorsdespitethelengthytestingthathasbeendone.DuetosomelimitationsinMicroBrn,notallpossibleconfigwordoptionsaresupportedintheGUIasMicroBrnonlysupportsupto34uniquegroupsofsettings.Thisslightlimiationmostlyaffectsthelarger,morecomplex18Fxxxxfamilyofdevices.However,allpossiblesettingsareavailablewhenembeddedintheHEXfile.ThereisnolimitationforsettingsspecifiedintheHEXfile.

UnfortunatelytheauthorofMicroProisnolongerassociatedwithDIYanddespitetheeffortsofanumberofDelphiexperts,wewereunabletogetMicroProtocompileandasaresultwearealllefttousetheexisting

executablefilewithoutthepossibilityofupdatingiteventocorrectsomeknownbugs.

ItwaspossibletopatchtheEXEfiletochangeafewidentifyingbytesandtextstrings.BydoingthiswewereabletocreatenewPICidentifying

stringsthathelpedfixlongstandingbugs.TheEXEwasthencompressedtospeedupthedownloading.

Asaresultoftheabovelimitation,theplanistoretireMicroProanddevelopanalternateprogrammerplatform.

1

readme_ep.txt11/09/2007

ITISENTIRELYUPTOTHEENDUSERTODETERMINETHESUITABILITYOFTHISEXPANSIONPACKFORTHEIRREQUIREMENTS.THISALSOMEANSCHECKINGFOR

ACCURACYOFTHECHIPDATAFILE.USERSAREASKEDTOREPORTANYERRORSONTHEDIYFORUM.

http://www.websitetoolbox.com/tool/mb/diykit?forum=13943

BecausetherearemanynewPICsaddedandsomeimportantchangestofixsomebugsthe'chipinfo.cid'filehasbeenrenamed'chipdata.cid'and

'MicroPro'hasbeenrenamed'MicroBrn'.Renamingthesefileshelpsuserstoensurethattheyareusingtherightchipdatafilewiththealteredversionofthesoftware.Thealteredfirmwarealsohasanewprotocolidentification.PROTOCOL->P18A

ITISVITALTHATTHENEWFIRMWARE,CHIPDATA.CIDANDMICROBRNFILESINCLUDEDINDIYPACK25-EPAREUSEDTOGETHER.THEYSHOULDNOTBEMIXEDWITHANY

PREVIOUSVERSIONSOFFIRMWARE,CHIPINFO.CIDORMICROPRO.THEREARECHANGESTOTHEPROTOCOLANDINCOMPATIBILITIESDOEXIST.DUETOTHEWIDESPREAD

MISUSEOFTHEINTELLECTUALPROPERTYOFDIY,ANDINANATTEMPTTOLIMITTHISINTOTHEFUTURE,DETAILSOFTHEEXACTPROTOCOLCHANGESARENOTBEINGOPENLYPUBLISHED.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%OLDERANDOUTDATEDDOCUMENTATION

MuchofthedocumentationfortheDIYprogrammersdistributedinthe

DIYPACKSsuchasthe\"README.TXT\"file,theproductPDFsandthehelpfileisoutdated.DuetothedepartureofkeypeopleassociatedwithDIYandthedeathofthefounderandownerofDIYElectronics,PeterCrowcroftsomeinformationregardingthefrequencyofupdatesetcisnotapplicableanymore.

SomeoftheinformationontheDIYwebsiteandtheDIYprogrammerforumboardisalsoveryoutdated.ThereisnocurrentefforttodevelopwhatwasknownasP019.

Additionally,informationinthe\"PROTOCOL.TXT\"fileisjustnotcorrectevenfortheintendedP018andnowevenlesssoforthenewprotocolP18A.Thatbeingsaid,therestillisimportantinformationintheolder

documentation.The\"RESMOD.PDF\"isrequiredreadingforownersofolderDIYprogrammermodelsandtheupdateprocedurefoundinthe\"README.TXT\"filedistributedintheDIYPACKinstallationfilesissimilartotherequiredupdateprocedureforthenewfirmwareinthisexpansionpack.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%BUGGEDFIXHEXANDFIXHEX2

FIXHEX2ISTHECOPYRIGHTMATERIALOFJIMROBERTSONANDITMAYNOTBEDISTRIBUTEDWITHOUTWRITTENPERMISSIONFROMJIMROBERTSON.

FIXHEXisasmallprogramwrittenbyBobAxellanditisrequiredtoalterHEXfilesproducedbysome\"C\"compilerstobecompatiblewithMicroBrn.MicroBrnisnotcapableofreadinglinesthatcontainanODDBYTECOUNTandattemptingtoloadsuchaHEXfilewillcauseanerrorconditioninMicroBrn.ThislimitationinMicroBrnwasnotapparentuntilaftertheauthorofithadmovedonandtheproblemsurfacedinlaterversionsofsomecompilers.

UnfortunatelythereisabugintheoriginalFIXHEXinthatitdoesnotcorrectlywritealteredlinesifthelastbyteofthatlineendedwitha\"0\"Thismeansthereisa1/256chanceperoddlineofFIXHEXnotproducingaloadablefileforMicroBrn.

AnewversionofFIXHEXcalledFIXHEX2hasbeenwrittenbyJimRobertsonandthisreplacesthebuggedFIXHEX.Italsooffersafewnewfeatureslikeautomaticbackgroundoperationsotheuserisnotburdenedwithhavingto

2

readme_ep.txt11/09/2007

performextrastepstoloadaHEXfileforthe18Fxxxxfamily.FIXHEX2isdistributedasanEXEfileonlyhoweveritrequiresafewcommonDLLfilestobeinstalledonthetargetPC.Ifthesearenotpresent(yougetanerrormessage)thentheycanbeobtainedofftheMicrosoftwebsite:http://download.microsoft.com/download/vb60pro/install/6/win98me/en-us/vbrun60.exe

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%UPDATEPROCEDUREFORTHEDIYEXPANSIONPACK

ThisexpansionpackdoesnotrequireanyspecialPCinstallationotherthantocopytheincludedfilesintoyourexistingDIYprogrammerfolderoranyfolderofyourchoice.ItdoesnotoverwriteanyolderfilesasallthefilesintheExpansionPackareuniquelynamed.NoneoftheexistingfilesinDIYPACK25areinanywayalteredoroverwritten.Noefforthasbeenmadetoupdatethesefiles.Theresourcesrequiredtodothisjustarenotavailable.

NoneoftheolderDIYPACKfilesarerequiredfortheoperationofthe

expansionpackhoweverthereissomeimportantinformationinthepreviousdocumentationandthelatestDIYPACKshouldstillbeinstalled.

Tousethisexpansionpackonceyouhaveextractedthefilesintoafolderofyourchoice,simplyuseMicroBrninsteadoftheolderMicroPro.MicroBrnwillloadandusetheupdatedandnewlynamedchipdata.cidfileandanewerhelpfile.

LOADINGTHENEWHEXFILES

TheexpansionpackdoesrequirenewfirmwaretobeinstalledonyourDIYprogrammer.RunyourOLDcopyofMicroPro.

Choose16F628fromthechipselector.Ifyouhavea16F628Aor16F648AthesecanalsobeusedifyouselectthematchingpartinMicroProandsimplyignorethe\"Fuseprogramerror\"messageyougetattheendof

programming.Thismessagedoesnotmatter.ItonlyrelatestounusedbitsinthenewerPICs

LookforthefollowingfilesinyourNEWinstallationdirectory.K128USERS

Loadthefilecalled\"epk128.hex\"K149-AUSERS

Loadthefilecalled\"epk149a.hex\"K149-BtoFUSERS

Loadthefilecalled\"epk149bf.hex\"K150USERS

Loadthefilecalled\"epk150.hex\"K182USERS

Loadthefilecalled\"epk182.hex\"

BEFOREyouPressPROGRAMtoprogramthechipcheckthattheEEPROMOVERRIDEoptionfoundunderthe\"OPTIONS\"menuisNOTselected(theiconmustNOTbedepressed.)Failuretoensurethiswillresultinincorrectoperationofthenewfirmware.

Whencompleted,closeMicroProandthenturnofftheprogrammerpower.Removethe16F628fromtheICsocketontheprogrammerboardandreplaceitwiththenewlyupgradedchipmakingsureitisplacedcorrectly.

3

readme_ep.txt11/09/2007

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%KNOWN(UNFIXABLE)PROBLEMSWITHMICROBRN(Version:v200807)

-Someofthenewer18FxxxxserieshavemoreCONFIGsettingsthancanbedisplayedandeditedintheMicroBrnGUI(MicroBrnonlyallows34max).-MicroBrnmaywritecodememorycontentsintoitsdataEEPROMbufferforthe18FxxxfamilybeforeoverwritingitwithcorrectdataEEPROMdata.IfthereisnodataEEPROMdataembeddedintheHEXfilethenthedataEEPROMspacewillbeprogrammedwithpartoftheprogramcodeandnotleftinthedefault\"0xFF\"state.-Doesnot'SAVE'theconfigwordsettingscorrectly.-Doesnot'SAVE'IDvaluescorrectly.-Doesnot'SAVE'theDataEEPROMcorrectly.

-DoesnotalwaysdisplaytheIDvaluesinthe'Fuses'windowforthe12-bitcoreparts.MicroBrnmaydisplayanIDtextboxforthe12-bitcoreFlashpartsbutitdoesnotcontainvalidvaluesthatareeitherpassedtotheprogrammerorreadbackfromtheprogrammer.However,IDvaluesembeddedintheHEXfiledoseemtoprogramcorrectlywiththeP18Afirmware.(PreviousfirmwaredidnotalwayssupportIDlocationsfor12-bitcorePICs.)-Theblankcheckoperationmaynotcorrectlydisplay18Fxxxxfusesasblankevenwhentheyare.Thisappliestomostoftheneweradded18FxxxxPICs.-Doesnotsupport18Fpartsgreaterthan64kbytes-attemptingtowillcauseasyntaxerrormessagewhenreadingthechipdatafile.(Note:theP18Afirmwareonlysupportsnewer18FxxxPICsupto32K.Existing(P018)supportfor64KPICsisstillavailablewithP18A.-DoesnothaveindependenttimingforthecodeanddataeepromprogrammingcausingexcessiveprogramtimesforsomePICs.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%UPDATEDFIRMWAREP018TOP18A

Inordertosupportnewerdevices,theexistingP018firmwarefrom

DIYPACK25underwentasubstantialcoderewrite.Themainaimofthiscoderewritewastoenablesupportofthenewer18Fxxxxpartsandtocorrectexistingbugsinthefirmwarethatpreventedcorrectprogrammingofthe10Fxxxpartsand,insomecases,existingsupported18Fxxxxand16Fxxxparts.Anumberofotherminorerrorsandomissionswerecorrected.ExistingDIYPACK25PICssubjecttofirmwarecorrectionsinP18Ainclude:----10Fxxx

12C50xand16C50x16F7x718Fx2x5

Asaresultofthecorrectionstothe10Fxxxsupport,morePICsusingasimilarprogrammingalgorithmcanbesupported.Mostofthe12-bitcoreFlashpartsarenowsupportedbythefirmwareandentriescanbeaddedtothechipdata.cidfilefortheseparts.

NOTE:New(currentlymarkedas'futureproduct'byMicrochip)12-bitcorepartswithdataEEPROMarenotsupportedbyP18A.ItisexpectedthatmostothernewerpartswillbesupportedhoweveritisimpossibletoknowwhatMicrochipwilldotoaltertheprogrammingrequirementssotherearenoguarantees.

MORESTABLEOPERATION

P18Ahasbeencodedtohopefullyoffermorestablecommunicationsthan

4

readme_ep.txt11/09/2007

P018.Whileitisnotpossibletoconfirmthatthiswillbethecaseforeveryone,intialfeedbackdoessupportthatP18AworksbetterthanP018.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%USERSUPPORTEDUPDATES

TheDIYprogrammersuseausereditablefileforchipinformationandthiscanbeaddedtobyanyone.Whileitcanbealittledauntingatfirstlook,oftenanewPICisaversionofanoldersupportedPICanditcansimplybeacut'n'pasteofit.ThereissomedocumentationintheMicrobrnhelpfileandyoumayalsofindhelphereonDIY'sforum:http://www.websitetoolbox.com/tool/mb/diykit?forum=13943

Microchip'sprogrammingspecificationsalsoarerequiredreadingandareavailablehere:

http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1407WhatyouarelookingforintheprogrammingspecificationsareotherPICssupportedbythesamespecthatarealreadyincludedinthe'chipdata.cid'file.TypicalchangestoanexistingPICincludetheCHIPidvalue(foundtowardtheendoftheprogrammingspec),thesizeofthecodeand/ordataEEPROMandsometimesachangetotheconfigword('Fuses').OthercommonchangesthatarenotfoundintheprogrammingspecandrelatetoMicroBrnandtheDIYprogrammerarethePIC'sfootprint(KITSRUS.COM=)andtherequiredVdd/Vpp(PowerSequence=)switching.Boththesecanbefoundby

lookingforasimilarpinoutpackageinthechipdata.cidfile.Itisratherintuitivewhenyoulookatit.

ItwasnevertheintentofDIYtobethesolesourceofupdatesandtherearesomePICsthatarenotincludedinthechipdatafilethatcanbeaddedwithouttomucheffortbytheenduser.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%PARTSNOTSUPPORTEDBYP18A(andpossibleroadmap)

AllthefollowingPICscannotbesupportedbyP18Aduetolimitationsintheexistingfirmwareand/orMicrobrnand/orthechipdata.cidfile.

ThesedevicesimmediatelybelowaresupportedbyafutureupgradehoweverthisisnotcurrentlynotownedbyDIYELECTRONICSandisnotplannedasafreerelease,ratherasaverysubstantialupgradeofferingmuchquickerprogrammingandmoresupportedPICs.

-16F88x(dueto2ndconfigwordandincompatibleprogrammingcommandset.)-16F716(incompatibleprogrammingcommandset)

-12F519,16F526(plusother12-bitcorepartswithdataEEPROM)

-Anynewer18FxxxxpartaddedsinceDIYPACK25thatisover32KBcodespace.

-Any18FxxxxDataEEPROMover256bytesincludingpartssupportedbyDIYPACK25.

DataEEPROMsupportisstillavailablebutonlytoa256bytemaximum.Notsupportedbutmaybelateron:-dsPIC30F

AdditionalunsupportedPICsthatareveryunlikelytobesupportedontheDIYprogrammerplatformever:----18Fxx39motorcontrolkernelparts

16C64x,16C66x,16C716paritybitpartsdsPIC33(3.3V)-PIC24(3.3V)-PIC14000

PICfamiliesthatare3.3VdeviceslikethePIC18J,PIC18K,PIC24anddsPIC33cannotbesupportedbytheexistinghardware.Inaddition,Microbrndoesnotsupportthe5VdsPIC30familyassupportforthisdeviceisnotincludedintheexistingMicroBrnortheP18Aprotocol.Itmaywellbesupportedbyafurtherendeavoroutsidethescopeofthisexpansionpack.

5

readme_ep.txtEndofthisreadme.

11/09/2007

6

因篇幅问题不能全部显示,请点此查看更多更全内容