6.4.1 Block Write-Protect Function

The WRSR instruction allows the user to configure one of four memory array write-protection modes by setting the Block Write-Protect bits (BP1, BP0). The available protection levels are:
  • No protection applied to the memory array
  • The upper quarter (¼) of the address range is write-protected, making the highest address range read-only
  • The upper half (½) of the address range is write-protected, making the highest address range read-only
  • The entire memory array is write-protected, making all addresses read-only
The Block Write-Protect levels and their corresponding STATUS register control bits are listed in Table 6-4.
Table 6-4. Block Write-Protect Bits
LevelSTATUS Register BitsWrite-Protected/Read‑Only Address Range
BP1BP0AT25010BAT25020BAT25040B
000NoneNoneNone
1 (1/4)0160h-7FhC0h-FFh180h-1FFh
2 (1/2)1040h-7Fh80h-FFh100h-1FFh
3 (All)1100h-7Fh00h-FFh000h-1FFh