Troubles with SPI


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    if it use SPI, you want to use SHIFTOUT. Maybe SHIFTIN... but i doubt it will work as Slave... Hence why you should have a look at some Melabs code example.

    SpiMast.bas http://melabs.com/resources/samples/pbp/spimast.bas

    SpiSlave http://melabs.com/resources/samples/pbp/spislave.bas
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Jul 2006
    Location
    Lazio, Italy
    Posts
    44


    Did you find this post helpful? Yes | No

    Default Troubles with SPI

    Thanks for help, but I used Shiftout and Shiftin without problems now. It was only a commands sequence problem. With the appropriate Cypress directive (that I enclose) I solved all. Thanks again.

    Mombasa
    Lazio
    Italy

Similar Threads

  1. Using SPI with External Interrupts
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 29th June 2008, 04:08
  2. 16-bit SPI problem
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th June 2008, 15:42
  3. SPI Interfacing
    By toofastdave in forum Serial
    Replies: 8
    Last Post: - 18th November 2007, 11:15
  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 : 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