[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 580: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 636: sizeof(): Parameter must be an array or an object that implements Countable
Brads Electronic Projects Forum • The Problems about PIC18F45K80 Memory
Page 1 of 1

The Problems about PIC18F45K80 Memory

Posted: Thu Jun 08, 2017 6:33 pm
by permafrost1995
Hello,

I am doing a text of 16*16 by using PIC18F45K80,(the PIC18F45K80 datasheet: http://www.kynix.com/uploadfiles/pdf879 ... 189703.pdf ) and the compiler is PICC18-V9.80. A character die is 32 bytes. There will be blank if there are many type matrix. However, the room of memory just is used 30% when showing in the compiler. Why ? Please give me reasons and suggestions.
6.8.5.png
6.8.5.png (13.49 KiB) Viewed 13199 times
Are troubles occurred by hardware? Or software?
Thank you !

Re: The Problems about PIC18F45K80 Memory

Posted: Fri Jun 09, 2017 4:04 am
by Garth
I'm not familiar with the compiler, but what happens when you add more code? I imagine the memory usage will not go up proportionately, because there is some amount of base code that has to be there already, to make your own small piece of code work, and that base code will not need to be repeated.

Re: The Problems about PIC18F45K80 Memory

Posted: Fri Jun 09, 2017 10:05 pm
by brad
Have you used this compiler for other projects? If so, is the memory usage as you might expect it to be - does the memory usage simply jump up to a high value when you are using a matrix?

Re: The Problems about PIC18F45K80 Memory

Posted: Sat Jun 10, 2017 4:04 am
by bitfogav
If this is a genuine post then isn't it just down to the compiler optimisation levels?.