everything is possible, your code will help us to point you on the most possible problem.
everything is possible, your code will help us to point you on the most possible problem.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Thanks again mister_e!
I would like to post the hole program CODE but it is to long!
Im not sure whitch parts of the program are necessary?
is there a posibility to send it to you?
The program is the same like the one in my other posted thread
"Controlling an 240x128 LCD touch panel"
thanks
by NVM
Hi NVM, Where i am right it's almost impossible to get in touch with all the hardware you have. I have 2-3 pending project for some user here (no no no not free) and i have some daily 'asian medecine' session to take. Couldn't be impossible to check your whole code... but if it's a rushing project and it can be publish here, you can even use the file attachement and post the whole thing here.
I sent you my e-mail in your PM.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
This does sound like stack overflow reset. You can turn this option off in config word for a quick test, but to fix it, make sure whenever you use a CALL or GOSUB, that you RETURN instead of GOTO to get back.
Hi,
Have a look at the code below and modify according to your needs to test a stack over/underflow
Code:INIT: 'BELOW IS A CHECK FOR STACK ResetERROR FOR DEBUG ************************************ IF STKPTR.7 = 1 THEN ' CHECK FOR STACK POINTER OVERFLOW HSEROUT ["STACK OVERFLOW"] ' DUMP DATA TO LCD STKPTR.7 = 0 ' CLEAR STACK POINTER OVERFLOW BIT GOSUB DLY5K ' CALL THE 5 SECONDS DELAY SUBROUTINE ENDIF IF STKPTR.6 = 1 THEN ' CHECK FOR STACK POINTER UNDERFLOW HSEROUT ["STACK UNDERFLOW"] ' DUMP DATA TO LCD STKPTR.6 = 0 ' CLEAR STACK POINTER UNDERFLOW BIT GOSUB DLY5K ' CALL THE 5 SECONDS DELAY SUBROUTINE ENDIF
Regards
Sougata
Mots of my problems are solved...
I should have posted earlier in this Forum.
That would have saved me some sleepless nights.
Thanks to all of you.
I'll be back with better problems or better say tasks...
good night
by NVM
Bookmarks