AT91SAM7S32-AI ATMEL [ATMEL Corporation], AT91SAM7S32-AI Datasheet - Page 94

no-image

AT91SAM7S32-AI

Manufacturer Part Number
AT91SAM7S32-AI
Description
AT91 ARM Thumb-based Microcontrollers
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
Flash Programming
94
AT91SAM7S32 Preliminary
Figure 35. Command Statechart
In order to guarantee valid operations on the Flash memory, the field Flash Microsec-
ond Cycle Number (FMCN) in the Flash Mode Register MC_FMR must be correctly
programmed (see “MC Flash Mode Register” on page 99).
Note:
Several commands can be used to program the Flash.
The Flash technology requires that an erase must be done before programming. The entire
memory plane can be erased at the same time, or a page can be automatically erased by
clearing the NEBP bit in the MC_FMR register before writing the command in the MC_FCR
register.
This field defines the number of Master Clock cycles in 1 microsecond that allow completion of
some necessary internal timings.
Write FCMD and PAGENB in MC_FCR
Check if PROGE flag set
Read Status: MC_FSR
Check if FRDY flag set
Read Status: MC_FSR
Check if FRDY flag set
Check if LOCKE flag set
Command Successful
Yes
Yes
No
No
No
No
Yes
Yes
Locking region violation
Bad keyword violation and/or Invalid command
6071A–ATARM–28-Oct-04

Related parts for AT91SAM7S32-AI