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

Data access using #rom statement

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



Joined: 14 May 2004
Posts: 330

View user's profile Send private message

Data access using #rom statement
PostPosted: Thu May 27, 2004 9:07 pm     Reply with quote

Does anyone have a routine to load these values to ram arrays? or maybe direct access?

It would be nice if we could access 16bit ram cells as 2 8bits to store 2 numbers per ram address, tables would eat half space.

In picbasic there is the CDATA/CREAD statement that does that.

In picbasic:

label: // address pointer
cdata 10,20,30,40 // these are stored in 2 addresses and accessed by cread label+index
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

PostPosted: Thu May 27, 2004 9:34 pm     Reply with quote

It's an 8 bit processor only 8 bits per word 256 bytes per RAM bank. The ROM is 16 bits per location in the PIC18 series and can be accessed directly. Look in the help file for;

READ_PROGRAM_EEPROM ( )
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