所需E币: 3
时间: 2019-12-24 21:19
大小: 392.54KB
Thereisalotmaterialoutthereaboutmicrocontrollerprogramming.Mostofitfocusesonthesoftwaresideofthings–orthogonalinstructionsets,codeoptimization,high-levellanguageprogrammingtricksandtweaksinassemblerenvironments,eventakingadvantageofadevice’speculiaritiestomakeitdowhatyouwant.Thisis,ofcourse,averygoodthing,asmicrocontrollersendupdoingmorecomplextasksinmoresophisticatedapplications,theabilitytowriteelegantcodebecomesmoreandmorevaluable.Whatdoesn’tgetmentionedasoftenisthelastkeypartoftheprocess:actuallygettingthatelegantcodeintothemicrocontrolleritself.Theauthorstillrememberswellhisfirstexperience,inthedaysbeforeMicrochipevenexisted,oftryingtopiecetogetherseveralhardwarespecificationsinordertofigureouthowtheprogrammingprocesswassupposedtowork.True,deviceprogrammingisavitalstep,butitdoesn’talwaysgettheattentionitdeserves.Thatbringsustothepointofthisapplicationnote.Formorethanadecade,Microchiphaspublishedalotofinformationaboutprogrammingits8-bitmicro-controllers.Thereisnowsomuchinformationoutthere,infact,thatit’ssometimeshardforengineersandtechnicianswhoareunfamiliarwithMicrochipproductstoknowwheretostart.ThepurposeofthispaperistoprovidetheentrypointforinformationonprogrammingMicrochip’s8-bitmicrocontrollers.Whilewecan’tcovereveryprogrammingspecificationindetail,wecangiveyouagoodideaofhowtheprocessworksandshowyouwhattolookforinaspecification.We’llalsotouchbrieflyonhowin-systemprogramma-bilitycanaffectanapplication’sdesignandfinishwithotherprogramminganddiagnosticinnovationsthatmakeapplicationsmorereliable.AN910PICmicroDeviceProgramming:WhatYouAlwaysWantedtoKnow(ButDidn’tKnowWhotoAsk)Author:EricSomervilleTHEBASICSMicrochipTechnologyInc.Ifyou’vehadpreviousexperiencewithprogrammingmicrocontrollers,you’realreadyfamiliarwiththebasicINTRODUCTIONissue:amicrocontrollerinanembeddedapplicationisnotacomputer.Thereisnoconvenientbuilt-inGUIforThereisalotmaterial……