English
Language : 

SAM7X128_14 Datasheet, PDF (120/662 Pages) ATMEL Corporation – ARM-based Flash MCU
The AT91SAM7X512 security bit is controlled by the EFC0. To use the Set Security Bit command, the EFC0 must be
selected using the Select EFC command
Table 20-14. Set Security Bit Command
Step Handshake Sequence
1
Write handshaking
2
Write handshaking
MODE[3:0]
CMDE
DATA
DATA[15:0]
SSE
0
Once the security bit is set, it is not possible to access FFPI. The only way to erase the security bit is to erase the Flash.
In order to erase the Flash, the user must perform the following:
 Power-off the chip
 Power-on the chip with TST = 0
 Assert Erase during a period of more than 220 ms
 Power-off the chip
Then it is possible to return to FFPI mode and check that Flash is erased.
20.2.5.7 AT91SAM7X512 Select EFC Command
The commands WPx, EA, xLB, xFB are executed using the current EFC controller. The default EFC controller is EFC0.
The Select EFC command (SEFC) allows selection of the current EFC controller.
Table 20-15. Select EFC Command
Step Handshake Sequence
1
Write handshaking
2
Write handshaking
MODE[3:0]
CMDE
DATA
DATA[15:0]
SEFC
0 = Select EFC0
1 = Select EFC1
20.2.5.8 Memory Write Command
This command is used to perform a write access to any memory location.
The Memory Write command (WRAM) is optimized for consecutive writes. Write handshaking can be chained; an
internal address buffer is automatically increased.
Table 20-16. Write Command
Step Handshake Sequence
1
Write handshaking
2
Write handshaking
3
Write handshaking
4
Write handshaking
5
Write handshaking
...
...
n
Write handshaking
n+1
Write handshaking
n+2
Write handshaking
n+3
Write handshaking
...
...
MODE[3:0]
CMDE
ADDR0
ADDR1
DATA
DATA
...
ADDR0
ADDR1
DATA
DATA
...
DATA[15:0]
WRAM
Memory Address LSB
Memory Address
*Memory Address++
*Memory Address++
...
Memory Address LSB
Memory Address
*Memory Address++
*Memory Address++
...
SAM7X Series [DATASHEET]
6120K–ATARM–11-Feb-14
120