Datasheet

39
SAM4S Series [DATASHEET]
11100F–ATARM–29-Jan-14
Figure 8-3. Flash Size
Erasing the memory can be performed as follows:
On a 512-byte page inside a sector of 8Kbytes
Note: EWP and EWPL commands can be only used in 8-Kbyte sectors.
On a 4-Kbyte block inside a sector of 8 Kbytes/48 Kbytes/64 Kbytes
Note: Erase Page commands can be only used with FARG[1:0] = 1
On a sector of 8 Kbytes/48 Kbytes/64 Kbytes
Note: Erase Page commands can be only used with FARG[1:0] = 2
On chip
The Write commands of the Flash cannot be used under 330 kHz.
8.1.3.2 Enhanced Embedded Flash Controller
The Enhanced Embedded Flash Controller manages accesses performed by the masters of the system. It enables
reading the Flash and writing the write buffer. It also contains a User Interface, mapped on the APB.
The Enhanced Embedded Flash Controller ensures the interface of the Flash block.
It manages the programming, erasing, locking and unlocking sequences of the Flash using a full set of commands.
One of the commands returns the embedded Flash descriptor definition that informs the system about the Flash
organization, thus making the software generic.
8.1.3.3 Flash Speed
The user must set the number of wait states depending on the frequency used.
For more details, refer to the “AC Characteristics” sub-section of the product “Electrical Characteristics”.
8.1.3.4 Lock Regions
Several lock bits are used to protect write and erase operations on lock regions. A lock region is composed of several
consecutive pages, and each lock region has its associated lock bit.
2 * 8 KBytes
1 * 48 KBytes
15 * 64 KBytes
2 * 8 KBytes
1 * 48 KBytes
7 * 64 KBytes
2 * 8 KBytes
1 * 48 KBytes
3 * 64 KBytes
Flash 1 MBytes Flash 512 KBytes Flash 256 KBytes
Table 8-1. Lock Bit Number
Product Number of Lock Bits Lock Region Size
SAM4SD32 256 (128 + 128) 8 Kbytes
SAM4SD16 128 (64 + 64) 8 Kbytes
SAM4S16/SA16 128 8 Kbytes