Anyone know what the size of the subroutine stack is for the 18F2620?
Joe
Anyone know what the size of the subroutine stack is for the 18F2620?
Joe
Thanks Bruce! How about the 16F687, which I'm trying to make interchangeable PBP code for?
Hi Joe,
The return stack for 14-bit core is 8 levels deep.
In the data sheet look in the Program Memory Organization section for stack
size information.
Yes, I saw that the PIC stack is 8 levels deep, but what is the PBP subroutine maximum stack depth (nesting)?
Hi Joe,
Subroutine nesting is normally restricted to 4 levels deep on 14-bit core, and
27 levels deep for 18Xxxx parts.
Look in the manual under GOSUB.
But if you want more... Darrel did something interesting awhile back
http://www.pbpgroup.com/modules/wfse...p?articleid=14
Didn't use it as now but i'm sure it works![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
mister e,
Thanks for the lead! This looks like a good solution for what I need. I'll take a closer look when I get back in the office Monday.
Thanks Again!
Joe
It works!
In fact, it was the basis for the RTOS that ended up on the Proton forum.
<br>
DT
Why i'm not surprise at all![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks