EEPROM

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
MarkW
Posts: 73
Joined: Fri Oct 27, 2006 8:09 pm

EEPROM

Post by MarkW » Fri Apr 13, 2007 8:11 pm

I can't seem to write/read to the onboard EEPROM. I have seen the previos thread where someone else had this problem. Online update says I have the latest stuff. When I include "EEPROM.bas" it does not show up in the Code Explorer.

I can't get the eeprom [(address)] = (item [as type] {, item [as type]}) command or the EE.xxx commands to work.

PIC is the 18F2321.

User avatar
David Barker
Swordfish Developer
Posts: 1214
Joined: Tue Oct 03, 2006 7:01 pm
Location: Saltburn by the Sea, UK
Contact:

Post by David Barker » Fri Apr 13, 2007 8:26 pm

Take a look at this thread and then check your 'EEPROM.bas' module to see if the fix works for you

http://www.sfcompiler.co.uk/forum/viewt ... ght=eeprom

> When I include "EEPROM.bas" it does not show up in the Code Explorer.

I would need to see the full program.

> I can't get the eeprom [(address)] = (item [as type] {, item [as type]})
> command

Again, it would help to see some code. Does it compile OK? Have you tried reading the EEPROM contents after programming to see if the data is correct?

> EE.xxx commands to work

Try the above post first, to see if the changes help you. A short program that highlights the failure would also be useful.

Post Reply