Has this being fix with 2.45?


Closed Thread
Results 1 to 5 of 5
  1. #1
    TONIGALEA's Avatar
    TONIGALEA Guest

    Default Has this being fix with 2.45?

    If you use DATA or EEPROM to load values into data space at program time, you will encounter inconsistency in the addressing of this data. The Microchip assembler won't address odd-numbered locations in data space. Therefore, you have to multiply the addresses in the DATA and EEPROM statements by 2. The EPIC programmer will correct the addresses at program time, so you can read the values back without the address doubling.

    Example:
    Data @8,"E","F","G","H"

    Read 4, result ' result = "E"
    Read 5, result ' result = "F"
    Read 6, result ' result = "G"
    Read 7, result ' result = "H"

    Toni

  2. #2
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Toni,

    I have had a similar problem, see the following thread:

    http://www.picbasic.co.uk/forum/show...ghlight=eeprom

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Hello,

    I haven't noticed any weird addressing problems and I load a lot of data into e-squared at program time.
    I use the EEPROM command.

    i.e.

    EEPROM MemLoc, [DataByte0, DataByte1, DataByte2, etc...]

    IF I am loading word-sized values I use the following:

    EEPROM MemLoc, [DataWord0HiByte, DataWord0LoByte, etc...)

    If you have a lot of word values to load, this could be pretty tedious. You may want to write up a little VB application to generate the code from a table of word values. Otherwise, you need to convert each word value to hexadecimal and split the word's high bytes and low bytes and program them into the EEPROM seperately. This is what I've used and it works for me.

    Cheers!
    ---> picnaut

  4. #4
    TONIGALEA's Avatar
    TONIGALEA Guest


    Did you find this post helpful? Yes | No

    Default

    Have tried this with the 18F series of pic's ?

    Toni

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Hi,

    No, I haven't tried this with the 18F series PICs.



    I hope this is NOT a compiler problem.
    ---> picnaut

Similar Threads

  1. Decoding DMX with picbasic pro
    By fred.pacc in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 11th September 2006, 14:34
  2. support for pic18f4520
    By vaidyasp1 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 28th April 2006, 13:05
  3. Replies: 0
    Last Post: - 22nd November 2005, 13:16
  4. Problem with "on Interrupt" and PIC18F4620
    By philtep in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 21st September 2005, 02:24
  5. Re: quick fix for sound command?
    By Melanie in forum Code Examples
    Replies: 0
    Last Post: - 9th July 2004, 01:44

Members who have read this thread : 1

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