Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

pic micro with 90% rom

Status
Not open for further replies.

raman00084

Full Member level 6
Joined
Nov 29, 2010
Messages
360
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
3,995
my pic controller 18f4620 is loded with 90% rom and 10 % ram . my doubt is 90% rom safe
kindly advise
 

Considering that the compiler that you are using could be already configured to optimize program memory usage ( usually to detriment of speed ), even on this case it is always possible to reduce the code size by better structuring the program, and it is achievable only depending on the inventiveness of the programmer to have creative insights, and also to not oppose to make deep changes in a working code, for example by reusing parts with similar functions. By the way, due to the PIC16 family does not have a large stack, compilers had as default to assemble functions inline, which consumes more "ROM", and it would be not unreasonable to consider that the same treaty would be extended to the 18F family, therefore the first thing, you could check out what the default in the compiler you are using.
 
Yes, it is safe. Code is executed in RAM. instructions are loaded into RAM from ROM and executed. So, no problem. If possible zip and post the complete project.
 
Whatever be the Compiler, if you have highly nested functions then there will be a chance of stack overflowing and during this time device may not work as needed or it may reset.

What is the actual problem you are facing in hardware ?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top