
117
SAM7S Series [DATASHEET]
6175M–ATARM–26-Oct-12
19.3.2
MC Flash Command Register
Register Name:MC_FCR
Access Type:
Write-only
Offset: (EFC0)
0x64
Offset: (EFC1)
0x74
FCMD: Flash Command
This field defines the Flash commands:
31
30
29
28
27
26
25
24
KEY
23
22
21
20
19
18
17
16
––––––
PAGEN
15
14
13
12
11
10
9
8
PAGEN
76543210
––––
FCMD
FCMD
Operations
0000
No command.
Does not raise the Programming Error Status flag in the Flash Status Register MC_FSR.
0001
Write Page Command (WP):
Starts the programming of the page specified in the PAGEN field.
0010
Set Lock Bit Command (SLB):
Starts a set lock bit sequence of the lock region specified in the PAGEN field.
0011
Write Page and Lock Command (WPL):
The lock sequence of the lock region associated with the page specified in the field PAGEN
occurs automatically after completion of the programming sequence.
0100
Clear Lock Bit Command (CLB):
Starts a clear lock bit sequence of the lock region specified in the PAGEN field.
1000
Erase All Command (EA):
Starts the erase of the entire Flash.
If at least one page is locked, the command is cancelled.
1011
Set General-purpose NVM Bit (SGPB):
Activates the general-purpose NVM bit corresponding to the number specified in the PAGEN
field.
1101
Clear General Purpose NVM Bit (CGPB):
Deactivates the general-purpose NVM bit corresponding to the number specified in the
PAGEN field.
1111
Set Security Bit Command (SSB):
Sets security bit.
Others
Reserved.
Raises the Programming Error Status flag in the Flash Status Register MC_FSR.