Content originally posted in LPCWare by leluno on Tue May 13 01:52:34 MST 2014
That will not work because ssp is hardware.
SSP0 has two possibilitys to connect pins:
__set_PINSEL(1, 20, 3); // Attach SCK0 to I/O pad
__set_PINSEL(1, 23, 3); // Attach MISO0 to I/O pad
__set_PINSEL(1, 24, 3); // Attach MOSI0 to I/O pad
pinSEL(0,15,2);//0.15-4:ck
pinSEL(0,17,2);//0.17-4:miso
pinSEL(0,18,2);//0.18-4:mosi
easier is it to use SSP0, SSP1 and SPI:
pinSEL(0,15,3);//0.15-4:ck
pinSEL(0,17,3);//0.17-4:miso
pinSEL(0,18,3);//0.18-4:mosi