PICmicro器件编程:你总想知道(但不知道是问谁)
Thereisalotmaterialoutthereaboutmicrocontroller
programming.Mostofitfocusesonthesoftwaresideof
things–orthogonalinstructionsets,codeoptimization,
high-levellanguageprogrammingtricksandtweaksin
assemblerenvironments,eventakingadvantageofa
device’speculiaritiestomakeitdowhatyouwant.This
is,ofcourse,averygoodthing,asmicrocontrollersend
updoingmorecomplextasksinmoresophisticated
applications,theabilitytowriteelegantcodebecomes
moreandmorevaluable.
Whatdoesn’tgetmentionedasoftenisthelastkeypart
oftheprocess:actuallygettingthatelegantcodeinto
themicrocontrolleritself.Theauthorstillremembers
wellhisfirstexperience,inthedaysbeforeMicrochip
evenexisted,oftryingtopiecetogetherseveral
hardwarespecificationsinordertofigureouthowthe
programmingprocesswassupposedtowork.True,
deviceprogrammingisavitalstep,butitdoesn’t
alwaysgettheattentionitdeserves.
Thatbringsustothepointofthisapplicationnote.For
morethanadecade,Microchiphaspublishedalotof
informationaboutprogrammingits8-bitmicro-
controllers.Thereisnowsomuchinformationout
there,infact,thatit’ssometimeshardforengineers
andtechnicianswhoareunfamiliarwithMicrochip
productstoknowwheretostart.Thepurposeofthis
paperistoprovidetheentrypointforinformationon
programmingMicrochip’s8-bitmicrocontrollers.While
wecan’tcovereveryprogrammingspecificationin
detail,wecangiveyouagoodideaofhowtheprocess
worksandshowyouwhattolookforinaspecification.
We’llalsotouchbrieflyonhowin-systemprogramma-
bilitycanaffectanapplication’sdesignandfinishwith
otherprogramminganddiagnosticinnovationsthat
makeapplicationsmorereliable.AN910PICmicroDeviceProgramming:WhatYouAlwaysWantedtoKnow(ButDidn’tKnowWhotoAsk)Author:EricSomervilleTHEBASICSMicrochipTechnologyInc.Ifyou’vehadpreviousexperiencewithprogrammingmicrocontrollers,you’realreadyfamiliarwiththebasicINTRODUCTIONissue:amicrocontrollerinanembeddedapplicationisnotacomputer.Thereisnoconvenientbuilt-inGUIforThereisalotmaterial