SPI_READ problem

Discussion in 'Embedded Systems and Microcontrollers' started by tattee, Feb 10, 2009.

  1. tattee

    Thread Starter Member

    Apr 24, 2008
    16
    0
    in mikroc this is the function declaration for spi read:
    Code ( (Unknown Language)):
    1. unsigned short Spi_Read(unsigned short buffer);
    2.  
    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!
     
  2. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    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
     
Loading...