How to use array variable for shiftout command


Closed Thread
Results 1 to 10 of 10

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: How to use array variable for shiftout command

    this device on the spi on this devices has true bidirectional data going out on SI , when a write , but returns at the same time on SO ( going back in ) the status register is there a way to get this information while i do a write and use it
    i would think the shiftout command would have to have a parameter to get this if it could.

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


    Did you find this post helpful? Yes | No

    Default Re: How to use array variable for shiftout command

    No, I'm afraid you can't do that with SHIFTOUT/SHIFTIN. If you're PIC has a MSSP module I suggest you take a look at that, it'll do what you want. If it doesn't have a MSSP module then you'd have to roll your own bit-banged routine to do the simultainous out/in. Which PIC are you using and what device is you're interfacing?

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