3.6 Configuring SPI

Perform the following steps to configure the SPI of the ATWINC15x0.

  1. Select the options to enable the SPI driver in interrupt mode under "SPI Driver Instance 0".
  2. Set the RTOS Configuration to Combined with System Tasks.
  3. Set the SPI Module ID to SPI_ID_1.
  4. Set the Clock Mode to IDLE_LOW_EDGE_FALL.
  5. Set the Dummy Byte value to 0x00.

Based on the Microchip reference hardware – PIC32MX PIM and WINC1500 PICtail on the Explorer 16/32 Board, the configured SPI pin in the MHC Pin table are as follows:

Table 3-2. SPI Pin Table
SPI PinPin NumberPort
SCK170RD10
SDI19RC4
SDO172RD0
SS169RD9
Figure 3-13. Pin Mapping