Manyapplicationsrequirethemicrocontrollertocal-

culateachecksumontheprogrammemorytodeter-

mineifthecontentshavebeencorrupted.Untilnow,

theonlyfamilyofPICmicro

®

microcontrollerstohave

thecapabilitytoreadfromprogrammemoryarethe

PIC17CXXXdevices.ThePIC16F87Xdevicesare

thefirst14-bitcorePICmicromicrocontrollersthat

areabletoaccessprogrammemoryinthesame

fashionasusedwithdataEEPROMmemory.These

devicesareFLASHextensionsofthepopular

PIC16C7Xfamily.Table1showsacomparison

betweenthetwoPICmicromicrocontrollerfamilies.MCalculatingProgramMemoryChecksumsUsingaPIC16F87XTB026ACCESSINGMEMORYAuthor:RodgerRicheyMicrochipTechnologyInc.ThedataEEPROMandFLASHProgrammemoryarebothaccessedusingthesamemethod.Anaddressand/ordatavaluearestoredinSpecialFunctionReg-isters(SFR)andthenmemoryisaccessedusingcon-INTRODUCTIONtrolbitsinotherSFRs.TherearesixSFRsrequiredtoMany

计算使用PIC16F87X的程序存储器校验

计算使用PIC16F87X的程序存储器校验