User Manual
datasheet
Version 0.9
2017-09-13
deRFsamR21E-23S00/-23S20 datasheet
www.dresden-elektronik.de
Page 16 of 36
7. Onboard SPI Serial Flash
The module incorporates a 4 MBit data flash connected to the module by SPI bus. The data
flash connects to PA16-PA19 according to Table 9-1.
Table 9-1: Dataflash to microcontroller connection
Port
Function
Flash pin
Controller settings
PA16
MISO
SO
PA16 SERCOM1 or 3 PAD[0] DIPO=0x0
PA17
SCK
SCK
PA17 SERCOM1 or 3 PAD[1] DOPO=0x2
PA18
GPIO
SS
PA18 to be set low in software before SPI access
PA19
MOSI
SI
PA19 SERCOM1 or 3 PAD[3] DOPO=0x2
The signals in this table are available at module pins 7-10 as well. The module contains the
serial data flash AT25SF041 according to Table 9-2. Since the memory market is very
difficult at the moment, the module incorporates some alternative flash devices listed in
Table 9-3. This is done to avoid supply bottlenecks. To avoid problems, no specific flash ID
shall be used in the customer firmware. This section outlines basic usage instructions. For a
more detailed description refer to the datasheets of the flash devices.
Table 9-2: default serial data flash
Partnumber
Manufacturer
JEDEC ID (9Fh)
Datasheet reference
AT25SF041
Adesto
1F-84-01
[9]
Table 9-3: second source serial data flash list
Partnumber
Manufacturer
JEDEC ID (9Fh)
Datasheet reference
MX25V4006E
Macronix
C2-20-13
[10]
W25X40CL
Winbond
EF-30-13
[11]
W25Q40CL
Winbond
EF-40-13
[12]
7.1. Commands
To ease the implementation of the different flash devices Table 9-4 lists the commands and
their respective opcodes common to all the flash devices listed above.
Table 9-4: command table common to all flash options
Command
Opcode
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Byte n
Write enable
06h
Write disable
04h
Read Status Register
05h
(S7-S0)
Write Status Register
01h
S7-S0
see*
Page Program
02h
A23-A16
A15-A8
A7-A0
(D7-D0)
(next
byte)
Up to 256
bytes
Sector Erase (4kB)
20h
A23-A16
A15-A8
A7-A0
Block Erase (64kB)
D8h
A23-A16
A15-A8
A7-A0
Chip Erase
C7h/60h
Power-down
B9h
Resume from Deep
Power Down
ABh
Resume from Deep
Power Down and
read ID
ABh
dummy
dummy
dummy
(IRD7-
IRD0)