Datasheet

SAM4E [DATASHEET]
Atmel-11157D-ATARM-SAM4E16-SAM4E8-Datasheet_12-Jun-14
414
FARG: Flash Command Argument
FKEY: Flash Writing Protection Key
GETD, GLB,
GGPB, STUI,
SPUI, GCALB,
WUS, EUS, STUS,
SPUS, EA
Commands requiring
no argument,
including Erase all
command
FARG is meaningless, must be written with 0
ES
Erase sector
command
FARG must be written with any page number within the sector to be erased
EPA
Erase pages
command
FARG[1:0] defines the number of pages to be erased
The start page must be written in FARG[15:2].
FARG[1:0] = 0: Four pages to be erased. FARG[15:2] = Page_Number Modulo 4
FARG[1:0] = 1: Eight pages to be erased. FARG[15:2] = Page_Number Modulo 8
FARG[1:0] = 2: Sixteen pages to be erased. FARG[15:2] = Page_Number Modulo 16
FARG[1:0] = 3: Thirty-two pages to be erased. FARG[15:2] = Page_Number Modulo
32
Refer to Table 21-4 on page 406.
WP, WPL, EWP,
EWPL
Programming
commands
FARG must be written with the page number to be programmed
SLB, CLB Lock bit commands FARG defines the page number to be locked or unlocked
SGPB, CGPB GPNVM commands FARG defines the GPNVM number to be programmed
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.