Eeprom Word Addressing


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Simon Brodeur's Avatar
    Simon Brodeur Guest


    Did you find this post helpful? Yes | No

    Default

    I resolved some problem in my code, but something trouble me about the FOR...Next loop. My code is :

    For address = 0 to last STEP 4
    I2CREAD SDA,SCL,cbit,address,[xsend.Highbyte]
    address = address + 1
    I2CREAD SDA,SCL,cbit,address,[xsend.Lowbyte]
    ...
    Next


    My value in my EEPROM are like this (numbers are EEPROM locations) :

    01 23 45 67 89
    |xx|yy|xx|yy|xx|...

    Normally, the output value of address should be : 0,4,8,12,16,...
    But will the '' address = address + 1 '' line affect this output, giving result like this : 0,5,10,15,20,... ????????

    This should be an easy question for you

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    well yes no toaster hamburger. What about the whole variable definition or code?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Simon Brodeur's Avatar
    Simon Brodeur Guest


    Did you find this post helpful? Yes | No

    Default

    Here's my whole code... but it may be difficult to follow.

    Check the subroutine LOAD, it is the problem I verified the writing with another program.
    Attached Files Attached Files

Similar Threads

  1. Read/Write Problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th February 2010, 02:51
  2. Problem with I2C EEPROM addressing
    By Atom058 in forum General
    Replies: 14
    Last Post: - 3rd November 2009, 04:17
  3. Minimizing code space
    By Tobias in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th May 2009, 08:25
  4. DS2760 Thermocouple Kit from Parallax in PicBasicPro
    By seanharmon in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 9th July 2008, 00:19
  5. calculation problem
    By nicolelawsc in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st March 2006, 16:23

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