SPI

Master SPI Port Initialise #define INTERBOARD_COMMS_SS_PIN LATDbits.LATD3 #define INTERBOARD_COMMS_PACKET_LENGTH 10 //—– SETUP SSP2 AS SPI BUS —– //Used for: //CLK idle in low state //Devices clock in data on the rising edge, output data on the falling edge SSP2STAT = 0b11000000; SSP2CON1 = 0b00100010; //16MHz Fosc / 64 = 250000kHz //—– INIT SPI —– //Send […]

Read More