About writing word variables into the eeprom


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Ted's's Avatar
    Ted's Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    If you alias the Word array as a Byte array, you can just write 1 byte at a time in the loop.
    Code:
    arraysize  CON 20
    Array      VAR WORD[arraysize]
    
    @ByteArray = _Array
    ByteArray  VAR BYTE EXT
    
    FOR ArrayPosition = 0 TO (arraysize*2-1)
        WRITE ArrayPosition, ByteArray(ArrayPosition)
    NEXT ArrayPosition
    I do not understand your code. Please comment.

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    This should help some.
    Once you know what the EXT modifier does, it should make more sense.

    The EXT (external) modifier.
    http://www.picbasic.co.uk/forum/showthread.php?t=3891
    <br>
    DT

Similar Threads

  1. Read/Write Problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th February 2010, 02:51
  2. Minimizing code space
    By Tobias in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th May 2009, 08:25
  3. DS2760 Thermocouple Kit from Parallax in PicBasicPro
    By seanharmon in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 9th July 2008, 00:19
  4. calculation problem
    By nicolelawsc in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st March 2006, 16:23
  5. word variable to 25lc640
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th July 2004, 20: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