Writing and reading to a 24LC1025


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    967


    Did you find this post helpful? Yes | No

  2. #2
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    Angus Anderson, the 24LC1025 is expecting an 16 bit address. You are only sending it an 8 bit address.

    Dave Purola,
    N8NTA

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Dave, you were right about the 16 bit address

    I've managed to solve the problem by:

    1) Making the address a word sized variable
    2) Changing the pullup resistors from 4k7 to 2k7
    3) Taking the data to be stored and saving it Highbyte and Lowbyte so:

    I2cWrite SDA,SCL,$A0,Address,[Databyte.Highbyte]
    Address = Address+1
    I2cWrite SDA,SCL,$A0,Address,[Databyte.Lowbyte]
    Address = Address+1

    It now works like a charm. Thanks all of you for your advice, not the least by being reminded to take the trouble to do a search of the forum first ;-)

  4. #4
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    Angus Anderson, That's good you got it working. I use 4 of the 24LC1025's for a fishing device I designed and it records 18+ hours of various data.

    Dave Purola,
    N8NTA

Similar Threads

  1. Reading, writing, erasing flash (16F88)
    By RussMartin in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 8th March 2010, 08:13
  2. Writing & Reading to iButton EEPROM
    By crhomberg in forum Code Examples
    Replies: 2
    Last Post: - 6th October 2008, 19:40
  3. Reading and Writing from SD/MMC cards as FAT filesystem?
    By charliez in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd June 2006, 22:26
  4. reading, writing, and displaying from eeprom
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th January 2006, 22:05
  5. Writing / Reading EEPROM 24LC256 Problem
    By schmoddel in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th February 2004, 18:55

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