6.4.1 Block Write-Protect Function

The WRSR instruction allows the user to select one of four possible combinations as to how the memory array will be inhibited from writing by changing the Block Write-Protect bits (BP1, BP0). The four levels of array protection are:
  • None of the memory array is protected
  • Upper quarter (¼) address range is write-protected, meaning the highest order address bits are read-only
  • Upper half (½) address range is write-protected, meaning the highest order address bits are read-only
  • All of the memory array is write-protected, meaning all address bits are read-only
The Block Write Protection levels and corresponding STATUS register control bits are shown in Table 6-4.
Table 6-4. Block Write-Protect Bits
LevelSTATUS Register BitsWrite-Protected/Read‑Only Address Range
BP1BP0AT25128BAT25256B
000NoneNone
1(1/4)013000h‑3FFFh6000h‑7FFFh
2(1/2)102000h‑3FFFh4000h‑7FFFh
3(All)110000h‑3FFFh0000h‑7FFFh