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
1167
SAM4S Series [DATASHEET]
Atmel-11100G-ATARM-SAM4S-Datasheet_27-May-14
Figure 44-21. SPI Slave Mode with (CPOL = NCPHA = 0) or (CPOL = NCPHA = 1) 
44.12.3.1Maximum SPI Frequency
The following formulas give maximum SPI frequency in master read and write modes and in slave read and write 
modes.
Master Write Mode
The SPI is only sending data to a slave device such as an LCD, for example. The limit is given by SPI
2
 (or 
SPI
5
) timing. Since it gives a maximum frequency above the maximum pad speed (see 
), the max SPI frequency is the one from the pad.
Master Read Mode
t
valid 
is the slave time response to output data after detecting an SPCK edge. For Atmel SPI DataFlash 
(AT45DB642D), T
valid
 (or T
v
) is 12 ns Max.
In the formula above, f
SPCK
Max = 33.0 MHz @ VDDIO = 3.3V.
Slave Read Mode
In slave mode, SPCK is the input clock for the SPI. The max SPCK frequency is given by setup and hold 
timings SPI
7
/SPI
(or SPI
10
/SPI
11
). Since this gives a frequency well above the pad limit, the limit in slave 
read mode is given by SPCK pad.
Slave Write Mode
For 3.3V I/O domain and SPI6, f
SPCK
Max = 25 MHz. t
setup 
is the setup time from the master before sampling 
data.
SPCK
MISO
MOSI
SPI
9
SPI
10
SPI
11
NPCS0
SPI
14
SPI
15
f
SPCK
Max
1
SPI
0
orSPI
3
(
t
valid
+
------------------------------------------------------
=
f
SPCK
Max
1
2x S
PI
6max
orSPI
9max
(
t
setup
)
+
-------------------------------------------------------------------------------------
=