Or try
LCDOUT $FE, $80, #A
Thanks tasmod, with this statement "LCDOUT $ FE, $ 80, # A" now everything seems to work ok. But what has changed? I have always used "DEC A" and has always worked. What is the problem? Thank you again
Nothing changed. You forgot $80 before your variable.
Ioannis
No, it is so, even this statement "LCDOUT $FE,$80,DEC A" does not work.
I always did this from early PicBasic days. Can't remember why.
#A Meaning the decimal representation of an ASCII value.
I always assumed that in a loop declared as a character, the loop iterated the character the number of times in the loop (i.e. first time round, A=1 in decimal but A was still a character representing that value)
Hope that makes sense.
Thank you for your interest, but I do not understand is that I have used this statement thousands of times with the 18F252 that I used before. Now I'm in trouble because I need to show the value of "A" sometimes using two digits (DEC2) and sometimes three digits (DEC3) and I do not know how.
Bookmarks