dsPIC33F/PIC24H PROGRAMMING SPECIFICATION
TABLE 3-2:
CHECKSUM COMPUTATION
Read Code
Value with
0xAAAAAA at 0x0
and Last
Erased
Value
Device
Checksum Computation
Protection
Code Address
dsPIC33FJ64GP206
dsPIC33FJ64GP306
dsPIC33FJ64GP310
dsPIC33FJ64GP706
dsPIC33FJ64GP708
dsPIC33FJ64GP710
Disabled
CFGB + SUM(0:00ABFF)
CFGB
0x03BC
0x05BA
0x03BC
0x05BA
0x03BC
0x05BA
0x03BC
0x05BA
0x03BC
0x05BA
0x03BC
0x05BA
0x01BC
0x05BA
0x01BC
0x05BA
0x01BC
0x05BA
0x01BC
0x05BA
0x01BC
0x05BA
0x01BC
0x05BA
0x03BC
0x05BA
0x03BC
0x05BA
0x03BC
0x05BA
0x01BE
0x05BA
0x01BE
0x05BA
0x01BE
0x05BA
0x01BE
0x05BA
0x01BE
0x05BA
0x01BE
0x05BA
0xFFBE
0x05BA
0xFFBE
0x05BA
0xFFBE
0x05BA
0xFFBE
0x05BA
0xFFBE
0x05BA
0xFFBE
0x05BA
0x01BE
0x05BA
0x01BE
0x05BA
0x01BE
0x05BA
Enabled
Disabled
Enabled
Disabled
Enabled
Disabled
Enabled
Disabled
Enabled
Disabled
Enabled
CFGB + SUM(0:00ABFF)
CFGB
CFGB + SUM(0:00ABFF)
CFGB
CFGB + SUM(0:00ABFF)
CFGB
CFGB + SUM(0:00ABFF)
CFGB
CFGB + SUM(0:00ABFF)
CFGB
dsPIC33FJ128GP206 Disabled
Enabled
CFGB + SUM(0:0157FF)
CFGB
dsPIC33FJ128GP306 Disabled
Enabled
CFGB + SUM(0:0157FF)
CFGB
dsPIC33FJ128GP310 Disabled
Enabled
CFGB + SUM(0:0157FF)
CFGB
dsPIC33FJ128GP706 Disabled
Enabled
CFGB + SUM(0:0157FF)
CFGB
dsPIC33FJ128GP708 Disabled
Enabled
CFGB + SUM(0:0157FF)
CFGB
dsPIC33FJ128GP710 Disabled
Enabled
CFGB + SUM(0:0157FF)
CFGB
dsPIC33FJ256GP506 Disabled
Enabled
CFGB + SUM(0:02ABFF)
CFGB
dsPIC33FJ256GP510 Disabled
Enabled
CFGB + SUM(0:02ABFF)
CFGB
dsPIC33FJ256GP710 Disabled
Enabled
CFGB + SUM(0:02ABFF)
CFGB
Item Description:
SUM(a:b) = Byte sum of locations a to b inclusive (all 3 bytes of code memory)
CFGB = Configuration Block (masked)
= Byte sum of ((FBS & 0xCF) + (FSS & 0xFF) + (FGS & 0x07) + (FOSCSEL & 0xA7) + (FOSC & 0xE7) +
(FWDT & 0xDF) + (FPOR & 0xE7) + (FICD & 0xE3))
(for dsPIC33FJ12GP201/202, dsPIC33FJ12MC201/202 and PIC24HJ12GP201/202)
= Byte sum of ((FBS & 0xCF) + (FSS & 0xCF) + (FGS & 0x07) + (FOSCSEL & 0xA7) + (FOSC & 0xC7) +
(FWDT & 0xDF) + (FPOR & 0xE7) + (FICD & 0xE3))
(for all other devices)
© 2007 Microchip Technology Inc.
Preliminary
DS70152D-page 37