|
|
View previous topic :: View next topic |
Author |
Message |
Birdie Guest
|
array size using PIC18F6720 |
Posted: Wed Jan 21, 2004 10:22 am |
|
|
Using PIC18F6720 and PCWH 3.180
I have looked and cannot find any information that says I may not use a large array in my code, such as:
int MyArray[2048];
But I am experiencing problems, and if anyone knows of a problem with large arrays, please let me know.
Thanks in advance,
Birdie |
|
|
Neutone
Joined: 08 Sep 2003 Posts: 839 Location: Houston
|
Re: array size using PIC18F6720 |
Posted: Wed Jan 21, 2004 10:54 am |
|
|
Birdie wrote: | Using PIC18F6720 and PCWH 3.180
I have looked and cannot find any information that says I may not use a large array in my code, such as:
int MyArray[2048];
But I am experiencing problems, and if anyone knows of a problem with large arrays, please let me know.
Thanks in advance,
Birdie |
Thats a large array. You should locate the array at the beginning of a bank. The only time an array should cross a bank boundry is when it is larger than a single bank. Whenever posiable they should be located at the start of a bank.
Code: |
int MyArray[2048];
#locate MyArray = 0x100 //Through 0x8FF
|
The process of indirect addressing will be greatly helped by not having to perform checks to see what bank is being accessed. |
|
|
|
|
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
|
Powered by phpBB © 2001, 2005 phpBB Group
|