AT91SAM7S128-AI ATMEL [ATMEL Corporation], AT91SAM7S128-AI Datasheet - Page 14
![no-image](/images/no-image-200.jpg)
AT91SAM7S128-AI
Manufacturer Part Number
AT91SAM7S128-AI
Description
AT91 ARM Thumb-based Microcontrollers
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
1.AT91SAM7S128-AI.pdf
(32 pages)
Embedded Flash
Flash Overview
Embedded Flash Controller
Lock Regions
Security Bit Feature
14
AT91SAM7S128 Summary Preliminary
The Flash of the AT91SAM7S128 is organized in 512 pages of 256 bytes. It reads as
32,768 32-bit words.
The Flash contains a 256-byte write buffer, accessible through a 32-bit interface.
The Flash benefits from the integration of a power reset cell and from the brownout
detector. This prevents code corruption during power supply changes, even in the worst
conditions.
The Embedded Flash Controller (EFC) 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 within the Memory Controller on the APB. The User Interface
allows:
•
•
•
•
•
The Embedded Flash Controller also provides a dual 32-bit Prefetch Buffer that opti-
mizes 16-bit access to the Flash. This is particularly efficient when the processor is
running in Thumb mode.
The Embedded Flash Controller manages 8 lock bits to protect 8 regions of the flash
against inadvertent flash erasing or programming commands. The AT91SAM7S128
contains 8 lock regions and each lock region contains 64 pages of 256 bytes. Each lock
region has a size of 16 Kbytes.
If a locked-regions erase or program command occurs, the command is aborted and the
EFC trigs an interrupt.
The 8 NVM bits are software programmable through the EFC User Interface. The com-
mand "Set Lock Bit" enables the protection. The command "Clear Lock Bit" unlocks the
lock region.
Asserting the ERASE pin clears the lock bits, thus unlocking the entire Flash.
The AT91SAM7S128 features a security bit, based on a specific NVM-Bit. When the
security is enabled, any access to the Flash, either through the ICE interface or through
the Fast Flash Programming Interface, is forbidden. This ensures the confidentiality of
the code programmed in the Flash.
This security bit can only be enabled, through the Command "Set Security Bit" of the
EFC User Interface. Disabling the security bit can only be achieved by asserting the
ERASE pin at 1, and after a full flash erase is performed. When the security bit is deac-
tivated, all accesses to the flash are permitted.
It is important to note that the assertion of the ERASE pin should always be longer than
50 ms.
As the ERASE pin integrates a permanent pull-down, it can be left unconnected during
normal operation. However, it is safer to connect it directly to GND for the final
application.
programming of the access parameters of the Flash (number of wait states, timings, etc.)
starting commands such as full erase, page erase, page program, NVM bit set,
NVM bit clear, etc.
getting the end status of the last command
getting error status
programming interrupts on the end of the last commands or on errors
6116AS–ATARM–20-Oct-04