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

    I added a PAUSE 250 between... and no. Still no joy.

  2. #2
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Second I2C address not responding

    I didn't understand you were talking to two different devices.
    I thought it was supposed to be writing the least significant digit to the right of the display,
    and then the tens digit in the position to the left, on the same display.

    The I2CWRITE still looks incomplete:

    Code:
    I2CWRITE SDA,SDL,I2CDEVICESELECT,ADDRESSONDEVICE,DATA
    Last edited by Art; - 16th October 2013 at 14:46.

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


    Did you find this post helpful? Yes | No

    Default Re: Second I2C address not responding

    You should post the data sheet for your single character LCDs. Very likely you need to set the new address on each LCD (one at the time) before using them on a I2C bus.

    Cheers

    Al.
    All progress began with an idea

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


    Did you find this post helpful? Yes | No

    Default Re: Second I2C address not responding

    Al, thanks for the reply. The LCDs are dumb; I'm using a PCF8574 port expander to control the segments. I did look again at that datasheet and all seems well in that the I2C seems to be a very standard implimentation.

    At this pint I'm exploring Art's assertion that its in the I2CWrite syntax - I think he's right; I just don't understand the "control byte" thing well enough to fix it. Lining up the commas...

    I2CWRITE SDA, SCL, $70, ,OUTP <- my code
    I2CWRITE SDA, SDL, I2CDEVICESELECT, ADDRESSONDEVICE, DATA <- Art's

    Shows I've missed something. Art calls it the ADDRESSONDEVICE, but since I have no clue what the control byte would be on the chip I'm using (I read and understand the examples given for memory chips), I'm pretty sure thats where the problem lies.

    Off, armed with a hint, in search of an answer.

  5. #5
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: Second I2C address not responding

    If you are using NXP data sheet it's hard to understand address, the T I data sheet is more clear the link below to that data sheet
    See page 6
    http://www.google.com/url?q=http://w...0Ee8TD_UJQnvOw
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

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

    I'm confused how the 1st I2C address is even responding.

    Your device address range, dependent on which address bits are tied HI, is between $40 and $4E according the data sheet.

    Name:  PCF8574 I2C address.JPG
Views: 857
Size:  24.6 KB

    Code:
    01000000 = $40 ' With A2, A1, A0 all set to 0 : (bit 0 set to Write) 
    01001110 = $4E ' With A2, A1, A0 all set to 1 : (bit 0 set to Write)
    Verify which of your PCF8574 address select pins are pulled High and correct them on your current code because other than that it looks right.

    Art, the 10ms PAUSE in the manual is referring to writing to an EEPROM that needs that Write delay because it's slow getting out of bed like me.
    Louie

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


    Did you find this post helpful? Yes | No

    Default Re: Second I2C address not responding

    The data sheet link passed on by Archangel is much appreciated! Way easier to read... thanks again.

    LinkMTech- I have to be honest, the chips may be tha "A" version. I sandwiched the chip between the board and the LCD, so no way to tell, but I also marked each board with a correct address as I verified their function while building. I didn't think to mention the discrepancy because they work individually and it never occurred to me that the addresses could be part of the problem. It does make sense to check this out though as, of course, until the problem is found it may be anywhere.

    I am at work presently and have no access to try any of these solutions for some hours, but I will give each every effort and report back soonest.

    Amoque

    These things are worth the time spent, they are beautiful when lit. Two are very nearly (I mean micro-smidgens different) the same size as the 128X64 GLCDS available in matching background and display color. Already I imagine a modular weather station (like a group of framed pictures) hanging on my den wall with groups of these providing clear visibility from anywhere in the room. Might even throw in a GLCD or two for graph functions. Gold foil touch sensors under glass... I tell ya boys, that's class, and I'm gonna get me some.

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