CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

#ROM doesn't seem to work.

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
theMagni



Joined: 21 May 2004
Posts: 48
Location: Victoria, BC

View user's profile Send private message Visit poster's website

#ROM doesn't seem to work.
PostPosted: Mon Aug 23, 2004 6:07 pm     Reply with quote

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: 1909

View user's profile Send private message

PostPosted: Mon Aug 23, 2004 7:37 pm     Reply with quote

Set the address to 0x2100 - that's the EEPROM address in the 16f's.
theMagni



Joined: 21 May 2004
Posts: 48
Location: Victoria, BC

View user's profile Send private message Visit poster's website

PostPosted: Tue Aug 24, 2004 10:21 am     Reply with quote

That fixed it. Thanks.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group