I2C question w/ MCP23017 Port Expanders


Closed Thread
Results 1 to 6 of 6

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: I2C question w/ MCP23017 Port Expanders

    your pull-up are far to be correct... at slow speed they need to be 4.7K or so... around 1.8k at higher speed.

    Begin with it.
    Steve

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

  2. #2
    Join Date
    Nov 2003
    Posts
    98


    Did you find this post helpful? Yes | No

    Default Re: I2C question w/ MCP23017 Port Expanders

    thanks mister_e,
    i will give that a try but i have never had much sensitivity to their value on other projects, will report back

    my suspicion is that when pcb2 is not connected the lack of response after writing to it has something to do with the issue

  3. #3
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343


    Did you find this post helpful? Yes | No

    Default Re: I2C question w/ MCP23017 Port Expanders

    The I2C protocol shouldn't work open loop. The slave must send an ACK after each byte that is written. I would be very surprised if the PBP routines for I2C were written in a way that did not wait for the slave ACK.

  4. #4
    Join Date
    Nov 2003
    Posts
    98


    Did you find this post helpful? Yes | No

    Default Re: I2C question w/ MCP23017 Port Expanders

    Hi Steve
    my understanding is that if there is an error with the ACK the program can jump to a location specified by an optional LABEL, if the optional LABEL is not given then the error is ignored

    are there examples here somewhere how to use the on chip hardware for I2C ?

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: I2C question w/ MCP23017 Port Expanders

    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Interfacing with Arduino I2C LCD
    By norohs in forum Documentation
    Replies: 47
    Last Post: - 30th May 2017, 19:53
  2. 16F1847 Usart and I2C
    By Seahound1 in forum Serial
    Replies: 6
    Last Post: - 18th December 2012, 21:41
  3. Strange I2C and serial behaviour.......
    By jimbostlawrence in forum General
    Replies: 4
    Last Post: - 30th October 2012, 02:02
  4. PIC 18F4550 and MCP23017
    By DaveC3 in forum Code Examples
    Replies: 12
    Last Post: - 4th December 2010, 15:01
  5. Question Regarding Port A on 16F876A
    By jevert in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 26th February 2009, 15:00

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