SPI software

Started by bharath_sdpt March 11, 2008
Hi All,

i am developing SPI interface for DSC 56F805 using CodeWarrior IDE
and Processor Expert. I am planning to use "SW_SPI" bean and use the
methods "Send_Char", "Recv_Char".

My question is, if i want to send a stream of 8 characters, can i
use Send_Char continuously for eight times, or do i need to wait for
some time between sucessive calls to "Send_Char".

Please let me know whether the following code snippet works fine:

byte DataOut[8] = "12345678";
byte i;

void main(void)
for (i = 0; i < 8; i++)
/* SendChar */