I2C I/O Expander PCF8574 hanging?


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    badrad's Avatar
    badrad Guest

    Default

    I am trying out the PCF8575 - 16 bit expander in my application. The high byte will be connected to LEDs for output, and the low byte is connected to switches.

    For your application using the PCF8574 - did you use the I2CREAD and I2CWRITE commands control the bit expander? Would you mind posting a snippet of your code example on how you control the device?

    Thanks.

  2. #2
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762

    Default

    badrad,

    for several reasons I have written my own routines that I can't share.

    But
    I2CWRITE and I2CREAD should work fine.

    (Don't forget the 4k7 PullUps on the Data and Clock Lines)
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  3. #3
    badrad's Avatar
    badrad Guest

    Default

    Quote Originally Posted by NavMicroSystems
    badrad,

    for several reasons I have written my own routines that I can't share.

    But
    I2CWRITE and I2CREAD should work fine.

    (Don't forget the 4k7 PullUps on the Data and Clock Lines)
    Thanks NAV, no probs with the proprietary stuff, understandable. I changed my pullups to 4k7, i had originally put in 10Ks.

    The pcf8575s works like a charm. I have 8 panels with a pcf8575 each on one I2C bus, and another 2 on another bus I2C. Highbyte connected to proximity sensors, and Lowbyte connected to LEDs. There is a 3rd I2C bus for serial eeproms, and one serial port for a serial graphic display (Orbital Matrix).

    The tricky part of this equation was all the parts are SMD. So I did not prototype the design to do my trials and testing, just straight from paper to circuit board layout. Hand soldering those SOIC and TSSOP, and 604 size parts is NOT a fun task.

    Fun only when it works in the end... Now on to the task of coding the darn thing.
    Last edited by badrad; - 4th August 2005 at 02:28.

Similar Threads

  1. I2C Master/Slave 16F88/16F767 working code
    By DanPBP in forum Code Examples
    Replies: 2
    Last Post: - 23rd October 2012, 22:31
  2. HARDWARE I2C SAMPLE CODE question
    By Michael Wakileh in forum Code Examples
    Replies: 2
    Last Post: - 16th June 2009, 21:07
  3. I2C Master Slave issues.
    By cpayne in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th March 2008, 19:33
  4. MCP23016 I2C serial I/O expander chip
    By GeoJoe in forum Serial
    Replies: 7
    Last Post: - 31st October 2007, 15:39
  5. MCP23016 I/O expander
    By Demon in forum mel PIC BASIC Pro
    Replies: 42
    Last Post: - 24th October 2005, 01:01

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