SPI_READ problem

Thread Starter

tattee

Joined Apr 24, 2008
16
in mikroc this is the function declaration for spi read:
Rich (BB code):
unsigned short Spi_Read(unsigned short buffer);
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!
 

hgmjr

Joined Jan 28, 2005
9,027
Go ahead and attach your source code and one of our members may be able to assist you.

My experience with SPI is that getting the device address correct is typically the most common stumbling block.

hgmjr
 
Top