suggestion on how to implement duel /quad spi interface


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: suggestion on how to implement duel /quad spi interface

    yes no mater what shiftin/shiftout will get in/ out 1-8 bits per command and i cant see how to make it shift out /in more than 1 data pin synchronously ???

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


    Did you find this post helpful? Yes | No

    Default Re: suggestion on how to implement duel /quad spi interface

    Hi Sheldon,
    You can't do that with SHIFTIN/SHIFTOUT (without modifying the underlaying ASM routines of course (don't do that)).
    You need to write the routines yourself, shouldn't be that hard to do I don't think. But, as Richard points out, using the MSSP module in SPI mode will probably give you equal (or better) performance compared to a bitbanged dual SPI setup.

    /Henrik.

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,704


    Did you find this post helpful? Yes | No

    Default Re: suggestion on how to implement duel /quad spi interface

    just to make things clear shiftin/shiftout will get in/ out 1-8 bits per command is just wrong .
    shiftin/shiftout can process however many bits you require for as many vars as specified in the command (even 32 bit longs) but always 1 bit at a time
    Last edited by richard; - 27th June 2014 at 09:28.

Similar Threads

  1. 4-20mA using SPI Interface
    By gavo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 10th April 2013, 20:51
  2. LTC2400 SPI interface
    By designer salwar in forum mel PIC BASIC
    Replies: 1
    Last Post: - 2nd March 2011, 22:50
  3. SPI interface
    By malc-c in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 9th January 2011, 02:06
  4. LTC2400 SPI interface
    By PUGALENTHI.P in forum mel PIC BASIC
    Replies: 26
    Last Post: - 23rd July 2010, 16:57
  5. Using PBPro for SPI Interface
    By twincitian in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 22nd March 2007, 08:57

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