Datasheet

Table Of Contents
140
SAM7S Series [DATASHEET]
6175M–ATARM–26-Oct-12
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 cor-
responding 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 GPNVM command (SGPB). Using this command,
several GP NVM bits can be activated at the same time. Bit 0 of Bit Mask corresponds to the first GPNVM bit and
so on.
In the same way, the Clear GPNVM command (CGPB) is used to clear GP NVM bits. All the general-purpose NVM
bits are also cleared by the EA command.
GP NVM bits can be read using Get GPNVM Bit command (GGPB). When a bit set in the Bit Mask is returned,
then the corresponding GPNVM bit is set.
Table 20-24. Full Erase Command
Read/Write DR Data
Write EA
Table 20-25. Set and Clear Lock Bit Command
Read/Write DR Data
Write SLB or CLB
Write Bit Mask
Table 20-26. Get Lock Bit Command
Read/Write DR Data
Write GLB
Read Bit Mask
Table 20-27. Set and Clear General-purpose NVM Bit Command
Read/Write DR Data
Write SGPB or CGPB
Write Bit Mask
Table 20-28. Get General-purpose NVM Bit Command
Read/Write DR Data
Write GGPB
Read Bit Mask