View previous topic :: View next topic |
Author |
Message |
falcon1877
Joined: 30 Sep 2012 Posts: 24
|
Problem with rom |
Posted: Sun Oct 14, 2012 5:12 pm |
|
|
Hi all, I have a problem. When I use over 85% of the ROM, my program run so slow (Timer don't work as I require). If I reduce ROM use around 80-84%, everything is ok .
How can I solve this problem or someone can tell me how to reduce ROM use ?? Thanks |
|
|
asmboy
Joined: 20 Nov 2007 Posts: 2128 Location: albany ny
|
|
Posted: Sun Oct 14, 2012 5:43 pm |
|
|
Post your code and perhaps some help will arrive.
Nobody here can read your mind.
Lets hope we can understand your code.
|
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Oct 14, 2012 6:06 pm |
|
|
Always post your PIC. Some PICs have 256 rom words, and others have
64K or higher. If you don't post your PIC, you're just wasting time. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19538
|
|
Posted: Mon Oct 15, 2012 12:46 am |
|
|
Also, using more ROM, is probably not the problem. Remember as your code gets larger, so does your usage of RAM, and also how much work the processor is actually doing (running more routines etc.). Increase in RAM usage, may well imply more page switching - as a general comment, declare the variables that are accessed the most, early in your code, and if the processor is doing more, then 'of course' it'll run slower....
Best Wishes |
|
|
|