Atmel ARM-Based Evaluation Kit for SAM4S16C, 32-Bit ARM® Cortex® Microcontroller ATSAM4S-WPIR-RD ATSAM4S-WPIR-RD Ficha De Dados

Códigos do produto
ATSAM4S-WPIR-RD
Página de 1231
368
SAM4S Series [DATASHEET]
Atmel-11100G-ATARM-SAM4S-Datasheet_27-May-14
• 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 
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.