Hello,
I have a structure that uses 18 bytes. I need an array of these. if the array size is greater than 14 it doesn't work. A 15 element array takes 270 bytes. 14 elements takes 252. Is there an 8-bit cut-off point in the size of a variable? Using compiler ver 3.169 and PIC18F252.
Thanks
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
Posted: Sun Aug 14, 2005 8:19 am
Read these for info on the problem that you are seeing and a possible work around:
It seems that the real problem is with bank addressing so indirect addressing should be okay. If you reserve that memory area and then assign a pointer to that location I believe that you might be able to access the data just fine. I'll let you be the one to try it out.
Ttelmah Guest
Posted: Mon Aug 15, 2005 2:56 am
There was a fix for this type of problem in 3.189. You may be able to bodge round it as Mark describes, but the current releases seem to handle larger sizes OK.
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