hi everybody.
I have a problem pls look this simple code;
---------------------------------------------------------------
START:
IF BUTTON1 = 0 THEN
GOSUB HEBELE
ENDIF
GOTO START
HEBELE:
I = I + 1
LCDOUT 254, 200, DEC2 I
PAUSE 500
GOSUB HEBELE
RETURN
---------------------------------------------------------------
this code is working normally with 16F876 so I can see the values of I variable on my lcd. Like this;
01, 02, 03 ....... 99, 00, 01 .... etc.
but when I use 18F252, the program is starting to work normally but when the I variable value is 28 (decimal) the program restarts or the program is blocking. like this;
01, 02, 03 ...... 28 --> blocking or restart
Everytime its blocking when the I variable value is 28. I dont know what is the problem? I need your opinions...
thank you so much
Bookmarks