The Problems about PIC18F45K80 Memory

Post here to discuss the PIC microcontroller tutorials.

Moderators: Chuckt, Garth, bitfogav

Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
permafrost1995
newbie
newbie
Posts: 1
Joined: Thu Jun 08, 2017 1:38 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

The Problems about PIC18F45K80 Memory

Post by permafrost1995 » Thu Jun 08, 2017 6:33 pm

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 14100 times
Are troubles occurred by hardware? Or software?
Thank you !

Garth
I practically live here!
I practically live here!
Posts: 232
Joined: Wed Jan 16, 2013 1:17 pm
Contact:

Re: The Problems about PIC18F45K80 Memory

Post by Garth » Fri Jun 09, 2017 4:04 am

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.
http://WilsonMinesCo.com/ lots of 6502 resources

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: The Problems about PIC18F45K80 Memory

Post by brad » Fri Jun 09, 2017 10:05 pm

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?

User avatar
bitfogav
Moderator
Moderator
Posts: 915
Joined: Sun Mar 28, 2010 9:03 pm
Location: United Kingdom
Contact:

Re: The Problems about PIC18F45K80 Memory

Post by bitfogav » Sat Jun 10, 2017 4:04 am

If this is a genuine post then isn't it just down to the compiler optimisation levels?.
If you don't know what Voltage your country is using, you shouldn't be doing electronics ;-)

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Who is online

Users browsing this forum: No registered users and 4 guests