Pedro,

There's a sample SPI program on the meLabs website.

http://www.melabs.com/resources/samples.htm

Look for spimast.bas

HTH,