View Single Post
Old 03-14-2010, 01:48 AM   #24
TheyCallMeBruce
Likes Cartoons
 
TheyCallMeBruce's Avatar
 
Join Date: Apr 2004
Exp:
Default

I see your problem. I fixed it for you.

void setup_spi()
{

SPI1CON = 0x063E; // 0000 | 0110 | 0011 | 1110
SPI1STAT = 0x8000; // enable SPI port

printf("Hello World.\n");

return;
}
TheyCallMeBruce is offline   Reply With Quote