look if there's a part of your code ended with a return but uncalled by a Gosub
well this is the only thing that make sense to me.
Will be easier to say if you post your code Here.
look if there's a part of your code ended with a return but uncalled by a Gosub
well this is the only thing that make sense to me.
Will be easier to say if you post your code Here.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
.................................................. .........................
Last edited by sinoteq; - 14th September 2005 at 01:52.
HI Sinoteq
There is one gosub and one return. so I would think the return
would go back to GETKEY. Yes
Or did I not understand your comment.
Thanks
Wayne
after Main, should have a goto start or something like thatCode:start: ' ' ' LED1=0 ' main: GoSub getkey getkey: kp1=0 'Clear kp1
But i didn't get any error within MicroCode Studio using MPASM but get error with PM about WDTCON and LCDCON... in the PM M16F91X.inc file it miss those two lines
but shouldn't be the cause IMOCode:WDTCON equ 105h LCDCON equ 107h
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hi Steve
You only get the error if you use the MPLAB SIM tool or program the PIC
and install it in the board.
Thanks
Wayne
So to be clear does
fix the problem... i guess yes !?!Code:main: GoSub getkey Goto Start ' <=== Add this line getkey: kp1=0 'Clear kp1
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hi Steve (MR. E)
Yes that did work and thank you very much for the help.
But one more thing WHY and what is a stack underflow?
Again Thanks
Wayne
Bookmarks