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.

My PIC program hangs probably because of memory issues

Status
Not open for further replies.

viccram

Junior Member level 1
Joined
Oct 15, 2007
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,433
my program hangs....
it is compiled and built successfully showing 44.45% program memory usage
i am programming in C...should i consider page or compiler does it???
what is the stack limitation of PIC16F877a???

is calling a function in another function creating this problem???

i hav heard that if the program code memory exceeds 2k we need to change PCLATH.

how is that done???
 

My PIC program hangs

most compilers manage the paging and banking, just don't exceed the 2k page limit on a single routine (16F) or you can use 18F series, no banking and paging worries.
 

Re: My PIC program hangs

Normally the C compilers handle the bank switching stuff internally. However might it be that your code does not have a valid / correct return path since you mentioned that you have functions calling functions?

Cheers
Slayer
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top