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 through 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
BP1BP0AT25512
000None
1(1/4)01C000h-FFFFh
2(1/2)108000h-FFFFh
3(All)110000h-FFFFh