Second I2C address not responding


Closed Thread
Results 1 to 22 of 22

Hybrid View

  1. #1
    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

  2. #2
    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 03:02.

  3. #3
    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?

  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

    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

  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

    Haha! A question I can answer for you! The part number is PCF8574A - the "A" differing only by its upper address nibble, 0111xxx. If I include the write bit (I do because no read is ever done from the completed modules), the address range is $70 - $7F. With both the '74 and '74A, I can put 16 modules on a bus and make my own "Wheel of Fortune"! Did I not say I bought quite a number of these?

    A picture so that you can envy my good fortune...

    Name:  LCDS.jpg
Views: 789
Size:  485.7 KB

    The small item is a standard dot-matrix LED for comparison.

    --All the best,
    Amoque

  6. #6
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Second I2C address not responding

    I was hoping they were matrix displays
    They do look like a good way to make a project flexible.
    I wouldn't want to be making the front panel for them though!

Similar Threads

  1. Replies: 2
    Last Post: - 27th August 2013, 22:07
  2. How to find I2C Slave address of PIC24FJ256GA110?
    By sharath12 in forum Off Topic
    Replies: 2
    Last Post: - 19th March 2012, 14: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, 21:41
  4. 4 bit address decoding I2C chip
    By ecoli-557 in forum General
    Replies: 3
    Last Post: - 10th June 2008, 17:26
  5. Pic 18f252 not responding
    By gringo332 in forum General
    Replies: 5
    Last Post: - 22nd March 2007, 21: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