I2CWRITE and I2CREAD


Closed Thread
Results 1 to 2 of 2
  1. #1
    Tomas's Avatar
    Tomas Guest

    Default I2CWRITE and I2CREAD

    Hi,
    Can anyone help me with modifying the I2CWRITE and I2CREAD code (http://www.melabs.com/resources/samples/pbp/i2c).

    I have changed it to "page write" type, now i can write all 32KB of 24LC256 with the same data and read the data. What i want to do is a bit different from this.

    My I2CWRITE is in a loop and the program comes to this loop with different data to be written on the EEPROM. I want to store these data in different pages of the EEPROM as they come. For example when the program gets to the I2CWRITE loop for first time i want to store the data in, say page 1. Next time the program comes to this loop i want to store the new data in page 2 and so on. Finally i want to read the data from where they were stored.
    I tried to have a counter which keep track of the page number but the data i'm reading is not those i stored.
    Any idea? Please help . . .

    Regards,
    Tom

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Answered at the end of your previous thread where you posed this question first time around.

Similar Threads

  1. I2CRead & I2CWrite not working as expected
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 30
    Last Post: - 27th October 2021, 18:36
  2. I2cwrite - I2cread
    By savnik in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 5th July 2006, 01:12
  3. Problem with I2Cread and I2CWRITE function
    By Tony85 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th June 2006, 20:03
  4. Problem with I2Cread and I2CWRITE function
    By Tony85 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th June 2006, 18:32
  5. PFC8583 Connection and I2Cwrite I2cread!
    By uludere72 in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 27th February 2006, 13:32

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