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
Bookmarks