所需E币: 5
时间: 2019-12-24 19:03
大小: 812.9KB
AmongthemanyfeaturesbuiltintoMicrochip’sEnhancedFLASHMicrocontrollerdevicesisthecapa-bilityoftheprogrammemorytoself-program.Thisveryusefulfeaturehasbeendeliberatelyincludedtogivetheusertheabilitytoperformbootloadingoperations.DeviceslikethePIC18F452aredesignedwithadesig-nated“bootblock”,asmallsectionofprotectablepro-grammemoryallocatedspecificallyforbootloadfirmware.ThisapplicationnotedemonstratesaverypowerfulbootloaderimplementationforthePIC16F87XAandPIC18Ffamiliesofmicrocontrollers.Thecodingforthetwodevicefamiliesisslightlydifferent;however,thefunctionalityisessentiallythesame.Thegoalsofthisimplementationstressamaximumperformanceandfunctionality,whilerequiringaminimumofcodespace.AN851AFLASHBootloaderforPIC16andPIC18DevicesAuthor:RossM.FoslerandFIGURE1:BOOTLOADERFUNCTIONALRodgerRicheyBLOCKDIAGRAMMicrochipTechnologyInc.BootloaderFirmwareRXTXINTRODUCTION……