Problems with driving external EEPROM M24256


Results 1 to 19 of 19

Threaded View

  1. #11
    Join Date
    Dec 2007
    Posts
    13


    Did you find this post helpful? Yes | No

    Smile driving external EEPROM M24256

    Mr. Jerson is very right on , make sure that the address pins are ground and in fact I have all pins at ground execpt for the data and clock lines, exception is if there is more than one memory chip connected,
    read section 5.34 and 5.35 in the PicBasic pro compiler book it has a very good discription of how these commands work... also read the data sheet. try to use an error rutine at the end of the i2c statment, it will let you know if the write or read is successfull..
    good luck

    Mike

    example of some code

    addres var word
    w var byte
    cont con %10100000

    for addres = 1 to 255
    i2cwrite portb.var,portb,var,cont,addres,[w], error
    pause 150
    next addres

    for reading just put in the 12cwread for the write statment

    error:
    lcdout $fe,1, "error no ack received"
    end
    Last edited by mbruno; - 1st February 2008 at 08:08. Reason: adding some code

Similar Threads

  1. Can't read sequential addresses in external EEPROM
    By tjkelly in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th February 2010, 14:46
  2. Replies: 1
    Last Post: - 28th January 2010, 22:15
  3. Replies: 5
    Last Post: - 24th June 2009, 03:01
  4. How to write/read strings EEPROM/LCD
    By g-hoot in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 11th February 2007, 06:26
  5. word variable to 25lc640
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th July 2004, 19:59

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