Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
how to allocate large arrays in CCS
- 02-21-2007

Re: how to allocate large arrays in CCS
@cableone.net says...

I don't think so. If I'm reading the manual correct that is too large
for a single entity.
From the online help:
A subscript to a RAM array must be at least 1 and not more than 128
elements. Note that large arrays might not fit in a bank. ROM arrays
may not occupy more than 256 locations.
I read that as a big NO for your char array[512]
Jim

Re: how to allocate large arrays in CCS

I'm trying to construct a buffer to hold the contents of a Compact Flash
read. The buffer is 512 bytes long. I'm using a PIC18LF2525, which in
itself has plenty of data space (3986 bytes) but I didn't remember to
consider page boundaries, etc.
I saw a FAQ in the databook concerning how to allocate table arrays up to
256 bytes but I couldn't find the reference to the limitation on RAM arrays.
Where did you dind that reference? I didn't run across it in the online
help, either.
...I'm just getting old and blind...
Thanks
Dave
Site Timeline
- » Looking for very fast MCU, any advice?
- — Next thread in » Microcontroller Discussions
-
- » Interfacing the DS12887 with PIC
- — Previous thread in » Microcontroller Discussions
-
- » New(ish) assembler for PIC16 microcontrollers (asm1825)
- — Newest thread in » Microcontroller Discussions
-
- » Возможности тестера DT-830B
- — The site's Newest Thread. Posted in » Electronic Circuits (Russian)
-