in mikroc this is the function declaration for spi read:
what do I equate the buffer with? is it PORTC.4 of the PIC? since it is the PIC SDI? I tried but it can't read the data im suppose to have. where is the data recieved stored? thanks!
Rich (BB code):
unsigned short Spi_Read(unsigned short buffer);