For MSBFIRST, you have it correct.
CKP = 0
CKE = 0
Which PIC are you using?
What OSC frequency are you using?
What is it sending data to?
Are you connected to the SDO/SCK pins of the pic?
SDO(PIC) to SDI(slave), AND SCK(PIC) to SCK(slave).
Also, in this code...Since no subroutine was called, the program will reset when it gets to the Return.Code:main: SSPEN = 1 'enable SPI pins SSPBUF = var_out 'send array variable Return
<br>
Bookmarks