M58LW032A
Figure 29. Protection Register Program Flowchart and Pseudo Code
Start
Write FFh
Write C0h
Write
PR Address, PR Data
Read Status Register
(toggle G or E )
b7 = 1
NO
YES
b3 = 1
YES
VPP Invalid Error
NO
b4 = 1
NO
YES
Protection Register
Program Error
b1 = 1
NO
YES
Protection Register
Protection Error
PR Program
Sucessful
Write FFh
End
Note: PR = Protection Register
Read Memory Array Command
– write FFh
Protection Register Program Command
– write C0h
– write Protection Register Address,
Protection Register Data
do:
– read status register (toggle G or E,
do not use the Read Status Register command)
while b7 = 1
If b3 = 1 VPP Invalid Error
If b4 = 1 Protection Register
Program Error
If b1 = 1 Program Error due to
Protection Register Protection
Read Memory Array Command:
– write FFh
AI06159b
56/61