This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

addressing 24c04

hi i am using the controller P89c51RD2BN and eeprom AT24c04 my i2c routine read and write the data perfectly. but upto the address 116 D (0x74) if i am trying to store any variable beyound this address my display shows garbage(it hangs) but ALE signal is presents. can any one help me to solve this

Parents
  • "As i stated earlier the i2c RD/WR routine is perfect (sic) as i used all this in many other system"

    No, it is clearly not perfect - because it doesn't work for addresses above 0x74!

    It is a very common misconception that, just because you've never seen a problem, there are no problems - I call this the "Proven Product Syndrome"

    In fact, what you have is almost certainly a bug that has always existed in your routines but, until now, you've just been lucky and never been affected by it.

    So, go back to your original design:
    Was it specified to work for addresses over 0x74?
    Was its operation tested for addresses over 0x74?
    If it was tested, what were the test conditions, and how did they differ from your current usage?

Reply
  • "As i stated earlier the i2c RD/WR routine is perfect (sic) as i used all this in many other system"

    No, it is clearly not perfect - because it doesn't work for addresses above 0x74!

    It is a very common misconception that, just because you've never seen a problem, there are no problems - I call this the "Proven Product Syndrome"

    In fact, what you have is almost certainly a bug that has always existed in your routines but, until now, you've just been lucky and never been affected by it.

    So, go back to your original design:
    Was it specified to work for addresses over 0x74?
    Was its operation tested for addresses over 0x74?
    If it was tested, what were the test conditions, and how did they differ from your current usage?

Children