yourmomOS
- 23rd March 2006, 23:51
Hello all, I need some help if you could. I am trying to write data to the internal EEPROM of a 16f628. I have several stings that I will call later in the actual program but I can not seem to get past the DATA @127 mark in the eeprom. I keep getting an error that says ERROR DATA.ASM 161:[218] Address limit of blablabla exceeded. If a single character in a string is one byte, when I add up all the bytes of all the strings, I should not be approaching the limit of the eerom. Here is the code.
UNITID DATA @0, 1 'UNIT ID SPACE
'EEPROMCONTROLAD DATA WORD @2, 'THIS HOLDS EXTERNAL EEPROM BOOKMARK
GPSCOM9600 DATA @10, "$PSRF100,1,9600,8,1,0*0D " 'SET GPS UNIT TO 9600BPS
GPSCOM19200 DATA @35, "$PSRF100,1,19200,8,1,0*38" 'SET GPSUNIT TO 19200BPS
GPSDISCGA DATA @60, "$PSRF103,00,00,00,01*24 " 'TURN OFF CGA MESSAGES
GPSDISGLL DATA @85, "$PSRF103,01,00,00,01*25 " 'TURN OFF GLL MESSAGES
GPSDISGSA DATA @110, "$PSRF103,02,00,00,01*26 " 'TURN OFF GSA MESSAGES
GPSDISGSV DATA @135, "$PSRF103,03,00,00,01*27 " 'TURN OFF GSV MESSAGES
GPSDISRMC DATA @160, "$PSRF103,04,00,00,01*20 " 'TURN OFF RMC MESSAGES
GPSDISVTG DATA @185, "$PSRF103,05,00,00,01*21 " 'TURN OFF VTG MESSAGES
It dies on the @110 one. If I comment that one and all after it out, it will compile without the error. I know that one crosses some kind of 128byte barrier, but it doesnt work if I start it at say...@150 either. Any help would be greatly appreciated.
UNITID DATA @0, 1 'UNIT ID SPACE
'EEPROMCONTROLAD DATA WORD @2, 'THIS HOLDS EXTERNAL EEPROM BOOKMARK
GPSCOM9600 DATA @10, "$PSRF100,1,9600,8,1,0*0D " 'SET GPS UNIT TO 9600BPS
GPSCOM19200 DATA @35, "$PSRF100,1,19200,8,1,0*38" 'SET GPSUNIT TO 19200BPS
GPSDISCGA DATA @60, "$PSRF103,00,00,00,01*24 " 'TURN OFF CGA MESSAGES
GPSDISGLL DATA @85, "$PSRF103,01,00,00,01*25 " 'TURN OFF GLL MESSAGES
GPSDISGSA DATA @110, "$PSRF103,02,00,00,01*26 " 'TURN OFF GSA MESSAGES
GPSDISGSV DATA @135, "$PSRF103,03,00,00,01*27 " 'TURN OFF GSV MESSAGES
GPSDISRMC DATA @160, "$PSRF103,04,00,00,01*20 " 'TURN OFF RMC MESSAGES
GPSDISVTG DATA @185, "$PSRF103,05,00,00,01*21 " 'TURN OFF VTG MESSAGES
It dies on the @110 one. If I comment that one and all after it out, it will compile without the error. I know that one crosses some kind of 128byte barrier, but it doesnt work if I start it at say...@150 either. Any help would be greatly appreciated.