PDA

View Full Version : Read EEprom the 18f4620 after 255 ??



vicce67
- 23rd June 2011, 02:07
Dear Friends,

Why don't get to read or to record the eepron of the 18f4620 after the address 255

example read 300,a or data @403,001

doesn't have effect after the address 255

in advance thankful,
Vicente

mackrackit
- 23rd June 2011, 09:22
What sort of problem are you having?
What happens when you run this?


BAUD CON 16572 '4800 INVERTED, PC
TX VAR PORTB.0
SUM VAR BYTE
NUM VAR BYTE
NUM = 0

BOOT:
SEROUT2 TX,BAUD,[$d,$a]
SEROUT2 TX,BAUD,["NUM= ",DEC NUM,$d ,$a]
SEROUT2 TX,BAUD,["SUM= ",DEC SUM,$d,$a]
PAUSE 1000
WRITE 300,NUM
PAUSE 100
READ 300,SUM
PAUSE 100
NUM = NUM + 1
GOTO BOOT