SAM4CP [DATASHEET]
43051E–ATPL–08/14
34
Figure 8-3
illustrates the organization of the Flash depending on Flash size.
Figure 8-3.
Flash Size
The following erase commands can be used depending on the sector size:
8 Kbyte small sector
Erase and write page (EWP).
Erase and write page and lock (EWPL).
Erase sector (ES) with FARG set to a page number in the sector to erase.
Erase pages (EPA) with FARG [1:0] = 0 to erase four pages or FARG [1:0] = 1 to erase eight pages.
FARG [1:0] = 2 and FARG [1:0] = 3 must not be used.
48 Kbyte and 64 Kbyte sectors
One block of 8 pages inside any sector, with the command Erase pages (EPA) with FARG[1:0] = 1.
One block of 16 pages inside any sector, with the command Erase pages (EPA) and FARG[1:0] = 2.
One block of 32 pages inside any sector, with the command Erase pages (EPA) and FARG[1:0] = 3.
One sector with the command Erase sector (ES) and FARG set to a page number in the sector to erase.
Entire memory plane
The entire Flash, with the command Erase all (EA).
8.1.4.2 Enhanced Embedded Flash Controller
The Enhanced Embedded Flash Controller manages accesses performed by 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 the 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.4.3 Flash Speed
The user needs to set the number of wait states depending on the frequency used on the SAM4CP.
For more details, refer to the “AC Characteristics” section of the product electrical characteristics.
2 * 8 KBytes
1 * 48 KBytes
15 * 64 KBytes
Flash 1 MBytes