pic16f72 spi slave - ss pin function


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,621


    Did you find this post helpful? Yes | No

    Default Re: pic16f72 spi slave - ss pin function

    Hi Richard,
    Yes, I think that will work. When you load SSPBUF it's content will be transparently transfered to the actual shift register (SSPSR, which you can't access "manually") and then just sit there.
    When the SS pin on the slave goes low and clock pulses appears on the SCK pin the data in SSPSR get shifted out thru the SDO pin while at the same time SSPSR gets "refilled" from the other end by the data on the SDI pin.

    If the SS pin goes high in the middle of the transfer the data in SSPBUF will be untouched. Only when 8 bits have been shifted out/in the data now in SSPSR gets tranfered to SSPBUF where you can grab it and SSPIF gets set.

    At least that's how I interpret it.

    /Henrik.

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,680


    Did you find this post helpful? Yes | No

    Default Re: pic16f72 spi slave - ss pin function

    I will give it a go and reply with results , but not tonight its nearly bed time

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: pic16f72 spi slave - ss pin function

    On the ISD chips I use, the SS pin is a chip select/enable so you can parallel multiple chips and select which one to enable.

Similar Threads

  1. PIC24 clear SPI slave FIFO
    By The Master in forum Off Topic
    Replies: 8
    Last Post: - 18th January 2015, 00:43
  2. question about the pin to pin connections on a SPI interface
    By wdmagic in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th January 2013, 13:03
  3. SPI, SCK Pin set up
    By Hylan in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 3rd January 2012, 06:23
  4. I2C function... clock pin?
    By Qacer in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 2nd February 2006, 22:09
  5. Need Help with PIC as SPI Slave
    By PICtron in forum Serial
    Replies: 3
    Last Post: - 16th August 2005, 19:34

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts