Help;; eeprom won't read/write beyond address 255


Results 1 to 14 of 14

Threaded View

  1. #7
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    This works fine with PBP 2.60a and MPLAB ver 8.53.
    Code:
    DATA @300, "a","s","c","i","i"
     
    Dat VAR BYTE
    Index VAR WORD
     
    Main:
        FOR Index = 300 TO 304
            READ Index,Dat
            HSEROUT [Dat,13,10]
        NEXT
    Here:
        GOTO Here
    Spits it out as expected in the serial output window, and MPLAB shows all data in the EEPROM view window.

    Of course you need a word size variable for the index pointer when the address is > 255.
    Last edited by Bruce; - 30th August 2010 at 17:51.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

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