Second I2C address not responding


Closed Thread
Results 1 to 22 of 22

Hybrid View

  1. #1
    Join Date
    Apr 2011
    Location
    Welches, Oregon
    Posts
    198


    Did you find this post helpful? Yes | No

    Default Re: Second I2C address not responding

    Sorry... double post

  2. #2
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Re: Second I2C address not responding

    Do you have pullup resistors on each module? If so you should remove them otherwise you parallel them, and if the pullup value on the I2C bus become too low hardy it will work. A recommended value for bus pullup is 4.7K to 10K.

    Cheers

    Al.
    Last edited by aratti; - 17th October 2013 at 00:52.
    All progress began with an idea

  3. #3
    Join Date
    Apr 2011
    Location
    Welches, Oregon
    Posts
    198


    Did you find this post helpful? Yes | No

    Default Re: Second I2C address not responding

    Currently have 4K7s only. Doubled checked to be sure.

  4. #4
    Join Date
    Nov 2007
    Location
    West Covina, CA
    Posts
    219


    Did you find this post helpful? Yes | No

    Default Re: Second I2C address not responding

    Okay, try inserting brackets around your OUTP variable this way:

    Code:
    mainloop:
      FOR LP = 0 TO 9
        READ LP, OUTP
        I2CWRITE SDA, SCL, CHP001, [OUTP]	'WRITE 1's
        PAUSE 250
        I2CWRITE SDA, SCL, CHP010, [OUTP]	'WRITE 10's 
        PAUSE 250
        I2CWRITE SDA, SCL, CHP100, [OUTP]	'WRITE 100's 
        PAUSE 250
      NEXT LP	
    Goto mainloop                           'LOGICAL END
    I just tried removing the brackets on a short test program I've been playing with and it didn't work right anymore until I put them back.
    Louie

  5. #5
    Join Date
    Apr 2011
    Location
    Welches, Oregon
    Posts
    198


    Did you find this post helpful? Yes | No

    Default Re: Second I2C address not responding

    Wow... How dumb do I feel? It works perfectly now! I've been sitting here scratching a bald spot behind my right ear as I review every comma, wire, and word on the manual page - all the while looking right past the missing brackets.

    Thanks, Louie. I guess I just don't know how to say it more plainly than that. I really appreciate the help.

    I just did a little more extensive testing... moved the digits around and fiddled with the timing some... it is rock solid now, every digit works in every position - fast - without skipping or cogging. Very nice! Thank you ALL again for your attention, time, and effort.
    Last edited by Amoque; - 17th October 2013 at 04:02.

  6. #6
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Second I2C address not responding

    Congrats

    I'm confused how the 1st I2C address is even responding.
    I'm also still stuck on this, and thought I still must be misunderstanding something.
    It shouldn't have worked at all as far as I can tell.

    Pictures of display device?

  7. #7
    Join Date
    Nov 2007
    Location
    West Covina, CA
    Posts
    219


    Did you find this post helpful? Yes | No

    Default Re: Second I2C address not responding

    Cool! You're welcome Amoque, glad you can continue on your quest.

    I'm with Art, still confused with the addresses that are working. It must be an early version not mentioned in the data sheet I was looking.
    Louie

Similar Threads

  1. Replies: 2
    Last Post: - 27th August 2013, 23:07
  2. How to find I2C Slave address of PIC24FJ256GA110?
    By sharath12 in forum Off Topic
    Replies: 2
    Last Post: - 19th March 2012, 15:21
  3. PORTC.4 and C.5 not responding to inputs.
    By jmgelba in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 23rd February 2012, 22:41
  4. 4 bit address decoding I2C chip
    By ecoli-557 in forum General
    Replies: 3
    Last Post: - 10th June 2008, 18:26
  5. Pic 18f252 not responding
    By gringo332 in forum General
    Replies: 5
    Last Post: - 22nd March 2007, 22:21

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