ThePIC16F87Xfamilyofmicrocontrollershastheabil-

itytowritetotheirownprogrammemory.Thisfeature

allowsasmallbootloaderprogramtoreceiveandwrite

newfirmwareintomemory.Thisapplicationnote

explainshowthiscanbeimplementedanddiscusses

thefeaturesthatmaybedesirable.AN732ImplementingaBootloaderforthePIC16F87XAuthor:MikeGarbuttOPERATIONMicrochipTechnologyInc.Thebootcodebeginsbycheckingtoseeifthereisnewusercodetobedownloaded.Ifnot,itstartsrunningtheexistingusercode.IfthereisnewusercodetobeINTRODUCTIONdownloaded,thebootcodereceivesandwritestheThePIC16F87Xfamilyofmicrocontrollershastheabil-dataintoprogram

实施的PIC16F87X的一个Bootloader

实施的PIC16F87X的一个Bootloader