6.8 CONFIG8

Configuration Byte 8
Note:
  1. When SAFLOCK = 0, once a SAFSZ bit is programmed to 0 through ICSP or a self-write, it can never be erased to a ‘1’, not even through a Bulk Erase.
  2. When SAFLOCK = 1, once a SAFSZ bit is programmed to 0 through ICSP or a self-write, it can only be reset though a Bulk Erase.
Name: CONFIG8
Offset: 0x300019

Bit 76543210 
 SAFSZ[7:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 11111111 

Bits 7:0 – SAFSZ[7:0]  Storage Area Flash (SAF) Block Size Selection(1)(2)

Table 6-3. SAF Block Size
WRTSAFSAFLOCKSAFSZ[7:0]Size of SAF BlockSAF Bulk EraseSAF Self-write
PIC18Fx4Q24PIC18Fx5Q24PIC18Fx6Q24
111111 1111 Storage Area Flash disabledYesYes
111111 1110Last 128 words of PFMYesYes
111111 110xLast 256 words of PFMYesYes
111111 10xxLast 384 words of PFMYesYes
111111 0xxxLast 512 words of PFMYesYes
111110 xxxxLast 640 words of PFMYesYes
11110x xxxxLast 768 words of PFMYesYes
1110xx xxxxLast 896 words of PFMYesYes
110xxx xxxxLast 1024 words of PFMYesYes
011111 1111 Storage Area Flash disabledYesNo
011111 1110Last 128 words of PFMYesNo
011111 110xLast 256 words of PFMYesNo
011111 10xxLast 384 words of PFMYesNo
011111 0xxxLast 512 words of PFMYesNo
011110 xxxxLast 640 words of PFMYesNo
01110x xxxxLast 768 words of PFMYesNo
0110xx xxxxLast 896 words of PFMYesNo
010xxx xxxxLast 1024 words of PFMYesNo
x01111 1111 Storage Area Flash disabledNoNo
x01111 1110Last 128 words of PFMNoNo
x01111 110xLast 256 words of PFMNoNo
x01111 10xxLast 384 words of PFMNoNo
x01111 0xxxLast 512 words of PFMNoNo
x01110 xxxxLast 640 words of PFMNoNo
x0110x xxxxLast 768 words of PFMNoNo
x010xx xxxxLast 896 words of PFMNoNo
x00xxx xxxxLast 1024 words of PFMNoNo
When SAFLOCK = 0, once a SAFSZ bit is programmed to 0 through ICSP or a self-write, it can never be erased to a ‘1’, not even through a Bulk Erase.When SAFLOCK = 1, once a SAFSZ bit is programmed to 0 through ICSP or a self-write, it can only be reset though a Bulk Erase.