Техническая Спецификация для Atmel Xplained Pro Evaluation Kit ATSAMD20-XPRO ATSAMD20-XPRO

Модели
ATSAMD20-XPRO
Скачать
Страница из 660
267
Atmel | SMART SAM D20 [DATASHEET]
Atmel-42129K–SAM-D20_datasheet–06/2014
20.8.1 Control A
Name:
CTRLA
Offset:
0x00
Reset:
0x0000
Property:
Write-Protected
z
Bits 15:8 – CMDEX: Command Execution
This bit group should be written with the key value 0xA5 to enable the command written to CMD to be executed. If 
the bit group is written with a different key value, the write is not performed and the PROGE status bit is set. 
PROGE is also set if the a previously written command is not complete.
The key value must be written at the same time as CMD. If a command is issued through the APB bus on the 
same cycle as an AHB bus access, the AHB bus access will be given priority. The command will then be executed 
when the NVM block and the AHB bus are idle. 
The READY status must be one when the command is issued.
Bit 0 of the CMDEX bit group will read back as one until the command is issued.
z
Bit 7 – Reserved
This bit is unused and reserved for future use. For compatibility with future devices, always write this bit to zero 
when this register is written. This bit will always return zero when read.
z
Bits 6:0 – CMD: Command
These bits define the command to be executed when the CMDEX key is written, as shown in 
.
Bit
15
14
13
12
11
10
9
8
CMDEX[7:0]
Access
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset
0
0
0
0
0
0
0
0
Bit
7
6
5
4
3
2
1
0
CMD[6:0]
Access
R
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset
0
0
0
0
0
0
0
0
Table 20-4. Command Bit Description
CMD[4:0]
Group Configuration
Description
0x00-0x01
-
Reserved
0x02
ER
Erase Row - Erases the row addressed by the ADDR register.
0x03
-
Reserved
0x04
WP
Write Page - Writes the contents of the page buffer to the page addressed 
by the ADDR register.
0x05
EAR
Erase Auxiliary Row - Erases the auxiliary row addressed by the ADDR 
register. This command can be given only when the security bit is not set 
and only to the user configuration row.