Datasheet
324
SAM4S [DATASHEET]
11100E–ATARM–24-Jul-13
• FARG: Flash Command Argument
• FKEY: Flash Writing Protection Key
Erase all command
Field is meaningless.
Erase sector command FARG must be set with a page number that is in the sector to be erased.
Erase pages command
FARG[1:0] defines the number of pages to be erased.
The page number from which the erase will start is defined as follows:
FARG[1:0]=0, start page = 4*FARG[15:2]
FARG[1:0]=1, start page = 8*FARG[15:3], FARG[2] undefined
FARG[1:0]=2, start page = 16*FARG[15:4], FARG[3:2] undefined
FARG[1:0]=3, start page = 32*FARG[15:5], FARG[4:2] undefined
Note: undefined bit must be written to 0.
Refer to Table 20-4 on page 317
Programming command FARG defines the page number to be programmed.
Lock command FARG defines the page number to be locked.
GPNVM command FARG defines the GPNVM number.
Value Name Description
0x5A PASSWD
The 0x5A value enables the command defined by the bits of
the register. If the field is written with a different value, the write
is not performed and no action is started.