PDA

View Full Version : internal storage space?



gtrplaya101
- 27th October 2009, 03:24
My question is this.
Lets say I have a simple array called CP that has 20 spots such as CP(20). Each of these spots are defined by either a 1 or 0 such as this <1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,1,1,1,1,0>.

So my question finally is this. How much space does this vector take in eepromm and how many of these vectors could I fit in a 16F877a.

Thanks
Curt

ScaleRobotics
- 27th October 2009, 06:45
At most, you could shove 102 20 bit numbers into the 256 byte eeprom. But.. they would be overlapping, and be pretty difficult to manage at best. Any way to go down to 16 bits instead of 20? That would make it a lot easier to deal with. Then you could fit 128 of them in there, without overlapping. You would know where they started and where they ended without a lot of extra code.