View previous topic :: View next topic |
Author |
Message |
theMagni
Joined: 21 May 2004 Posts: 48 Location: Victoria, BC
|
#ROM doesn't seem to work. |
Posted: Mon Aug 23, 2004 6:07 pm |
|
|
I'm using CCSC version 3.178 and a Quickwriter. I've been using this setup for a few months, so I know it's working. I'm using a 16F87.
When I specify a #ROM command and read it with the Quickwriter, the data is always a full set of 0xFF. What am I doing wrong here?
I've checked the settings, and "Enable EE data" is indeed checked off.
Here's the line. I've tried several variations on the theme, and this is one of the lines that someone suggested on a previous thread involving #ROM.
Code: | #ROM 0x20 = {0x12, 0x34, 0x56, 0x78} |
The code doesn't really do much more than that. I'm trying to use this instead of a bulky PC interface for reading and writing parameters. (The PC interface takes about 20% of the chip's codespace.
Thanks for your help. |
|
|
newguy
Joined: 24 Jun 2004 Posts: 1911
|
|
Posted: Mon Aug 23, 2004 7:37 pm |
|
|
Set the address to 0x2100 - that's the EEPROM address in the 16f's. |
|
|
theMagni
Joined: 21 May 2004 Posts: 48 Location: Victoria, BC
|
|
Posted: Tue Aug 24, 2004 10:21 am |
|
|
That fixed it. Thanks. |
|
|
|