Need Help with PIC as SPI Slave


Closed Thread
Results 1 to 4 of 4
  1. #1
    PICtron's Avatar
    PICtron Guest

    Default Need Help with PIC as SPI Slave

    Dear Forum,

    I have got to pick up data from an instrument with an SPI interface

    The trouble is the Instrument acts as master
    (providing the clock @ 100kHz)

    Means I will have to run the PIC as slave.

    Is there an (easy) way to achieve this in picbasic?

    any input is appreciated!

    regards

  2. #2
    PICtron's Avatar
    PICtron Guest

    Question Mssp?

    Is there really no one who can help?

    I think the MSSP module is the one to use.
    But I'm really struggling with it.

    What registers are to be set and how do I set them?

    And how do I sync to the incomming datastream?

    Here some more details:

    Incomming data is in bursts of two packets (four bytes each packet).
    there is a delay of about 200µS between two packets of a burst
    and there is a delay of about 200 ms between two bursts.
    The clock idles HIGH

    I'm planning to use a 16F876A @ 20MHz

    Any code snippet or advise will be appreciated.
    Last edited by PICtron; - 27th July 2005 at 22:25.

  3. #3
    PICtron's Avatar
    PICtron Guest

    Default

    Thanks for "many" replies

    I have found a solution to the problem on my very own!

  4. #4

    Default

    Where did you find the solution? I might be running into the same type of scenario as yourself. I however have choice of interfaces to use.

Similar Threads

  1. Reading a slave USB with a pic
    By pcaccia in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 25th October 2008, 12:00
  2. Using SPI with External Interrupts
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 29th June 2008, 04:08
  3. 16-bit SPI problem
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th June 2008, 15:42
  4. SPI configuration PIC versus Atmel
    By Pedro Santos in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th July 2007, 19:17
  5. How to configure SPI in PICBASIC PRO?
    By moogle in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 15th April 2007, 18:31

Members who have read this thread : 1

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