SPI pins

From Pinguino-Wiki
Jump to: navigation, search

Contents

SPI

The Serial Peripheral Interface (SPI) bus is a synchronous serial communication interface specification used for short distance communication, primarily in embedded systems. The interface was developed by Motorola and has become a de facto standard. Typical applications include Secure Digital cards and liquid crystal displays.

Wikipedia

Libraries SD, LedControl, ST7735, etc use SPI communication.

Keywords

SPISW : SPI Software
SPI1  : SPI Module #1
SPI2  : SPI Module #2
SPI3  : SPI Module #3
SPI4  : SPI Module #4

Init. Example

SPI Sofware :
SPI_setBitOrder(SPISW, SPI_MSBFIRST);
SPI_begin(SPISW, sdo, sck, cs);
SPI Hardware :
SPI_setMode(SPI1, SPI_MASTER);
SPI_setDataMode(SPI1, SPI_MODE1);
SPI_setClockDivider(SPI1, SPI_CLOCK_DIV4);
SPI_begin(SPI1);

Pins

Pinguino 1459 SPI1 SPI2 SPI3 SPI4
Microchip Pinguino Microchip Pinguino Microchip Pinguino Microchip Pinguino
SDO RC7 Pin 6
SCK RB6 Pin 13
SDI RB4 Pin 11
CS or SS RC6 Pin 5
Pinguino x550 and x455 SPI1 SPI2 SPI3 SPI4
Microchip Pinguino Microchip Pinguino Microchip Pinguino Microchip Pinguino
SDO RC7 Pin 9
SCK RB1 Pin 1
SDI RB0 Pin 0
CS or SS RA5 Pin 17
Pinguino 45K50 SPI1 SPI2 SPI3 SPI4
Microchip Pinguino Microchip Pinguino Microchip Pinguino Microchip Pinguino
SDO RC7 Pin 23
SCK RB1 Pin 1
SDI RB0 Pin 0
CS or SS RA5 Pin 13
Pinguino 47J53 SPI1 SPI2 SPI3 SPI4
Microchip Pinguino Microchip Pinguino Microchip Pinguino Microchip Pinguino
SDO RC7 Pin 23 RB1 Pin 1
SCK RB4 Pin 4 RB2 Pin 2
SDI RB5 Pin 5 RB3 Pin 3
CS or SS RB6 Pin 6 RB0 Pin 0
Pinguino 32MX2x0 SPI1 SPI2 SPI3 SPI4
Microchip Pinguino Microchip Pinguino Microchip Pinguino Microchip Pinguino
SDO RA4 Pin 7 RB8 Pin 4
SCK RB14 Pin 1 RB15 Pin 0
SDI RB5 Pin 6 RB13 Pin 2
CS or SS RB7 Pin 5 RB9 Pin 3
Personal tools