Shiftout over I2C possible?


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2013
    Posts
    1,078

    Default Shiftout over I2C possible?

    Hello.
    I have PCF8574 I2C extender.
    I want to connect to it's outputs APA102 LED (which is SPI)

    Can PBP handle this, or I'll have to do manual bit forming over I2C bus, to have "proper" SPI at it's output pins?

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,807


    Did you find this post helpful? Yes | No

    Default Re: Shiftout over I2C possible?

    Won't all these slow down your data communication?

    Ioannis

  3. #3
    Join Date
    Aug 2011
    Posts
    412


    Did you find this post helpful? Yes | No

    Default Re: Shiftout over I2C possible?

    Quote Originally Posted by Ioannis View Post
    Won't all these slow down your data communication?
    Boy. that's an understatement!

    You'll have to do three I2C writes for each bit (set data, set clock high, set clock low).
    It'll be as slow as molasses, but it'll work (as long as the APA102 isn't finicky about the SPI timing)

    Obviously you can't use Shiftout to do it.
    Last edited by tumbleweed; - 23rd February 2023 at 12:46.

  4. #4
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: Shiftout over I2C possible?

    Yes it will be slow, but I have no issues with that, since APA102 will be used for static lighting and updated maybe once per day...

Similar Threads

  1. SHIFTOUT, I2C, 1-Wire on same pins, possible?
    By CuriousOne in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 12th March 2022, 21:17
  2. 128bit Shiftout? how?
    By gtvmarty in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th April 2009, 21:31
  3. Shiftout/in
    By BobEdge in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd August 2007, 11:48
  4. Shiftout
    By moby in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 17th August 2004, 21:19
  5. Shiftout
    By f6ggy in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 7th October 2003, 08:19

Members who have read this thread : 3

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