SPI – PIC18

  //—– SETUP SSP1 —– //Used for: //CLK idle in low state //AT45DB081 clocks in data on the rising edge, outputs data on the falling edge SSPSTAT = 0b01000000; SSPCON1 = 0b00100000; //Fosc / 4 = 10MHz    

Read More