10.2.2 SPI Timing

The SPI Slave interface supports four standard modes as determined by the Clock Polarity (CPOL) and Clock Phase (CPHA) settings. These modes are illustrated in the following table and figure.

Table 10-3. SPI Slave Modes
ModeCPOLCPHA
000
101
210
311
Note: The ATWINC3400-MR210xA firmware uses SPI MODE 0 to communicate with the host.

The red lines in the following figure correspond to Clock Phase = 0 and the blue lines correspond to Clock Phase = 1.

Figure 10-2. SPI Slave Clock Polarity and Clock Phase Timing

The SPI timing is provided in the following figure and table.

Figure 10-3. SPI Timing Diagram (SPI Mode CPOL = 0, CPHA = 0)
Table 10-4. SPI Slave Timing Parameters(
ParameterSymbolMin.Max.Units
Clock Input Frequency(2)fSCK48MHz
Clock Low Pulse WidthtWL4ns
Clock High Pulse WidthtWH5
Clock Rise TimetLH07
Clock Fall TimetHL07
TXD Output Delay(3)tODLY49 from SCK fall
RXD Input Setup TimetISU1
RXD Input Hold TimetIHD5
SSN Input Setup TimetSUSSN3
SSN Input Hold TimetHDSSN5.5
Note:
  1. The timing is applicable to all SPI modes.
  2. The maximum clock frequency specified is limited by the SPI Slave interface internal design; the actual maximum clock frequency can be lower and depends on the specific PCB layout.
  3. The timing is based on 15 pF output loading. Under all conditions, tLH + tWH + tHL + tWL must be less than or equal to 1/ fSCK.