24LC256 Serial EEPROM


Closed Thread
Results 1 to 4 of 4

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    For a start you've only defined 63 byte Arrays... and then you try to read 64 bytes into it! Try...

    COUNTERx var byte[64]
    COUNTERy var byte[64]

    Whilst arrays are numbered starting from ZERO, the definition has to contain the actual size... because...

    COUNTERx var byte[0]

    ... is an illegal definition as you've defined ZERO elements for the array... so you need to define at least one element...

    COUNTERx var byte[1]

    ...in order to access COUNTERx(0).

  2. #2
    Join Date
    Dec 2005
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    Hi Melanie
    Thanks will try it.

  3. #3
    Join Date
    Dec 2005
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    Hi,
    Also i found that i was sending a two byte control code which was displacing the array elements ($A000) it should have been $A0

    Thanks all is working as expected.
    Last edited by TonyCNC; - 15th December 2005 at 04:15.

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. 24c16 vs 24lc256 and serial wire identification
    By inspired4real in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 14th October 2008, 17:37
  3. 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
  4. Pic16F628A and 24LC256 EEPROM I2C
    By Mike96 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 1st January 2006, 03:13
  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