Information

dsPIC33F/PIC24H PROGRAMMING SPECIFICATION
DS70152H-page 78 © 2010 Microchip Technology Inc.
Table D-2 provides an example of how to calculate the
checksum when using CodeGuard™ Security with
Boot Segment Program Flash code protection with
Standard Security and small-sized boot Flash.
TABLE D-2: CHECKSUM COMPUTATION EXAMPLE WHEN USING CodeGuard™ SECURITY
Device
Read Code
Protection
Checksum Computation Erased Value
dsPIC33FJ256GP506A Disabled CFGB1
(1)
+ SUM(0:2ABFF) – SUM(0200:07FE) 0xFD01
Note 1: CFGB1 = Byte sum of ((FBS & 0xCD) + (FSS & 0xCF) + (FGS & 0x07) + (FOSCSEL & 0xA7) +
(FOSC & 0xC7) + (FWDT & 0xFF) + (FPOR & 0xE7) + (FICD & 0xE3))