deepakomanna
Joined: 06 Mar 2007 Posts: 92 Location: Pune,India
|
how to allocate eeprom memory bitwise |
Posted: Thu Oct 11, 2007 1:16 am |
|
|
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. |
|