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 support@ccsinfo.com

code memory problem

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



Joined: 05 Dec 2009
Posts: 40

View user's profile Send private message

code memory problem
PostPosted: Mon Apr 04, 2011 11:58 am     Reply with quote

hey guys
i am using pic16F877A, i am gettting 2-16bits variables data via RS232 now my task is to store these variables data permanently in my PIC,

how i can do that does any one has a source code for it ??
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Apr 04, 2011 1:11 pm     Reply with quote

This CCS driver file has routines to read and write 'int16' values to
internal data eeprom inside the PIC.
Quote:

c:\program files\picc\drivers\internal_eeprom.c
bells_electronics



Joined: 05 Dec 2009
Posts: 40

View user's profile Send private message

PostPosted: Mon Apr 04, 2011 1:38 pm     Reply with quote

sir
i am lil confuse here what address should i use ?? hex or decimal ??

address = 0;
address = 1

for 2 16-bit variables ??
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Apr 04, 2011 1:43 pm     Reply with quote

The address is a byte address. It starts at 0. There are two bytes per
word. So put your first int16 value at address 0, and put your next int16
value at address 2.
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