8.5.9 CONFIG9

Configuration Byte 9
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: CONFIG9
Address: 30 0019h

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

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

Table 8-2. SAF Block Size
ValueConditionSAF Block SizeSAF Bulk EraseSAF Self-write
WRTSAFSAFLOCKPIC18Fx4Q20PIC18Fx5Q20PIC18Fx6Q20
1111 1111 11Storage Area Flash disabledYesYes
1111 111011Last 128 words of PFMYesYes
1111 110x11Last 256 words of PFMYesYes
1111 10xx11Last 384 words of PFMYesYes
1111 0xxx11Last 512 words of PFMYesYes
1110 xxxx11Last 640 words of PFMYesYes
110x xxxx11Last 768 words of PFMYesYes
10xx xxxx11Last 896 words of PFMYesYes
0xxx xxxx11Last 1024 words of PFMYesYes
1111 1111 01Storage Area Flash disabledYesNo
1111 111001Last 128 words of PFMYesNo
1111 110x01Last 256 words of PFMYesNo
1111 10xx01Last 384 words of PFMYesNo
1111 0xxx01Last 512 words of PFMYesNo
1110 xxxx01Last 640 words of PFMYesNo
110x xxxx01Last 768 words of PFMYesNo
10xx xxxx01Last 896 words of PFMYesNo
0xxx xxxx01Last 1024 words of PFMYesNo
1111 1111 x0Storage Area Flash disabledNoNo
1111 1110x0Last 128 words of PFMNoNo
1111 110xx0Last 256 words of PFMNoNo
1111 10xxx0Last 384 words of PFMNoNo
1111 0xxxx0Last 512 words of PFMNoNo
1110 xxxxx0Last 640 words of PFMNoNo
110x xxxxx0Last 768 words of PFMNoNo
10xx xxxxx0Last 896 words of PFMNoNo
0xxx xxxxx0Last 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.