synchronous (SPI) examples?

Started by greerde November 1, 2003
Does anyone have any examples using the PICs SPI? Specifically I am
using a 16f877 and will be using an external clock (so i'll be in
slave mode), but any examples (in asm or picbasic) would be good.

I have no problem outputing sync. data, but I am having all kinds of
problems reading in sync. data. Any examples would be great.

Also i am interesting in the TRISC, SSPCON, and SSPSTAT register
values used to successfully send and recieve data.
Thanks.