Is there an arbitrary do not exceed number for data objects?
specifically a structure called test of size say 20 bytes declared as such
const struct test[size];
is there a limit to size ? other than the obvious memory constraints.
are there page boundary issues?
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
Posted: Thu Aug 09, 2007 10:47 am
Any function or data object must fit in one memory page. The size of a page depends on the PIC you choose. _________________ The search for better is endless. Instead simply find very good and get the job done.
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Thu Aug 09, 2007 11:51 am
SherpaDoug wrote:
Any function or data object must fit in one memory page. The size of a page depends on the PIC you choose.
This is true for PIC16 and smaller processors, also note that for these chips not all pages are the same size.
PIC18 chips are much more relaxed in this respect and as far as I know the only limit is the amount of free RAM. My largest array is 512 bytes and this works great. The first PIC18 compiler versions had a size limit of 256 bytes and this was in the manuals for a long time even after it was fixed (before I started using this compiler, i.e. before v3.187).
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