18F2620

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Ron
Posts: 225
Joined: Wed Apr 11, 2007 6:15 pm
Has thanked: 2 times

18F2620

Post by Ron »

Hi,

I need an explanation of memory in this PIC.

I wrote a program for 16F886 which has 8K of flash memory. I recompiled it for the 18F2620 which has 64K flash memory.

The compiler says that my program has used 87% of 8K memory for the 16F886, it says the same thing for 18F2620 (8K). If the 18F2620 has 8 times more memory why does it only report 8K available?

Please let me know what I do not understand.

Thank you,

Ron

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Re: 18F2620

Post by Steve »

I just tried the same thing and didn't get the same problem. Here's the output from the 16F886:

Code: Select all

Memory Usage Report
===================
RAM available:368 bytes, used:77 bytes (21.0%), free:291 bytes (79.0%), 
Heap size:291 bytes, Heap max single alloc:110 bytes
ROM available:8192 words, used:1341 words (16.4%), free:6851 words (83.6%)
...and here's the output for the same program compiled for the 18F2620:

Code: Select all

Memory Usage Report
===================
RAM available:3968 bytes, used:77 bytes (2.0%), free:3891 bytes (98.0%), 
Heap size:3891 bytes, Heap max single alloc:127 bytes
ROM available:65536 bytes, used:2154 bytes (3.3%), free:63382 bytes (96.7%)

Post Reply