pic16f72 spi slave - ss pin function


Results 1 to 7 of 7

Threaded View

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


    Did you find this post helpful? Yes | No

    Default Re: pic16f72 spi slave - ss pin function

    Hi Richard,
    I've never used the (M)SSP module in SPI Slave mode but here's the way I understand it:
    The SS\ pin, when enabled is an active low input. When high (inactive) the (M)SSP module is held in reset meaning no data will be clocked in.
    Only when the SS\ pin is low (active) will data actually be clocked in. This is of course so you can have multiple slaves on the bus and individually selecting which one to talk to by pulling the specific slaves SS\ line low - as you would with any SPI device pretty much.

    In slave mode, the SSPIF (PIR1.3) gets set when 8 bits have been shifted in, look at figures 9.3 and 9.4, if SSPIE is set and interrupts enabled an interrupt will be tripped. The SSPIF flag needs to be cleared by your interrupt service routine.

    /Henrik.
    Last edited by HenrikOlsson; - 8th January 2015 at 11:07.

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