In that case you should be able to use either the bit-banged routines (SHIFTIN/SHIFTOUT depending on which direction the data is going) or the hardware MSSP module. PBP does not have any built in commads for handling the MSSP module but it's not that hard to do "manually". Have a look at the SPIMAST.pbp example on the examples pages at MELABS.
SHIFTIN/SHIFTOUT, being bit-banged, works on "any" pins. You just set you TRIS registers normally and make sure that comparators and ADC are turned off if they happen to be on the same pin. (Actually, PBP may handle the TRIS bit but I'm not sure.)
/Henrik.
Bookmarks