vsmguy
Joined: 13 Jan 2007 Posts: 91
|
Array of more than 96 bytes on PIC16F877A |
Posted: Sun Jan 14, 2007 11:59 pm |
|
|
Hi
I wanted to store an 101 element array :
Code: |
unsigned int8 uiDutyCycleLUT[] = {0, 2, 4, 7, 9, 12, 14, 17, 19, 22, 24, 27, 29, 32, 34, 37, 39, 42, 44, 47, 49, 52, 54, 57, 59, 62, 64, 67, 69, 72, 74, 77, 79, 82, 84, 87, 89, 92, 94, 97, 99, 102, 104, 107, 109, 112, 114, 117, 119, 122, 124, 126, 129, 131, 134, 136, 139, 141, 144, 146, 149, 151, 154, 156, 159, 161, 164, 166, 169, 171, 174, 176, 179, 181, 184, 186, 189, 191, 194, 196, 199, 201, 204, 206, 209, 211, 214, 216, 219, 221, 224, 226, 229, 231, 234, 236, 239, 241, 244, 246, 249};
|
However, the compiler complains that it's out of RAM for variables. I definitely used the :
fuse.
Amazingly deleting the first four elements of the above array to make it a 96 elemts array works fine and uses about 30% RAM.. I wonder what's the problem with the 4 more bytes ??
Any pointers to solve this problem ? |
|