External Eeprom - trying to store multiple variables


Results 1 to 6 of 6

Threaded View

  1. #2
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    You cannot write or read a word directly as you are trying to do. Split the word into two bytes (lowbyte + highbyte)

    Code:
     I2CWRITE DPIN,CPIN,$A0,I2CAddress,[B2.byte0,B2.byte1]  ' Write each location's address to itself
    same thing for I2CREAD.

    Edited: Sorry I didn't read the whole post so I didn't see you have already splitted the word into two bytes. But the point remains You CANNOT handle the word as a single piece.


    Al.
    Last edited by aratti; - 5th April 2010 at 06:58.
    All progress began with an idea

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