Datasheet

130
6120F–ATARM–03-Oct-06
AT91SAM7X512/256/128 Preliminary
20.3.4.3 Flash Full Erase Command
This command is used to erase the Flash memory planes.
All lock bits must be deactivated before using the Full Erase command. This can be done by
using the CLB command.
20.3.4.4 Flash Lock Commands
Lock bits can be set using WPL or EWPL commands. They can also be set by using the Set
Lock command (SLB). With this command, several lock bits can be activated at the same
time. Bit 0 of Bit Mask corresponds to the first lock bit and so on.
In the same way, the Clear Lock command (CLB) is used to clear lock bits. All the lock bits
can also be cleared by the EA command.
Lock bits can be read using Get Lock Bit command (GLB). When a bit set in the Bit Mask is
returned, then the corresponding lock bit is active.
20.3.4.5 Flash General-purpose NVM Commands
General-purpose NVM bits (GP NVM) can be set with the Set Fuse command (SFB). Using
this command, several GP NVM bits can be activated at the same time. Bit 0 of Bit Mask cor-
responds to the first fuse bit and so on.
In the same way, the Clear Fuse command (CFB) is used to clear GP NVM bits. All the gen-
eral-purpose NVM bits are also cleared by the EA command.
Table 20-21. Full Erase Command
Read/Write DR Data
Write EA
Table 20-22. Set and Clear Lock Bit Command
Read/Write DR Data
Write SLB or CLB
Write Bit Mask
Table 20-23. Get Lock Bit Command
Read/Write DR Data
Write GLB
Read Bit Mask
Table 20-24. Set and Clear General-purpose NVM Bit Command
Read/Write DR Data
Write SFB or CFB
Write Bit Mask