I configured a PIC16F873A for SPI interface with a MAX6952 after looking at the SPI EEPROM application note from Microchip. The routine provided needs a little modification for the number of bytes you want to send and clock speed.
Well, how the SPI is configured depends on what its communicating with? Clock phase, frequency? And you can even change the idle state of the data line. Looking at examples won't really help, it'll get the SPI working, but might not be the cofiguration you need for your application. I say this over and over again, read the datasheet! all the info you need is in there. Microchip even provide a step by step guide to setting up peripherals:
Seriously, it5 isn't difficult to work out, thats why manufacturers provide datasheets, otherwise all enigineers would require 'training courses' to use these chips.