CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

array size using PIC18F6720

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Birdie
Guest







array size using PIC18F6720
PostPosted: Wed Jan 21, 2004 10:22 am     Reply with quote

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

View user's profile Send private message

Re: array size using PIC18F6720
PostPosted: Wed Jan 21, 2004 10:54 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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