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.
| Level | STATUS Register Bits | Write-Protected/Read‑Only Address Range | ||
|---|---|---|---|---|
| BP1 | BP0 | AT25128B | AT25256B | |
| 0 | 0 | 0 | None | None |
| 1(1/4) | 0 | 1 | 3000h‑3FFFh | 6000h‑7FFFh |
| 2(1/2) | 1 | 0 | 2000h‑3FFFh | 4000h‑7FFFh |
| 3(All) | 1 | 1 | 0000h‑3FFFh | 0000h‑7FFFh |
