MCP23016 I/O expander


Closed Thread
Results 1 to 40 of 43

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,159


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by NavMicroSystems
    Robert,

    I'm sorry, this still doesn't make any sense to me.
    Why use opto's when you aren't isolating anything?
    Ralph,

    The optos were used only as a means of being able to switch between more than 8 MCP23016. I can easily activate the MCT6 I wish with a single pin from the PIC. Don't look for any fancy reasons, there aren't any.

    It was the only idea I could come up with the have more than 8 MCP23016 share a common SDA line (since I don't know how to have more than 1 SDA line per PIC).

    Robert
    Last edited by Demon; - 23rd October 2005 at 18:00.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,159


    Did you find this post helpful? Yes | No

    Default

    Awe ben tabarnoune!

    Ralph, one of your comments made it seem like all I had to do was to use another pin as an SDA and just go on from there. So that's what I just tried and the darned thing works!

    Ok, that's great. But why is the SDA line listed on a particular pin on the 16F877 datasheet?

    I thought that since it was listed on RC4 that THAT was the only place it would work. Hence why I tried all these acrobatics to work with this limitation.

    This brings up another question; will SDA work on all pins?

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,159


    Did you find this post helpful? Yes | No

    Default

    Ok, just saw your post come up.

    Thanks very much Ralph and Melanie.

    I was going to say thanks to that Mister_E comedian, but he's ignoring my emails. :P

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

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


    Did you find this post helpful? Yes | No

    Default

    Dear vieux debris
    Glad to see that there's some light up your head now. I2CWRITE/I2CREAD/SHIFTOUT.... SERIN/SEROUT... will work on any I/O since it's a software solution as Ralph said. It isn't the same as HSEROUT and HPWM wich use the specific PIC i/o.

    The beauty of PBP against another Basic compiler is that you can use/do as many I2C bus as you have free I/O. Hey, even if we still heard here and there that PBP is a dead/dummy/..../...../..../ language, it's still usefull

    Usually i don't share SCL line between I2C buss... kind of personnal safety feeling i guess... but it's working.
    Steve

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

Similar Threads

  1. I/O extender
    By mychangl in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 20th November 2008, 14:56
  2. MCP23016 I2C serial I/O expander chip
    By GeoJoe in forum Serial
    Replies: 7
    Last Post: - 31st October 2007, 15:39
  3. MCP23016 I/O expander with PBP?
    By Jon Chandler in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 22nd August 2005, 09:32
  4. I2C I/O Expander PCF8574 hanging?
    By NavMicroSystems in forum Serial
    Replies: 12
    Last Post: - 4th August 2005, 02:26
  5. managing the I/O ports of the 16F84A
    By skyler_91600 in forum mel PIC BASIC
    Replies: 7
    Last Post: - 28th April 2005, 03:52

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