Atmel ARM-Based Evaluation Kit for SAM4S16C, 32-Bit ARM® Cortex® Microcontroller ATSAM4S-WPIR-RD ATSAM4S-WPIR-RD Data Sheet

Product codes
ATSAM4S-WPIR-RD
Page of 1231
377
SAM4S Series [DATASHEET]
Atmel-11100G-ATARM-SAM4S-Datasheet_27-May-14
21.3.5.1 Flash Read Command
This command is used to read the contents of the Flash memory. The read command can start at any valid 
address in the memory plane and is optimized for consecutive reads. Read handshaking can be chained; an 
internal address buffer is automatically increased.  
21.3.5.2 Flash Write Command
This command is used to write the Flash contents. 
The Flash memory plane is organized into several pages. Data to be written are stored in a load buffer that 
corresponds to a Flash memory page. The load buffer is automatically flushed to the Flash:
before access to any page other than the current one 
when a new command is validated (MODE = CMDE)
The Write Page command (WP) is optimized for consecutive writes. Write handshaking can be chained; an 
internal address buffer is automatically increased.  
Table 21-6.
Read Command
Step
Handshake Sequence
MODE[3:0]
DATA[
15
:0]
1
Write handshaking
CMDE
READ
2
Write handshaking
ADDR0
Memory Address LSB
3
Write handshaking
ADDR1
Memory Address
4
Read handshaking
DATA
*Memory Address++
5
Read handshaking
DATA
*Memory Address++
...
...
...
...
n
Write handshaking
ADDR0
Memory Address LSB
n+1
Write handshaking
ADDR1
Memory Address
n+2
Read handshaking
DATA
*Memory Address++
n+3
Read handshaking
DATA
*Memory Address++
...
...
...
...
Table 21-7.
Write Command
Step
Handshake Sequence
MODE[3:0]
DATA[
15
:0]
1
Write handshaking
CMDE
WP or WPL or EWP or EWPL
2
Write handshaking
ADDR0
Memory Address LSB
3
Write handshaking
ADDR1
Memory Address
4
Write handshaking
DATA
*Memory Address++
5
Write handshaking
DATA
*Memory Address++
...
...
...
...
n
Write handshaking
ADDR0
Memory Address LSB
n+1
Write handshaking
ADDR1
Memory Address
n+2
Write handshaking
DATA
*Memory Address++
n+3
Write handshaking
DATA
*Memory Address++
...
...
...
...