8.2 SPI Client Interface

The SPI client interface can be enabled by connecting the SDIO_SPI_CFG pin to VDDIO. This SPI interface is used to exchange the control and 802.11 data. The SPI is a full duplex client-synchronous serial interface that is available following reset when pin 10 (SDIO_SPI_CFG) is connected to VDDIO.

The SPI interface pin mapping configuration is provided in the following table.

Table 8-2. SPI Interface Pin Mapping
Pin NumberSPI Function
10SDIO_SPI_CFG: Must be connected to VDDIO
16SSN: Active-Low Client Select
15MOSI: Serial Data Receive
18SCK: Serial Clock
17MISO: Serial Data Transmit

When the SPI is not selected, i.e., when SSN is high, the SPI interface will not interfere with data transfers between the serial host and other serial client devices. When the serial client is not selected, its transmitted data output is buffered, resulting in a high impedance drive onto the MISO line.

The SPI interface responds to a protocol that allows an external host to read or write any register in the chip and also initiate DMA transfers.

The SPI SSN, MOSI, MISO and SCK pins of this module have internal programmable pull-up resistors. These resistors are programmed to be disabled. Otherwise, if any of the SPI pins are driven to a low level while this module is in the Low-Power Sleep state, current will flow from the VDDIO supply through the pull-up resistors, increasing the current consumption of the module.

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

Table 8-3. SPI Client Modes
ModeCPOLCPHA
000
101
210
311
Note: The ATWILC1000 firmware uses "SPI Mode 0" to communicate with the host.

The red lines in the following figure correspond to clock phase at 0 and the blue lines correspond to clock phase at 1.

Figure 8-2. SPI Client Clock Polarity and Clock Phase Timing