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

how to allocate eeprom memory bitwise

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



Joined: 06 Mar 2007
Posts: 92
Location: Pune,India

View user's profile Send private message AIM Address Yahoo Messenger

how to allocate eeprom memory bitwise
PostPosted: Thu Oct 11, 2007 1:16 am     Reply with quote

Dear Sir,
i am using 16f913, MPLAB 7.5 Ver. & CCS PCM C Compiler, Version 3.249, 34534.

i am writng incremented number(0 to 999999) in EEPROM.
so,
1)if the number is between 0 to 255(FF) i have to allocate zero location
2)if number is between 256 to 65025(FF * FF) i have to allocate zeroth & 1st location
& 3)if number is between 65025 to 999999 (FF * FF * FF) i have to allocate zeroth & 1st,2nd location
Here max. number is 999999 & if i am trying to use 3rd location the length of
number will be FF * FF * FF == (16581375).
So, how can i allocate memory space as bitwise
i.e. if 4 bit length is 16,
10 bit length is 1024
20 BIT number length is 1048576 etc...
can anybody suggest the method to allocate the memory like this,
_________________
Thank You,
With Best Regards,
Deepak.
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